From owner-freebsd-ports@freebsd.org Thu Aug 18 00:26:37 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 D98AFBBC933; Thu, 18 Aug 2016 00:26:37 +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 BF6F2174B; Thu, 18 Aug 2016 00:26:37 +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 u7I0QYaf059925 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 17 Aug 2016 17:26:34 -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 u7I0QYHo059924; Wed, 17 Aug 2016 17:26:34 -0700 (PDT) (envelope-from sgk) Date: Wed, 17 Aug 2016 17:26:34 -0700 From: Steve Kargl To: Diane Bruce Cc: kargl@uw.edu, freebsd-toolchain@freebsd.org, freebsd-ports@freebsd.org Subject: Re: Problems with out libgcc_s.so in base Message-ID: <20160818002634.GA59893@troutmask.apl.washington.edu> References: <20160814230351.GA10587@troutmask.apl.washington.edu> <20160814233430.GA35872@night.db.net> <20160817211710.GA59205@troutmask.apl.washington.edu> <20160817221251.GA68398@night.db.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160817221251.GA68398@night.db.net> 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: Thu, 18 Aug 2016 00:26:37 -0000 On Wed, Aug 17, 2016 at 06:12:51PM -0400, Diane Bruce wrote: > On Wed, Aug 17, 2016 at 02:17:10PM -0700, Steve Kargl wrote: > > On Sun, Aug 14, 2016 at 07:34:30PM -0400, Diane Bruce wrote: > > > On Sun, Aug 14, 2016 at 04:03:51PM -0700, Steve Kargl wrote: > > > > > > > > Freebsd-ports could also use a wrapper: > > > > > > Yes. I have also suggested we use a wrapper to the ports guys. > > > > > > > I thought about this a bit, and cleaner solution might be > > to add the program suffix to libgcc_s.so.1. For example, > > > > % cat foo.f90 > > program foo > > print *, 'Hello' > > end program > > % gfortran6 -o z foo.f90 && ./z > > /lib/libgcc_s.so.1: version GCC_4.6.0 required by \ > > /usr/local/lib/gcc6/libgfortran.so.3 not found > > % 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 > > > > Clearly, ldd is looking for 735 but finds 6. If the lang/gcc6 could > > be convinced to build, install, and use libgcc_s6.so.1, then the > > problem is solved without a wrapper. > > I like this solution. > I have asked on gcc@gcc.gnu.org if it is possible to configure gcc as above. I know that one can bump the shared lib number, but that won't solve the problem. -- Steve