From owner-freebsd-ports@freebsd.org Sat Feb 23 23:16:42 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 EFCB61507E4E for ; Sat, 23 Feb 2019 23:16:41 +0000 (UTC) (envelope-from dimpase@gmail.com) Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5C62773063; Sat, 23 Feb 2019 23:16:40 +0000 (UTC) (envelope-from dimpase@gmail.com) Received: by mail-lj1-x233.google.com with SMTP id z20so4442806ljj.10; Sat, 23 Feb 2019 15:16:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=r0GioLwZVx7w9tJfSsv8xXcHwtUSCzrmyQQTYc2w9s0=; b=SdjlfLMnGLVNUcGb51fYJs2DhaPWlqMQpxw7pGFH3I/RQmBjkre29D18uo6Y0QZQj3 enZ+YOxer4nb06hs7OVwG3XT/HddHNFTLvYYrk2bJEBwX5MVk86CIGxGwPcNqBgRpbgo nKEH0TgzdH59JdszunGoL1vipBJ3lfHGwPHpfxByjNAXXWIkHBjcO120RU9BBqVqWnF+ ScFJ+3U5qIKAC6cE+eAJ+n/tUb6IQYMbuJtW5CDb89fX9MMi37iTPBLRlxOflLhzz0Yf D/lGfmFA9ip0H1H1OvmUGQB/Zdjxr3eABJqLC07HhMJmBB+AfXziVdRFMDiEnEpSjwIW s8NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=r0GioLwZVx7w9tJfSsv8xXcHwtUSCzrmyQQTYc2w9s0=; b=Q2cP9xxiTle9yEZMmv4PFHUQWfC0thiGHSAyifjjV1A9KMZ7tLQDo2zBE97Wc81xUa iDVD2JHphwbEii4z+zaA/LRYnnIlA+06XXDt8pGy2eAwO7OOYViBAJ2G6SWOdq2eMKZa thp/sRLyUS5eZGwsMIvcGwwXey2emTdvinQSSkedtMDOsUAjESrNUA3NaQmzEkzI0dAY SXT41ygDjWh/WFY2UtdK6XF/cEno5HaA+L4r0HHvCj6fhE2m5HyF0Tip2VTJ15qgrKTT IkRPji8kgTxOfS+WkGoWifeyIOvnLhvPWWVsHL+Xv4gwEbqxYN8MqDdmbJd+B1YCN4eV PJ6A== X-Gm-Message-State: AHQUAubKDHynZ+BjIt3TbMVqnxg9HQyV2RZkPraRCJVGnNylKZcDsZnk JJz7qc1xArVt7DLuc7z8MKwIa35A+hK7fz+Wci3/BQXxi94= X-Google-Smtp-Source: AHgI3Ibmwq3KPTNpa/TUanLpUGjuHi5//bhZvjqWvNNjICsC/vFQ+y8IcTu0KE5Rf+7nEANZ2jpY9rD5SFKLmq++ElI= X-Received: by 2002:a2e:880a:: with SMTP id x10mr5267466ljh.12.1550963797517; Sat, 23 Feb 2019 15:16:37 -0800 (PST) MIME-Version: 1.0 References: <416689e6-37f9-17ec-54d8-0d224c26f30f@pinyon.org> <20190217151604.GB68620@night.db.net> <20190221180515.39c79ce6@kalimero.tijl.coosemans.org> <092b17f0-6fbf-662e-1061-403442248abd@pinyon.org> <20190222140407.2145c11e@kalimero.tijl.coosemans.org> <20190223000620.GA12700@troutmask.apl.washington.edu> <20190223183117.GA65065@night.db.net> In-Reply-To: <20190223183117.GA65065@night.db.net> From: Dima Pasechnik Date: Sat, 23 Feb 2019 23:16:25 +0000 Message-ID: Subject: Re: FreeCAD 0.17 && /lib//libgcc_s.so.1 To: Diane Bruce Cc: Dima Pasechnik , Steve Kargl , FreeBSD Ports , Dave Horsfall , gerald@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 5C62773063 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=SdjlfLMn; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of dimpase@gmail.com designates 2a00:1450:4864:20::233 as permitted sender) smtp.mailfrom=dimpase@gmail.com X-Spamd-Result: default: False [-6.61 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; RCPT_COUNT_FIVE(0.00)[6]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.99)[-0.986,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[freebsd]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[freebsd]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[3.3.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-2.62)[ip: (-8.78), ipnet: 2a00:1450::/32(-2.25), asn: 15169(-1.99), country: US(-0.07)]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_CC(0.00)[gmail.com] 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: Sat, 23 Feb 2019 23:16:42 -0000 On Sat, Feb 23, 2019 at 6:31 PM Diane Bruce wrote: [...] > Dima, gerald has always been very helpful in all my communications> with him. > Have you filed a PR for the fix? dropped him an email? Diane, well, after reading many threads on this issue I stumbled upon https://forums.freebsd.org/threads/freebsd-11-2-libgcc_s-so-1-error.67031/ ---it advises to add to /etc/libmap.conf the line libgcc_s.so.1 /usr/local/lib/gccX/libgcc_s.so.1 ---where X to be replaced with the major gfortran version one uses. By the way, is this anywhere in the current documentation? These kinds of things seem to be documented for FreeBSD 7.3, cf. https://docs.freebsd.org/doc/7.3-RELEASE/usr/share/doc/en/articles/custom-gcc/configuring-ports-gcc.html but then everything that needs this hack was supposed to be resolved? Naturally, this is ugly and should not be needed, and nothing like this is needed on Linux (or Solaris). As what I do on FreeBSD is porting a largish Python library (basically, an update to the current Sagemath version (8.6) what's inhttps://www.freshports.org/math/sage/, but the 1st goal would be more modest, just an ability to build and run in the "user space", not as a FreeBSD port), these kinds of workarounds aren't really feasible, as long as "finished product" is concerned. In fact, I started working on this on FreeBSD 11, where the math library was lacking standard symbols for a number of complex functions, and stopped, as I felt it's just too much of a hassle to work around, and picked it up again after in FreeBSD 12 this has been resolved (Steve (kargl) played a major role in it, I gather). > > I know we (gerald and ?? can't remember) tried a static lib change > a few years ago. I believe it didn't work at the time due to missing > symbols which we have since added. I am trying to understand what the situation is. If everything that is needed for this fix is already there, then what's precluding it from going forward? I've also looked at using flang instead of gfortran (it's great that FreeBSD has it available), but it seems to come with its own set of issues... Thanks, Dima http://users.ox.ac.uk/~coml0531/