arrgh. can't install headers in glibc-2.3.2.
Dan Kegel
dank@kegel.com
Fri May 30 04:56:00 GMT 2003
Peter Barada wrote:
>>The problem is that I tried to fool glibc-2.3.2 into installing its headers
>>with a native compiler instead of a cross compiler, but it looks like
>>that fails in this one spot.
>>
>>Arrgh. I'm starting to wonder if it's at all possible to build
>>a cross compiler with glibc-2.3.2.
>
> Suppose we suppress building libgcc ...
The problem happens before that, it's when glibc is trying to generate some
headers using the compiler as a way to extract info from the source.
I got around the previous problem by disabling linuxthreads and sanity checks
when configuring glibc the first time (the bootstrap compiler doesn't need
threads, does it?), but ran into another problem.
"make install-headers" fails with
gawk -f ../sysdeps/gnu/errlist.awk ../manual/errno.texi > ../sysdeps/gnu/errlist.c-tmp
chmod a-w ../sysdeps/gnu/errlist.c-tmp
mv -f ../sysdeps/gnu/errlist.c-tmp ../sysdeps/gnu/errlist.c
gawk -v maxerr=`\
gcc -S -I../include -I. -I/home3/dank/crosstool/build/ppc-750-linux/gcc-3.3-glibc-2.3.2/build-glibc-headers/stdio-common -I.. -I../libio -I/home3/dank/crosstool/build/ppc-750-linux/gcc-3.3-glibc-2.3.2/build-glibc-headers
-I../sysdeps/powerpc/powerpc32/elf -I../sysdeps/powerpc/elf -I../sysdeps/unix/sysv/linux/powerpc/powerpc32 -I../sysdeps/unix/sysv/linux/powerpc -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/powerpc -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/powerpc/powerpc32/fpu -I../sysdeps/powerpc/powerpc32 -I../sysdeps/wordsize-32 -I../sysdeps/powerpc/soft-fp
-I../sysdeps/powerpc/fpu -I../sysdeps/powerpc -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include -isystem /home3/dank/crosstool/result/ppc-750-linux/gcc-3.3-glibc-2.3.2/ppc-750-linux/include -include ../include/libc-symbols.h -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes
-Wwrite-strings -g -Wa,-mppc -mpowerpc -mnew-mnemonics -DNOT_IN_libc -DEMIT_ERR_MAX ../sysdeps/gnu/errlist.c -o - \
| sed -n 's/^.*@@@[^0-9]*\([0-9]*\)[^0-9]*@@@.*$/\1/p'` \
-f ../sysdeps/gnu/errlist-compat.awk \
../sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions ../sysdeps/unix/sysv/linux/Versions ../sysdeps/unix/sysv/Versions ../sysdeps/powerpc/powerpc32/Versions ../sysdeps/powerpc/soft-fp/Versions ../sysdeps/powerpc/Versions >
/home3/dank/crosstool/build/ppc-750-linux/gcc-3.3-glibc-2.3.2/build-glibc-headers/stdio-common/errlist-compat.cT
cc1: invalid option `powerpc'
cc1: invalid option `new-mnemonics'
*** errlist.c count 1 vs Versions sys_errlist@GLIBC_2.3 count 126
make[2]: *** [/home3/dank/crosstool/build/ppc-750-linux/gcc-3.3-glibc-2.3.2/build-glibc-headers/stdio-common/errlist-compat.c] Error 1
It seems to be generating errlist-compat.c, which is rather annoying, since
we only asked it to generate headers.
This appears to be a bug in glibc's Makefile's 'install-headers' target.
I suspect it could be worked around by doing
make sysdeps/gnu/errlist.c
touch stdio-common/errlist-compat.c
before doing make install-headers, but that workaround pains me...
I'm trying it out now, but won't know how it turns out for a bit yet
(somebody appears to have unplugged an important network cable,
so I can't see how the build's going :-)
- Dan
--
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list