[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gcc-3.4 build failure on hurd-i386

On Wed, May 04, 2005 at 02:42:15PM +0200, Michael Banck wrote:
> On Mon, May 02, 2005 at 06:09:04PM +0200, Matthias Klose wrote:
> > - which is the last version that built on hurd-i386?
> According to ftp.debian.org, it appears to be 3.4.1-7, though I do not
> remember exactly.

I was able to build und use gcc-3_4-branch (last month or so).
The only problem was (and still is) that _statically_ linked executables
are segfaulting immediatelly.
I was not yet able to debug that; parhaps it's related to the combination
of binutils, glibc and gcc.

> Anyway, back to the gcc-3.4 build log:
> > ./xgcc -B./ -B/usr/i586-gnu/bin/ -isystem /usr/i586-gnu/include
> >   -isystem /usr/i586-gnu/sys-include
> >   -L/build/mbanck/gcc-3.4-3.4.3/build/gcc/../ld -O2 -DIN_GCC    -W
> >   -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
> >   -Wold-style-definition  -isystem ./include  -I. -I. -I../../src/gcc
> >   -I../../src/gcc/. -I../../src/gcc/../include   -g0
> >   -finhibit-size-directive -fno-inline-functions -fno-exceptions
> >   -fno-zero-initialized-in-bss -fno-unit-at-a-time  \
> >   -c ../../src/gcc/crtstuff.c -DCRT_BEGIN \
> >   -o crtbegin.o
> > In file included from ../../src/gcc/crtstuff.c:62:
> >   ../../src/gcc/tsystem.h:79:19: stdio.h: No such file or directory
> I see now: /include appears to be hard-coded as the sole system include
> search path for *-gnu-*

Yes, that is done in gcc/config/t-gnu.
# In GNU, "/usr" is a four-letter word.

I just set $NATIVE_SYSTEM_HEADER_DIR to the directory containing glibc's
header files to make the build work.


Reply to: