This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

glibc-2.3.4 sparc build segfaults


I'm trying to build the glibc-2.3.4 release on an Ultra 10.  I'm using Linux kernel 2.6.10, gcc 3.4.3 and binutils 2.15.96.  The configure line was:

env CC="/tools/bin/gcc -m32 -mcpu=ultrasparc -mtune=ultrasparc" CXX="/tools/bin/g++ -m32 -mcpu=ultrasparc -mtune=ultrasparc" ../glibc-2.3.4/configure --prefix=/usr --enable-shared --enable-profile --enable-add-ons=nptl,libidn --with-tls --with-__thread --enable-kernel=2.6.10 --without-cvs --libexecdir=/usr/lib/glibc --with-headers=/tools/include --build=sparc-linux --host=sparc-linux

make fails with this:

make  -C sunrpc others
make[2]: Entering directory `/tmp/glibc-2.3.4/glibc-2.3.4/sunrpc'
CPP='/tools/bin/gcc -m32 -mcpu=ultrasparc -mtune=ultrasparc -E -x c-header'  /tmp/glibc-2.3.4/glibc-build-sparc/elf/ld-linux.so.2 --library-path /tmp/glibc-2.3.4/glibc-build-sparc:/tmp/glibc-2.3.4/glibc-build-sparc/math:/tmp/glibc-2.3.4/glibc-build-sparc/elf:/tmp/glibc-2.3.4/glibc-build-sparc/dlfcn:/tmp/glibc-2.3.4/glibc-build-sparc/nss:/tmp/glibc-2.3.4/glibc-build-sparc/nis:/tmp/glibc-2.3.4/glibc-build-sparc/rt:/tmp/glibc-2.3.4/glibc-build-sparc/resolv:/tmp/glibc-2.3.4/glibc-build-sparc/crypt:/tmp/glibc-2.3.4/glibc-build-sparc/nptl /tmp/glibc-2.3.4/glibc-build-sparc/sunrpc/rpcgen -Y ../scripts -c rpcsvc/bootparam_prot.x -o /tmp/glibc-2.3.4/glibc-build-sparc/sunrpc/xbootparam_prot.T
make[2]: *** [/tmp/glibc-2.3.4/glibc-build-sparc/sunrpc/xbootparam_prot.stmp] Segmentation fault
make[2]: Leaving directory `/tmp/glibc-2.3.4/glibc-2.3.4/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/tmp/glibc-2.3.4/glibc-2.3.4'
make: *** [all] Error 2

Running elf/ld.so with no arguments also causes a segfault.  Running it within gdb reveals this stack trace:

#0  _dl_debug_vdprintf (fd=0, tag_p=0, fmt=0x0, arg=0xeffffa6c)
    at dl-misc.c:245
#1  0x7000e3a8 in _dl_dprintf (fd=2, fmt=0x0) at dl-misc.c:303
#2  0x70012144 in *__GI___assert_fail (assertion=0x0, file=0x0, line=173, 
    function=0x0) at dl-minimal.c:210
#3  0x70002614 in _dl_start (arg=0xeffffdc0) at do-rel.h:109
#4  0x70001c2c in _dl_start_user () at rtld.c:580

The assertion assert (map->l_info[VERSYMIDX (DT_VERSYM)] != NULL); at line 109 of elf/do-rel.h fails, and then the segfault occurs while trying to print an error message.  Anyone out there have any ideas on what to do with this?

--
Andy Shepard

-- 
Andy Shepard
 


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