This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4snapshot 20031119
- From: Dan Kegel <dank at kegel dot com>
- To: Robert Moss <robert dot moss at jesus dot ox dot ac dot uk>
- Cc: gcc at gcc dot gnu dot org, libc-alpha at sources dot redhat dot com
- Date: Mon, 24 Nov 2003 09:02:07 -0800
- Subject: Re: Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4snapshot 20031119
- References: <3FC21EDC.5010702@jesus.ox.ac.uk>
Robert Moss wrote:
It appears that this is sadly completely knackered - as is compiling
*any* glibc 2.3.2 release or snapshot. The compile dies as soon as
elf/ld.so is used for the first time, with the following error:
CPP='gcc -E -x c-header'
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/elf/ld-linux.so.2
--library-path
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere:/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/math:/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/elf:/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/dlfcn:/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/nss:/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/nis:/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/rt:/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/resolv:/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/crypt:/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/nptl
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpcgen
-Y ../scripts -c rpcsvc/bootparam_prot.x -o
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/xbootparam_prot.T
make[2]: ***
[/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/xbootparam_prot.stmp]
Segmentation fault
... The compile was done
with CFLAGS="-O" to prevent other errors that stopped the build getting
even this far.
Hmm. http://sources.redhat.com/ml/bug-glibc/2001-01/msg00065.html
suggests that -O2 (and maybe -pipe?) are needed to avoid this problem.
What trouble did you run into that made you switch to -O ?
- Dan