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

Bug 831452

Summary: sci-astronomy/wcslib-7.4 fails to compile: checking for dummy main to link with Fortran 77 libraries.. unknown
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo Astronomy project <sci-astronomy>
Status: CONFIRMED ---    
Severity: normal CC: davidroman96, toralf
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2022-01-19 08:03:09 UTC

Issue: sci-astronomy/wcslib-7.4 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

This machine uses CLANG as a compiler and LLD as a linker
Comment 1 Agostino Sarubbo gentoo-dev 2022-01-19 08:03:11 UTC
Created attachment 762536 [details]

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-01-19 08:03:13 UTC
Created attachment 762537 [details]

Comment 3 David Roman 2022-01-21 15:29:22 UTC
Seems that the problem comes from the order of the library paths. The order is the next: -L/lib64 -L/usr/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1 -L/usr/lib64 -L/usr/x86_64-pc-linux-gnu/lib 

bfd it finds the 32 bit version of the libraries and prints a warning (eg: "skipping incompatible /usr/lib/libm.a when searching for -lm"), but lld directly prints an error. Moving /usr/lib64 before /usr/lib solves this issue, although I don't know how to accomplish that with econf.
Comment 4 Pacho Ramos gentoo-dev 2023-05-26 10:14:50 UTC
*** Bug 874735 has been marked as a duplicate of this bug. ***