From owner-freebsd-hackers@freebsd.org Thu Apr 20 16:40:52 2017 Return-Path: Delivered-To: freebsd-hackers@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 22E36D48860 for ; Thu, 20 Apr 2017 16:40:52 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell1.rawbw.com (shell1.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id 0CB8A26A for ; Thu, 20 Apr 2017 16:40:51 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from yv.noip.me (c-24-6-186-56.hsd1.ca.comcast.net [24.6.186.56]) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id v3KGZKvE092593 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Thu, 20 Apr 2017 09:35:21 -0700 (PDT) (envelope-from yuri@rawbw.com) X-Authentication-Warning: shell1.rawbw.com: Host c-24-6-186-56.hsd1.ca.comcast.net [24.6.186.56] claimed to be yv.noip.me From: Yuri Subject: How to get rid of the conflict between /usr/local/lib/gcc49/libgcc_s.so.1 and /lib/libgcc_s.so.1 To: Freebsd hackers list Message-ID: <2978fd74-4544-db57-f4f2-9300949e4764@rawbw.com> Date: Thu, 20 Apr 2017 09:35:19 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Apr 2017 16:40:52 -0000 Currently, FreeBSD can't run software that includes both fortran and clang-built parts that use exceptions. The immediate reason is that /usr/local/lib/gcc49/libgfortran.so.3 requires a newer version of libgcc, /usr/local/lib/gcc49/libgcc_s.so.1, but the older version /lib/libgcc_s.so.1 is used by the rest of the system. The immediate message is: ImportError: /lib/libgcc_s.so.1: version GCC_4.6.0 required by /usr/local/lib/gcc49/libgfortran.so.3 not found libgcc update us impossible due to the licensing change, libgcc is now GPL. One or only thing that is used in libgcc is the low level Unwind functionality. There are some alternative unwind implementations, for example https://github.com/pathscale/libunwind with the MIT license. Anybody has an idea how to solve this problem? One example of failure is https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217459, but most science software is affected. Yuri