NetBSD-Bugs archive

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

toolchain/44930: gdb fails to build when statically linked on sparc



>Number:         44930
>Category:       toolchain
>Synopsis:       gdb fails to build when statically linked on sparc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 03 15:40:00 +0000 2011
>Originator:     Hauke Fath
>Release:        NetBSD 5.1_STABLE
>Organization:
        
>Environment:
        
        
System: NetBSD Hochstuhl 5.1_STABLE NetBSD 5.1_STABLE (GENERIC) #0: Mon Dec 6 
15:19:02 CET 2010 
hf@Hochstuhl:/var/obj/netbsd-builds/5/i386/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:

        (Cross-)building netbsd-5 sparc with LDSTATIC=-static fails to
        link gdb:

[...]
#      link  gdb/gdb
/u/netbsd-builds/5/sparc/tools/bin/sparc--netbsdelf-gcc  
-B/u/netbsd-builds/5/sparc/destdir/usr/lib/ 
-B/u/netbsd-builds/5/sparc/destdir/usr/lib/  -Wl,-nostdlib      -static   -o 
gdb  gdb.o -L/var/obj/netbsd-builds/5/sparc/gnu/usr.bin/gdb6/libgdb -lgdb 
-L/var/obj/netbsd-builds/5/sparc/gnu/usr.bin/gdb6/opcodes -lopcodes  
-L/var/obj/netbsd-builds/5/sparc/gnu/usr.bin/gdb6/bfd -lbfd  
-L/var/obj/netbsd-builds/5/sparc/gnu/usr.bin/gdb6/readline -lreadline  
-ltermcap  -L/var/obj/netbsd-builds/5/sparc/gnu/usr.bin/gdb6/libiberty -liberty 
-lcurses -lintl -lm -lkvm       -L/u/netbsd-builds/5/sparc/destdir/usr/lib   
-Wl,-rpath-link,/u/netbsd-builds/5/sparc/destdir/lib  
-L/u/netbsd-builds/5/sparc/destdir/lib 
-Wl,-rpath-link,/u/netbsd-builds/5/sparc/destdir/usr/lib  
-L/u/netbsd-builds/5/sparc/destdir/usr/lib/u/netbsd-builds/5/sparc/destdir/usr/lib/libc.a(compat_ldexp_ieee754.o):
 In function `finite':
compat_ldexp_ieee754.c:(.text+0x0): multiple definition of `finite'
/u/netbsd-builds/5/sparc/destdir/usr/lib/libm.a(s_finite.o):s_finite.c:(.text+0x0):
 first defined here
/u/netbsd-builds/5/sparc/tools/lib/gcc/sparc--netbsdelf/4.1.3/../../../../sparc--netbsdelf/bin/ld:
 Disabling relaxation: it will not work with multiple definitions
/u/netbsd-builds/5/sparc/destdir/usr/lib/libc.a(compat_ldexp_ieee754.o): In 
function `scalbn':
compat_ldexp_ieee754.c:(.text+0x18): multiple definition of `scalbn'
/u/netbsd-builds/5/sparc/destdir/usr/lib/libm.a(s_scalbn.o):s_scalbn.c:(.text+0x0):
 first defined here
collect2: ld returned 1 exit status

*** Failed target:  gdb


>How-To-Repeat:

        Attempt a statically linked build of of netbsd-5 for sparc.

        Note this is not the only fallout of LDSTATIC=-static. 

>Fix:
        Yes, please.

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index