arm-linux-androideabi-gcc: command not found

8,385 views
Skip to first unread message

jre

unread,
Sep 11, 2012, 3:57:59 AM9/11/12
to csipsim...@googlegroups.com
Good day to all! :)

I'm currently looking into the process of building the app in my machine. Unfortunately I'm stuck w/ errors during make. I'm working on top of Ubuntu 12.04 32bit. Here's the log after executing make:

# External sources fetched out from external repos/zip
make[1]: Entering directory `/home/iskalot/Documents/CSipSimple/jni/swig-glue'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/iskalot/Documents/CSipSimple/jni/swig-glue'
make[1]: /home/iskalot/android-ndk-linux/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc: Command not found
make[1]: Entering directory `/home/iskalot/android-ndk-linux/samples/hello-jni'
make[1]: /home/iskalot/android-ndk-linux/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc: Command not found
make[1]: /home/iskalot/android-ndk-linux/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc: Command not found
make[1]: Entering directory `/home/iskalot/android-ndk-linux/samples/hello-jni'
make[1]: /home/iskalot/android-ndk-linux/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc: Command not found
make[1]: Entering directory `/home/iskalot/Documents/CSipSimple/jni/webrtc'
/home/iskalot/android-ndk-linux/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc -MMD -MP -fpic -ffunction-sections -funwind-tables -fstack-protector -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -Ijni -DANDROID -Wa,--noexecstack -O0 -g -I/home/iskalot/android-ndk-linux/platforms/android-3/arch-arm/usr/include -Isources/modules/audio_processing/aecm/include -Isources/modules/audio_processing/aecm/../utility -Isources/modules/audio_processing/aecm/../../.. -Isources/modules/audio_processing/aecm/../../../common_audio/signal_processing/include -Isources/modules/audio_processing/aecm/../../../system_wrappers/interface -mfpu=neon -mfloat-abi=softfp -flax-vector-conversions -S -o sources/modules/audio_processing/aecm/aecm_core_neon_offsets.S sources/modules/audio_processing/aecm/aecm_core_neon_offsets.c
make[1]: /home/iskalot/android-ndk-linux/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc: Command not found
make[1]: *** [sources/modules/audio_processing/aecm/aecm_core_neon_offsets.S] Error 127
make[1]: Leaving directory `/home/iskalot/Documents/CSipSimple/jni/webrtc'
make: *** [webrtc-preprocess] Error 2

Here are the contents of android-ndk-linux/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/ (where I can see no arm-linux-androideabi-gcc file)

-rwxr-x--- 1 iskalot iskalot  693088 Jul  3 13:50 arm-linux-androideabi-addr2line*
-rwxr-x--- 1 iskalot iskalot  691584 Jul  3 13:50 arm-linux-androideabi-c++filt*
-rwxr-x--- 1 iskalot iskalot  323104 Jul  3 13:50 arm-linux-androideabi-cpp*
-rwxr-x--- 1 iskalot iskalot   23236 Jul  3 13:50 arm-linux-androideabi-elfedit*
-rwxr-x--- 1 iskalot iskalot  327200 Jul  3 13:50 arm-linux-androideabi-g++*
-rwxr-x--- 1 iskalot iskalot  323104 Jul  3 13:50 arm-linux-androideabi-gcc-4.6.x-google*
-rwxr-x--- 1 iskalot iskalot  117040 Jul  3 13:50 arm-linux-androideabi-gcov*
-rwxr-x--- 1 iskalot iskalot 4093196 Jul  3 13:50 arm-linux-androideabi-gdb*
-rwxr-x--- 1 iskalot iskalot 4093196 Jul  3 13:50 arm-linux-androideabi-gdbtui*
-rwxr-x--- 1 iskalot iskalot  764480 Jul  3 13:50 arm-linux-androideabi-gprof*
-rwxr-x--- 1 iskalot iskalot  344796 Jul  3 13:50 arm-linux-androideabi-readelf*
-rwxr-x--- 1 iskalot iskalot  984220 Jul  3 13:50 arm-linux-androideabi-run*
-rwxr-x--- 1 iskalot iskalot  694976 Jul  3 13:50 arm-linux-androideabi-size*
-rwxr-x--- 1 iskalot iskalot  694112 Jul  3 13:50 arm-linux-androideabi-strings*

I've searched over the topics but I can't see any related build issues. Hopes someone could help. Thank you in advance! :)

Régis Montoya

unread,
Sep 11, 2012, 5:52:02 AM9/11/12
to csipsim...@googlegroups.com
Hi,

Waht is the version of your NDK?


2012/9/11 jre <jervy....@gmail.com>

jre

unread,
Sep 11, 2012, 6:27:49 AM9/11/12
to csipsim...@googlegroups.com
Hi Regis,

Thanks for the reply! :)

I have ndk r8b. I did a workaround and was able to produce <project>/libs/<archi>/libstlport_shared.so
Now I'm facing different error as shown by the logs below. Seems configuration of gcc or swig in my dev machine. Not sure though :(

collect2: cannot find 'ld'
make[1]: *** [obj/local/armeabi/libcrypto.so] Error 1
make[1]: *** Waiting for unfinished jobs....
StaticLibrary  : libpjsip.a
make[1]: Leaving directory `/home/iskalot/Documents/CSipSimple'
make: *** [libraries] Error 2

Régis Montoya

unread,
Sep 11, 2012, 6:55:04 AM9/11/12
to csipsim...@googlegroups.com
I think that you'll get a lot of these problems until the toolchain is not properly found. Don't try to workaround things, there is a root problem ... gcc/ld are not present in your ndk. If that is fixed, everything will go way better !

