Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831452 - sci-astronomy/wcslib-7.4 fails to compile: checking for dummy main to link with Fortran 77 libraries.. unknown
Summary: sci-astronomy/wcslib-7.4 fails to compile: checking for dummy main to link wi...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Astronomy project
URL:
Whiteboard:
Keywords:
: 874735 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-01-19 08:03 UTC by Agostino Sarubbo
Modified: 2023-05-26 10:14 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,43.82 KB, text/plain)
2022-01-19 08:03 UTC, Agostino Sarubbo
Details
1-config.log (1-config.log,83.13 KB, text/plain)
2022-01-19 08:03 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-01-19 08:03:09 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

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

NOTE:
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

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

1-config.log
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. ***