Date: Thu, 23 Aug 2007 07:27:21 +0300 From: Kostik Belousov <kostikbel@gmail.com> To: Boris Kovalenko <boris@ntmk.ru> Cc: freebsd-ports@freebsd.org Subject: Re: can not find -lgcc_s Message-ID: <20070823042721.GK2738@deviant.kiev.zoral.com.ua> In-Reply-To: <46CD03C0.9080002@ntmk.ru> References: <46CC0550.8080209@ur.evraz.com> <20070822110302.GH2738@deviant.kiev.zoral.com.ua> <46CD03C0.9080002@ntmk.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
--0N3FleUdtK+EBGA1 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 23, 2007 at 09:49:20AM +0600, Boris Kovalenko wrote: > Hello! >=20 > This didn't helped. > >On Wed, Aug 22, 2007 at 03:43:44PM +0600, "Boris Ju. Kovalenko / =E2. = =E0.=20 > >=EB=CF=D7=C1=CC=C5=CE=CB=CF" wrote: > > =20 > >>Hello! > >> > >>cc -r -o common.o stream.o config.o memory.o=20 > >>-rpath=3D/lib:/usr/lib:/usr/local/lib -L/usr/lib -L/lib -lcrypto -lssl > >>/usr/bin/ld: cannot find -lgcc_s > >> > >>What is wrong? System is 7.0-CURRENT, AMD64, gcc 4.2.0, libgcc_s.so is= =20 > >>present in /usr/lib and is a symlik to /lib/libgcc_s.so.1 > >> =20 > >Rebuild the libtool port, > >portupgrade -f libtool. Well, you can rerun the command manually, adding the -v option to the cc arguments to see what happens exactly. Looking closely on the command, it seems to be somewhat strange. -r switch for ld means partial linking. I was not able to find -r switch in gcc documentation, so, most likely, it shall be passed unmodified to ld. But, since gcc driver was not instructed to not do the final linking, it seems that it added neccessary libraries to the ld command line. Most likely, because libgcc_s.so is shared object instead of relocatable on= e, that is needed for incremental link, ld printed that diagnostic. Please, do two things: - rerun the command with cc -v and show me the output; - change the cc to ld (most likely, you set LD=3DCC somewhere) and rerun the command. Incremental linking is usually done by direct invocation of ld. --0N3FleUdtK+EBGA1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGzQyoC3+MBN1Mb4gRAsHcAKC/cE/4gNy1LfpZqLiI2VBIFzWlDACeKiho sTq1bPstt0sgsONlh1UB6Sc= =v5ZQ -----END PGP SIGNATURE----- --0N3FleUdtK+EBGA1--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070823042721.GK2738>