Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Dec 2015 09:34:01 -0500
From:      Diane Bruce <db@db.net>
To:        Yuri <yuri@rawbw.com>
Cc:        "ports@freebsd.org" <ports@freebsd.org>
Subject:   Re: USES=fortran can't mix with the libraries requiring /lib/libgcc_s.so.1 from the base
Message-ID:  <20151223143401.GA10518@night.db.net>
In-Reply-To: <567A9511.30705@rawbw.com>
References:  <567A9511.30705@rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Dec 23, 2015 at 04:35:29AM -0800, Yuri wrote:
> 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

It's a well known bug. The long term fix would be bringing in
quad math support which is what (gcc) fortran libs are looking for and
we do not supply currently.

Start here https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196491
I tried very hard to make gnuradio compiled only with clang for the 'C'
parts but we were forced to use gcc.

> 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

Yep.

> 
> What is the general solution for this problem? Is there a non-gcc 
> version of fortran?

No there is currently no clang version of Fortran. 'flang' was a SOC project
to bring in clang support for fortran but it is moribund. The
clang guys are the ones you should bug. In any case, the Fortran spec
now requires quad math support so that would have to be provided as well.

> 
> 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.

No. The core problem is due to our version of libgcc not having quadmath
support. 

> 
> Yuri

Diane
-- 
- db@FreeBSD.org db@db.net http://www.db.net/~db



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151223143401.GA10518>