From owner-freebsd-ports@freebsd.org Fri Aug 19 00:47:01 2016 Return-Path: Delivered-To: freebsd-ports@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 6415FBBF3C3; Fri, 19 Aug 2016 00:47:01 +0000 (UTC) (envelope-from kargl@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 46E6C157C; Fri, 19 Aug 2016 00:47:01 +0000 (UTC) (envelope-from kargl@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 u7J0kwla094170 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 18 Aug 2016 17:46:58 -0700 (PDT) (envelope-from kargl@troutmask.apl.washington.edu) Received: (from kargl@localhost) by troutmask.apl.washington.edu (8.15.2/8.15.2/Submit) id u7J0kwP4094169; Thu, 18 Aug 2016 17:46:58 -0700 (PDT) (envelope-from kargl) Date: Thu, 18 Aug 2016 17:46:58 -0700 From: "Steven G. Kargl" To: Tijl Coosemans Cc: Dimitry Andric , Steve Kargl , freebsd-toolchain@freebsd.org, freebsd-ports@freebsd.org, kargl@uw.edu Subject: Re: Problems with out libgcc_s.so in base Message-ID: <20160819004658.GA94122@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> <20160819004304.GA94021@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160819004304.GA94021@troutmask.apl.washington.edu> User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2016 00:47:01 -0000 On Thu, Aug 18, 2016 at 05:43:04PM -0700, Steven G. Kargl wrote: > > % cd ~/work/6/lib Dang. This should have been "cd /usr/local/lib/gcc6" > % sed s/gcc_s/gcc_t/ < libgfortran.so.3 > zxc > % mv zxc libgfortran.so.3 > % elfdump -a libgfortran.so.3 | grep gcc_ > d_val: libgcc_t.so.1 > % ln -sf libgcc_s.so.1 libgcc_t.so.1 This magic can be done as a post-install step. > % ldconfig -R > % ldconfig -r | grep libgcc > 6:-lgcc_s.1 => /lib/libgcc_s.so.1 > 735:-lgcc_s.1 => /usr/local/lib/gcc6/libgcc_s.so.1 > 745:-lgcc_t.1 => /usr/local/lib/gcc6/libgcc_t.so.1 > > % cd tmp > % gfortran6 -o z foo.f90 && ./z > Hello > > That is, the name clash in ldconfig can be avoided by editing > libgfortran.so.3 to look for a symlinked libgcc_s.so.1. > > -- > Steve > http://troutmask.apl.washington.edu/~kargl/ -- Steve http://troutmask.apl.washington.edu/~kargl/