tech-pkg archive

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

Re: net/nmap and liblinear



			Hi tech-pkg@,

> On Sun, May 02, 2021 at 06:51:03PM +0000, John Klos wrote:
> > The default option for nmap is to include liblinear, which then brings in
> > the entirety of gcc by way of lapack. This is true even of -current systems
> > which already have gcc 10.3.0.
> 
> No opinion on nmap, but just to clarify - lapack is (partially)
> written in fortran and the base system does not provide a fortran
> compiler, that's why the gcc package is pulled in.

This also breaks building with PKGSRC_MKPIE:
(Suggestions for a fix welcome)

> CMake Error at /opt/pkgsrc/share/cmake-3.19/Modules/CMakeTestFortranCompiler.cmake:51 (message):
>   The Fortran compiler
> 
>     "/opt/pkgsrc/work/math/blas/work/.cwrapper/bin/gfortran"
> 
>   is not able to compile a simple test program.
> 
>   It fails with the following output:
> 
>     Change Dir: /opt/pkgsrc/work/math/blas/work/lapack-3.9.0/build/CMakeFiles/CMakeTmp
> 
>     Run Build Command(s):/opt/pkgsrc/bin/gmake cmTC_aba7f/fast && make  -f CMakeFiles/cmTC_aba7f.dir/build.make CMakeFiles/cmTC_aba7f.dir/build
>     Building Fortran object CMakeFiles/cmTC_aba7f.dir/testFortranCompiler.f.o
>     /opt/pkgsrc/work/math/blas/work/.cwrapper/bin/gfortran   -O -c /opt/pkgsrc/work/math/blas/work/lapack-3.9.0/build/CMakeFiles/CMakeTmp/testFortranCompiler.f -o CMakeFiles/cmTC_aba7f.dir/testFortranCompiler.f.o
>     Linking Fortran executable cmTC_aba7f
>     /opt/pkgsrc/bin/cmake -E cmake_link_script CMakeFiles/cmTC_aba7f.dir/link.txt --verbose=1
>     /opt/pkgsrc/work/math/blas/work/.cwrapper/bin/gfortran -Wl,-z,relro -Wl,-z,now -L/opt/pkgsrc/lib -Wl,-R/opt/pkgsrc/lib -L/usr/lib -Wl,-R/usr/lib  -O  CMakeFiles/cmTC_aba7f.dir/testFortranCompiler.f.o -o cmTC_aba7f
>     /usr/bin/ld: CMakeFiles/cmTC_aba7f.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 /opt/pkgsrc/work/math/blas/work/lapack-3.9.0/build/CMakeFiles/CMakeTmp
>     gmake: *** [Makefile:140: cmTC_aba7f/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 "/opt/pkgsrc/work/math/blas/work/lapack-3.9.0/build/CMakeFiles/CMakeOutput.log".
> See also "/opt/pkgsrc/work/math/blas/work/lapack-3.9.0/build/CMakeFiles/CMakeError.log".
> *** Error code 1
> 
> Stop.
> bmake[3]: stopped in /usr/pkgsrc/math/blas
> *** Error code 1
> 
> Stop.
> bmake[2]: stopped in /usr/pkgsrc/math/blas
> *** Error code 1
> 
> Stop.
> bmake[1]: stopped in /usr/pkgsrc/math/liblinear
> *** Error code 1
> 
> Stop.
> bmake: stopped in /usr/pkgsrc/net/nmap


--
khorben

Attachment: signature.asc
Description: Message signed with OpenPGP



Home | Main Index | Thread Index | Old Index