From owner-freebsd-ports@freebsd.org Sun Feb 17 01:35:57 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 C6C5614DB904 for ; Sun, 17 Feb 2019 01:35:57 +0000 (UTC) (envelope-from rcarter@pinyon.org) Received: from h2.pinyon.org (h2.pinyon.org [65.101.20.170]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 881567684A for ; Sun, 17 Feb 2019 01:35:56 +0000 (UTC) (envelope-from rcarter@pinyon.org) Received: by h2.pinyon.org (Postfix, from userid 58) id 88E6E18930; Sat, 16 Feb 2019 18:35:54 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pinyon.org; s=DKIM; t=1550367354; bh=oNwPv6SWTLcHcy/okz6lKbtDyFZAFDhLe5euQQt/kwI=; h=Subject:To:References:From:Date:In-Reply-To; b=cJ2Su9vK/ckWF+fGDCUR36rIUQk2X73atWFMNXWp06ZgnZf4+FUAULoDhvUtdNcOo g4UuZI+/cLEA5ZMrszAP5YkbBcmLZ4Ps3B+qxxIiIOheDRE1XYecgZTaFovE91PTvR 2jvrRCYbazZTnDcZKzZGTxgaUa8El57kmQium9vg= X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on h2.n1.pinyon.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU shortcircuit=no autolearn=unavailable autolearn_force=no version=3.4.2 Received: from [10.0.10.15] (h1.pinyon.org [65.101.20.169]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by h2.pinyon.org (Postfix) with ESMTPSA id 030921890F; Sat, 16 Feb 2019 18:35:53 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pinyon.org; s=DKIM; t=1550367353; bh=oNwPv6SWTLcHcy/okz6lKbtDyFZAFDhLe5euQQt/kwI=; h=Subject:To:References:From:Date:In-Reply-To; b=BRJvAT+YRfyinDctqDxEfBapuLdtVMUTT+aDxRiC99Kp1ZwEOzpaw4d3YvFegpxP0 12hJv7jg/K4qmDhHHscI1tJuGH+E8F+k+bnb4mo+uuv8dqZsEN4tYTKycslv8h7nh0 G4WdCLkh6vpLZj53mZwvqy6eQcB2wnV3gms2YVNU= Subject: Re: FreeCAD 0.17 && /lib//libgcc_s.so.1 To: Eugene Grosbein , FreeBSD Ports ML References: From: "Russell L. Carter" Message-ID: <416689e6-37f9-17ec-54d8-0d224c26f30f@pinyon.org> Date: Sat, 16 Feb 2019 18:35:52 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 881567684A X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=pinyon.org header.s=DKIM header.b=cJ2Su9vK; dkim=pass header.d=pinyon.org header.s=DKIM header.b=BRJvAT+Y; spf=pass (mx1.freebsd.org: domain of rcarter@pinyon.org designates 65.101.20.170 as permitted sender) smtp.mailfrom=rcarter@pinyon.org X-Spamd-Result: default: False [-6.44 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[pinyon.org:s=DKIM]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[pinyon.org]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: h2.pinyon.org]; DKIM_TRACE(0.00)[pinyon.org:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.99)[-0.990,0]; IP_SCORE(-2.94)[ip: (-9.70), ipnet: 65.100.0.0/14(-4.90), asn: 209(-0.00), country: US(-0.07)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:209, ipnet:65.100.0.0/14, country:US]; MID_RHS_MATCH_FROM(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:35:58 -0000 On 2/16/19 6:21 PM, Eugene Grosbein wrote: > 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. > I have similar libgfortran.so.5 installation linkage: root@feyerabend> 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 (0x80126d000) libz.so.6 => /lib/libz.so.6 (0x80066a000) libm.so.5 => /lib/libm.so.5 (0x800684000) libgcc_s.so.1 => /usr/local/lib/gcc8/libgcc_s.so.1 (0x8014ac000) libc.so.7 => /lib/libc.so.7 (0x800249000) root@feyerabend> So I must dig deeper. Perhaps with rpaths interacting with the system paths? Russell