kivy/python-for-android — Issue #9: arm-linux-androideabi-gcc: Internal error: Killed (program cc1)
Author: edwyns
Created: 2012-01-24 08:50:42+00:00
State: open

Hello,

today i clones the latest version from git hub

my system is Ubuntu 11.10 on vmware

i've installed all the prerequisets and am now trying to build python for andriod

Check enviromnent
SDK located at /home/user/Downloads/android-sdk-linux
NDK located at /home/user/Downloads/android-ndk-r7
NDK version is r7
API level set to 13

Check mandatory tools
Distribution will be located at /home/user/python-for-android/dist/default
The distribution /home/user/python-for-android/dist/default already exist
Press a key to remove it, or Control + C to abort.

Entering in ARM enviromnent
Compiler found at /home/user/Downloads/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin//arm-linux-androideabi-gcc
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... i686
checking for --without-gcc... no
checking for arm-eabi-gcc... ccache arm-linux-androideabi-gcc -mandroid -fomit-frame-pointer --sysroot /home/user/Downloads/android-ndk-r7/platforms/android-13/arch-arm
checking whether the C compiler works... no
configure: error: in `/home/user/python-for-android/build/python/Python-2.7.2':
configure: error: C compiler cannot create executables
See `config.log' for more details
root@ubuntu:/home/user/python-for-android#

some content of the config.log

PATH: /home/user/Downloads/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/
PATH: /home/user/Downloads/android-ndk-r7
PATH: /home/user/Downloads/android-sdk-linux/tools
PATH: /home/user/Downloads/android-ndk-r7/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/
PATH: /home/user/Downloads/android-ndk-r7
PATH: /home/user/Downloads/android-sdk-linux/tools
PATH: /home/user/Downloads/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin
PATH: /home/user/Downloads/android-sdk-linux/tools
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games

configure:3554: ccache arm-linux-androideabi-gcc -mandroid -fomit-frame-pointer --sysroot /home/user/Downloads/android-ndk-r7/platforms/android-13/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: ccache arm-linux-androideabi-gcc -mandroid -fomit-frame-pointer --sysroot /home/user/Downloads/android-ndk-r7/platforms/android-13/arch-arm -mandroid -fomit-frame-pointer --sysroot /home/user/Downloads/android-ndk-r7/platforms/android-13/arch-arm conftest.c >&5
arm-linux-androideabi-gcc: Internal error: Killed (program cc1)

i also tried setting api level to 14 and 15 i keep getting the same error.

any tips on resolving this issue?

Kind regards,
Edwyn