Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919740 - sci-libs/lapack-3.12.0 fails to build with clang-17 and lto enabled
Summary: sci-libs/lapack-3.12.0 fails to build with clang-17 and lto enabled
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-clang lto
  Show dependency tree
 
Reported: 2023-12-11 23:14 UTC by Chris Pritchard
Modified: 2024-04-04 17:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,9.96 KB, text/x-log)
2023-12-11 23:14 UTC, Chris Pritchard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Pritchard 2023-12-11 23:14:13 UTC
lapack fails to build when testing for fortran during the configure phase with bfd as a linker.

Resolved by turning off LTO.
Comment 1 Chris Pritchard 2023-12-11 23:14:57 UTC
Created attachment 878819 [details]
build.log

main.c:(.text.main+0x15): undefined reference to `VerifyFortran' seems to be the main culprit!
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-11 23:16:31 UTC
note wrt linker: We have to use bfd here because clang->gfortran (we don't have flang yet). with lld, we get the standard 'undefined reference to main' thing because lld doesn't support gcc lto.