pkgsrc-Bugs archive

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

pkg/56337: BLAS/lapack fails to build with gfortran + PKGSRC_MKPIE



>Number:         56337
>Category:       pkg
>Synopsis:       BLAS/lapack fails to build with gfortran + PKGSRC_MKPIE
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 30 06:55:00 +0000 2021
>Originator:     nia
>Release:        current
>Organization:
The NetBSD Foundation
>Environment:
NetBSD 9.2 amd64
>Description:
=> Bootstrap dependency digest>=20010302: found digest-20190127
=> Checksum SHA1 OK for lapack-3.9.1.tar.gz
=> Checksum RMD160 OK for lapack-3.9.1.tar.gz
=> Checksum SHA512 OK for lapack-3.9.1.tar.gz
===> Installing dependencies for blas-3.9.1
=> Tool dependency cmake>=2.8.1nb1: found cmake-3.20.5
=> Build dependency cwrappers>=20150314: found cwrappers-20180325
=> Full dependency gcc7>=7.0: found gcc7-7.5.0nb5
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
===> Overriding tools for blas-3.9.1
===> Extracting for blas-3.9.1
===> Patching for blas-3.9.1
=> Applying pkgsrc patches for blas-3.9.1
===> Creating toolchain wrappers for blas-3.9.1
===> Configuring for blas-3.9.1
=> 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: /tmp/work/math/blas/work/.cwrapper/bin/gfortran
-- Check for working Fortran compiler: /tmp/work/math/blas/work/.cwrapper/bin/gfortran - broken
CMake Error at /usr/pkg/share/cmake-3.20/Modules/CMakeTestFortranCompiler.cmake:51 (message):
  The Fortran compiler

    "/tmp/work/math/blas/work/.cwrapper/bin/gfortran"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /tmp/work/math/blas/work/lapack-3.9.1/build/CMakeFiles/CMakeTmp
    
    Run Build Command(s):/tmp/work/math/blas/work/.tools/bin/make -f Makefile cmTC_8abc5/fast && /tmp/work/math/blas/work/.tools/bin/make  -f CMakeFiles/cmTC_8abc5.dir/build.make CMakeFiles/cmTC_8abc5.dir/build
    Building Fortran object CMakeFiles/cmTC_8abc5.dir/testFortranCompiler.f.o
    /tmp/work/math/blas/work/.cwrapper/bin/gfortran   -O -c /tmp/work/math/blas/work/lapack-3.9.1/build/CMakeFiles/CMakeTmp/testFortranCompiler.f -o CMakeFiles/cmTC_8abc5.dir/testFortranCompiler.f.o
    Linking Fortran executable cmTC_8abc5
    /usr/pkg/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8abc5.dir/link.txt --verbose=1
    /tmp/work/math/blas/work/.cwrapper/bin/gfortran -Wl,-z,relro -Wl,-z,now -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib  -O  CMakeFiles/cmTC_8abc5.dir/testFortranCompiler.f.o -o cmTC_8abc5 
    /usr/bin/ld: CMakeFiles/cmTC_8abc5.dir/testFortranCompiler.f.o: relocation R_X86_64_32S against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
    /usr/bin/ld: final link failed: nonrepresentable section on output
    collect2: error: ld returned 1 exit status
    *** Error code 1
    
    Stop.
    make[1]: stopped in /tmp/work/math/blas/work/lapack-3.9.1/build/CMakeFiles/CMakeTmp
    *** Error code 1
    
    Stop.
    make: stopped in /tmp/work/math/blas/work/lapack-3.9.1/build/CMakeFiles/CMakeTmp
    
    

  

  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 "/tmp/work/math/blas/work/lapack-3.9.1/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/work/math/blas/work/lapack-3.9.1/build/CMakeFiles/CMakeError.log".
*** Error code 1

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

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

>How-To-Repeat:
Set PKGSRC_USE_MKPIE, run build of math/blas.
>Fix:
Please.


Home | Main Index | Thread Index | Old Index