From owner-freebsd-current@FreeBSD.ORG Mon Jun 22 06:53:14 2015 Return-Path: Delivered-To: freebsd-current@nevdull.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 43FE5234 for ; Mon, 22 Jun 2015 06:53:14 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (unknown [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 03A691079; Mon, 22 Jun 2015 06:53:14 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::c81:a842:b62f:b1dc] (unknown [IPv6:2001:7b8:3a7:0:c81:a842:b62f:b1dc]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 5EB2A283FD; Mon, 22 Jun 2015 08:53:07 +0200 (CEST) Subject: Re: odd compile failure with both clang and gcc.. weird (standard) library install Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Content-Type: multipart/signed; boundary="Apple-Mail=_514A8932-7E8F-45B3-9CC9-EA1D0B7C31EF"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.5 From: Dimitry Andric In-Reply-To: <55877C36.70407@freebsd.org> Date: Mon, 22 Jun 2015 08:53:03 +0200 Cc: freebsd-current Message-Id: References: <55877C36.70407@freebsd.org> To: Julian Elischer X-Mailer: Apple Mail (2.2098) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jun 2015 06:53:14 -0000 --Apple-Mail=_514A8932-7E8F-45B3-9CC9-EA1D0B7C31EF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 22 Jun 2015, at 05:08, Julian Elischer wrote: >=20 > 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 >=20 > Stop. >=20 > the same error happens with gcc as the compiler.. >=20 > 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@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 --Apple-Mail=_514A8932-7E8F-45B3-9CC9-EA1D0B7C31EF Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.27 iEYEARECAAYFAlWHsNIACgkQsF6jCi4glqMP0QCguAYDj7FVY8spG2XYLwKLgWDC keYAnj4uInqHwzw9LyNPMdAnylPsvqp2 =aJS2 -----END PGP SIGNATURE----- --Apple-Mail=_514A8932-7E8F-45B3-9CC9-EA1D0B7C31EF--