This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
cross compiling for strongarm
- To: gcc-help at gcc dot gnu dot org
- Subject: cross compiling for strongarm
- From: Arvind Krishnaswamy <arvind at CS dot Arizona dot EDU>
- Date: Thu, 12 Oct 2000 17:49:54 -0700
I'm having some trouble cross compiling for the strongarm.
Any help will be appreciated.
My host machine is an Intel x86. This what I do
./configure --target=arm-linux --prefix=/arvind/local;
make >& errors;
I used the same options to cross compile binutils.
When I try to make gcc I get the following errors :
tail errors
make GCC_FOR_TARGET="/arvind/local/gcc/gcc/xgcc -B/arvind/local/gcc/gcc/ -B/arvind/local/arm-linux/bin/ -B/arvind/local/arm-linux/lib/ -isystem /arvind/local/arm-linux/include" \
HOST_PREFIX="" HOST_PREFIX_1="loser-" \
AR_FOR_TARGET="arm-linux-ar" \
AR_CREATE_FOR_TARGET="arm-linux-ar rc" \
AR_FLAGS_FOR_TARGET="" \
OLDCC="cc" CCLIBFLAGS="-O" \
CFLAGS="-g -O2 -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long" \
RANLIB_FOR_TARGET="arm-linux-ranlib" \
RANLIB_TEST_FOR_TARGET="[ -f arm-linux-ranlib ] || ( [ "i686-pc-linux-gnu" = "arm-unknown-linux-gnu" ] && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] )" \
LIBGCC2_CFLAGS="-O2 -DCROSS_COMPILE -DIN_GCC `echo -g -O2 -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long|sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -isystem ./include -fomit-frame-pointer -fPIC -g0 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc" \
INCLUDES="-I. -I. -I./config -I./../include" MAYBE_USE_COLLECT2="" \
CONFIG_H="" MACHMODE_H="machmode.h machmode.def" \
LIB1ASMSRC='arm/lib1funcs.asm' \
-f libgcc.mk all
make[2]: Entering directory `/arvind/local/gcc/gcc'
for d in libgcc soft-float libgcc/soft-float; do \
if [ -d $d ]; then true; else mkdir $d; fi \
done
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/arvind/local/gcc/gcc/xgcc -B/arvind/local/gcc/gcc/ -B/arvind/local/arm-linux/bin/ -B/arvind/local/arm-linux/lib/ -isystem /arvind/local/arm-linux/include -O2 -DCROSS_COMPILE -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -isystem ./include -fomit-frame-pointer -fPIC -g0 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I./config -I./../include -DL_dvmd_lnx -xassembler-with-cpp -c ./config/arm/lib1funcs.asm -o libgcc/./_dvmd_lnx.o
./config/arm/lib1funcs.asm:633:24: asm/unistd.h: No such file or directory
make[2]: *** [libgcc/./_dvmd_lnx.o] Error 1
make[2]: Leaving directory `/arvind/local/gcc/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/arvind/local/gcc/gcc'
make: *** [all-gcc] Error 2
----------------------------------------------------------------
thanks
Arvind