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 2020-08-18 17:26, Connor McLaughlan wrote:
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
FYI, can't reproduce the problem on AMD64:

=> Checking file-check results for blas-3.9.0
=> Creating binary package /home/bacon/Pkgsrc/pkgsrc/wip/blas/work/.packages/blas-3.9.0.tgz
===> Building binary package for blas-3.9.0
=> Creating binary package /home/bacon/Pkgsrc/pkgsrc/packages/All/blas-3.9.0.tgz
===> Installing binary package of blas-3.9.0
localhost: {21} pwd
/home/bacon/Pkgsrc/pkgsrc/wip/blas
localhost: {22} uname -a
NetBSD localhost 9.0 NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64



Home | Main Index | Thread Index | Old Index