Estou recebendo o seguinte erro durante a compilação cruzada de gcc
no ARM:
TLS -o _udivsi3.o -MT _udivsi3.o -MD -MP -MF _udivsi3.dep -DL_udivsi3 -xassembler-with-cpp \ -c ../.././libgcc/../gcc/config/arm/lib1funcs.asm../.././libgcc/../gcc/config/arm/lib1funcs.asm:103:2: error: #error Unable to determine architecture.
make[2]: *** [_udivsi3.o] Error 1
make[2]: Leaving directory '/media/COMMON/WorkSpace/Packages/gcc-4.4.3/arm-linux/libgcc'
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory '/media/COMMON/WorkSpace/Packages/gcc-4.4.3'
make: *** [all] Error 2
Eu compilei as dependências do gcc que são gmp, mfpr, mpc, bin-utils no ARM.
Como devo resolver esse erro?
A versão do Gcc é a 4.4.3 e a versão do ARM Linux é a 2.6.38.
Estas são as etapas que segui para compilar gcc
no ARM:
export CROSS_COMPILER="arm-linux-"
export CC="arm-linux-gcc"
export ARCH="arm"
./configure --host=arm-linux --prefix=/media/COMMON/WorkSpace/Applications/Vital-TrackIII/Build_gcc --enable-languages=c --disable-multilib --with-float=soft --disable-sjlj-exceptions --disable-shared --enable-libgomp --disablenls --enable-threads=posix --disable-libmudflap --disable-libssp --enable-long=longx --with-gmp=/media/COMMON/WorkSpace/Applications/Vital-TrackIII/Build_gmp --with-mpfr=/media/COMMON/WorkSpace/Applications/Vital-TrackIII /Build_mpfr CFLAGS=-I/usr/TINY6410/usr/include LDFLAGS=-L/usr/TINY6410/usr/lib
make
Depois de dar o comando make
,
dá o erro Unable to determine architecture
.
Tags gcc arm cross-compilation linux