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-14 15:10, Connor McLaughlan wrote:

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

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
===> 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:
-- 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
   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/obj/CMakeFiles/CMakeTmp

     Run Build Command(s):/usr/pkg/bin/gmake cmTC_ae8be/fast && make
-f CMakeFiles/cmTC_ae8be.dir/build.make
     Building Fortran object CMakeFiles/cmTC_ae8be.dir/testFortranCompiler.f.o
     /usr/pkgsrc/math/blas/work/.cwrapper/bin/gfortran   -O -c
-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
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_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

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

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

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.


Home | Main Index | Thread Index | Old Index