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 Fri, Aug 14, 2020 at 11:24 PM Jason Bacon <> wrote:

> Before we spend any time trying to debug this, can you try wip/blas?
> This update is in the queue to be committed soon anyway.
>      JB

I get the same error with wip/blas; see output below.

I am unsure if this is an error of blas by calling the undefined
reference in or by gcc7 to have experienced an error
during building of its fortran compiler.

bash-5.0# nm /usr/pkg/gcc7/lib/gcc/sparc64--netbsd/7.5.0/../../../
| grep cab
                 U __c99_cabs
                 U __c99_cabsf
                 U __c99_cabsl
00000000000fcab0 T _gfortran_eoshift0_2
                 U cabs
                 U cabsf
                 U cabsl


bash-5.0# bmake package
=> Bootstrap dependency digest>=20010302: found digest-20190127
=> Fetching lapack-3.9.0.tar.gz
=> Total size: 7534567 bytes
Redirected to
  7357 KiB  218.46 KiB/s
7534567 bytes retrieved in 00:33 (218.46 KiB/s)
=> Checksum SHA1 OK for lapack-3.9.0.tar.gz
=> Checksum RMD160 OK for lapack-3.9.0.tar.gz
=> Checksum SHA512 OK for lapack-3.9.0.tar.gz
===> Installing dependencies for blas-3.9.0
=> Tool dependency bsdtar-[0-9]*: found bsdtar-3.4.3
=> Tool dependency cmake>=2.8.1nb1: found cmake-3.17.3
=> Build dependency cwrappers>=20150314: found cwrappers-20180325
=> Full dependency gcc7>=7.0: found gcc7-7.5.0nb2
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/pkg/sbin/pkg_admin -K /usr/pkg/pkgdb
===> Overriding tools for blas-3.9.0
===> Extracting for blas-3.9.0
===> Patching for blas-3.9.0
=> Applying pkgsrc patches for blas-3.9.0
===> Creating toolchain wrappers for blas-3.9.0
===> Configuring for blas-3.9.0
=> Fixing CMAKE_MODULE_PATH in CMakeLists.txt
-- The Fortran compiler identification is GNU 7.5.0
-- The C compiler identification is GNU 7.4.0
-- Check for working Fortran compiler:
-- Check for working Fortran compiler:
/usr/pkgsrc/wip/blas/work/.cwrapper/bin/gfortran - broken
CMake Error at /usr/pkg/share/cmake-3.17/Modules/CMakeTestFortranCompiler.cmake:45
  The Fortran compiler


  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /usr/pkgsrc/wip/blas/work/lapack-3.9.0/build/CMakeFiles/CMakeTmp

    Run Build Command(s):/usr/pkg/bin/gmake cmTC_6eca5/fast && make
-f CMakeFiles/cmTC_6eca5.dir/build.make
    Building Fortran object CMakeFiles/cmTC_6eca5.dir/testFortranCompiler.f.o
    /usr/pkgsrc/wip/blas/work/.cwrapper/bin/gfortran   -O -c
-o CMakeFiles/cmTC_6eca5.dir/testFortranCompiler.f.o
    Linking Fortran executable cmTC_6eca5
    /usr/pkg/bin/cmake -E cmake_link_script
CMakeFiles/cmTC_6eca5.dir/link.txt --verbose=1
    /usr/pkgsrc/wip/blas/work/.cwrapper/bin/gfortran  -L/usr/pkg/lib
-Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib  -O
CMakeFiles/cmTC_6eca5.dir/testFortranCompiler.f.o  -o cmTC_6eca5
warning: warning: reference to compatibility cabsf()
warning: warning: reference to compatibility cabs()
undefined reference to `cabsl'
    collect2: error: ld returned 1 exit status
    *** Error code 1

    make[1]: stopped in
    gmake: *** [Makefile:141: cmTC_6eca5/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/wip/blas/work/lapack-3.9.0/build/CMakeFiles/CMakeOutput.log".
See also "/usr/pkgsrc/wip/blas/work/lapack-3.9.0/build/CMakeFiles/CMakeError.log".
*** Error code 1

bmake[1]: stopped in /usr/pkgsrc/wip/blas
*** Error code 1

bmake: stopped in /usr/pkgsrc/wip/blas

Home | Main Index | Thread Index | Old Index