Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 919740

Summary: sci-libs/lapack-3.12.0 fails to build with clang-17 and lto enabled
Product: Gentoo Linux Reporter: Chris Pritchard <chris>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: CONFIRMED ---    
Severity: normal CC: abbotta4
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 408963, 618550    
Attachments: build.log

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.