pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

math/blas not compiling due to gcc7 error



Hi,

i am using pkgsrc-2020Q2 on NetBSD9/sparc64.

I was trying to build math/blas. Earlier in the chain lang/gcc7 was
built and installed seemingly without error.

The compilation of math/blas is not starting, giving an error with the
usability of the libgfortran.so:

bash-5.0# bmake install
=> Bootstrap dependency digest>=20010302: found digest-20190127
===> 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
fetch-pkg-vulnerabilities'.
===> Configuring for blas-3.9.0
cd /usr/pkgsrc/math/blas/work/lapack-3.9.0 && /bin/mkdir -p obj
-- The Fortran compiler identification is GNU 7.5.0
-- The C compiler identification is GNU 7.4.0
-- 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/pkg/share/cmake-3.17/Modules/CMakeTestFortranCompiler.cmake:45
(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/obj/CMakeFiles/CMakeTmp

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

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

Stop.
bmake[1]: stopped in /usr/pkgsrc/math/blas
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/math/blas


Regards,
Connor


Home | Main Index | Thread Index | Old Index