android toolchain is using Thread model: single

1. arm-eabi-gcc information in android

stevenliyong@stevenliyong-desktop:~/smartq_utility/linux-kernel-2.6.24.7-smartq$ arm-eabi-gcc -v
Using built-in specs.
Target: arm-eabi
Configured with: ../../toolchain/android-toolchain/gcc-4.2.1/configure --prefix=/android/mathias/armdev/toolchain-eabi-4.2.1 --program-transform-name=s,^,arm-eabi-, --prefix=/android/mathias/armdev/toolchain-eabi-4.2.1 --target=arm-eabi --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu --enable-languages=c,c++ --disable-libstdc__-v3 --disable-libssp --enable-threads --disable-nls --disable-libmudflap --with-float=soft --with-fpu=vfp --with-arch=armv5te --enable-target-optspace --with-abi=aapcs : (reconfigured) ../../toolchain/android-toolchain/gcc-4.2.1/configure --prefix=/android/mathias/armdev/toolchain-eabi-4.2.1 --program-transform-name=s,^,arm-eabi-, --prefix=/android/mathias/armdev/toolchain-eabi-4.2.1 --target=arm-eabi --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu --enable-languages=c,c++ --disable-libstdc__-v3 --disable-libssp --enable-threads --disable-nls --disable-libmudflap --with-float=soft --with-fpu=vfp --with-arch=armv5te --enable-target-optspace --with-abi=aapcs
Thread model: single
gcc version 4.2.1

 

2. x-86 gcc information in Ubuntu8.04

stevenliyong@stevenliyong-desktop:~/smartq_utility/linux-kernel-2.6.24.7-smartq$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu4)

 

3.

I encouted a problem when I compile the smartq kernel with the android gcc.

 

#export PATH=$PATH:/home/stevenliyong/Android_Env/android_arm/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin
#make ARCH=arm CROSS_COMPILE=arm-eabi-

CC [M]  fs/coda/psdev.o
In file included from fs/coda/psdev.c:44:
include/linux/coda.h:247: error: expected specifier-qualifier-list before 'u_quad_t'

 

It seems that it is because of that the arm-embi-gcc in Android is using  "Thread model: single"

So I have to download a common arm gcc to compile the kernel

http://www.handhelds.org/download/projects/toolchain

 

 

你可能感兴趣的:(thread,android,gcc,ubuntu,download,fortran)