开发者

arm-linux-androideabi-gcc: Internal error: Killed (program cc1) from Android NDK r8

When I build hello-jni which i got from the sample folder of android-ndk-r5, I got a folloiwng error. Would you please tell me your any idea what i missed?

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

Development environment:

  • OS: Ubuntu 10.04 Desktop on WINDOWS 7 via VertualBox
  • Android SDK: r08
  • Android NDK: r5

detail of error:

$ ndk-build
Gdbserver : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver
Gdbsetup : libs/armeabi/gdb.setup
Compile thumb : hello-jni <= hello-jni.c
arm-linux-androideabi-gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <http://gcc.开发者_如何学编程gnu.org/bugs.html> for instructions.
make: *** [/home/users001/android-ndk/samples/hello-jni/obj/local/armeabi/objs-debug/hello-jni/hello-jni.o] error1

Please advice.


This error went away for me when I used "make" instead of the recommended "make -j4".


I reformed the detail i posted above.

$ ndk-build
Gdbserver : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver
Gdbsetup : libs/armeabi/gdb.setup
Compile thumb : hello-jni <= hello-jni.c
arm-linux-androideabi-gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See http://gcc.gnu.org/bugs.html for instructions.
make: * [/home/user00/android-ndk/samples/hello-jni/obj/local/armeabi/objs-debug/hello-jni/hello-jni.o] error1


I also had this problem with Ubuntu 10.04 32-bit. I had plenty of disk space on all partitions.

It disappeared after I upgraded to Ubuntu 10.10


I had this problem in my Ubuntu 11.4 VMWare machine. I'm not sure what the root of the issue is.

But rebooting the virtual machine seems to fix the problem for me.


For those having this issue with VMs, the solution that worked for me was bumping up the base memory. It was originally set to 512MB to 1536MB. I'm sure it doesn't have to be that much but it certainly helps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