From owner-freebsd-toolchain@freebsd.org Fri Aug 19 00:12:48 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4D24ABBEA64; Fri, 19 Aug 2016 00:12:48 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 260461644; Fri, 19 Aug 2016 00:12:48 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.15.2/8.15.2) with ESMTPS id u7J0CiSl093680 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 18 Aug 2016 17:12:44 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.15.2/8.15.2/Submit) id u7J0CiwW093679; Thu, 18 Aug 2016 17:12:44 -0700 (PDT) (envelope-from sgk) Date: Thu, 18 Aug 2016 17:12:44 -0700 From: Steve Kargl To: Diane Bruce Cc: Tijl Coosemans , freebsd-toolchain@freebsd.org, Dimitry Andric , freebsd-ports@freebsd.org, kargl@uw.edu Subject: Re: Problems with out libgcc_s.so in base Message-ID: <20160819001244.GA93672@troutmask.apl.washington.edu> Reply-To: kargl@uw.edu References: <20160814230351.GA10587@troutmask.apl.washington.edu> <20160814233430.GA35872@night.db.net> <20160817211710.GA59205@troutmask.apl.washington.edu> <20160818111521.7f79b9f8@kalimero.tijl.coosemans.org> <20160819011432.6f2eadbd@kalimero.tijl.coosemans.org> <20160818235049.GA93186@troutmask.apl.washington.edu> <20160818235801.GA83722@night.db.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160818235801.GA83722@night.db.net> User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2016 00:12:48 -0000 On Thu, Aug 18, 2016 at 07:58:01PM -0400, Diane Bruce wrote: > On Thu, Aug 18, 2016 at 04:50:49PM -0700, Steve Kargl wrote: > > On Fri, Aug 19, 2016 at 01:14:32AM +0200, Tijl Coosemans wrote: > > > > > > > > For example, on one of my systems, I now have these: > > > > > .... > > entry: 5 > > d_tag: DT_RPATH > > d_val: /usr/local/lib/gcc6 > > > > I don't know how ELF or the ldd work, but shouldn't the DT_RPATH > > tell ldd to look for all of the above libraries in /usr/local/lib/gcc6 > > first. If a library isn't present, it would then look in ldconfig's > > hints file or fallback to /lib and /usr/lib/. But, I suppose we > > still run into issues as libgfortran.so.3 needs its companion libgcc_s.s.1 > > from DT_RPATH and libc.so.7 expects the one from /lib (or perhaps > > libcxxrt.so.1?). > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208120 > > Anything compiled with cmake infrastructure loses the DT_RPATH. > I know nothing about cmake, but it seems to be broken. :) -- Steve