This is the mail archive of the crossgcc@sourceware.org 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: crosstool, glibc geh


Hmmm I have tried such builds in the past. There seem to be always some problem with unwinding information not being correct
Can you post the patches here or give a pointer.


Dan Kegel said the following on 05/04/2006 08:53 AM:
Thanks Ingo!  I'm cc'ing the crossgcc list so people can try them out.
It *would* be nice if glibc headers weren't needed...
- Dan

On 5/4/06, patch@ingostruck.de <patch@ingostruck.de> wrote:
I found a simple method to avoid the pre-installation
of glibc headers for the core-gcc within crosstool.
Basically this consists of two (small) patches,
a) glibc-2.3.6-libgcc_eh-generic.patch which is taken
from clfs (http://www.linuxfromscratch.org/patches/downloads/)
b) gcc-3.4.6-inhibit_libc-generic.patch that I created,
which enables a gcc-build w/o glibc headers for
alpha, i386, ia64 and sh (just add some lacking
#ifndef inhibit_libc in */linux.h)

This worked for me with
i686-unknown-linux-gnu/gcc-3.4.6-glibc-2.3.6
and
i386-unknown-linux-gnu/gcc-3.4.6-glibc-2.3.6
but hopefolly it is easy to adapt to the rest of the 3.x.x line.

You can find the patch against crosstool.sh and my additional
stuff here:
http://istr.in-berlin.de/crosstool-0.42-single-glibc.patch
http://istr.in-berlin.de/crosstool-0.42-single-glibc-addon.tar.gz

to test it:
===
mkdir -p /tmp/pxt
cd !$
wget http://www.kegel.com/crosstool/crosstool-0.42.tar.gz
wget http://istr.in-berlin.de/crosstool-0.42-single-glibc.patch
wget http://istr.in-berlin.de/crosstool-0.42-single-glibc-addon.tar.gz
tar xvzf crosstool-0.42.tar.gz
tar xvzf crosstool-0.42-single-glibc-addon.tar.gz
cd crosstool-0.42
patch -p1 < ../crosstool-0.42-single-glibc.patch
./demo-i386.sh
./demo-i686.sh
===

Kind regards

Ingo



--
Wine for Windows ISVs: http://kegel.com/wine/isv

--
For unsubscribe information see http://sourceware.org/lists.html#faq



--
For unsubscribe information see http://sourceware.org/lists.html#faq


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