This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
how to build glibc for arm cross complier on x86_64?
- From: YueGuang <ygxyvesuvius at gmail dot com>
- To: libc-help at sourceware dot org
- Date: Wed, 29 Oct 2008 22:50:36 +0800
- Subject: how to build glibc for arm cross complier on x86_64?
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:reply-to:to :content-type:organization:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=FS0R3X1jcUcAhjdKuaMcGsM4+ulDLcvCKGg7m2gWBIk=; b=f7lGwwBSlNcrJE1annZm3/yzRCz8YTlqEdMB0dHsUK1EKc/jigt1I0Gcpwshfd1U1U jB8OASKm4qqW7QoqunN9KkanPSNEqc4DQeIwAJtJyog/NStjshm7d6O8tJihYpe2z2sO GGP2UQKbd9Htl2UtbO3TsnfUnjb1p26AubAqg=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:reply-to:to:content-type:organization:date:message-id :mime-version:x-mailer:content-transfer-encoding; b=xMbdu+3PFN3Py3FddlyXElekFYMPuZoN8uNW4fEcYFeCZWiYWqH0T3AdRQfqFQey6A G1+a6XuJSCwizFXLE5pjpragptXkf1EAOBYZTFspCqTQtCBYhNJOz+7ugzY5ndxwjc0g SUWnDuuahfOc92Wq4kuRIT4hfBpnS/1rpBR8A=
- Organization: Dalian Technology of University
- Reply-to: ygxyvesuvius at gmail dot com
Hi,everyone:
I'm trying to build a cross complier for arm.I use debian
testing(lenny),x86_64. When I build gcc at the last step,make complains
"gnu/stubs-32.h: No such file or directory".I found only "stubs.h" and
"stubs-64.h" in that directory.So how to solve the problem? Is it
possible to build glibc for 32bit arm on a x86_64 host?
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