From owner-freebsd-ports@freebsd.org Wed Dec 23 12:35:37 2015 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 E157AA50F6B for ; Wed, 23 Dec 2015 12:35:37 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id CFC6B1269 for ; Wed, 23 Dec 2015 12:35:37 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: by mailman.ysv.freebsd.org (Postfix) id CD9F0A50F6A; Wed, 23 Dec 2015 12:35:37 +0000 (UTC) Delivered-To: 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 CD2F3A50F69 for ; Wed, 23 Dec 2015 12:35:37 +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 BBA501268 for ; Wed, 23 Dec 2015 12:35:37 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from yuri.doctorlan.com (c-50-184-63-128.hsd1.ca.comcast.net [50.184.63.128]) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id tBNCZUd0073925 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Wed, 23 Dec 2015 04:35:30 -0800 (PST) (envelope-from yuri@rawbw.com) X-Authentication-Warning: shell1.rawbw.com: Host c-50-184-63-128.hsd1.ca.comcast.net [50.184.63.128] claimed to be yuri.doctorlan.com To: "ports@freebsd.org" From: Yuri Subject: USES=fortran can't mix with the libraries requiring /lib/libgcc_s.so.1 from the base Message-ID: <567A9511.30705@rawbw.com> Date: Wed, 23 Dec 2015 04:35:29 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Dec 2015 12:35:38 -0000 I found that ports with USES=fortran can't mix with anything in C++ compiled with the base clang++, because USES=fortran forces the current gcc that links with its /usr/local/lib/libgcc_s.so.1 Getting this particular error from the python process, because one python module has USES=fortran, and another has C++ in it: ImportError: /lib/libgcc_s.so.1: version GCC_4.6.0 required by /usr/local/lib/gcc48/libgfortran.so.3 not found What is the general solution for this problem? Is there a non-gcc version of fortran? One thing is when gcc is required because clang can't compile something, and another things is when fortran language requires it. The latter is here to stay. Can there be the separate fortran from gcc that is build with clang? Or can we switch /usr/ports/lang/gccNN to be always built with the base clang? I know this is certainly possible. Yuri