From owner-freebsd-ports@freebsd.org Sun Feb 17 01:21:28 2019 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2265F14DAD16 for ; Sun, 17 Feb 2019 01:21:28 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [IPv6:2a01:4f8:d12:604::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 004C576069 for ; Sun, 17 Feb 2019 01:21:16 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (eg.sd.rdtc.ru [IPv6:2a03:3100:c:13:0:0:0:5]) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id x1H1L60g015861 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 17 Feb 2019 02:21:07 +0100 (CET) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: rcarter@pinyon.org Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id x1H1L5Ew012663 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sun, 17 Feb 2019 08:21:05 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: FreeCAD 0.17 && /lib//libgcc_s.so.1 To: "Russell L. Carter" , FreeBSD Ports ML References: From: Eugene Grosbein Message-ID: Date: Sun, 17 Feb 2019 08:21:00 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,LOCAL_FROM,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.0 SPF_PASS SPF: sender matches SPF record * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on hz.grosbein.net X-Rspamd-Queue-Id: 004C576069 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; spf=permerror (mx1.freebsd.org: domain of eugen@grosbein.net uses mechanism not recognized by this client) smtp.mailfrom=eugen@grosbein.net X-Spamd-Result: default: False [-3.94 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; MX_INVALID(0.50)[greylisted]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[grosbein.net]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; R_SPF_PERMFAIL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.98)[-0.985,0]; IP_SCORE(-1.35)[ip: (-2.13), ipnet: 2a01:4f8::/29(-2.37), asn: 24940(-2.26), country: DE(-0.01)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Feb 2019 01:21:28 -0000 17.02.2019 8:02, Russell L. Carter wrote: > Greetings, > > Restarting the FreeCAD 0.17 discussion on a different tangent. > > As I mentioned before I am building (for now) outside of the ports > tree FreeCAD-git + Coin-hg + QT5 + med-4.0.0. I want to particularly > thank very much all the porting work that has been done so far, I > wouldn't have been able to get as far as I have without it. > > french/med (french?) requires fortran, and for ports gfortran is > apparently the only option. gfortran depends on libgcc_s.so.1, which > is FreeBSD's (only?) version of dll hell. > > Transcribed output from the FreeCAD Testing Framework GUI test all: > > First run of TestApp.All: Run: 212 Failures: 1 Errors: 20 > > which isn't bad at all I suspect. However one of the failures is > > /lib/libgcc_s.so.1 version GCC_4.8.0 required by > /usr/local/lib/gcc8/libgfortran.so.5 not found > > This is probably fatal to practical use of FreeCAD on FreeBSD. I was > able to open most of my previous models, created on debian-testing, > but some were fail. > > 2 threads, no happy ending: > > https://lists.freebsd.org/pipermail/freebsd-ports/2018-May/113336.html > https://lists.freebsd.org/pipermail/freebsd-python/2016-January/009672.html > > Question to experienced porters, how is this best practice solved? I've just did "pkg install gcc8" using my FreeBSD 11.2/amd64 system and got this: # ldd /usr/local/lib/gcc8/libgfortran.so.5 /usr/local/lib/gcc8/libgfortran.so.5: libquadmath.so.0 => /usr/local/lib/gcc8/libquadmath.so.0 (0x80146e000) libz.so.6 => /lib/libz.so.6 (0x8016ad000) libm.so.5 => /lib/libm.so.5 (0x8018c5000) libgcc_s.so.1 => /usr/local/lib/gcc8/libgcc_s.so.1 (0x801af3000) libc.so.7 => /lib/libc.so.7 (0x800823000) So, /usr/local/lib/gcc8/libgfortran.so.5 does not depend on /lib/libgcc_s.so.1 but on /usr/local/lib/gcc8/libgcc_s.so.1 in normal case. I assume something is broken in your installation. Try removing gcc8 and reinstalling it using package.