Maybe try to reinstall your NDK. Apparently something went wrong when untar-bz contents of the ndk.
Normally a gcc, a ld a c++ command should be available in your ndk.
See what's in the ndk installed on my machine (it's ndk-r8b like you... but fully downloaded + untar) :
-rwxr-x--- 1 rmontoya rmontoya  693088 juil.  3 07:50 arm-linux-androideabi-addr2line*
-rwxr-x--- 2 rmontoya rmontoya  721444 juil.  3 07:50 arm-linux-androideabi-ar*
-rwxr-x--- 2 rmontoya rmontoya 1249860 juil.  3 07:50 arm-linux-androideabi-as*
-rwxr-x--- 2 rmontoya rmontoya  327200 juil.  3 07:50 arm-linux-androideabi-c++*
-rwxr-x--- 1 rmontoya rmontoya  691584 juil.  3 07:50 arm-linux-androideabi-c++filt*
-rwxr-x--- 1 rmontoya rmontoya  323104 juil.  3 07:50 arm-linux-androideabi-cpp*
-rwxr-x--- 1 rmontoya rmontoya   23236 juil.  3 07:50 arm-linux-androideabi-elfedit*
-rwxr-x--- 2 rmontoya rmontoya  327200 juil.  3 07:50 arm-linux-androideabi-g++*
-rwxr-x--- 2 rmontoya rmontoya  323104 juil.  3 07:50 arm-linux-androideabi-gcc*
-rwxr-x--- 2 rmontoya rmontoya  323104 juil.  3 07:50 arm-linux-androideabi-gcc-4.6.x-google*
-rwxr-x--- 1 rmontoya rmontoya  117040 juil.  3 07:50 arm-linux-androideabi-gcov*
-rwxr-x--- 1 rmontoya rmontoya 4093196 juil.  3 07:50 arm-linux-androideabi-gdb*
-rwxr-x--- 1 rmontoya rmontoya 4093196 juil.  3 07:50 arm-linux-androideabi-gdbtui*
-rwxr-x--- 1 rmontoya rmontoya  764480 juil.  3 07:50 arm-linux-androideabi-gprof*
-rwxr-x--- 4 rmontoya rmontoya 1178148 juil.  3 07:50 arm-linux-androideabi-ld*
-rwxr-x--- 4 rmontoya rmontoya 1178148 juil.  3 07:50 arm-linux-androideabi-ld.bfd*
-rwxr-x--- 2 rmontoya rmontoya 2869016 juil.  3 07:50 arm-linux-androideabi-ld.gold*
-rwxr-x--- 2 rmontoya rmontoya  705248 juil.  3 07:50 arm-linux-androideabi-nm*
-rwxr-x--- 2 rmontoya rmontoya  900608 juil.  3 07:50 arm-linux-androideabi-objcopy*
-rwxr-x--- 2 rmontoya rmontoya 1060064 juil.  3 07:50 arm-linux-androideabi-objdump*
-rwxr-x--- 2 rmontoya rmontoya  721444 juil.  3 07:50 arm-linux-androideabi-ranlib*
-rwxr-x--- 1 rmontoya rmontoya  344796 juil.  3 07:50 arm-linux-androideabi-readelf*
-rwxr-x--- 1 rmontoya rmontoya  984220 juil.  3 07:50 arm-linux-androideabi-run*
-rwxr-x--- 1 rmontoya rmontoya  694976 juil.  3 07:50 arm-linux-androideabi-size*
-rwxr-x--- 1 rmontoya rmontoya  694112 juil.  3 07:50 arm-linux-androideabi-strings*
-rwxr-x--- 2 rmontoya rmontoya  900608 juil.  3 07:50 arm-linux-androideabi-strip*


So try to reinstall : maybe the download didn't finished when you unzipped the ndk contents or something went wrong during download and not all binaries was retrieved from the tar.bz.
With your current NDK, no android native code can be built. It's not related to csipsimple toolchain ;)... to get convinced, try to build samples from the ndk, you'll see that you'll get same problems !

2012/9/11 jre

jre

unread,
Sep 11, 2012, 7:08:08 AM9/11/12
to csipsim...@googlegroups.com
Hi Regis,

I think you're right. Looking to your logs, I can say that there are other missing files in my current NDK installation. By the way, could you please provide your download link (or repo) in case you have other than the one listed in the android official site? Again, thanks for your prompt response! :)

Régis Montoya

unread,
Sep 11, 2012, 7:19:41 AM9/11/12
to csipsim...@googlegroups.com
I use the one of the official ndk
http://developer.android.com/tools/sdk/ndk/index.html
(the link for linux : http://dl.google.com/android/ndk/android-ndk-r8b-linux-x86.tar.bz2 )
(I downloaded it one week ago to setup this new pc and was good using this official link).

You can do a
md5sum android-ndk-r8b-linux-x86.tar.bz2
in command line, once downloaded to compare with the value given on the android ndk website. Just to be sure it was fully downloaded and not corrupted during download.


Regards,
Régis

2012/9/11 jre <jervy....@gmail.com>

jre

unread,
Sep 11, 2012, 8:10:48 AM9/11/12
to csipsim...@googlegroups.com
Hi Regin,

Finally it's working!
Thanks a ton! :)



On Tuesday, September 11, 2012 3:57:59 PM UTC+8, jre wrote:
Reply all
Reply to author
Forward
0 new messages