From owner-freebsd-current@FreeBSD.ORG Thu Feb 23 17:17:02 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 99922106566B; Thu, 23 Feb 2012 17:17:02 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from mail-qw0-f47.google.com (mail-qw0-f47.google.com [209.85.216.47]) by mx1.freebsd.org (Postfix) with ESMTP id 1666F8FC1C; Thu, 23 Feb 2012 17:17:01 +0000 (UTC) Received: by qadz30 with SMTP id z30so7731004qad.13 for ; Thu, 23 Feb 2012 09:17:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type; bh=rPHvnijezyXgCz6LWQ8PFtcu8WvOm92PTnBTZpsPVTc=; b=EtwWOd9CGI9iSnTLBS7AfWzFsHZwfpJUcQxehf+5kPpg9gTXG5+E3U2+Q9GgLPv/4l 5zWg3wQi4jXnXwyinWb/I7mz/20u+p5+vOPPzEcg7g90TnV9zXm5n23RsNY4U3c6iZ60 ydRrj6OmejHNxJaKBO48KR4XmuLCEnuPjvTaE= Received: by 10.229.137.85 with SMTP id v21mr1403172qct.70.1330017421192; Thu, 23 Feb 2012 09:17:01 -0800 (PST) Received: from kan.dyndns.org (c-24-63-226-98.hsd1.ma.comcast.net. [24.63.226.98]) by mx.google.com with ESMTPS id ec5sm5253593qab.21.2012.02.23.09.16.59 (version=SSLv3 cipher=OTHER); Thu, 23 Feb 2012 09:17:00 -0800 (PST) Date: Thu, 23 Feb 2012 12:16:47 -0500 From: Alexander Kabaev To: Tim Kientzle Message-ID: <20120223121647.50ba7c6a@kan.dyndns.org> In-Reply-To: <5C146DC6-264B-43A9-9234-9E03315F3D33@kientzle.com> References: <20120221182850.GA20768@troutmask.apl.washington.edu> <20120221185754.GL55074@deviant.kiev.zoral.com.ua> <20120221194259.GA21185@troutmask.apl.washington.edu> <4F440E8B.9020306@FreeBSD.org> <20120221220053.GA44386@night.db.net> <20120221223251.GA23053@troutmask.apl.washington.edu> <5C146DC6-264B-43A9-9234-9E03315F3D33@kientzle.com> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/2GjZCA0ZJDIIkiZ5H9qVOL9"; protocol="application/pgp-signature" Cc: Daniel Eischen , freebsd-current FreeBSD , Steve Kargl , freebsd-ports@freebsd.org Subject: Re: rtld or lang/gcc cannot find libgcc_s.so.1 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 23 Feb 2012 17:17:02 -0000 --Sig_/2GjZCA0ZJDIIkiZ5H9qVOL9 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Tue, 21 Feb 2012 21:11:13 -0800 Tim Kientzle wrote: >=20 > On Feb 21, 2012, at 3:39 PM, Daniel Eischen wrote: >=20 > > On Tue, 21 Feb 2012, Steve Kargl wrote: > >=20 > >> 3) Add a new option to ldconfig to prepend new libraries to > >> the hints files and fix the ports to use this option instead > >> of -m. > >=20 > > You don't want system binaries that want /lib/libgcc_s.so.1 > > to use /usr/local/lib/gccXX/libgcc_s.so.1, though. Wouldn't > > your option 3 do that? >=20 > Why not? Would it cause problems? >=20 > Is libgcc from GCC 4.6 incompatible with /lib/libgcc? >=20 > If I understand correctly, the libgcc in base is pretty stripped > down compared to "regular" libgcc, because most of that > stuff is in our libc instead. So if there were compatibility > problems, I'd expect those to show up when GCC 4.6 linked > programs against /usr/local/.../libgcc and /lib/libc. >=20 You understand it a bit wrong, but your conclusions are correct. libgcc in base is not stripped in any way and is supposed to be identical to one coming from upstream. As long as upstream maintains backward compatibility, their library should be a perfect replacement for ours. There was a time period while FreeBSD used dynamic unwind into search using dl_iterate_phdr while upstream GCCs didn't, but that was fixed by GCC folks switching GCC to use dl_iterate_phdr on Linux and FreeBSD by default quite while ago. I am not aware of any other incompatibilities at this time. --=20 Alexander Kabaev --Sig_/2GjZCA0ZJDIIkiZ5H9qVOL9 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iD8DBQFPRnSJQ6z1jMm+XZYRAqDxAKDXj/8Zy8PlS4/1+4U52wtpz5Is8wCfd/WF w4KPgZkGgjsrVjurpASGEDI= =LL6+ -----END PGP SIGNATURE----- --Sig_/2GjZCA0ZJDIIkiZ5H9qVOL9--