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 Tue, Aug 18, 2020 at 10:56 AM Connor McLaughlan <cont6pro3%gmail.com@localhost> wrote:
>
> On Tue, Aug 18, 2020 at 9:49 AM Juraj Lutter <otis%netbsd.org@localhost> wrote:
> >
> >
> > > On 18 Aug 2020, at 09:35, Connor McLaughlan <cont6pro3%gmail.com@localhost> wrote:
> > >
> > > On Sat, Aug 15, 2020 at 2:11 AM Connor McLaughlan <cont6pro3%gmail.com@localhost> wrote:
> > >>
> > >
> > >> I am unsure if this is an error of blas by calling the undefined
> > >> reference in libgfortran.so or by gcc7 to have experienced an error
> > >> during building of its fortran compiler.

So i think there is something wrong with the gcc7 build via pkgsrc on sparc64.

The libgfortran.so has undefined symbols of the cab* functions.
There are patches for gcc7 that have the focus to adjust these issues
for NetBSD, but something is not working out for gfortran on sparc64:

bash-5.0# more patch-gcc_config.gcc
$NetBSD: patch-gcc_config.gcc,v 1.4 2018/11/09 11:22:13 mrg Exp $

Workaround netbsd's compatibility non-C99 cabs (causes gfortran link failures)

bash-5.0# cat patch-gcc_config_netbsd-protos.h
[...]
+#ifndef _NETBSD_PROTOS_H_
+#define _NETBSD_PROTOS_H_
+
+double __c99_cabs (double complex);
+float __c99_cabsf (float complex);
+long double __c99_cabsl (long double complex);
[...]

Should i start a new mailing since this seems not to be a problem of
math/blas or math/coinmp?

Regards,
Connor


Home | Main Index | Thread Index | Old Index