arrgh. can't install headers in glibc-2.3.2.

Dan Kegel dank@kegel.com
Thu May 29 13:00:00 GMT 2003


Given http://www.kegel.com/crossgcc/crosstool-0.1.tar.gz,
and with a native gcc-3.2.3 installed as /usr/local/bin/gcc,
building a gcc3.3-glibc2.3.2 toolchain with the command
   eval TARGET=ppc-750-linux TARGET_CFLAGS="-O" `cat gcc3.3-glibc2.3.2.dat`  sh all.sh
blows up while trying to install glibc headers before building the
bootstrap compiler.  CC is set to /usr/local/bin/gcc on purpose
in my script at this point.  The tail of the log file is:

if test -r /home3/dank/crosstool/build/ppc-750-linux/gcc-3.3-glibc-2.3.2/build-glibc-headers/csu/abi-tag.h.new; then mv -f /home3/dank/crosstool/build/ppc-750-linux/gcc-3.3-glibc-2.3.2/build-glibc-headers/csu/abi-tag.h.new 
/home3/dank/crosstool/build/ppc-750-linux/gcc-3.3-glibc-2.3.2/build-glibc-headers/csu/abi-tag.h; \
else echo >&2 'This configuration not matched in ../abi-tags'; exit 1; fi
gawk -f ../scripts/gen-as-const.awk ../linuxthreads/sysdeps/powerpc/tcb-offsets.sym \
| /usr/local/bin/gcc -S -o - -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g -Wa,-mppc -mpowerpc -mnew-mnemonics      -I../include -I. 
-I/home3/dank/crosstool/build/ppc-750-linux/gcc-3.3-glibc-2.3.2/build-glibc-headers/csu -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../linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc32 -I../linuxthreads/sysdeps/unix/sysv/linux/powerpc -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread 
-I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/powerpc/powerpc32 -I../linuxthreads/sysdeps/powerpc -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 -D_LIBC_REENTRANT -include 
../include/libc-symbols.h       -DHAVE_INITFINI -x c - \
         -MD -MF /home3/dank/crosstool/build/ppc-750-linux/gcc-3.3-glibc-2.3.2/build-glibc-headers/tcb-offsets.h.dT -MT '/home3/dank/crosstool/build/ppc-750-linux/gcc-3.3-glibc-2.3.2/build-glibc-headers/tcb-offsets.h.d 
/home3/dank/crosstool/build/ppc-750-linux/gcc-3.3-glibc-2.3.2/build-glibc-headers/tcb-offsets.h' \
| sed -n 's/^.*@@@name@@@\([^@]*\)@@@value@@@[^0-9Xxa-fA-F-]*\([0-9Xxa-fA-F-][0-9Xxa-fA-F-]*\).*@@@end@@@.*$/#define \1 \2/p' > /home3/dank/crosstool/build/ppc-750-linux/gcc-3.3-glibc-2.3.2/build-glibc-headers/tcb-offsets.hT
cc1: invalid option `powerpc'
cc1: invalid option `new-mnemonics'
sed -e 's@ /home3/dank/crosstool/build/ppc-750-linux/gcc-3\.3-glibc-2\.3\.2/build-glibc-headers/@ $(common-objpfx)@g' -e 's@^/home3/dank/crosstool/build/ppc-750-linux/gcc-3\.3-glibc-2\.3\.2/build-glibc-headers/@$(common-objpfx)@g' -e 's@ 
*\.\.\/\([^      \]*\)@ $(..)\1@g' \
     /home3/dank/crosstool/build/ppc-750-linux/gcc-3.3-glibc-2.3.2/build-glibc-headers/tcb-offsets.h.dT > /home3/dank/crosstool/build/ppc-750-linux/gcc-3.3-glibc-2.3.2/build-glibc-headers/tcb-offsets.h.dT2
sed: can't read /home3/dank/crosstool/build/ppc-750-linux/gcc-3.3-glibc-2.3.2/build-glibc-headers/tcb-offsets.h.dT: No such file or directory
make[2]: *** [/home3/dank/crosstool/build/ppc-750-linux/gcc-3.3-glibc-2.3.2/build-glibc-headers/tcb-offsets.h] Error 2
make[2]: Leaving directory `/home3/dank/crosstool/build/ppc-750-linux/gcc-3.3-glibc-2.3.2/glibc-2.3.2/csu'
make[1]: *** [csu/install-headers] Error 2
make[1]: Leaving directory `/home3/dank/crosstool/build/ppc-750-linux/gcc-3.3-glibc-2.3.2/glibc-2.3.2'
make: *** [install-headers] Error 2

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.
- 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