This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

build problems with gcc 3.1.1 and 3.2 in building a cross libc


Hi folks,

I build a gcc 3.1 crosscompiler toolchain successful with slighly adapted scripts from http://www.kegel.com/xgcc3/, but when I try to build the toolchain for a 3.1.1 or 3.2 compiler, the libc build gives me the following error:

/opt/xgcc3.2/ppc823/bin/powerpc-linux-gcc ../sysdeps/unix/sysv/linux/errlist.c -c -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -mcpu=823 -mnew-mnemonics -Wa,-mppc -mpowerpc   -fpic    -I../include -I. -I/usr/src/kegel.com/xgcc3/ppc823/glibc-build/stdio-common -I.. -I../libio  -I/usr/src/kegel.com/xgcc3/ppc823/glibc-build -I../sysdeps/powerpc/elf -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 -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 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/powerpc/soft-fp -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic  -nostdinc -isystem /opt/xgcc3.2/ppc823/lib/gcc-lib/powerpc-linux/3.2/include -isystem /usr/src/kegel.com/xgcc3/ppc823/linux/include/ -D_LIBC_REENTRANT -include ../include/libc-symbols.h  -DPIC -DSHARED   -D_IO_MTSAFE_IO -o /usr/src/kegel.com/xgcc3/ppc823/glibc-build/stdio-common/errlist.os
../sysdeps/unix/sysv/linux/errlist.c:41: weak declaration of `_old_sys_nerr' must precede definition
make[2]: *** [/usr/src/kegel.com/xgcc3/ppc823/glibc-build/stdio-common/errlist.os] Error 1
make[2]: Leaving directory `/data/compilerbau/kegel.com/xgcc3/ppc823/glibc-2.2.5/stdio-common'
make[1]: *** [stdio-common/subdir_lib] Error 2
make[1]: Leaving directory `/data/compilerbau/kegel.com/xgcc3/ppc823/glibc-2.2.5'
make: *** [all] Error 2

I configure the libc like this:

CFLAGS=-mcpu=823 -O2 \
CPPFLAGS=-mcpu=823 -O2 \
CC=/opt/xgcc3.2/bin/powerpc-linux-gcc \
AR=/opt/xgcc3.2/bin/powerpc-linux-ar \
RANLIB=/opt/xgcc3.2/bin/powerpc-linux-ranlib \
../glibc-2.2.5/configure --host=powerpc-linux --enable-add-ons=linuxthreads --with-headers=$WORKDIR/linux/include/ --prefix=/opt/xgcc3.2 --with-cpu=823 --nfp --without-fp
make all install

Maybe something in gcc 3.1.1 and gcc 3.2 changed, that broke this.

Any suggestions / hints?

Many thanks in advance,

Johnny

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]