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]

Re: Buildung gcc-3.3.x with glibc-2.2.3


Oliver Eggers wrote:
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:
> ...
../linuxthreads/sysdeps/pthread/pthread.h:163: error: parse error before "__thread"

The patch for that particular problem is roughly like one of the ones already included in crosstool-0.28-pre7:

glibc-linuxthreads-2.1.3/glibc-2.1.3-allow-gcc3-pthread.patch
glibc-linuxthreads-2.2.5/threadparam.patch

but you may need to adjust it slightly for glibc-2.2.3.

You probably have about fifteen more problems ahead of you.  Keep me posted...
- Dan

--
My technical stuff: http://kegel.com
My politics: see http://www.misleader.org for examples of why I'm for regime change

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