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: [PATCH] Re: crosstool-0.35 w/ NPTL patch running demo-i686-nptl.shfails building libc


Hello Greg et al,

Greg Schafer wrote:

On Wed, Jun 29, 2005 at 05:41:15PM -0700, Daniel Kegel wrote:



Patches gratefully accepted any time.



Try this on for size. Of course it's completely untested...


NOTE, I've only ever studied Crosstool.. never actually run it :-)

You'd also want to drop the Glibc `make-install-lib-all.patch'.



I am unaware of "(the hackery that Crosstool employs to handle) the libgcc_eh.a situation",

but I tried your patch on the same machine (see start of thread). Also thanks
for your DIY pointer BTW.

Several gcc/glibc combo's fail with different errors. Here is the output of:

gcc-3.4.3-glibc-2.3.3.dat

First, created crosstool with NPTL and Greg's patch as follows with this script.

---
#!/bin/bash

# Baseline crosstool (Dan Kegel)
wget -N http://www.kegel.com/crosstool/crosstool-0.35.tar.gz
wget -N http://www.kegel.com/crosstool/crosstool-0.35/contrib/crosstool-0.34-nptl.patch

# Greg Schafer <gschafer at zip dot com dot au>
wget -O crosstool-0.35-libgcc_eh.a.patch \
 "http://sources.redhat.com/ml/crossgcc/2005-06/txt00000.txt";

rm -rf crosstool-0.35
tar xzf crosstool-0.35.tar.gz
cd crosstool-0.35

# Apply NPTL patch
patch -p1 <../crosstool-0.34-nptl.patch
chmod +x ./demo-i686-nptl.sh

patch -p1 <../crosstool-0.35-libgcc_eh.a.patch
---

Then started off crosstool:

./demo-i686-nptl.sh

which fails as follows (interesting parts from tail of console log):

[...]

/home/leon/sandbox/tracs/crosstool-0.35/build/i686-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.3/glibc-2.3.3/configure --prefix=/usr --build=x86_64-unknown-linux-gnu --host=i686-unknown-linux-gnu --wchecking installed Linux kernel header files... 2.0.10 or later
*** WARNING: Are you sure you do not want to use the `linuxthreads'
*** add-on?

[...]

checking for i686-unknown-linux-gnu-gcc... gcc
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [/home/leon/sandbox/tracs/crosstool-0.35/build/i686-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.3/build-glibc-headers/config.status] Error 1
make[1]: Leaving directory `/home/leon/sandbox/tracs/crosstool-0.35/build/i686-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.3/glibc-2.3.3'
make: *** [sysdeps/gnu/errlist.c] Error 2

[end]





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