Subject: Re: MKPIC problem
To: None <skrll@netbsd.org>
From: Christoph Egger <Christoph_Egger@gmx.de>
List: current-users
Date: 02/19/2004 22:26:47
> > On Thursday 19 February 2004 19:11, Christoph Egger wrote:
> > > Hi!
> > >
> > > I'm trying to track down a linking problem for several days now:
> > [...]
> > 
> > > The fact, that libgcc_pic isn't found makes me guess that it isn't
> > > built / installed
> > 
> > I believe this is your problem. You should try a 
> > 
> > 	/usr/src-current/tooldir.NetBSD-1.6ZK-sparc64/bin/nbmake-sparc64 all
install
> > 
> > in 
> > 
> > 	/usr/src-current/gnu/lib/libgcc3
> > 
> > to see what went wrong. I did almost a complete build of sparc64
> > yesterday to help fix your PR (24474).
> 
> Heh! It looks to me that this command wasn't executed during the
> build.sh distribution command -  like a human forgets things to do
> from time to time. :)
> This command created and installed the missing libgcc_pic.so!

Sorry, it's called libgcc_pic.a
find /usr/src-current -name libgcc_pic\* found it:

./destdir.sparc64/usr/lib/libgcc_pic.a

> 
> I'm running 'build.sh -u -o -T tooldir.NetBSD-1.6ZK-sparc64 distribution'
again to see,
> if it continous on the place, where it failed!

hmm... It failed again:

rm -f libc.so.12.111
/usr/src-current/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/src-current/tooldir.NetBSD-1.6ZK-sparc64/lib/gcc-lib/sparc64--netbsd/3.3.3/../../../../sparc64--netbsd/bin/ld: cannot find -lgcc_pic
collect2: ld returned 1 exit status

But:

 -L/usr/src-current/obj/destdir.sparc64/usr/lib

is a different directory than

/usr/src-current/destdir.sparc64/usr/lib

So I copy the missing lib to /usr/src-current/obj/destdir.sparc64/usr/lib
 and retry building

*** some minutes later ***

ahh  - it works now!

So the problem really is that Nick's install command is NOT executed by
build.sh!

Build process is running now until it finishs or fails elsewhere (which I
hope not) :/

-- 
CU,

Christoph Egger
E-Mail: Christoph_Egger@gmx.de

GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...)
jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++