glibc breaks in i686 to i586 cross-compile
dhiggs at spectracomcorp.com
Wed Nov 9 10:15:06 PST 2005
I am wondering if anyone has experienced problems building glibc for an
i586 target using an i686 build environment.
At the moment I am using nALFS to run the reference LFS 6.1 instructions
in Chapter 5. I have exported CXXFLAGS and CFLAGS as "-march=i586 -O2"
and added --host and --target options to binutils 188.8.131.52.2.2 and gcc
3.4.3. These compilations proceed without problems.
I configured Glibc 2.3.4, adding --host=i586-pc-linux-gnu as with the
previous steps. The 'make' step proceeds without incident, but 'make
check' experiences a disturbing number of failures, starting with a
/tools/build/glibc-build/catgets/de.msg:66: invalid character: message
[several thousand similar messages cut]
make: *** [/tools/build/glibc-build/catgets/de/libc.cat] Error 1
make: Leaving directory `/tools/build/glibc-2.3.4/catgets'
make: *** [catgets/tests] Error 2
make: Leaving directory `/tools/build/glibc-2.3.4
make: *** [check] Error 2
Several similar errors follow in tst-catgets.out, test1.cat, and
test-gencat.out. Continuing the 'make check' I received errors in
tst-strtod.out, testmb2.out, tst-swprintf.out, stdio-common/bug14.out,
tst-widetext.out, and others before giving up. I attempted to skip the
'make check' step at one point, but I think this somehow didn't build
the timezones (not 100% sure). Glibc 2.3.5 appears to experience
I am currently trying 2.3.6, desperately hoping for some improvement. I
would rather not follow cross-lfs and use gcc 4.x at this point, but any
suggestions are more than welcome.
Thanks in advance.
More information about the cross-lfs