error installing glibc headers using crosstool-0.25
Robert P. J. Day
rpjday@mindspring.com
Sat Nov 15 08:25:00 GMT 2003
(note: i originally asked some preliminary questions about crosstool
on the etux list, but i'm pretty sure this is the more appropriate forum,
yes?)
i'm trying to build a powerpc toolchain using:
gcc-3.3.2
glibc-2.3.2
binuitils-2.14.90.0.5
linux-2.4.21
i started with dan's crosstool-0.25, hacked up the main script for
reasons we don't need to get into, and started the build. the
starting point, in terms of variables, was
ARCH = ppc
TARGET = powerpc-750-linux-gnu
BUILD_DIR = /embedded/ct/build
PREFIX = /embedded/ct/result/powerpc-750-linux-gnu/gcc-3.3.2-glibc-2.3.2
BUILD = i686-pc-linux-gnu
HOST = i686-host_pc-linux-gnu
the build got into the step of installing glibc headers, then in the midst
of *much* output, i got numerous errors of the form (line breaks added for
formatting):
...
gcc -M -MP init.c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes
-Wwrite-strings -g -Wa,-mppc -mpowerpc -mnew-mnemonics -I../include -I.
-I/embedded/ct/build/glibc-2.3.2/csu -I.. -I../libio
-I/embedded/ct/build/glibc-2.3.2 -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/lib/gcc-lib/i386-redhat-linux/3.3.2/include -isystem
/embedded/ct/result/powerpc-750-linux-gnu/gcc-3.3.2-glibc-2.3.2/powerpc-750-linux-gnu/include
-include ../include/libc-symbols.h -DHAVE_INITFINI |
sed -e 's,init\.o,/embedded/ct/build/glibc-2.3.2/csu/init.o
/embedded/ct/build/glibc-2.3.2/csu/init.os /embedded/ct/build/glibc-2.3.2/csu/init.op
/embedded/ct/build/glibc-2.3.2/csu/init.og /embedded/ct/build/glibc-2.3.2/csu/init.ob
/embedded/ct/build/glibc-2.3.2/csu/init.oS /embedded/ct/build/glibc-2.3.2/csu/init.d,'
-e 's@ /embedded/ct/build/glibc-2\.3\.2/@ $(common-objpfx)@g' -e
's@^/embedded/ct/build/glibc-2\.3\.2/@$(common-objpfx)@g' >
/embedded/ct/build/glibc-2.3.2/csu/init.T
cc1: error: invalid option `powerpc'
cc1: error: invalid option `new-mnemonics'
...
there are dozens of these errors. am i somehow setting the wrong
variable values to represent a PowerPC-based toolchain?
and even with all these errors, this step completes, the building of
gcc-core completes as well, then the build of glibc itself fails with a
couple of the exact same errors.
cc1: error: invalid option `powerpc'
cc1: error: invalid option `new-mnemonics'
make[2]: *** [/embedded/ct/build/glibc-2.3.2/csu/init-first.o] Error 1
make[2]: Leaving directory `/embedded/ct/patched/glibc-2.3.2/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/embedded/ct/patched/glibc-2.3.2'
make: *** [install] Error 2
hints? suggestions?
rday
------
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