Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Oct 2017 07:19:49 -0700
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        Yuri <yuri@rawbw.com>
Cc:        Gleb Popov <6yearold@gmail.com>, FreeBSD ports list <freebsd-ports@freebsd.org>
Subject:   Re: Using blaslapack
Message-ID:  <20171016141949.GA20770@troutmask.apl.washington.edu>
In-Reply-To: <ff52a059-b54e-d904-ca1c-185c62faea9b@rawbw.com>
References:  <CALH631mDpr2VFoVnxB5oegkL5UdNmRvmv7i_ZNMfQLLHB=KbUQ@mail.gmail.com> <CALH631=VdJd78ixjGJg1=N=LphTyiBbpk2GAnR34m42EUzdy1Q@mail.gmail.com> <CALH631=NSpx76EVVHWMBtGAKTWzD_nfU5EPUH5EwOkPXaBVRAA@mail.gmail.com> <CALH631kvLSZpRmcVg_zrXTq105zs97LdUvqgXh6QPv64x=U-Tg@mail.gmail.com> <CALH631kYp-7HcGwoeTtzrF%2BZhW4b8c6O-GpCQMLj2JuyWBLUfA@mail.gmail.com> <CALH631=0aW8Ag_khWBUyDE=3kJoHt9zC75YXkqiFXxiHrzo8cA@mail.gmail.com> <CALH631nw1pqoDewgHpm_SQYWa490WiGdYdhqo3tNfiHK_uiPCw@mail.gmail.com> <CALH631=c%2BoSuS6=J7G3r8njAmVBQG_oeBb=7EtEZvoO2t=c=zA@mail.gmail.com> <CALH631=mEn2p2cmE7t7cWsoDpJceEjFgd_sE2eMe3QRUqx=iDA@mail.gmail.com> <ff52a059-b54e-d904-ca1c-185c62faea9b@rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Oct 16, 2017 at 02:18:01AM -0700, Yuri wrote:
> On 10/15/17 23:20, Gleb Popov wrote:
> > I've tracked these symbols to /usr/local/lib/gcc6/libgcc_s.so. But there is
> > also /usr/lib/libgcc_s.so and it doesn't have such symbols. I suspect this
> > is the source of the error, but I wasn't able to fix it. Passing -Wl,-rpath
> > as advised by lang/gcc6 pkg-message doesn't help. The only workaround I
> > came up with is USE_GCC=yes to compile DLib itself, but that's pretty
> > unsatisfactory.
> 
> 
> Fortran implementation based on gcc is faulty due to libgcc_s.so being 
> present in 2 versions, in base and in gcc port, making any code 
> containing both C++ and fortran impossible to run. Your application 
> probably can't work on FreeBSD using gcc fortran for this reason.
> 

Huh?  I use Netlib blas/lapack compiled with gfortran on FreeBSD
with no problem.  If you're having problems with gfortran finding
the right libgcc_s.so, then add -rpath /usr/local/lib/gcc5 (or gcc6
or gcc7) to yout Fortran options.

-- 
Steve



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