pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: math/blas not compiling due to gcc7 error



On Mon, 24 Aug 2020 at 09:30, Connor McLaughlan <cont6pro3%gmail.com@localhost> wrote:
>
> On Mon, Aug 24, 2020 at 9:29 AM Chavdar Ivanov <ci4ic4%gmail.com@localhost> wrote:
> >
> > On Mon, 24 Aug 2020 at 06:44, Martin Husemann <martin%duskware.de@localhost> wrote:
> > >
> > > On Sun, Aug 23, 2020 at 09:31:08PM +0200, Connor McLaughlan wrote:
> > > > bash-5.0# nm /lib/libm.so |grep cab
> > > > 000000000001f300 T __c99_cabs
> > > > 000000000001f2e0 T __c99_cabsf
> > > > 000000000001f2c0 T __c99_cabsl
> > > > 000000000001f340 T cabs
> > > > 000000000001f320 T cabsf
> > > >
> > > > So it seems the problem is cabsl missing in /lib/lim.so which then is
> > > > a problem of the base system?
> > >
> > > The same is true for both amd64 and sparc64 in -current, the symbol used
> > > in libm is __c99_cabsl, our <complex.h> has:
> > >
> > >         long double cabsl(long double complex) __RENAME(__c99_cabsl);
> > >
> > > but apparently gfortran does not know about that. How does it work on
> > > NetBSD/amd64? Or does it fail there just the same?
> >
> > FWIW I have
> >
> > PKGSRC_FORTRAN=gfortran
> > GFORTRAN_VERSION=8
> >
> > in /etc/mk.conf and math/blas builds just fine under -current amd64.
> >
> > >
> > > Martin
> >
> > Chavdar
> >
>
> Does this mean i need to compile/install gcc8?
> Will try what happens on sparc64 when i have the time...

Don't know, I switched to gfortran8 quite some times ago on somebody's
advice; all the maths packages which use it seem to build ok. The blas
tests complete as follows:
...
100% tests passed, 0 tests failed out of 12
...

The test program is linked so:

 ldd work/lapack-3.9.0/obj/bin/xblat2z
work/lapack-3.9.0/obj/bin/xblat2z:
        -lblas.3 => /usr/pkg/lib/libblas.so.3
        -lgfortran.5 => /usr/pkg/gcc8//lib/./libgfortran.so.5
        -lquadmath.0 => /usr/pkg/gcc8//lib/./libquadmath.so.0
        -lm.0 => /usr/lib/libm.so.0
        -lc.12 => /usr/lib/libc.so.12
        -lz.1 => /usr/lib/libz.so.1
        -lgcc_s.1 => /usr/lib/libgcc_s.so.1


>
> Regards,
> Connor



-- 
----


Home | Main Index | Thread Index | Old Index