Hi! I was advised to send this issue here by Benno @ GNU nano since it seems to 
be a regression in libgnu building with Android NDK and/or Cygwin. Here's the 
nano bug report, for reference: https://savannah.gnu.org/bugs/?62124

I build nano for Android using this setup and bisected libgnu to find the last 
working commit is 87e6634b, meaning the breaking change is from 
https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commit;h=0c8a563f65d44752b33aec42cceec25bd485f2d5

I confirmed this is still broken on master at HEAD, and since I understand 
there were some automake version concerns lately, I confirmed my Cygwin 
install's automake is 1.16.1, so should be unrelated to the issue.

The errors introduced with the linked commit are as follows:

make[4]: Entering directory '/home/Chris/nano-6.2/lib'
arm-linux-androideabi-gcc -std=gnu11 -DHAVE_CONFIG_H -I. -I..   -D_GNU_SOURCE 
-D_DEFAULT_SOURCE    - -Wno-unsuffixed-float-constants -D__ANDROID_API__=21 -O3 
-ffunction-sections -s -Wall -MT libgnu_a-basename-lgpl.o -MD -MP -MF 
.deps/libgnu_a-basename-lgpl.Tpo -c -o libgnu_a-basename-lgpl.o `test -f 
'basename-lgpl.c' || echo './'`basename-lgpl.c
: Invalid argumentabi-gcc.exe: error:
: Invalid argumentabi-gcc.exe: error:
: Invalid argumentabi-gcc.exe: error:
: Invalid argumentabi-gcc.exe: error:
: Invalid argumentabi-gcc.exe: error:
: Invalid argumentabi-gcc.exe: error:
: Invalid argumentabi-gcc.exe: error:
: Invalid argumentabi-gcc.exe: error:
: Invalid argumentabi-gcc.exe: error:
: Invalid argumentabi-gcc.exe: error:
: Invalid argumentabi-gcc.exe: error:
make[4]: *** [Makefile:2485: libgnu_a-basename-lgpl.o] Error 1
make[4]: Leaving directory '/home/Chris/nano-6.2/lib'
make[3]: *** [Makefile:4227: all-recursive] Error 1
make[3]: Leaving directory '/home/Chris/nano-6.2/lib'
make[2]: *** [Makefile:2230: all] Error 2
make[2]: Leaving directory '/home/Chris/nano-6.2/lib'
make[1]: *** [Makefile:1750: all-recursive] Error 1
make[1]: Leaving directory '/home/Chris/nano-6.2'
make: *** [Makefile:1691: all] Error 2

By contrast, here's the output from the same part of the build from a working 
compile at the last working commit:

make[4]: Entering directory '/home/Chris/nano-6.2/lib'
depbase=`echo basename-lgpl.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
arm-linux-androideabi-gcc -std=gnu11 -DHAVE_CONFIG_H -I. -I..   -D_GNU_SOURCE 
-D_DEFAULT_SOURCE    -D__ANDROID_API__=21 -O3 -ffunction-sections -s -Wall -MT 
basename-lgpl.o -MD -MP -MF $depbase.Tpo -c -o basename-lgpl.o basename-lgpl.c 
&&\
mv -f $depbase.Tpo $depbase.Po

Thanks for your consideration!

Chris Renshaw

Reply via email to