NetBSD Problem Report #55772
From john@anath.zia.io Sun Nov 1 16:07:10 2020
Return-Path: <john@anath.zia.io>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 45DF91A9239
for <gnats-bugs@gnats.NetBSD.org>; Sun, 1 Nov 2020 16:07:10 +0000 (UTC)
Message-Id: <202011011607.0A1G763P016197@anath.zia.io>
Date: Sun, 1 Nov 2020 16:07:06 GMT
From: john@anath.zia.io
Reply-To: john@anath.zia.io
To: gnats-bugs@NetBSD.org
Subject: pkgsrc/math/blas fails to compile on earmv7hf
X-Send-Pr-Version: 3.95
>Number: 55772
>Category: pkg
>Synopsis: pkgsrc/math/blas fails to compile on earmv7hf
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 01 16:10:00 +0000 2020
>Last-Modified: Tue Nov 10 09:11:00 +0000 2020
>Originator: John Klos
>Release: NetBSD 9.1_STABLE
>Organization:
>Environment:
System: NetBSD anath.zia.io 9.1_STABLE NetBSD 9.1_STABLE (ANATH) #0: Sun Nov 1 01:34:48 UTC 2020 john@anath.zia.io:/usr/obj-evbarm/sys/arch/evbarm/compile/ANATH evbarm
Architecture: earmv7hf
Machine: evbarm
>Description:
pkgsrc/math/blas, which now requires gcc 7.5.0 from pkgsrc, doesn't compile on earmv7hf:
=> Fixing CMAKE_MODULE_PATH in CMakeLists.txt
-- The Fortran compiler identification is GNU 7.5.0
-- The C compiler identification is GNU 7.5.0
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - failed
-- Check for working Fortran compiler: /usr/pkgsrc/math/blas/work/.cwrapper/bin/gfortran
-- Check for working Fortran compiler: /usr/pkgsrc/math/blas/work/.cwrapper/bin/gfortran - broken
CMake Error at /usr/local/share/cmake-3.18/Modules/CMakeTestFortranCompiler.cmake:51 (message):
The Fortran compiler
"/usr/pkgsrc/math/blas/work/.cwrapper/bin/gfortran"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /usr/pkgsrc/math/blas/work/lapack-3.9.0/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/local/bin/gmake cmTC_77106/fast && make -f CMakeFiles/cmTC_77106.dir/build.make CMakeFiles/cmTC_77106.dir/build
Building Fortran object CMakeFiles/cmTC_77106.dir/testFortranCompiler.f.o
/usr/pkgsrc/math/blas/work/.cwrapper/bin/gfortran -O -c /usr/pkgsrc/math/blas/work/lapack-3.9.0/build/CMakeFiles/CMakeTmp/testFortranCompiler.f -o CMakeFiles/cmTC_77106.dir/testFortranCompiler.f.o
Linking Fortran executable cmTC_77106
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_77106.dir/link.txt --verbose=1
/usr/pkgsrc/math/blas/work/.cwrapper/bin/gfortran -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/lib -Wl,-R/usr/lib -O CMakeFiles/cmTC_77106.dir/testFortranCompiler.f.o -o cmTC_77106
/usr/bin/ld: /usr/local/gcc7/lib/gcc/armv7--netbsdelf-eabihf/7.5.0/../../../libgfortran.so: warning: warning: reference to compatibility cabsf()
/usr/bin/ld: /usr/local/gcc7/lib/gcc/armv7--netbsdelf-eabihf/7.5.0/../../../libgfortran.so: warning: warning: reference to compatibility cabs()
/usr/bin/ld: /usr/local/gcc7/lib/gcc/armv7--netbsdelf-eabihf/7.5.0/../../../libgfortran.so: undefined reference to `_Unwind_VRS_Get@GCC_3.5'
/usr/bin/ld: /usr/local/gcc7/lib/gcc/armv7--netbsdelf-eabihf/7.5.0/../../../libgfortran.so: undefined reference to `_Unwind_Backtrace@GCC_4.3.0'
collect2: error: ld returned 1 exit status
*** Error code 1
Stop.
make[1]: stopped in /usr/pkgsrc/math/blas/work/lapack-3.9.0/build/CMakeFiles/CMakeTmp
gmake: *** [Makefile:140: cmTC_77106/fast] Error 1
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
-- Configuring incomplete, errors occurred!
See also "/usr/pkgsrc/math/blas/work/lapack-3.9.0/build/CMakeFiles/CMakeOutput.log".
See also "/usr/pkgsrc/math/blas/work/lapack-3.9.0/build/CMakeFiles/CMakeError.log".
*** Error code 1
Stop.
make[2]: stopped in /usr/pkgsrc/math/blas
*** Error code 1
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
From: coypu@sdf.org
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/55772: pkgsrc/math/blas fails to compile on earmv7hf
Date: Sun, 1 Nov 2020 16:18:58 +0000
I'm guessing gcc7 is missing the patch to make netbsd/arm use DWARF. It
should be available on the latest GCC source code (and probably gcc10).
Need to backport it.
From: coypu@sdf.org
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/55772: pkgsrc/math/blas fails to compile on earmv7hf
Date: Sun, 1 Nov 2020 16:20:34 +0000
/usr/local/gcc7/lib/gcc/armv7--netbsdelf-eabihf/7.5.0/../../../libgfortran.so:
warning: warning: reference to compatibility cabsf()
This is another bug relating to gcc.
I expect GFORTRAN_VERSION=10 (and removing some libtool packages) will
work as a temporary workaround until gcc7 is patched.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.