Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arm-linux-androideabi-gcc: Internal error: Killed (program cc1) #9

Closed
edwyns opened this issue Jan 24, 2012 · 5 comments
Closed

arm-linux-androideabi-gcc: Internal error: Killed (program cc1) #9

edwyns opened this issue Jan 24, 2012 · 5 comments

Comments

@edwyns
Copy link

edwyns commented Jan 24, 2012

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 Seeconfig.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

@tito
Copy link
Member

tito commented Feb 8, 2012

I've absolutly no idea. Is your computer have enough memory or something like that? Disk full? ipcs is ok?
I never experienced that kind of error, and it's appearing directly within gcc. I suggest you to open a bug to android sdk instead :/

@rubik
Copy link

rubik commented Apr 15, 2012

I have the very same issue! I'm on ArchLinux, with SDK API 15 and NDK r7c. I solved the error:
configure: error: C compiler cannot create executables

by creating the directory /usr/local/python/2.7/lib, as said here:
http://koansys.com/tech/building-python-with-enable-shared-in-non-standard-location

But now, when I issue the distribute command again (a simple distribution with only kivy) I get directly the error:

arm-linux-androideabi-gcc: Internal error: Killed (program cc1)

@rubik
Copy link

rubik commented Apr 15, 2012

It's probably the wrong API level that messes things up. I now see that @edwyns has set his API level to 13 and I have 15.
I'll install 14 (as per the documentation) to see what happens.

I had installed 15 because I thought the new NDK version (r7c) covered it, but probably it does not.

EDIT: I confirm, using SDK API 14 works well!

@snowrry
Copy link

snowrry commented Apr 17, 2012

I've met with the same issue. Yes, SDK API 14 and NDK r7c can work.

@tito
Copy link
Member

tito commented Apr 17, 2012

Added into the FAQ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants