NetBSD Problem Report #55992

From  Sat Feb 13 15:42:11 2021
Return-Path: <>
Received: from ( [])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 167421A923C
	for <>; Sat, 13 Feb 2021 15:42:11 +0000 (UTC)
Message-Id: <>
Date: Sat, 13 Feb 2021 14:25:49 +0000 (UTC)
Subject: math/blas fails on NetBSD/sparc64
X-Send-Pr-Version: 3.95

>Number:         55992
>Category:       pkg
>Synopsis:       math/blas fails on NetBSD/sparc64
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 13 15:45:00 +0000 2021
>Last-Modified:  Sat Feb 13 16:00:02 +0000 2021
>Originator:     John Klos
>Release:        NetBSD 9.0_STABLE


System: NetBSD 9.0_STABLE NetBSD 9.0_STABLE (GENERIC) #0: Fri May 1 22:54:09 UTC 2020 sparc64
Architecture: sparc64
Machine: sparc64

An update of math/blas (required for nmap) fails on NetBSD/sparc64 with:

-- Check for working Fortran compiler: /usr/pkgsrc/math/blas/work/.cwrapper/bin/gfortran - broken
CMake Error at /usr/local/share/cmake-3.17/Modules/CMakeTestFortranCompiler.cmake:45 (message):
  The Fortran compiler


  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_cc304/fast && make  -f CMakeFiles/cmTC_cc304.dir/build.make CMakeFiles/cmTC_cc304.dir/build
    Building Fortran object CMakeFiles/cmTC_cc304.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_cc304.dir/testFortranCompiler.f.o
    Linking Fortran executable cmTC_cc304
    /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_cc304.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_cc304.dir/testFortranCompiler.f.o  -o cmTC_cc304 
    /usr/bin/ld: /usr/local/gcc7/lib/gcc/sparc64--netbsd/7.5.0/../../../ warning: warning: reference to compatibility cabsf()
    /usr/bin/ld: /usr/local/gcc7/lib/gcc/sparc64--netbsd/7.5.0/../../../ warning: warning: reference to compatibility cabs()
    /usr/bin/ld: /usr/local/gcc7/lib/gcc/sparc64--netbsd/7.5.0/../../../ undefined reference to `cabsl'
    collect2: error: ld returned 1 exit status
    *** Error code 1

    make[1]: stopped in /usr/pkgsrc/math/blas/work/lapack-3.9.0/build/CMakeFiles/CMakeTmp
    gmake: *** [Makefile:141: cmTC_cc304/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



From: "Maya Rashish" <>
Subject: PR/55992 CVS commit: pkgsrc/lang
Date: Sat, 13 Feb 2021 15:56:18 +0000

 Module Name:	pkgsrc
 Committed By:	maya
 Date:		Sat Feb 13 15:56:18 UTC 2021

 Modified Files:
 	pkgsrc/lang/gcc10: Makefile distinfo
 	pkgsrc/lang/gcc10-libs: Makefile
 	pkgsrc/lang/gcc10/patches: patch-gcc_config_aarch64_aarch64-builtins.c
 	pkgsrc/lang/gcc6: Makefile distinfo
 	pkgsrc/lang/gcc6-libs: Makefile
 	pkgsrc/lang/gcc7: Makefile distinfo
 	pkgsrc/lang/gcc7-libs: Makefile
 	pkgsrc/lang/gcc7/patches: patch-gcc_config_aarch64_aarch64-builtins.c
 	pkgsrc/lang/gcc8: Makefile distinfo
 	pkgsrc/lang/gcc8-libs: Makefile
 	pkgsrc/lang/gcc8/patches: patch-gcc_config_aarch64_aarch64-builtins.c
 	pkgsrc/lang/gcc9: Makefile distinfo
 	pkgsrc/lang/gcc9-libs: Makefile
 Added Files:
 	pkgsrc/lang/gcc10/patches: patch-gcc_config_sparc_sparc.c
 	pkgsrc/lang/gcc6/patches: patch-gcc_config_sparc_sparc.c
 	pkgsrc/lang/gcc7/patches: patch-gcc_config_sparc_sparc.c
 	pkgsrc/lang/gcc8/patches: patch-gcc_config_sparc_sparc.c
 	pkgsrc/lang/gcc9/patches: patch-gcc_config_sparc_sparc.c

 Log Message:
 lang/gcc{6,7,8,9,0}: call SUBTARGET_INIT_BUILTINS on sparc* too

 While here point out that the aarch64 equivalent patch was sent upstream.
 Bump PKGREVISION. fix gcc*-libs PKGREVISION accordingly.

 Fixes PR pkg/55992: math/blas fails on NetBSD/sparc64
 Fixes report by Connor McLaughlan on pkgsrc-users

 To generate a diff of this commit:
 cvs rdiff -u -r1.7 -r1.8 pkgsrc/lang/gcc10/Makefile
 cvs rdiff -u -r1.5 -r1.6 pkgsrc/lang/gcc10/distinfo
 cvs rdiff -u -r1.1 -r1.2 pkgsrc/lang/gcc10-libs/Makefile
 cvs rdiff -u -r1.1 -r1.2 \
 cvs rdiff -u -r0 -r1.1 \
 cvs rdiff -u -r1.29 -r1.30 pkgsrc/lang/gcc6/Makefile
 cvs rdiff -u -r1.18 -r1.19 pkgsrc/lang/gcc6/distinfo
 cvs rdiff -u -r1.14 -r1.15 pkgsrc/lang/gcc6-libs/Makefile
 cvs rdiff -u -r0 -r1.1 \
 cvs rdiff -u -r1.36 -r1.37 pkgsrc/lang/gcc7/Makefile
 cvs rdiff -u -r1.18 -r1.19 pkgsrc/lang/gcc7/distinfo
 cvs rdiff -u -r1.11 -r1.12 pkgsrc/lang/gcc7-libs/Makefile
 cvs rdiff -u -r1.1 -r1.2 \
 cvs rdiff -u -r0 -r1.1 \
 cvs rdiff -u -r1.24 -r1.25 pkgsrc/lang/gcc8/Makefile
 cvs rdiff -u -r1.13 -r1.14 pkgsrc/lang/gcc8/distinfo
 cvs rdiff -u -r1.11 -r1.12 pkgsrc/lang/gcc8-libs/Makefile
 cvs rdiff -u -r1.1 -r1.2 \
 cvs rdiff -u -r0 -r1.1 \
 cvs rdiff -u -r1.28 -r1.29 pkgsrc/lang/gcc9/Makefile
 cvs rdiff -u -r1.6 -r1.7 pkgsrc/lang/gcc9/distinfo
 cvs rdiff -u -r1.3 -r1.4 pkgsrc/lang/gcc9-libs/Makefile
 cvs rdiff -u -r0 -r1.1 \

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.