linux: c compiler works... no

595 views
Skip to first unread message

John Leith

unread,
Feb 20, 2013, 11:29:12 PM2/20/13
to kivy-...@googlegroups.com
I'm having problems using ./distribute.sh on Ubuntu to make an android executable. I'm just using the tutorial code to see how hard it is to package for Android. but distribute.sh crashes: 

configure: WARNING: if you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used
checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux3
checking EXTRAPLATDIR... 
checking machine type as reported by uname -m... x86_64
checking for --without-gcc... no
checking for arm-eabi-gcc... arm-linux-androideabi-gcc -mandroid  -fomit-frame-pointer --sysroot /home/leitjohn/Desktop/android-ndk-r8d/platforms/android-14/arch-arm
checking whether the C compiler works... no
configure: error: in `/home/leitjohn/Desktop/KivyTest/python-for-android/build/python/Python-2.7.2':
configure: error: C compiler cannot create executables
See `config.log' for more details


config.log (if you want the whole of it, i'll post it, but this is the section i think that matters):

configure:3565: $? = 0
configure
:3554: arm-linux-androideabi-gcc -mandroid  -fomit-frame-pointer --sysroot /home/leitjohn/Desktop/android-ndk-r8d/platforms/android-14/arch-arm -v >&5
Using built-in specs.
Target: arm-linux-androideabi
Configured with: /s/ndk-toolchain/src/build/../gcc/gcc-4.4.3/configure --prefix=/tmp/ndk-andrewhsieh/build/toolchain/prefix --target=arm-linux-androideabi --host=x86_64-linux-gnu --build=x86_64-linux-gnu --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --with-gmp=/tmp/ndk-andrewhsieh/build/toolchain/temp-install --with-mpfr=/tmp/ndk-andrewhsieh/build/toolchain/temp-install --without-ppl --without-cloog --disable-libssp --enable-threads --disable-nls --disable-libmudflap --disable-libgomp --disable-libstdc__-v3 --disable-sjlj-exceptions --disable-shared --disable-tls --disable-libitm --with-float=soft --with-fpu=vfp --with-arch=armv5te --enable-target-optspace --enable-initfini-array --disable-nls --prefix=/tmp/ndk-andrewhsieh/build/toolchain/prefix --with-sysroot=/tmp/ndk-andrewhsieh/build/toolchain/prefix/sysroot --with-binutils-version=2.19 --with-mpfr-version=2.4.1 --with-mpc-version=0.8.1 --with-gmp-version=5.0.5 --with-gcc-version=4.4.3 --with-gdb-version=7.3.x --with-gxx-include-dir=/tmp/ndk-andrewhsieh/build/toolchain/prefix/include/c++/4.4.3 --with-bugurl=http://source.android.com/source/report-bugs.html --disable-bootstrap --disable-libquadmath --disable-plugin --with-arch=armv5te --program-transform-name='s&^&arm-linux-androideabi-&'
Thread model: posix
gcc version
4.4.3 (GCC)
configure
:3565: $? = 0
configure
:3554: arm-linux-androideabi-gcc -mandroid  -fomit-frame-pointer --sysroot /home/leitjohn/Desktop/android-ndk-r8d/platforms/android-14/arch-arm -V >&5
arm
-linux-androideabi-gcc: '-V' must come at the start of the command line
configure
:3565: $? = 1
configure
:3554: arm-linux-androideabi-gcc -mandroid  -fomit-frame-pointer --sysroot /home/leitjohn/Desktop/android-ndk-r8d/platforms/android-14/arch-arm -qversion >&5
arm
-linux-androideabi-gcc: unrecognized option '-qversion'
arm
-linux-androideabi-gcc: no input files
configure
:3565: $? = 1
configure
:3585: checking whether the C compiler works
configure
:3607: arm-linux-androideabi-gcc -mandroid  -fomit-frame-pointer --sysroot /home/leitjohn/Desktop/android-ndk-r8d/platforms/android-14/arch-arm -mandroid  -fomit-frame-pointer --sysroot /home/leitjohn/Desktop/android-ndk-r8d/platforms/android-14/arch-arm  -lm conftest.c  >&5
Assembler messages:
Fatal error: invalid -march= option: `armv5te'
configure:3611: $? = 1
configure:3649: result: no



John Leith

unread,
Feb 20, 2013, 11:31:13 PM2/20/13
to kivy-...@googlegroups.com
This looks kinda funny too (in distribute.sh output): 

Compiler found at /home/leitjohn/Desktop/android-ndk-r8d/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin//arm-linux-androideabi-gcc

It's got a double slash, how'd that get in?

Mathieu Virbel

unread,
Feb 21, 2013, 4:53:36 AM2/21/13
to kivy-...@googlegroups.com
Few people reported it, and it seem an issue with the NDK itself.
Can you look at
http://stackoverflow.com/questions/10770296/error-while-compiling-android-jni-sample-invalid-march-option-armv5te
?

Or search on the internet a possible answer for your issue?

Le 21/02/2013 05:29, John Leith a �crit :
> Configuredwith:/s/ndk-toolchain/src/build/../gcc/gcc-4.4.3/configure
> --prefix=/tmp/ndk-andrewhsieh/build/toolchain/prefix
> --target=arm-linux-androideabi --host=x86_64-linux-gnu
> --build=x86_64-linux-gnu --with-gnu-as--with-gnu-ld
> --enable-languages=c,c++--with-gmp=/tmp/ndk-andrewhsieh/build/toolchain/temp-install
> --with-mpfr=/tmp/ndk-andrewhsieh/build/toolchain/temp-install
> --without-ppl --without-cloog --disable-libssp --enable-threads
> --disable-nls --disable-libmudflap --disable-libgomp
> --disable-libstdc__-v3 --disable-sjlj-exceptions --disable-shared
> --disable-tls --disable-libitm --with-float=soft --with-fpu=vfp
> --with-arch=armv5te --enable-target-optspace --enable-initfini-array
> --disable-nls --prefix=/tmp/ndk-andrewhsieh/build/toolchain/prefix
> --with-sysroot=/tmp/ndk-andrewhsieh/build/toolchain/prefix/sysroot
> --with-binutils-version=2.19--with-mpfr-version=2.4.1--with-mpc-version=0.8.1--with-gmp-version=5.0.5--with-gcc-version=4.4.3--with-gdb-version=7.3.x
> --with-gxx-include-dir=/tmp/ndk-andrewhsieh/build/toolchain/prefix/include/c++/4.4.3--with-bugurl=http://source.android.com/source/report-bugs.html
> Fatalerror:invalid -march=option:`armv5te'
> configure:3611: $? = 1
> configure:3649: result: no
>
> |
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Kivy users support" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to kivy-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

John Leith

unread,
Feb 21, 2013, 5:33:47 PM2/21/13
to kivy-...@googlegroups.com
Yeah, that's what i tried first. Most of the answers were a little beyond me so i decided to give this place a try. I'm a python programmer primarily so this is getting beyond what i am capable of.
Reply all
Reply to author
Forward
0 new messages