Summary: | sci-libs/hdf5-1.10.5-r1[fortran] with slibtool: relocation R_X86_64_PC32 against symbol `__h5fortran_types_MOD_fortran_integer_avail_kinds' can not be used when making a shared object; recompile with -fPIC | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alessandro Barbieri <lssndrbarbieri> |
Component: | Current packages | Assignee: | Gentoo Science Related Packages <sci> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ionen, sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 765709 | ||
Attachments: | buildlog |
Description
Alessandro Barbieri
2021-03-10 21:32:17 UTC
Created attachment 690591 [details]
buildlog
(please avoid using tar when compressing >1MB build.log) Easiest way to fix this is by appending -fPIC to FCFLAGS in the ebuild, GNU libtool seems to be doing it automatically for some reason... The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efb09755aa2d0231c64b1564593345d160e9ad05 commit efb09755aa2d0231c64b1564593345d160e9ad05 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-03-20 02:20:10 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-03-20 02:20:10 +0000 sci-libs/hdf5: fix build with slibtool It's not completely clear how slibtool should've known to append -fPIC, but let's not worry too much for now. Closes: https://bugs.gentoo.org/775305 Signed-off-by: Sam James <sam@gentoo.org> sci-libs/hdf5/hdf5-1.10.5-r1.ebuild | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) I don't fully understand how, but I strongly suspect GNU libtool implicitly adds -fPIC itself for --tag=FC. Probably the best that can be done is enable it for those builds when it is truly needed, do all fortran builds actually need it? In /usr/bin/libtool there is this line: # ### BEGIN LIBTOOL TAG CONFIG: FC And shortly below it: # Additional compiler flags for building library objects. pic_flag=" -fPIC" |