| Summary: | liblapacke.a is not relocatable | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | michel zou <xantares09> |
| Component: | RPM Packages | Assignee: | All Packagers <pkg-bugs> |
| Status: | NEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | joequant, lewyssmith |
| Version: | 9 | ||
| Target Milestone: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | lapack-3.11.0-1.mga9.src.rpm | CVE: | |
| Status comment: | |||
|
Description
michel zou
2023-11-10 15:50:31 CET
from the log: [213/312] installing lib64lapack3-3.11.0-1.mga9 ... [264/312] installing lib64lapack-devel-3.11.0-1.mga9 ... [268/312] installing lib64lapack-static-devel-3.11.0-1.mga9 here is the full build log: https://build.opensuse.org/public/build/science:openturns/Mageia_9/x86_64/hmat-oss/_log
sturmvogel
2023-11-10 18:26:31 CET
Source RPM:
https://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/9/SRPMS/core/release/lapack-3.11.0-1.mga9.src.rpm =>
lapack-3.11.0-1.mga9.src.rpm Michel, sorry to have left you; and thank you for the report. How did you encounter this? Please say what problem results from your diagnosis. Your complaint comes I suppose from the end of comment 0: [ 32s] /usr/bin/ld: /usr/lib64/liblapacke.a(lapacke_sgeqrf.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC [ 32s] /usr/bin/ld: failed to set dynamic section sizes: bad value [ 32s] collect2: error: ld returned 1 exit status From the Suse build log: [ 33s] /usr/bin/c++ -fPIC -I/usr/include/lapacke ... It is a complicated subject, and I got the impression that compiling with PIC (Position Independant Code) is normal, even though in some situations not strictly necessary. It could be an isolated case where the compile flag -fPIC is missing, but begs the question of whether there are others. No one packager deals with this, so assigning it globally. CC'ing Joseph who last committed it. Assignee:
bugsquad =>
pkg-bugs Hello, the -fPIC flag is present in the log I'm showing because I'm try to build a shared lib that links to lapacke static lib. Now if -fPIC its not used when linking lapack itself (in mageai's lib64lapack-static-devel package) then we get the error "relocation R_X86_64_32 ... can not be used when making a shared object" |