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]

Buildung gcc-3.3.x with glibc-2.2.3


Hi!

I need to setup a cross-compiling environment with gcc-3.3.x and glibc-2.2.3, because I have a target hardware using glibc-2.2.3. I cannot update the target linux-system to '> glibc-2.2.3' and resources are limited, so I cannot put glibc-2.2.5 on the target additionally.

The target is a ppc-405 and I'm using the following configuration files with crosstools-0.27|0.28pre7:

----- powerpc-405.dat -----------------
TARGET=powerpc-405-linux-gnu
TARGET_CFLAGS="-O -mcpu=405"
GCC_EXTRA_CONFIG="--with-cpu=405 --enable-cxx-flags=-mcpu=405"
GLIBC_EXTRA_CONFIG="--without-fp"
---------------------------------------

----- My own customized config --------
BINUTILS_DIR=binutils-2.14
BINUTILS_URL=ftp://ftp.gnu.org/pub/gnu/binutils
GCC_DIR=gcc-3.3.1
GLIBC_DIR=glibc-2.2.3
LINUX_DIR=linux-2.4.20
GLIBCTHREADS_FILENAME=glibc-linuxthreads-2.2.3
---------------------------------------

This is the error I get when compiling the cross-compiling environment:

----- Compiler error ------------------
powerpc-405-linux-gnu-gcc gconv_db.c -c -O -Wall -Winline -Wstrict-prototypes -Wwrite-strings -mcpu=405 -mnew-mnemonics -Wa,-mppc -mpowerpc -I../include -I. -I/opt/eggers/crosstool-0.28-pre7/build/powerpc-405-linux-gnu/gcc-3.3.1-glibc-2.2.3/build-glibc/iconv -I.. -I../libio -I/opt/eggers/crosstool-0.28-pre7/build/powerpc-405-linux-gnu/gcc-3.3.1-glibc-2.2.3/build-glibc -I../sysdeps/powerpc/elf -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/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/eggers/powerpc-405-linux-gnu/gcc-3.3.1-glibc-2.2.3/lib/gcc-lib/powerpc-405-linux-gnu/3.3.1/include -isystem /opt/eggers/powerpc-405-linux-gnu/gcc-3.3.1-glibc-2.2.3/powerpc-405-linux-gnu/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o /opt/eggers/crosstool-0.28-pre7/build/powerpc-405-linux-gnu/gcc-3.3.1-glibc-2.2.3/build-glibc/iconv/gconv_db.o
In file included from ../include/pthread.h:1,
from ../linuxthreads/sysdeps/pthread/bits/libc-lock.h:23,
from gconv_db.c:26:
../linuxthreads/sysdeps/pthread/pthread.h:163: error: parse error before "__thread"
../linuxthreads/sysdeps/pthread/pthread.h:165: error: `pthread_create' declared as function returning a function
../linuxthreads/sysdeps/pthread/pthread.h:165: warning: function declaration isn't a prototype
../linuxthreads/sysdeps/pthread/pthread.h:166: error: parse error before "void"
../linuxthreads/sysdeps/pthread/pthread.h:591: error: storage class specified for parameter `type name'
In file included from ../linuxthreads/sysdeps/pthread/pthread.h:655,
from ../include/pthread.h:1,
from ../linuxthreads/sysdeps/pthread/bits/libc-lock.h:23,
from gconv_db.c:26:
../linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h:36: error: storage class specified for parameter `type name'
gconv_charset.h:51: warning: `upstr' defined but not used
make[2]: *** [/opt/eggers/crosstool-0.28-pre7/build/powerpc-405-linux-gnu/gcc-3.3.1-glibc-2.2.3/build-glibc/iconv/gconv_db.o] Fehler 1
make[2]: Leaving directory `/opt/eggers/crosstool-0.28-pre7/build/powerpc-405-linux-gnu/gcc-3.3.1-glibc-2.2.3/glibc-2.2.3/iconv'
make[1]: *** [iconv/subdir_lib] Fehler 2
make[1]: Leaving directory `/opt/eggers/crosstool-0.28-pre7/build/powerpc-405-linux-gnu/gcc-3.3.1-glibc-2.2.3/glibc-2.2.3'
make: *** [all] Fehler 2
----------------------------------


Maybe someone has a patch or solution for this error.

Regards - Oliver

--
// Oliver Eggers / o.eggers@nordsys.de
//
// NORDSYS OHG
// Norddeutsche Systemtechnik
//
// Büro : 0 531 - 12 09 241



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