Subject: toolchain/24474: -lgcc_pic not found
To: None <gnats-bugs@gnats.netbsd.org>
From: None <Christoph_Egger@gmx.de>
List: netbsd-bugs
Date: 02/18/2004 16:14:20
>Number:         24474
>Category:       toolchain
>Synopsis:       -lgcc_pic not found
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 18 15:16:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Charlie Root
>Release:        NetBSD 1.6ZK
>Organization:
	
>Environment:
	
	
System: NetBSD phoenix.eggernet.de 1.6ZK NetBSD 1.6ZK (GENERIC) #0: Mon Feb 16 19:51:53 CET 2004 root@phoenix.eggernet.de:/usr/src-current/sys/arch/sparc64/compile/GENERIC sparc64
Architecture: sparc64
Machine: sparc64
>Description:

I wanna upgrade from NetBSD 1.6.1 to NetBSD-current as described at
http://www.netbsd.org/Documentation/current/#updating

The command

./build.sh distribution

fails:

#     build  libc/libc.so.12.111
rm -f libc.so.12.111
/usr/src-current/obj/tooldir.NetBSD-1.6ZK-sparc64/bin/sparc64--netbsd-gcc -Wl,-nostdlib -B/usr/src-current/obj/destdir.sparc64/usr/lib/ -B/usr/src-current/obj/destdir.sparc64/usr/lib/   -Wl,-rpath-link,/usr/src-current/obj/destdir.sparc64/lib:/usr/src-current/obj/destdir.sparc64/usr/lib  -L/usr/src-current/obj/destdir.sparc64/lib  -Wl,-x -shared -Wl,-soname,libc.so.12   -o libc.so.12.111  -Wl,--whole-archive libc_pic.a  -Wl,--no-whole-archive   -L/usr/src-current/obj/destdir.sparc64/usr/lib
/usr/obj/tooldir.NetBSD-1.6ZK-sparc64/bin/../lib/gcc-lib/sparc64--netbsd/3.3.3/../../../../sparc64--netbsd/bin/ld: cannot find -lgcc_pic
collect2: ld returned 1 exit status
*** Error code 1

Stop.
nbmake: stopped in /usr/src-current/lib/libc
*** Error code 1

Stop.
nbmake: stopped in /usr/src-current/lib/libc
*** Error code 1


>How-To-Repeat:

build a distribution from a clean sourcetree via ./build.sh distribution
	
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: