public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4 snapshot 20031119
@ 2003-11-24 16:14 Robert Moss
  2003-11-24 17:45 ` Dan Kegel
  0 siblings, 1 reply; 26+ messages in thread
From: Robert Moss @ 2003-11-24 16:14 UTC (permalink / raw)
  To: gcc, libc-alpha

[-- Attachment #1: Type: text/plain, Size: 3038 bytes --]

Hi,

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
make[2]: Leaving directory 
`/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory 
`/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2'
make: *** [all] Error 2

Obviously, strace elf/ld.so isn't much help:

execve("./ld.so", ["./ld.so"], [/* 33 vars */]) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

Now, I'm not going to put an entire objdump -Dr elf/ld.so into an e-mail 
as that would just be plain rude, so instead, the very same file is 
available here:

http://home.jesus.ox.ac.uk/~rmoss/ld.so

This has - I *think* - received some discussion before:

http://gcc.gnu.org/ml/gcc/2003-01/msg00069.html

and was apparently fixed, but speaking to Andreas it appears that this 
didn't actually work.

Now, clearly, with this being the upcoming stable compiler, it would be 
nice if there was at least a patch knocking about for glibc that allowed 
it to compile with GCC 3.4. I've heard things about trying to use 
no-z-defs=yes, but to be quite honest, I'm not really sure what they're 
on about (I'm no glibc hacker!), and looking through all the sources for 
indications of z-defs shows that everything that appears to want it set 
already has it set to yes. I may be wrong, though. The compile was done 
with CFLAGS="-O" to prevent other errors that stopped the build getting 
even this far.

Can anyone help? I'm hoping to get a patch submitted to Gentoo Linux's 
glibc maintainer early, in the hope that we can manage to get a glibc 
build that works with any currently supported (currently 3.2 and 3.3) 
*and* unsupported (3.4) GCC release.

If any more information is required, please don't hesitate to ask.

Many thanks in advance,

Rob Moss

[-- Attachment #2: Type: application/pgp-signature, Size: 264 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4 snapshot 20031119
  2003-11-24 16:14 Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4 snapshot 20031119 Robert Moss
@ 2003-11-24 17:45 ` Dan Kegel
  2003-11-25  7:02   ` Robert Moss
  0 siblings, 1 reply; 26+ messages in thread
From: Dan Kegel @ 2003-11-24 17:45 UTC (permalink / raw)
  To: Robert Moss; +Cc: gcc, libc-alpha

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

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4 snapshot 20031119
  2003-11-24 17:45 ` Dan Kegel
@ 2003-11-25  7:02   ` Robert Moss
  2003-11-25 10:29     ` Dan Kegel
  0 siblings, 1 reply; 26+ messages in thread
From: Robert Moss @ 2003-11-25  7:02 UTC (permalink / raw)
  To: Dan Kegel; +Cc: gcc, libc-alpha

