odd compile failure with both clang and gcc.. weird (standard) library install

Dimitry Andric dim at FreeBSD.org
Mon Jun 22 06:53:14 UTC 2015


On 22 Jun 2015, at 05:08, Julian Elischer <julian at FreeBSD.ORG> wrote:
> 
> Working on -current  as of about March 7.
...
> /usr/bin/ld: cannot find -lgcc_s
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> *** Error code 1
> 
> Stop.
> 
> the same error happens with gcc as the compiler..
> 
> so the obvious question is "why does clang want to link with libgcc?"

Because we still use libgcc for some functionality not provided by any
other library.  Yes, we would like to get rid of it.


> and another question is:
> why can't it find  it? At least for that there is an answer:
> julian at vps1:ls -la /usr/lib/libgcc_s.so
> lrwxr-xr-x  1 root  wheel  46 Apr 30 08:13 /usr/lib/libgcc_s.so -> /usr/obj/usr/src-current/tmp/lib/libgcc_s.so.1
> but I've deleted /usr/obj.
> Does anyone know WHY the "make installworld" back in March just made symlinks for this (and a whole bunch more) libraries?
> and has it been fixed?

I built several systems in March, and did not see anything like this.
Maybe it is due tosomething unique to your build environment?  Is it
consistently reproducible?

-Dimitry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20150622/61d94828/attachment.sig>


More information about the freebsd-current mailing list