Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 878819 Details for
Bug 919740
sci-libs/lapack-3.12.0 fails to build with clang-17 and lto enabled
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
build.log
build.log (text/x-log), 9.96 KB, created by
Chris Pritchard
on 2023-12-11 23:14:57 UTC
(
hide
)
Description:
build.log
Filename:
MIME Type:
Creator:
Chris Pritchard
Created:
2023-12-11 23:14:57 UTC
Size:
9.96 KB
patch
obsolete
> >These are the packages that would be merged, in order: > >Calculating dependencies > * IMPORTANT: 13 news items need reading for repository 'gentoo'. > * Use eselect news read to view new items. > >.... done! >Dependency resolution took 1.95 s (backtrack: 0/20). > >[ebuild R ] sci-libs/lapack-3.12.0::gentoo USE="-deprecated -doc -eselect-ldso -lapacke -test" 0 KiB > >Total: 1 package (1 reinstall), Size of downloads: 0 KiB > >>>> Verifying ebuild manifests > > >>>> Emerging (1 of 1) sci-libs/lapack-3.12.0::gentoo > * lapack-3.12.0.tar.gz BLAKE2B SHA512 size ;-) ... [ ok ] > [32m*[0m Using following Fortran compiler: > [32m*[0m F77: x86_64-pc-linux-gnu-gfortran > [32m*[0m FC: x86_64-pc-linux-gnu-gfortran >>>> Unpacking source... >>>> Unpacking lapack-3.12.0.tar.gz to /var/tmp/portage/sci-libs/lapack-3.12.0/work >>>> Source unpacked in /var/tmp/portage/sci-libs/lapack-3.12.0/work >>>> Preparing source in /var/tmp/portage/sci-libs/lapack-3.12.0/work/lapack-3.12.0 ... > [32m*[0m Source directory (CMAKE_USE_DIR): "/var/tmp/portage/sci-libs/lapack-3.12.0/work/lapack-3.12.0" > [32m*[0m Build directory (BUILD_DIR): "/var/tmp/portage/sci-libs/lapack-3.12.0/work/lapack-3.12.0_build" > [32m*[0m Hardcoded definition(s) removed in CMakeLists.txt: > [32m*[0m set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/sci-libs/lapack-3.12.0/work/lapack-3.12.0 ... > [32m*[0m Source directory (CMAKE_USE_DIR): "/var/tmp/portage/sci-libs/lapack-3.12.0/work/lapack-3.12.0" > [32m*[0m Build directory (BUILD_DIR): "/var/tmp/portage/sci-libs/lapack-3.12.0/work/lapack-3.12.0_build" >cmake -C /var/tmp/portage/sci-libs/lapack-3.12.0/work/lapack-3.12.0_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCBLAS=ON -DLAPACKE=no -DBUILD_DEPRECATED=no -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=no -DLAPACK_TESTING_USE_PYTHON=no -DTEST_FORTRAN_COMPILER=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/sci-libs/lapack-3.12.0/work/lapack-3.12.0_build/gentoo_toolchain.cmake /var/tmp/portage/sci-libs/lapack-3.12.0/work/lapack-3.12.0 >loading initial cache file /var/tmp/portage/sci-libs/lapack-3.12.0/work/lapack-3.12.0_build/gentoo_common_config.cmake >-- The C compiler identification is Clang 17.0.6 >-- The CXX compiler identification is Clang 17.0.6 >-- Detecting C compiler ABI info >-- Detecting C compiler ABI info - done >-- Check for working C compiler: /usr/lib/llvm/17/bin/clang - skipped >-- Detecting C compile features >-- Detecting C compile features - done >-- Detecting CXX compiler ABI info >-- Detecting CXX compiler ABI info - done >-- Check for working CXX compiler: /usr/lib/llvm/17/bin/clang++ - skipped >-- Detecting CXX compile features >-- Detecting CXX compile features - done >-- Checking if build type is 'Coverage' >-- Checking if build type is 'Coverage': 0 >-- Build tests: no >-- Build deprecated routines: no >-- Build single precision real: ON >-- Build double precision real: ON >-- Build single precision complex: ON >-- Build double precision complex: ON >-- Using supplied NETLIB BLAS implementation >-- The Fortran compiler identification is GNU 13.2.1 >-- Detecting Fortran compiler ABI info >-- Detecting Fortran compiler ABI info - done >-- Check for working Fortran compiler: /usr/bin/x86_64-pc-linux-gnu-gfortran - skipped >-- Reducing RELEASE optimization level to O2 >-- CBLAS enabled >-- Detecting Fortran/C Interface >[0mFailed to compile[0m >-- Verifying Fortran/C Compiler Compatibility >[33mCMake Warning (dev) at /usr/share/cmake/Modules/FortranCInterface.cmake:309 (message): > No FortranCInterface mangling known for VerifyFortran >Call Stack (most recent call first): > /usr/share/cmake/Modules/FortranCInterface/Verify/CMakeLists.txt:16 (FortranCInterface_HEADER) >This warning is for project developers. Use -Wno-dev to suppress it. >[0m >-- Verifying Fortran/C Compiler Compatibility - Failed >[31mCMake Error at /usr/share/cmake/Modules/FortranCInterface.cmake:398 (message): > The Fortran compiler: > > /usr/bin/x86_64-pc-linux-gnu-gfortran > > and the C compiler: > > /usr/lib/llvm/17/bin/clang > > failed to compile a simple test project using both languages. The output > was: > > Change Dir: '/var/tmp/portage/sci-libs/lapack-3.12.0/work/lapack-3.12.0_build/CMakeFiles/FortranCInterface/VerifyC' > > Run Build Command(s): /usr/bin/ninja -v VerifyFortranC > [1/7] /usr/bin/x86_64-pc-linux-gnu-gfortran -cpp -I/var/tmp/portage/sci-libs/lapack-3.12.0/work/lapack-3.12.0_build/CMakeFiles/FortranCInterface/VerifyC -march=native -O3 -pipe -flto -frecursive -O2 -DNDEBUG -O2 -E /usr/share/cmake/Modules/FortranCInterface/Verify/VerifyFortran.f -o CMakeFiles/VerifyFortran.dir/VerifyFortran.f-pp.f && /usr/bin/cmake -E cmake_ninja_depends --tdi=CMakeFiles/VerifyFortran.dir/FortranDependInfo.json --lang=Fortran --src=CMakeFiles/VerifyFortran.dir/VerifyFortran.f-pp.f --out=CMakeFiles/VerifyFortran.dir/VerifyFortran.f-pp.f --dep=CMakeFiles/VerifyFortran.dir/VerifyFortran.f-pp.f.d --obj=CMakeFiles/VerifyFortran.dir/VerifyFortran.f.o --ddi=CMakeFiles/VerifyFortran.dir/VerifyFortran.f.o.ddi > [2/7] /usr/bin/cmake -E cmake_ninja_dyndep --tdi=CMakeFiles/VerifyFortran.dir/FortranDependInfo.json --lang=Fortran --dd=CMakeFiles/VerifyFortran.dir/Fortran.dd @CMakeFiles/VerifyFortran.dir/Fortran.dd.rsp > [3/7] /usr/lib/llvm/17/bin/clang -I/var/tmp/portage/sci-libs/lapack-3.12.0/work/lapack-3.12.0_build/CMakeFiles/FortranCInterface/VerifyC -march=native -O3 -pipe -flto=thin -O3 -DNDEBUG -MD -MT CMakeFiles/VerifyFortranC.dir/main.c.o -MF CMakeFiles/VerifyFortranC.dir/main.c.o.d -o CMakeFiles/VerifyFortranC.dir/main.c.o -c /usr/share/cmake/Modules/FortranCInterface/Verify/main.c > [4/7] /usr/lib/llvm/17/bin/clang -I/var/tmp/portage/sci-libs/lapack-3.12.0/work/lapack-3.12.0_build/CMakeFiles/FortranCInterface/VerifyC -march=native -O3 -pipe -flto=thin -O3 -DNDEBUG -MD -MT CMakeFiles/VerifyFortranC.dir/VerifyC.c.o -MF CMakeFiles/VerifyFortranC.dir/VerifyC.c.o.d -o CMakeFiles/VerifyFortranC.dir/VerifyC.c.o -c /usr/share/cmake/Modules/FortranCInterface/Verify/VerifyC.c > [5/7] /usr/bin/x86_64-pc-linux-gnu-gfortran -I/usr/share/cmake/Modules/FortranCInterface/Verify -I/var/tmp/portage/sci-libs/lapack-3.12.0/work/lapack-3.12.0_build/CMakeFiles/FortranCInterface/VerifyC -march=native -O3 -pipe -flto -frecursive -O2 -DNDEBUG -O2 -fpreprocessed -c CMakeFiles/VerifyFortran.dir/VerifyFortran.f-pp.f -o CMakeFiles/VerifyFortran.dir/VerifyFortran.f.o > [6/7] : && /usr/bin/cmake -E rm -f libVerifyFortran.a && /usr/lib/llvm/17/bin/llvm-ar qc libVerifyFortran.a CMakeFiles/VerifyFortran.dir/VerifyFortran.f.o && /usr/lib/llvm/17/bin/llvm-ranlib libVerifyFortran.a && : > [7/7] : && /usr/lib/llvm/17/bin/clang -march=native -O3 -pipe -flto=thin -O3 -DNDEBUG -Wl,-O2 -Wl,--as-needed -Wl,-z,pack-relative-relocs -fuse-ld=bfd CMakeFiles/VerifyFortranC.dir/main.c.o CMakeFiles/VerifyFortranC.dir/VerifyC.c.o -o VerifyFortranC libVerifyFortran.a -lgfortran -lm -lgcc_s -lgcc -lquadmath -lm -lgcc_s -lgcc -lgcc_s -lgcc && : > FAILED: VerifyFortranC > : && /usr/lib/llvm/17/bin/clang -march=native -O3 -pipe -flto=thin -O3 -DNDEBUG -Wl,-O2 -Wl,--as-needed -Wl,-z,pack-relative-relocs -fuse-ld=bfd CMakeFiles/VerifyFortranC.dir/main.c.o CMakeFiles/VerifyFortranC.dir/VerifyC.c.o -o VerifyFortranC libVerifyFortran.a -lgfortran -lm -lgcc_s -lgcc -lquadmath -lm -lgcc_s -lgcc -lgcc_s -lgcc && : > /usr/bin/x86_64-pc-linux-gnu-ld.bfd: /var/tmp/portage/sci-libs/lapack-3.12.0/temp/lto-llvm-036e79.o: in function `main': > main.c:(.text.main+0x15): undefined reference to `VerifyFortran' > clang: error: linker command failed with exit code 1 (use -v to see invocation) > ninja: build stopped: subcommand failed. > > >Call Stack (most recent call first): > CBLAS/CMakeLists.txt:13 (FortranCInterface_VERIFY) > >[0m >-- Configuring incomplete, errors occurred! > [31;01m*[0m ERROR: sci-libs/lapack-3.12.0::gentoo failed (configure phase): > [31;01m*[0m cmake failed > [31;01m*[0m > [31;01m*[0m Call stack: > [31;01m*[0m ebuild.sh, line 136: Called src_configure > [31;01m*[0m environment, line 3188: Called cmake_src_configure > [31;01m*[0m environment, line 1591: Called die > [31;01m*[0m The specific snippet of code: > [31;01m*[0m "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed"; > [31;01m*[0m > [31;01m*[0m If you need support, post the output of `emerge --info '=sci-libs/lapack-3.12.0::gentoo'`, > [31;01m*[0m the complete build log and the output of `emerge -pqv '=sci-libs/lapack-3.12.0::gentoo'`. > [31;01m*[0m The complete build log is located at '/var/tmp/portage/sci-libs/lapack-3.12.0/temp/build.log'. > [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/sci-libs/lapack-3.12.0/temp/environment'. > [31;01m*[0m Working directory: '/var/tmp/portage/sci-libs/lapack-3.12.0/work/lapack-3.12.0_build' > [31;01m*[0m S: '/var/tmp/portage/sci-libs/lapack-3.12.0/work/lapack-3.12.0' > >>>> Failed to emerge sci-libs/lapack-3.12.0, Log file: > >>>> '/var/tmp/portage/sci-libs/lapack-3.12.0/temp/build.log' > * Messages for package sci-libs/lapack-3.12.0: > * ERROR: sci-libs/lapack-3.12.0::gentoo failed (configure phase): > * cmake failed > * > * Call stack: > * ebuild.sh, line 136: Called src_configure > * environment, line 3188: Called cmake_src_configure > * environment, line 1591: Called die > * The specific snippet of code: > * "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed"; > * > * If you need support, post the output of `emerge --info '=sci-libs/lapack-3.12.0::gentoo'`, > * the complete build log and the output of `emerge -pqv '=sci-libs/lapack-3.12.0::gentoo'`. > * The complete build log is located at '/var/tmp/portage/sci-libs/lapack-3.12.0/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/sci-libs/lapack-3.12.0/temp/environment'. > * Working directory: '/var/tmp/portage/sci-libs/lapack-3.12.0/work/lapack-3.12.0_build' > * S: '/var/tmp/portage/sci-libs/lapack-3.12.0/work/lapack-3.12.0'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 919740
: 878819