[-- Attachment #1: Type: text/plain, Size: 25866 bytes --]

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

This is the info which remains in the xterm when the build process fails:

----------

make[2]: Entering directory 
`/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/iconv'
gcc iconv_charmap.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes 
-Wwrite-strings -freorder-blocks -pipe -mpreferred-stack-boundary=2 
-I../locale/programs   -I../include -I. 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv -I.. 
-I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h      -DNOT_IN_libc 
-o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/iconv_charmap.o 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/iconv_charmap.o.dt
gcc ../locale/programs/charmap.c -c -std=gnu99 -O2 -Wall -Winline 
-Wstrict-prototypes -Wwrite-strings -freorder-blocks -pipe 
-mpreferred-stack-boundary=2 
-DCHARMAP_PATH='"/usr/share/i18n/charmaps"' 
-DDEFAULT_CHARMAP=null_pointer -DNEED_NULL_POINTER   -I../include -I. 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv -I.. 
-I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h      -DNOT_IN_libc 
-o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/charmap.o 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/charmap.o.dt
gcc ../locale/programs/charmap-dir.c -c -std=gnu99 -O2 -Wall -Winline 
-Wstrict-prototypes -Wwrite-strings -freorder-blocks -pipe 
-mpreferred-stack-boundary=2   -I../include -I. 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv -I.. 
-I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h      -DNOT_IN_libc 
-o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/charmap-dir.o 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/charmap-dir.o.dt
../locale/programs/charmap-dir.c: In function `charmap_aliases':

../locale/programs/charmap-dir.c:268: warning: float format, pointer arg 
(arg 3)../locale/programs/charmap-dir.c:269: warning: float format, 
pointer arg (arg 3)gcc ../locale/programs/linereader.c -c -std=gnu99 -O2 
-Wall -Winline -Wstrict-prototypes -Wwrite-strings -freorder-blocks 
-pipe -mpreferred-stack-boundary=2  -DNO_TRANSLITERATION   -I../include 
-I. -I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv 
-I.. -I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h      -DNOT_IN_libc 
-o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/linereader.o 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/linereader.o.dt
gcc dummy-repertoire.c -c -std=gnu99 -O2 -Wall -Winline 
-Wstrict-prototypes -Wwrite-strings -freorder-blocks -pipe 
-mpreferred-stack-boundary=2  -I../locale/programs   -I../include -I. 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv -I.. 
-I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h       -o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/dummy-repertoire.o 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/dummy-repertoire.o.dt
gcc ../locale/programs/simple-hash.c -c -std=gnu99 -O2 -Wall -Winline 
-Wstrict-prototypes -Wwrite-strings -freorder-blocks -pipe 
-mpreferred-stack-boundary=2  -I../locale   -I../include -I. 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv -I.. 
-I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h       -o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/simple-hash.o 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/simple-hash.o.dt
gcc ../locale/programs/xstrdup.c -c -std=gnu99 -O2 -Wall -Winline 
-Wstrict-prototypes -Wwrite-strings -freorder-blocks -pipe 
-mpreferred-stack-boundary=2     -I../include -I. 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv -I.. 
-I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h       -o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/xstrdup.o 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/xstrdup.o.dt
gcc ../locale/programs/xmalloc.c -c -std=gnu99 -O2 -Wall -Winline 
-Wstrict-prototypes -Wwrite-strings -freorder-blocks -pipe 
-mpreferred-stack-boundary=2     -I../include -I. 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv -I.. 
-I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h       -o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/xmalloc.o 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/xmalloc.o.dt
gcc strtab.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes 
-Wwrite-strings -freorder-blocks -pipe -mpreferred-stack-boundary=2 
-I../include -I. 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv -I.. 
-I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h    -DNOT_IN_libc -o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/strtab.o 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/strtab.o.dt
gcc ../intl/hash-string.c -c -std=gnu99 -O2 -Wall -Winline 
-Wstrict-prototypes -Wwrite-strings -freorder-blocks -pipe 
-mpreferred-stack-boundary=2     -I../include -I. 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv -I.. 
-I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h       -o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/hash-string.o 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/hash-string.o.dt
gcc iconvconfig.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes 
-Wwrite-strings -freorder-blocks -pipe -mpreferred-stack-boundary=2 
-DGCONV_PATH='"/usr/lib/gconv"' -DGCONV_DIR='"/usr/lib/gconv"' 
-I../include -I. 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv -I.. 
-I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h   -DNOT_IN_libc=1 
  -DNOT_IN_libc -o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/iconvconfig.o 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/iconvconfig.o.dt
rm -f 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/libc.so.6.new
/bin/sh ../scripts/rellns-sh 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/libc.so 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/libc.so.6.new
mv -f 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/libc.so.6.new 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/libc.so.6
gcc iconv_prog.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes 
-Wwrite-strings -freorder-blocks -pipe -mpreferred-stack-boundary=2 
-I../locale/programs   -I../include -I. 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv -I.. 
-I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h   -DNOT_IN_libc=1 
  -DNOT_IN_libc -o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/iconv_prog.o 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/iconv_prog.o.dt
gcc -nostdlib -nostartfiles -o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/iconvconfig 
  -Wl,-dynamic-linker=/lib/ld-linux.so.2   -Wl,-z,combreloc 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crt1.o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crti.o 
`gcc --print-file-name=crtbegin.o` 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/iconvconfig.o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/strtab.o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/xmalloc.o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/hash-string.o 
 
-Wl,-rpath-link=/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/libc.so.6 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/libc_nonshared.a 
-lgcc -lgcc_eh `gcc --print-file-name=crtend.o` 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crtn.o
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crtn.o(.text+0x0): 
In function `dummy':
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crtn.S:14: 
multiple definition of `dummy'
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crti.o(.text+0x0):/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crti.S:33: 
first defined here
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crtn.o(.text+0x14): 
In function `_init':
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crtn.S:28: 
multiple definition of `_init'
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crti.o(.text+0x24):/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crti.S:61: 
first defined here
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crtn.o(.init+0x8): 
In function `_fini':
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crtn.S:69: 
multiple definition of `_fini'
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crti.o(.init+0x4):/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crti.S:36: 
first defined here
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crti.o(.init+0x16): 
In function `_fini':
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crti.S:43: 
undefined reference to `i_am_not_a_leaf'
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crtn.o(.init+0x2b): 
In function `_fini':
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crtn.S:37: 
undefined reference to `i_am_not_a_leaf'
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crtn.o(.init+0x30):/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crtn.S:39: 
undefined reference to `i_am_not_a_leaf'
collect2: ld returned 1 exit status
make[2]: *** 
[/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/iconvconfig] 
Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory 
`/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/iconv'
make[1]: *** [iconv/others] Error 2
make[1]: Leaving directory 
`/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.3.2-r9 failed.
!!! Function src_compile, Line 492, Exitcode 2
!!! (no error message)

----------

The latter 3 lines are distro (Gentoo) specific, so ignore those. If the 
above errors are fixable, or have perhaps even already been fixed, that 
would be great...

Any ideas?

Cheers,

Rob Moss

[-- Attachment #2: Type: application/pgp-signature, Size: 264 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4 snapshot 20031119
  2003-11-25  7:02   ` Robert Moss
@ 2003-11-25 10:29     ` Dan Kegel
  2003-11-25 12:05       ` Robert Moss
  0 siblings, 1 reply; 26+ messages in thread
From: Dan Kegel @ 2003-11-25 10:29 UTC (permalink / raw)
  To: Robert Moss; +Cc: gcc, libc-alpha

Robert Moss wrote:
> ...
> gcc -nostdlib -nostartfiles -o 
> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/iconvconfig 
>  -Wl,-dynamic-linker=/lib/ld-linux.so.2   -Wl,-z,combreloc 
> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crt1.o 
> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crti.o 
> `gcc --print-file-name=crtbegin.o` 
> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/iconvconfig.o 
> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/strtab.o 
> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/xmalloc.o 
> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/hash-string.o 
> -Wl,-rpath-link=/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/libc.so.6 
> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/libc_nonshared.a 
> -lgcc -lgcc_eh `gcc --print-file-name=crtend.o` 
> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crtn.o
> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crtn.o(.text+0x0): 
> In function `dummy':
> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crtn.S:14: 
> multiple definition of `dummy'
> ...
> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crti.S:43: 
> undefined reference to `i_am_not_a_leaf'

Well, Google found
http://sources.redhat.com/ml/libc-alpha/2003-07/msg00117.html
which suggests that adding  -fno-unit-at-a-time when building
glibc might help.  Worth a shot, anyway...
- Dan

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4 snapshot 20031119
  2003-11-25 10:29     ` Dan Kegel
@ 2003-11-25 12:05       ` Robert Moss
  2003-11-25 13:17         ` Robert Moss
  2003-11-25 18:07         ` Dan Kegel
  0 siblings, 2 replies; 26+ messages in thread
From: Robert Moss @ 2003-11-25 12:05 UTC (permalink / raw)
  To: Dan Kegel; +Cc: gcc, libc-alpha

[-- Attachment #1: Type: text/plain, Size: 2362 bytes --]

Dan Kegel wrote:
> Robert Moss wrote:
> 
>> ...
>> gcc -nostdlib -nostartfiles -o 
>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/iconvconfig 
>>  -Wl,-dynamic-linker=/lib/ld-linux.so.2   -Wl,-z,combreloc 
>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crt1.o 
>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crti.o 
>> `gcc --print-file-name=crtbegin.o` 
>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/iconvconfig.o 
>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/strtab.o 
>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/xmalloc.o 
>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/hash-string.o 
>> -Wl,-rpath-link=/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/libc.so.6 
>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/libc_nonshared.a 
>> -lgcc -lgcc_eh `gcc --print-file-name=crtend.o` 
>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crtn.o
>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crtn.o(.text+0x0): 
>> In function `dummy':
>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crtn.S:14: 
>> multiple definition of `dummy'
>> ...
>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crti.S:43: 
>> undefined reference to `i_am_not_a_leaf'
> 
> 
> Well, Google found
> http://sources.redhat.com/ml/libc-alpha/2003-07/msg00117.html
> which suggests that adding  -fno-unit-at-a-time when building
> glibc might help.  Worth a shot, anyway...
> - Dan

Thanks for that. Despite *much* Googling, I never came across that one - 
I will give this a try and let you know how I get on.

Rob

[-- Attachment #2: Type: application/pgp-signature, Size: 264 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4 snapshot 20031119
  2003-11-25 12:05       ` Robert Moss
@ 2003-11-25 13:17         ` Robert Moss
  2003-11-25 14:06           ` Robert Moss
  2003-11-25 18:07         ` Dan Kegel
  1 sibling, 1 reply; 26+ messages in thread
From: Robert Moss @ 2003-11-25 13:17 UTC (permalink / raw)
  Cc: Dan Kegel, gcc, libc-alpha

[-- Attachment #1: Type: text/plain, Size: 2813 bytes --]

Dan,

It appears that this worked. The necessary steps and patches required 
for this to work should hopefully be up soon on 
http://www.breakmygentoo.net/ in the hope of getting the experimental 
3.4 compiler out to a wider test audience. Many thanks for your help 
with this. The build is not yet complete, although I hope that I won't 
run into any more problems!

Cheers,

Rob

Robert Moss wrote:
> Dan Kegel wrote:
> 
>> Robert Moss wrote:
>>
>>> ...
>>> gcc -nostdlib -nostartfiles -o 
>>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/iconvconfig 
>>>  -Wl,-dynamic-linker=/lib/ld-linux.so.2   -Wl,-z,combreloc 
>>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crt1.o 
>>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crti.o 
>>> `gcc --print-file-name=crtbegin.o` 
>>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/iconvconfig.o 
>>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/strtab.o 
>>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/xmalloc.o 
>>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/hash-string.o 
>>> -Wl,-rpath-link=/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/libc.so.6 
>>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/libc_nonshared.a 
>>> -lgcc -lgcc_eh `gcc --print-file-name=crtend.o` 
>>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crtn.o
>>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crtn.o(.text+0x0): 
>>> In function `dummy':
>>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crtn.S:14: 
>>> multiple definition of `dummy'
>>> ...
>>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crti.S:43: 
>>> undefined reference to `i_am_not_a_leaf'
>>
>>
>>
>> Well, Google found
>> http://sources.redhat.com/ml/libc-alpha/2003-07/msg00117.html
>> which suggests that adding  -fno-unit-at-a-time when building
>> glibc might help.  Worth a shot, anyway...
>> - Dan
> 
> 
> Thanks for that. Despite *much* Googling, I never came across that one - 
> I will give this a try and let you know how I get on.
> 
> Rob

[-- Attachment #2: Type: application/pgp-signature, Size: 264 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4 snapshot 20031119
  2003-11-25 13:17         ` Robert Moss
@ 2003-11-25 14:06           ` Robert Moss
  2003-11-25 19:48             ` Dan Kegel
  0 siblings, 1 reply; 26+ messages in thread
From: Robert Moss @ 2003-11-25 14:06 UTC (permalink / raw)
  Cc: Dan Kegel, gcc, libc-alpha

[-- Attachment #1: Type: text/plain, Size: 39185 bytes --]

I'm afraid that only served to fix the iconv errors - the segfaulting 
remains:

rm -f 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/nptl_db/libthread_db.so.1.new
/bin/sh ../scripts/rellns-sh 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/nptl_db/libthread_db.so 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/nptl_db/libthread_db.so.1.new
mv -f 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/nptl_db/libthread_db.so.1.new 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/nptl_db/libthread_db.so.1
make[2]: Leaving directory 
`/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/nptl_db'
make -j2 -C inet others
make[2]: Entering directory 
`/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/inet'
make[2]: Leaving directory 
`/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/inet'
make[2]: Entering directory 
`/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/inet'
make[2]: Nothing to be done for `others'.
make[2]: Leaving directory 
`/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/inet'
make -j2 -C hesiod others
make[2]: Entering directory 
`/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/hesiod'
gcc hesiod.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes 
-Wwrite-strings -fno-unit-at-a-time -freorder-blocks -pipe 
-mpreferred-stack-boundary=2  -fPIC    -I../include -I. 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/hesiod -I.. 
-I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h  -DPIC -DSHARED 
-DNOT_IN_libc=1 -DIS_IN_libnss_hesiod=1    -o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/hesiod/hesiod.os 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/hesiod/hesiod.os.dt
gcc nss_hesiod/hesiod-grp.c -c -std=gnu99 -O2 -Wall -Winline 
-Wstrict-prototypes -Wwrite-strings -fno-unit-at-a-time -freorder-blocks 
-pipe -mpreferred-stack-boundary=2  -fPIC    -I../include -I. 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/hesiod -I.. 
-I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h  -DPIC -DSHARED 
-DNOT_IN_libc=1 -DIS_IN_libnss_hesiod=1    -o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/hesiod/hesiod-grp.os 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/hesiod/hesiod-grp.os.dt
gcc nss_hesiod/hesiod-init.c -c -std=gnu99 -O2 -Wall -Winline 
-Wstrict-prototypes -Wwrite-strings -fno-unit-at-a-time -freorder-blocks 
-pipe -mpreferred-stack-boundary=2  -fPIC    -I../include -I. 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/hesiod -I.. 
-I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h  -DPIC -DSHARED 
-DNOT_IN_libc=1 -DIS_IN_libnss_hesiod=1    -o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/hesiod/hesiod-init.os 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/hesiod/hesiod-init.os.dt
gcc nss_hesiod/hesiod-proto.c -c -std=gnu99 -O2 -Wall -Winline 
-Wstrict-prototypes -Wwrite-strings -fno-unit-at-a-time -freorder-blocks 
-pipe -mpreferred-stack-boundary=2  -fPIC    -I../include -I. 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/hesiod -I.. 
-I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h  -DPIC -DSHARED 
-DNOT_IN_libc=1 -DIS_IN_libnss_hesiod=1    -o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/hesiod/hesiod-proto.os 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/hesiod/hesiod-proto.os.dt
gcc nss_hesiod/hesiod-pwd.c -c -std=gnu99 -O2 -Wall -Winline 
-Wstrict-prototypes -Wwrite-strings -fno-unit-at-a-time -freorder-blocks 
-pipe -mpreferred-stack-boundary=2  -fPIC    -I../include -I. 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/hesiod -I.. 
-I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h  -DPIC -DSHARED 
-DNOT_IN_libc=1 -DIS_IN_libnss_hesiod=1    -o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/hesiod/hesiod-pwd.os 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/hesiod/hesiod-pwd.os.dt
gcc nss_hesiod/hesiod-service.c -c -std=gnu99 -O2 -Wall -Winline 
-Wstrict-prototypes -Wwrite-strings -fno-unit-at-a-time -freorder-blocks 
-pipe -mpreferred-stack-boundary=2  -fPIC    -I../include -I. 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/hesiod -I.. 
-I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h  -DPIC -DSHARED 
-DNOT_IN_libc=1 -DIS_IN_libnss_hesiod=1    -o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/hesiod/hesiod-service.os 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/hesiod/hesiod-service.os.dt
cd /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/hesiod && 
/usr/lib/gcc/i686-pc-linux-gnu/3.4/../../../../i686-pc-linux-gnu/bin/ar 
cruv libnss_hesiod_pic.a hesiod.os hesiod-grp.os hesiod-init.os 
hesiod-proto.os hesiod-pwd.os hesiod-service.os
a - hesiod.os
a - hesiod-grp.os
a - hesiod-init.os
a - hesiod-proto.os
a - hesiod-pwd.os
a - hesiod-service.os
: 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/hesiod/libnss_hesiod_pic.a
gcc   -shared -static-libgcc -Wl,-O1  -Wl,-z,defs 
-Wl,-dynamic-linker=/lib/ld-linux.so.2 
-B/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/ 
-Wl,--version-script=/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/libnss_hesiod.map 
-Wl,-soname=libnss_hesiod.so.2 -Wl,-z,combreloc 
-L/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-L/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/math 
-L/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/elf 
-L/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/dlfcn 
-L/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/nss 
-L/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/nis 
-L/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/rt 
-L/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/resolv 
-L/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/crypt 
-L/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/nptl 
-Wl,-rpath-link=/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 
-o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/hesiod/libnss_hesiod.so 
-T /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/shlib.lds 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/abi-note.o 
-Wl,--whole-archive 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/hesiod/libnss_hesiod_pic.a 
-Wl,--no-whole-archive 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/elf/interp.os 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/resolv/libresolv.so 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/nss/libnss_files.so 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/libc.so 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/libc_nonshared.a
rm -f 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/hesiod/libnss_hesiod.so.2.new
/bin/sh ../scripts/rellns-sh 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/hesiod/libnss_hesiod.so 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/hesiod/libnss_hesiod.so.2.new
mv -f 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/hesiod/libnss_hesiod.so.2.new 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/hesiod/libnss_hesiod.so.2
make[2]: Leaving directory 
`/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/hesiod'
make -j2 -C sunrpc others
make[2]: Entering directory 
`/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/sunrpc'
make[2]: Leaving directory 
`/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/sunrpc'
make[2]: Entering directory 
`/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/sunrpc'
gcc rpc_main.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes 
-Wwrite-strings -fno-unit-at-a-time -freorder-blocks -pipe 
-mpreferred-stack-boundary=2 -I../include -I. 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc -I.. 
-I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h   -DNOT_IN_libc=1 
   -D_RPC_THREAD_SAFE_ -o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_main.o 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_main.o.dt
gcc rpc_hout.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes 
-Wwrite-strings -fno-unit-at-a-time -freorder-blocks -pipe 
-mpreferred-stack-boundary=2 -I../include -I. 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc -I.. 
-I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h   -DNOT_IN_libc=1 
   -D_RPC_THREAD_SAFE_ -o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_hout.o 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_hout.o.dt
gcc rpc_cout.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes 
-Wwrite-strings -fno-unit-at-a-time -freorder-blocks -pipe 
-mpreferred-stack-boundary=2 -I../include -I. 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc -I.. 
-I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h   -DNOT_IN_libc=1 
   -D_RPC_THREAD_SAFE_ -o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_cout.o 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_cout.o.dt
gcc rpc_parse.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes 
-Wwrite-strings -fno-unit-at-a-time -freorder-blocks -pipe 
-mpreferred-stack-boundary=2  -I../include -I. 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc -I.. 
-I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h   -DNOT_IN_libc=1 
   -D_RPC_THREAD_SAFE_ -o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_parse.o 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_parse.o.dt
gcc rpc_scan.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes 
-Wwrite-strings -fno-unit-at-a-time -freorder-blocks -pipe 
-mpreferred-stack-boundary=2 -I../include -I. 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc -I.. 
-I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h   -DNOT_IN_libc=1 
   -D_RPC_THREAD_SAFE_ -o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_scan.o 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_scan.o.dt
gcc rpc_util.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes 
-Wwrite-strings -fno-unit-at-a-time -freorder-blocks -pipe 
-mpreferred-stack-boundary=2 -I../include -I. 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc -I.. 
-I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h   -DNOT_IN_libc=1 
   -D_RPC_THREAD_SAFE_ -o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_util.o 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_util.o.dt
gcc rpc_svcout.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes 
-Wwrite-strings -fno-unit-at-a-time -freorder-blocks -pipe 
-mpreferred-stack-boundary=2   -I../include -I. 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc -I.. 
-I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h   -DNOT_IN_libc=1 
   -D_RPC_THREAD_SAFE_ -o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_svcout.o 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_svcout.o.dt
gcc rpc_clntout.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes 
-Wwrite-strings -fno-unit-at-a-time -freorder-blocks -pipe 
-mpreferred-stack-boundary=2    -I../include -I. 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc -I.. 
-I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h   -DNOT_IN_libc=1 
   -D_RPC_THREAD_SAFE_ -o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_clntout.o 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_clntout.o.dt
gcc rpc_tblout.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes 
-Wwrite-strings -fno-unit-at-a-time -freorder-blocks -pipe 
-mpreferred-stack-boundary=2   -I../include -I. 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc -I.. 
-I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h   -DNOT_IN_libc=1 
   -D_RPC_THREAD_SAFE_ -o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_tblout.o 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_tblout.o.dt
gcc rpc_sample.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes 
-Wwrite-strings -fno-unit-at-a-time -freorder-blocks -pipe 
-mpreferred-stack-boundary=2   -I../include -I. 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc -I.. 
-I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h   -DNOT_IN_libc=1 
   -D_RPC_THREAD_SAFE_ -o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_sample.o 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_sample.o.dt
gcc rpcinfo.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes 
-Wwrite-strings -fno-unit-at-a-time -freorder-blocks -pipe 
-mpreferred-stack-boundary=2     -I../include -I. 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc -I.. 
-I../libio -I../nptl 
-I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere 
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread 
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix 
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4/include -isystem 
/lib/modules/2.6.0-test9/build/include -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h   -DNOT_IN_libc=1 
   -D_RPC_THREAD_SAFE_ -o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpcinfo.o 
-MD -MP -MF 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpcinfo.o.dt
gcc -nostdlib -nostartfiles -o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpcgen 
  -Wl,-dynamic-linker=/lib/ld-linux.so.2   -Wl,-z,combreloc 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crt1.o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crti.o 
`gcc --print-file-name=crtbegin.o` 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_main.o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_hout.o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_cout.o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_parse.o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_scan.o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_util.o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_svcout.o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_clntout.o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_tblout.o 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpc_sample.o 
 
-Wl,-rpath-link=/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/libc.so.6 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/libc_nonshared.a 
-lgcc -lgcc_eh `gcc --print-file-name=crtend.o` 
/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crtn.o
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
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory 
`/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory 
`/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2'
make: *** [all] Error 2

Any ideas as to what might be causing this one? I really haven't got a 
clue. Rather than guessing at what information anyone might need, seeing 
as I don't really know if I'm honest, would someone please request it?

Cheers,

Rob


Robert Moss wrote:
> Dan,
> 
> It appears that this worked. The necessary steps and patches required 
> for this to work should hopefully be up soon on 
> http://www.breakmygentoo.net/ in the hope of getting the experimental 
> 3.4 compiler out to a wider test audience. Many thanks for your help 
> with this. The build is not yet complete, although I hope that I won't 
> run into any more problems!
> 
> Cheers,
> 
> Rob
> 
> Robert Moss wrote:
> 
>> Dan Kegel wrote:
>>
>>> Robert Moss wrote:
>>>
>>>> ...
>>>> gcc -nostdlib -nostartfiles -o 
>>>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/iconvconfig 
>>>>  -Wl,-dynamic-linker=/lib/ld-linux.so.2   -Wl,-z,combreloc 
>>>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crt1.o 
>>>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crti.o 
>>>> `gcc --print-file-name=crtbegin.o` 
>>>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/iconvconfig.o 
>>>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/strtab.o 
>>>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/xmalloc.o 
>>>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconv/hash-string.o 
>>>> -Wl,-rpath-link=/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/libc.so.6 
>>>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/libc_nonshared.a 
>>>> -lgcc -lgcc_eh `gcc --print-file-name=crtend.o` 
>>>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crtn.o
>>>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crtn.o(.text+0x0): 
>>>> In function `dummy':
>>>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crtn.S:14: 
>>>> multiple definition of `dummy'
>>>> ...
>>>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crti.S:43: 
>>>> undefined reference to `i_am_not_a_leaf'
>>>
>>>
>>>
>>>
>>> Well, Google found
>>> http://sources.redhat.com/ml/libc-alpha/2003-07/msg00117.html
>>> which suggests that adding  -fno-unit-at-a-time when building
>>> glibc might help.  Worth a shot, anyway...
>>> - Dan
>>
>>
>>
>> Thanks for that. Despite *much* Googling, I never came across that one 
>> - I will give this a try and let you know how I get on.
>>
>> Rob

[-- Attachment #2: Type: application/pgp-signature, Size: 264 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4 snapshot 20031119
  2003-11-25 12:05       ` Robert Moss
  2003-11-25 13:17         ` Robert Moss
@ 2003-11-25 18:07         ` Dan Kegel
  1 sibling, 0 replies; 26+ messages in thread
From: Dan Kegel @ 2003-11-25 18:07 UTC (permalink / raw)
  To: Robert Moss; +Cc: gcc, libc-alpha

Robert Moss wrote:
>>> /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/crti.S:43: 
>>> undefined reference to `i_am_not_a_leaf'
>>
>> Well, Google found
>> http://sources.redhat.com/ml/libc-alpha/2003-07/msg00117.html
>> which suggests that adding  -fno-unit-at-a-time when building
>> glibc might help.  Worth a shot, anyway...
> 
> 
> Thanks for that. Despite *much* Googling, I never came across that one - 

It's all in the wrist :-)
FWIW, the search I used was
    crti.S undefined reference to `i_am_not_a_leaf'
since that seemed like the most unique bit.

> I will give this a try and let you know how I get on.

Good luck...
- Dan

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4 snapshot 20031119
  2003-11-25 14:06           ` Robert Moss
@ 2003-11-25 19:48             ` Dan Kegel
  2003-11-26 12:46               ` Robert Moss
  2003-11-26 18:26               ` Robert Moss
  0 siblings, 2 replies; 26+ messages in thread
From: Dan Kegel @ 2003-11-25 19:48 UTC (permalink / raw)
  To: Robert Moss; +Cc: gcc, libc-alpha

Robert Moss wrote:
> 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

Found a couple hits on that one, e.g.
http://sources.redhat.com/ml/libc-hacker/2002-09/msg00113.html and followups
http://gcc.gnu.org/ml/gcc/2003-01/msg00030.html and followups

What binutils are you using?  One of the messages suggested
that binutils-2.13.90.0.2 needed a "bfd reference counting" patch
to fix this.  I think http://www.kernel.org/pub/linux/devel/binutils/binutils-2.14.90.0.7.tar.bz2
is the latest, if you're using something older, give it a shot...

When people ask me what I do now that I work for Google, I tell them
I'm the guy who looks up stuff when people click 'search' :-)
- Dan

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4 snapshot 20031119
  2003-11-25 19:48             ` Dan Kegel
@ 2003-11-26 12:46               ` Robert Moss
  2003-11-26 18:26               ` Robert Moss
  1 sibling, 0 replies; 26+ messages in thread
From: Robert Moss @ 2003-11-26 12:46 UTC (permalink / raw)
  To: Dan Kegel; +Cc: gcc, libc-alpha

[-- Attachment #1: Type: text/plain, Size: 1972 bytes --]

It would appear that the original segfault problems are back. I'll run 
through a couple more obvious tests, and then post the results back to 
the list.

Cheers,

Rob Moss

Dan Kegel wrote:
> Robert Moss wrote:
> 
>> 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
> 
> 
> Found a couple hits on that one, e.g.
> http://sources.redhat.com/ml/libc-hacker/2002-09/msg00113.html and 
> followups
> http://gcc.gnu.org/ml/gcc/2003-01/msg00030.html and followups
> 
> What binutils are you using?  One of the messages suggested
> that binutils-2.13.90.0.2 needed a "bfd reference counting" patch
> to fix this.  I think 
> http://www.kernel.org/pub/linux/devel/binutils/binutils-2.14.90.0.7.tar.bz2
> is the latest, if you're using something older, give it a shot...
> 
> When people ask me what I do now that I work for Google, I tell them
> I'm the guy who looks up stuff when people click 'search' :-)
> - Dan

[-- Attachment #2: Type: application/pgp-signature, Size: 264 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4 snapshot 20031119
  2003-11-25 19:48             ` Dan Kegel
  2003-11-26 12:46               ` Robert Moss
@ 2003-11-26 18:26               ` Robert Moss
  2003-12-02  7:05                 ` Andreas Jaeger
  1 sibling, 1 reply; 26+ messages in thread
From: Robert Moss @ 2003-11-26 18:26 UTC (permalink / raw)
  To: Dan Kegel; +Cc: gcc, libc-alpha

[-- Attachment #1: Type: text/plain, Size: 2606 bytes --]

Same error, I'm afraid. I'm running binutils 2.14.90.0.7 on the Linux 
(x86) kernel 2.6.0-test9 with headers from kernel 2.4.21. I think this 
link (which I had already found):

http://gcc.gnu.org/ml/gcc/2003-01/msg00030.html

is the more useful of the two. Unfortunately, I don't know what to do to 
fix what is discussed in that thread - like I said, my programming 
knowledge is quite limited.

This error in fact occurs whenever you get an ld.so built which 
segfaults, as this is the first instance in which it is used, which is 
why it came up way back in September 2002 on ARM linux - that segfault, 
however, I think was caused by something different.

I'm currently compiling gcc-3.4-20031126 to see if it makes any 
difference, but I'm not hopeful.

Anyone got any more suggestions?

Cheers,

Rob

Dan Kegel wrote:
> Robert Moss wrote:
> 
>> 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
> 
> 
> Found a couple hits on that one, e.g.
> http://sources.redhat.com/ml/libc-hacker/2002-09/msg00113.html and 
> followups
> http://gcc.gnu.org/ml/gcc/2003-01/msg00030.html and followups
> 
> What binutils are you using?  One of the messages suggested
> that binutils-2.13.90.0.2 needed a "bfd reference counting" patch
> to fix this.  I think 
> http://www.kernel.org/pub/linux/devel/binutils/binutils-2.14.90.0.7.tar.bz2
> is the latest, if you're using something older, give it a shot...
> 
> When people ask me what I do now that I work for Google, I tell them
> I'm the guy who looks up stuff when people click 'search' :-)
> - Dan

[-- Attachment #2: Type: application/pgp-signature, Size: 264 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4 snapshot 20031119
  2003-11-26 18:26               ` Robert Moss
@ 2003-12-02  7:05                 ` Andreas Jaeger
  2003-12-02  8:26                   ` Robert Moss
  0 siblings, 1 reply; 26+ messages in thread
From: Andreas Jaeger @ 2003-12-02  7:05 UTC (permalink / raw)
  To: Robert Moss; +Cc: Dan Kegel, gcc, libc-alpha

[-- Attachment #1: Type: text/plain, Size: 383 bytes --]


It seems that visibilty handling is completly broken, see
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13134.  Without this bug
fixed, GCC cannot compile glibc correctly.

Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4 snapshot 20031119
  2003-12-02  7:05                 ` Andreas Jaeger
@ 2003-12-02  8:26                   ` Robert Moss
  2003-12-02 14:01                     ` Andreas Jaeger
  0 siblings, 1 reply; 26+ messages in thread
From: Robert Moss @ 2003-12-02  8:26 UTC (permalink / raw)
  To: Andreas Jaeger; +Cc: Dan Kegel, gcc, libc-alpha

[-- Attachment #1: Type: text/plain, Size: 444 bytes --]

Andreas, can you confirm that this is in fact the problem, and that it's 
nothing to do with the (possibly slightly ridiculous) situation in glibc 
in which the source uses asm behind gcc's back in relation to weak 
functions?

Rob

Andreas Jaeger wrote:
> It seems that visibilty handling is completly broken, see
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13134.  Without this bug
> fixed, GCC cannot compile glibc correctly.
> 
> Andreas

[-- Attachment #2: Type: application/pgp-signature, Size: 264 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4 snapshot 20031119
  2003-12-02  8:26                   ` Robert Moss
@ 2003-12-02 14:01                     ` Andreas Jaeger
  2003-12-02 14:22                       ` Robert Moss
  2003-12-02 17:36                       ` Matt Austern
  0 siblings, 2 replies; 26+ messages in thread
From: Andreas Jaeger @ 2003-12-02 14:01 UTC (permalink / raw)
  To: Robert Moss; +Cc: Dan Kegel, gcc, libc-alpha

[-- Attachment #1: Type: text/plain, Size: 862 bytes --]

Robert Moss <robert.moss@jesus.ox.ac.uk> writes:

> Andreas, can you confirm that this is in fact the problem, and that
> it's nothing to do with the (possibly slightly ridiculous) situation
> in glibc in which the source uses asm behind gcc's back in relation to
> weak functions?
>
> Rob

Let's wait for a GCC patch - but looking at the assembly it really
seems to be a issue with broken hidden support.

Andreas


> Andreas Jaeger wrote:
>> It seems that visibilty handling is completly broken, see
>> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13134.  Without this bug
>> fixed, GCC cannot compile glibc correctly.
>> Andreas
>

Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4 snapshot 20031119
  2003-12-02 14:01                     ` Andreas Jaeger
@ 2003-12-02 14:22                       ` Robert Moss
  2003-12-02 17:36                       ` Matt Austern
  1 sibling, 0 replies; 26+ messages in thread
From: Robert Moss @ 2003-12-02 14:22 UTC (permalink / raw)
  To: Andreas Jaeger; +Cc: Dan Kegel, gcc, libc-alpha

[-- Attachment #1: Type: text/plain, Size: 744 bytes --]

Okay, thanks. Just so long as I know!

Rob

Andreas Jaeger wrote:
> Robert Moss <robert.moss@jesus.ox.ac.uk> writes:
> 
> 
>>Andreas, can you confirm that this is in fact the problem, and that
>>it's nothing to do with the (possibly slightly ridiculous) situation
>>in glibc in which the source uses asm behind gcc's back in relation to
>>weak functions?
>>
>>Rob
> 
> 
> Let's wait for a GCC patch - but looking at the assembly it really
> seems to be a issue with broken hidden support.
> 
> Andreas
> 
> 
> 
>>Andreas Jaeger wrote:
>>
>>>It seems that visibilty handling is completly broken, see
>>>http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13134.  Without this bug
>>>fixed, GCC cannot compile glibc correctly.
>>>Andreas
>>
> 
> Andreas

[-- Attachment #2: Type: application/pgp-signature, Size: 264 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4 snapshot 20031119
  2003-12-02 14:01                     ` Andreas Jaeger
  2003-12-02 14:22                       ` Robert Moss
@ 2003-12-02 17:36                       ` Matt Austern
  2003-12-02 17:59                         ` Jakub Jelinek
  2003-12-02 20:39                         ` Andreas Jaeger
  1 sibling, 2 replies; 26+ messages in thread
From: Matt Austern @ 2003-12-02 17:36 UTC (permalink / raw)
  To: Andreas Jaeger; +Cc: Dan Kegel, gcc, libc-alpha, Robert Moss

On Dec 2, 2003, at 5:36 AM, Andreas Jaeger wrote:

> Robert Moss <robert.moss@jesus.ox.ac.uk> writes:
>
>> Andreas, can you confirm that this is in fact the problem, and that
>> it's nothing to do with the (possibly slightly ridiculous) situation
>> in glibc in which the source uses asm behind gcc's back in relation to
>> weak functions?
>>
>> Rob
>
> Let's wait for a GCC patch - but looking at the assembly it really
> seems to be a issue with broken hidden support.\

As you might have noticed from following the discussion on the
gcc list, the main reason I haven't fixed this yet is that we haven't
yet reached an agreement about what the semantics of the
visibility attribute should be when you've got multiple declarations
of the same symbol.

What assumptions does the glibc source make about this, and how
tightly wedded are you to those assumptions?

			--Matt

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4 snapshot 20031119
  2003-12-02 17:36                       ` Matt Austern
@ 2003-12-02 17:59                         ` Jakub Jelinek
  2003-12-02 20:21                           ` Matt Austern
  2003-12-02 20:39                         ` Andreas Jaeger
  1 sibling, 1 reply; 26+ messages in thread
From: Jakub Jelinek @ 2003-12-02 17:59 UTC (permalink / raw)
  To: Matt Austern; +Cc: Andreas Jaeger, Dan Kegel, gcc, libc-alpha, Robert Moss

On Tue, Dec 02, 2003 at 09:35:51AM -0800, Matt Austern wrote:
> As you might have noticed from following the discussion on the
> gcc list, the main reason I haven't fixed this yet is that we haven't
> yet reached an agreement about what the semantics of the
> visibility attribute should be when you've got multiple declarations
> of the same symbol.
> 
> What assumptions does the glibc source make about this, and how
> tightly wedded are you to those assumptions?

glibc assumes that if there is a decl without visibility attribute
and decl with visibility attribute, that the visibility specified
in the visibility attribute is used.

Say:
int foo (void) __attribute__((visibility ("hidden")));
int bar (void);
...
int foo (void) { return 1; }
int __attribute__((visibility ("hidden"))) bar (void) { return 2; }

then both foo and bar are hidden.
It never uses different visibility attribute in multiple declarations,
like one decl hidden and redeclaration protected, so it is perfectly
fine if gcc issues error for that.

	Jakub

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4 snapshot 20031119
  2003-12-02 17:59                         ` Jakub Jelinek
@ 2003-12-02 20:21                           ` Matt Austern
  2003-12-02 20:21                             ` Daniel Jacobowitz
  2003-12-02 23:18                             ` Roland McGrath
  0 siblings, 2 replies; 26+ messages in thread
From: Matt Austern @ 2003-12-02 20:21 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: Robert Moss, Andreas Jaeger, Dan Kegel, gcc, libc-alpha

On Dec 2, 2003, at 7:37 AM, Jakub Jelinek wrote:

> On Tue, Dec 02, 2003 at 09:35:51AM -0800, Matt Austern wrote:
>> As you might have noticed from following the discussion on the
>> gcc list, the main reason I haven't fixed this yet is that we haven't
>> yet reached an agreement about what the semantics of the
>> visibility attribute should be when you've got multiple declarations
>> of the same symbol.
>>
>> What assumptions does the glibc source make about this, and how
>> tightly wedded are you to those assumptions?
>
> glibc assumes that if there is a decl without visibility attribute
> and decl with visibility attribute, that the visibility specified
> in the visibility attribute is used.
>
> Say:
> int foo (void) __attribute__((visibility ("hidden")));
> int bar (void);
> ...
> int foo (void) { return 1; }
> int __attribute__((visibility ("hidden"))) bar (void) { return 2; }
>
> then both foo and bar are hidden.

OK!  The next question, then: do you assume that explicitly
providing a default visibility, and not providing a visibility at
all, are different?  That is, would you expect
    int foo (void) __attribute__((visibility ("hidden")));
    int foo (void) __attribute__((visibility ("default"))) { return 137; 
}
to behave differently than
    int foo (void) __attribute__((visibility ("hidden")));
    int foo (void) { return 137; }?

(I hope the answer is no, and that default is just default.  I know
how to make the compiler treat the two kinds of default differently,
but it'll be a little more expensive and convoluted.)

			--Matt

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4 snapshot 20031119
  2003-12-02 20:21                           ` Matt Austern
@ 2003-12-02 20:21                             ` Daniel Jacobowitz
  2003-12-02 20:37                               ` Jakub Jelinek
                                                 ` (2 more replies)
  2003-12-02 23:18                             ` Roland McGrath
  1 sibling, 3 replies; 26+ messages in thread
From: Daniel Jacobowitz @ 2003-12-02 20:21 UTC (permalink / raw)
  To: gcc

On Tue, Dec 02, 2003 at 12:15:13PM -0800, Matt Austern wrote:
> On Dec 2, 2003, at 7:37 AM, Jakub Jelinek wrote:
> 
> >On Tue, Dec 02, 2003 at 09:35:51AM -0800, Matt Austern wrote:
> >>As you might have noticed from following the discussion on the
> >>gcc list, the main reason I haven't fixed this yet is that we haven't
> >>yet reached an agreement about what the semantics of the
> >>visibility attribute should be when you've got multiple declarations
> >>of the same symbol.
> >>
> >>What assumptions does the glibc source make about this, and how
> >>tightly wedded are you to those assumptions?
> >
> >glibc assumes that if there is a decl without visibility attribute
> >and decl with visibility attribute, that the visibility specified
> >in the visibility attribute is used.
> >
> >Say:
> >int foo (void) __attribute__((visibility ("hidden")));
> >int bar (void);
> >...
> >int foo (void) { return 1; }
> >int __attribute__((visibility ("hidden"))) bar (void) { return 2; }
> >
> >then both foo and bar are hidden.
> 
> OK!  The next question, then: do you assume that explicitly
> providing a default visibility, and not providing a visibility at
> all, are different?  That is, would you expect
>    int foo (void) __attribute__((visibility ("hidden")));
>    int foo (void) __attribute__((visibility ("default"))) { return 137; 
> }
> to behave differently than
>    int foo (void) __attribute__((visibility ("hidden")));
>    int foo (void) { return 137; }?
> 
> (I hope the answer is no, and that default is just default.  I know
> how to make the compiler treat the two kinds of default differently,
> but it'll be a little more expensive and convoluted.)

But... wouldn't this be necessary if there was a switch to change the
"default" visibility of compiler-generated symbols?  Something which
has been both requested and proposed in the past.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4 snapshot 20031119
  2003-12-02 20:21                             ` Daniel Jacobowitz
@ 2003-12-02 20:37                               ` Jakub Jelinek
  2003-12-02 20:37                               ` Gabriel Dos Reis
  2003-12-02 21:07                               ` Matt Austern
  2 siblings, 0 replies; 26+ messages in thread
From: Jakub Jelinek @ 2003-12-02 20:37 UTC (permalink / raw)
  To: gcc

On Tue, Dec 02, 2003 at 03:21:23PM -0500, Daniel Jacobowitz wrote:
> > OK!  The next question, then: do you assume that explicitly
> > providing a default visibility, and not providing a visibility at
> > all, are different?  That is, would you expect
> >    int foo (void) __attribute__((visibility ("hidden")));
> >    int foo (void) __attribute__((visibility ("default"))) { return 137; 
> > }
> > to behave differently than
> >    int foo (void) __attribute__((visibility ("hidden")));
> >    int foo (void) { return 137; }?
> > 
> > (I hope the answer is no, and that default is just default.  I know
> > how to make the compiler treat the two kinds of default differently,
> > but it'll be a little more expensive and convoluted.)
> 
> But... wouldn't this be necessary if there was a switch to change the
> "default" visibility of compiler-generated symbols?  Something which
> has been both requested and proposed in the past.

visibility ("default") is quite confusing if there is a switch to set
a different default.  It can be either STV_DEFAULT, or the default chosen
by -fvisibility.  But, if -fvisibility is used, then there must be some
attribute to request STV_DEFAULT, so I think what GCC should do is:
if a decl doesn't have visibility attribute, use the visibility set by
-fvisibility (or, if not present, STV_DEFAULT).  But, this shouldn't
be done until the function or variable is actually emitted, so that
you can still merge without errors a decl without visibility
attribute with a decl with visibility attribute.  Which implies
a 5 states (default, hidden, protected, internal and unspecified).

	Jakub

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4 snapshot 20031119
  2003-12-02 20:21                             ` Daniel Jacobowitz
  2003-12-02 20:37                               ` Jakub Jelinek
@ 2003-12-02 20:37                               ` Gabriel Dos Reis
  2003-12-02 20:55                                 ` Daniel Jacobowitz
  2003-12-02 21:07                               ` Matt Austern
  2 siblings, 1 reply; 26+ messages in thread
From: Gabriel Dos Reis @ 2003-12-02 20:37 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: gcc

Daniel Jacobowitz <drow@mvista.com> writes:

[...]

| > to behave differently than
| >    int foo (void) __attribute__((visibility ("hidden")));
| >    int foo (void) { return 137; }?
| > 
| > (I hope the answer is no, and that default is just default.  I know
| > how to make the compiler treat the two kinds of default differently,
| > but it'll be a little more expensive and convoluted.)
| 
| But... wouldn't this be necessary if there was a switch to change the
| "default" visibility of compiler-generated symbols?  Something which
| has been both requested and proposed in the past.

My  instinct asnwer would be: Please don't multiply switches for those
things, we've got so many switches that are  not consistently tested
that I'm nervous about adding more.

-- Gaby

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4 snapshot 20031119
  2003-12-02 17:36                       ` Matt Austern
  2003-12-02 17:59                         ` Jakub Jelinek
@ 2003-12-02 20:39                         ` Andreas Jaeger
  1 sibling, 0 replies; 26+ messages in thread
From: Andreas Jaeger @ 2003-12-02 20:39 UTC (permalink / raw)
  To: Matt Austern; +Cc: Dan Kegel, gcc, libc-alpha, Robert Moss

[-- Attachment #1: Type: text/plain, Size: 2887 bytes --]

Matt Austern <austern@apple.com> writes:

> On Dec 2, 2003, at 5:36 AM, Andreas Jaeger wrote:
>
>> Robert Moss <robert.moss@jesus.ox.ac.uk> writes:
>>
>>> Andreas, can you confirm that this is in fact the problem, and that
>>> it's nothing to do with the (possibly slightly ridiculous) situation
>>> in glibc in which the source uses asm behind gcc's back in relation to
>>> weak functions?
>>>
>>> Rob
>>
>> Let's wait for a GCC patch - but looking at the assembly it really
>> seems to be a issue with broken hidden support.\
>
> As you might have noticed from following the discussion on the
> gcc list, the main reason I haven't fixed this yet is that we haven't
> yet reached an agreement about what the semantics of the
> visibility attribute should be when you've got multiple declarations
> of the same symbol.
>
> What assumptions does the glibc source make about this, and how
> tightly wedded are you to those assumptions?

Here's some analysis from my colleague Michael Matz on the issue as it
hits us in glibc - in the first 20 assembler instructions that are
executed ;-(.

} A short testcase is:
} ---------------------
} extern long bla(void);
} long myglobal __attribute__((visibility("hidden")));
} extern long myglobal __attribute__((alias("blubba")));
} void _dl_start (void)
} {
}   myglobal = 1;
} }
} ---------------------
} 
} The 3.3 branch correctly merges the two attribute declarations on
} "myglobal".  I.e. the assembler looks like so (-O1 -fPIC, amd64):
} 
} ---- good.s -----
} .globl myglobal
}         .hidden myglobal
}         .set    myglobal,blubba
} ...
} _dl_start:
}         movq    $1, myglobal(%rip)
}         ret
} -----------------
} 
} The HEAD branch isn't able to merge the two attributes, and hence forgets
} the "hidden" declaration on myglobal, ergo generates this code:
} 
} ------ bad.s ------
} .globl myglobal
}         .set    myglobal,blubba
} ....
} _dl_start:
}         movq    myglobal@GOTPCREL(%rip), %rax
}         movq    $1, (%rax)
}         ret
} -------------------
} 
} There are two issues.  The first would also affect normal code, namely
} that this symbol doesn't have "hidden" visibility in the object file
} anymore, hence would be exported from the DSO.  But what hits us in glibc
} is, that similar code is used in ld.so at a point where it's not yet
} relocated.  This means that the content of the GOT isn't correct yet.  But
} the second version goes over the GOT to access 'myglobal'.  If it were
} hidden for GCC it would correctly use a direct RIP-based access like in
} the first example.

Hope this example helps a bit,

Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4 snapshot 20031119
  2003-12-02 20:37                               ` Gabriel Dos Reis
@ 2003-12-02 20:55                                 ` Daniel Jacobowitz
  0 siblings, 0 replies; 26+ messages in thread
From: Daniel Jacobowitz @ 2003-12-02 20:55 UTC (permalink / raw)
  To: Gabriel Dos Reis; +Cc: gcc

On Tue, Dec 02, 2003 at 09:33:33PM +0100, Gabriel Dos Reis wrote:
> Daniel Jacobowitz <drow@mvista.com> writes:
> 
> [...]
> 
> | > to behave differently than
> | >    int foo (void) __attribute__((visibility ("hidden")));
> | >    int foo (void) { return 137; }?
> | > 
> | > (I hope the answer is no, and that default is just default.  I know
> | > how to make the compiler treat the two kinds of default differently,
> | > but it'll be a little more expensive and convoluted.)
> | 
> | But... wouldn't this be necessary if there was a switch to change the
> | "default" visibility of compiler-generated symbols?  Something which
> | has been both requested and proposed in the past.
> 
> My  instinct asnwer would be: Please don't multiply switches for those
> things, we've got so many switches that are  not consistently tested
> that I'm nervous about adding more.

But this is an extremely useful feature.  Compiling a large application
and telling GCC that only symbols marked as default visibility are
visible lets it optimize more aggressively; I bet Jan will want
something similar for -fwhole-program.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4 snapshot 20031119
  2003-12-02 20:21                             ` Daniel Jacobowitz
  2003-12-02 20:37                               ` Jakub Jelinek
  2003-12-02 20:37                               ` Gabriel Dos Reis
@ 2003-12-02 21:07                               ` Matt Austern
  2003-12-02 21:26                                 ` Michael Matz
  2 siblings, 1 reply; 26+ messages in thread
From: Matt Austern @ 2003-12-02 21:07 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: gcc

On Dec 2, 2003, at 12:21 PM, Daniel Jacobowitz wrote:

> On Tue, Dec 02, 2003 at 12:15:13PM -0800, Matt Austern wrote:
>> On Dec 2, 2003, at 7:37 AM, Jakub Jelinek wrote:
>>
>>> On Tue, Dec 02, 2003 at 09:35:51AM -0800, Matt Austern wrote:
>>>> As you might have noticed from following the discussion on the
>>>> gcc list, the main reason I haven't fixed this yet is that we 
>>>> haven't
>>>> yet reached an agreement about what the semantics of the
>>>> visibility attribute should be when you've got multiple declarations
>>>> of the same symbol.
>>>>
>>>> What assumptions does the glibc source make about this, and how
>>>> tightly wedded are you to those assumptions?
>>>
>>> glibc assumes that if there is a decl without visibility attribute
>>> and decl with visibility attribute, that the visibility specified
>>> in the visibility attribute is used.
>>>
>>> Say:
>>> int foo (void) __attribute__((visibility ("hidden")));
>>> int bar (void);
>>> ...
>>> int foo (void) { return 1; }
>>> int __attribute__((visibility ("hidden"))) bar (void) { return 2; }
>>>
>>> then both foo and bar are hidden.
>>
>> OK!  The next question, then: do you assume that explicitly
>> providing a default visibility, and not providing a visibility at
>> all, are different?  That is, would you expect
>>    int foo (void) __attribute__((visibility ("hidden")));
>>    int foo (void) __attribute__((visibility ("default"))) { return 
>> 137;
>> }
>> to behave differently than
>>    int foo (void) __attribute__((visibility ("hidden")));
>>    int foo (void) { return 137; }?
>>
>> (I hope the answer is no, and that default is just default.  I know
>> how to make the compiler treat the two kinds of default differently,
>> but it'll be a little more expensive and convoluted.)
>
> But... wouldn't this be necessary if there was a switch to change the
> "default" visibility of compiler-generated symbols?  Something which
> has been both requested and proposed in the past.

Don't know.  Since there isn't currently such a switch, and there almost
certainly won't be such a switch in 3.4, I'm inclined to say that we 
should
postpone that discussion for later.

Given the feature set as it currently stands, is it reasonable to say 
that
the default is just default and that we don't need to distinguish 
between
default and unspecified?  Again, I hope so; we could always expand the
two-bit visibility field to three bits, but I'd rather not do that 
unless it's
really necessary.

			--Matt

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4 snapshot 20031119
  2003-12-02 21:07                               ` Matt Austern
@ 2003-12-02 21:26                                 ` Michael Matz
  0 siblings, 0 replies; 26+ messages in thread
From: Michael Matz @ 2003-12-02 21:26 UTC (permalink / raw)
  To: Matt Austern; +Cc: Daniel Jacobowitz, gcc

Hi,

On Tue, 2 Dec 2003, Matt Austern wrote:

> Given the feature set as it currently stands, is it reasonable to say
> that the default is just default and that we don't need to distinguish
> between default and unspecified?  Again, I hope so; we could always
> expand the two-bit visibility field to three bits, but I'd rather not do
> that unless it's really necessary.

FWIW I agree.  If such a cmdline option would be introduced it should only
apply to decls not having _any_ visibility attribute.  Until then we only
need four states (with non-specified being equal to "default").

If such an option is introduced somewhen it should apply only to those
decls not having any visibility attribute.  I.e. this would mean, that
visibility("default") would really mean STV_DEFAULT, in particular it
would not be the same as not specifying such an attribute, despite of this
being a bit confusing.  But as said this could be postponed until such
cmdline option is available.


Ciao,
Michael.

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4 snapshot 20031119
  2003-12-02 20:21                           ` Matt Austern
  2003-12-02 20:21                             ` Daniel Jacobowitz
@ 2003-12-02 23:18                             ` Roland McGrath
  1 sibling, 0 replies; 26+ messages in thread
From: Roland McGrath @ 2003-12-02 23:18 UTC (permalink / raw)
  To: Matt Austern
  Cc: Jakub Jelinek, Robert Moss, Andreas Jaeger, Dan Kegel, gcc, libc-alpha

> OK!  The next question, then: do you assume that explicitly
> providing a default visibility, [...]

glibc never uses `visibility ("default")', it just omits the attribute
entirely when it doesn't want "hidden" in particular.

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2003-12-02 22:58 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-24 16:14 Compiling glibc-2.3.2 (-2.3.3?) snapshot 20031115 with gcc-3.4 snapshot 20031119 Robert Moss
2003-11-24 17:45 ` Dan Kegel
2003-11-25  7:02   ` Robert Moss
2003-11-25 10:29     ` Dan Kegel
2003-11-25 12:05       ` Robert Moss
2003-11-25 13:17         ` Robert Moss
2003-11-25 14:06           ` Robert Moss
2003-11-25 19:48             ` Dan Kegel
2003-11-26 12:46               ` Robert Moss
2003-11-26 18:26               ` Robert Moss
2003-12-02  7:05                 ` Andreas Jaeger
2003-12-02  8:26                   ` Robert Moss
2003-12-02 14:01                     ` Andreas Jaeger
2003-12-02 14:22                       ` Robert Moss
2003-12-02 17:36                       ` Matt Austern
2003-12-02 17:59                         ` Jakub Jelinek
2003-12-02 20:21                           ` Matt Austern
2003-12-02 20:21                             ` Daniel Jacobowitz
2003-12-02 20:37                               ` Jakub Jelinek
2003-12-02 20:37                               ` Gabriel Dos Reis
2003-12-02 20:55                                 ` Daniel Jacobowitz
2003-12-02 21:07                               ` Matt Austern
2003-12-02 21:26                                 ` Michael Matz
2003-12-02 23:18                             ` Roland McGrath
2003-12-02 20:39                         ` Andreas Jaeger
2003-11-25 18:07         ` Dan Kegel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).