This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How can I build gcc for arm on a x86_64 machine?


hi,everyone:
   I'm trying to build a cross compiler for arm. The problem appeared
when I built the gcc with c,c++ languages.

I use debian testing(lenny),x86_64
   Here are my steps:
1.I build the binutils-2.18
2.I build the gcc-4.3.2 with only C
3.I build the glibc-2.7 with:
../glibc-2.7/configure --build=x86_64-linux --host=x86_64-linux
--target=arm-linux --prefix=/home/yg/arm/usr/ --enable-add-ons
4.finally I will build gcc-4.3.2 with everything.
../gcc-4.3.2/configure --target=arm-linux --prefix=/home/yg/arm/usr
--enable-languages=c,c++ --with-headers=/home/yg/arm/usr/include/

the problem is :
make[3]: Leaving directory `/home/yg/arm/achieve/gcc/arm-linux/libgcc'
/home/yg/arm/achieve/gcc/./gcc/xgcc -B/home/yg/arm/achieve/gcc/./gcc/
-B/home/yg/arm/usr/arm-linux/bin/ -B/home/yg/arm/usr/arm-linux/lib/
-isystem /home/yg/arm/usr/arm-linux/include
-isystem /home/yg/arm/usr/arm-linux/sys-include -O2 -g -g -O2 -O2  -O2
-g -g -O2   -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE   -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include  -fomit-frame-pointer -fPIC
-Dinhibit-libc -D__gthr_posix_h -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED   -I. -I. -I../.././gcc
-I../../../gcc-4.3.2/libgcc -I../../../gcc-4.3.2/libgcc/.
-I../../../gcc-4.3.2/libgcc/../gcc
-I../../../gcc-4.3.2/libgcc/../include  -DHAVE_CC_TLS -o _muldi3.o -MT
_muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3
-c ../../../gcc-4.3.2/libgcc/../gcc/libgcc2.c \
	  -fvisibility=hidden -DHIDE_EXPORTS
<command-line>: warning: missing whitespace after the macro name
In file included
from /home/yg/arm/usr/arm-linux/sys-include/features.h:354,
                 from /home/yg/arm/usr/arm-linux/sys-include/stdio.h:28,
                 from ../../../gcc-4.3.2/libgcc/../gcc/tsystem.h:90,
                 from ../../../gcc-4.3.2/libgcc/../gcc/libgcc2.c:33:
/home/yg/arm/usr/arm-linux/sys-include/gnu/stubs.h:7:27: error:
gnu/stubs-32.h: No such file or directory
make[2]: *** [_muldi3.o] Error 1
make[2]: Leaving directory `/home/yg/arm/achieve/gcc/arm-linux/libgcc'
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory `/home/yg/arm/achieve/gcc'
make: *** [all] Error 2




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]