Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947637 - sys-libs/error-standalone-2.0 - ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'error_print_progname'; recompile with -fPIC
Summary: sys-libs/error-standalone-2.0 - ld.lld: error: relocation R_X86_64_PC32 canno...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Haelwenn (lanodan) Monnier
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2025-01-06 20:14 UTC by ernsteiswuerfel
Modified: 2025-01-07 02:24 UTC (History)
2 users (show)

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


Attachments
build.log (error-standalone-2.0:20250106-185728.log,3.20 KB, text/plain)
2025-01-06 20:14 UTC, ernsteiswuerfel
Details
emerge --info (file_947637.txt,7.71 KB, text/plain)
2025-01-06 20:16 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2025-01-06 20:14:42 UTC
Created attachment 916016 [details]
build.log

[...]
>>> Compiling source in /var/tmp/portage/sys-libs/error-standalone-2.0/work/error-standalone-2.0 ...
make -j1 liberror.so 
clang -O2 -march=znver2 -pipe -c -o error.o error.c
clang -O2 -march=znver2 -pipe -shared -Wl,-soname=liberror.so -o liberror.so error.o -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--as-needed
ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'error_print_progname'; recompile with -fPIC
>>> defined in error.o
>>> referenced by error.c
>>>               error.o:(error)

ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'error_message_count'; recompile with -fPIC
>>> defined in error.o
>>> referenced by error.c
>>>               error.o:(error)

ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'error_one_per_line'; recompile with -fPIC
>>> defined in error.o
>>> referenced by error.c
>>>               error.o:(error_at_line)

ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'error_print_progname'; recompile with -fPIC
>>> defined in error.o
>>> referenced by error.c
>>>               error.o:(error_at_line)

ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'error_message_count'; recompile with -fPIC
>>> defined in error.o
>>> referenced by error.c
>>>               error.o:(error_at_line)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:19: liberror.so] Error 1
 * ERROR: sys-libs/error-standalone-2.0::gentoo failed (compile phase):
 *   emake failed
Comment 1 ernsteiswuerfel archtester 2025-01-06 20:16:27 UTC
Created attachment 916017 [details]
emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2025-01-07 02:24:14 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f3a942123c4e34827481ddc5cf05cf0cf174a07

commit 8f3a942123c4e34827481ddc5cf05cf0cf174a07
Author:     Haelwenn (lanodan) Monnier <contact@hacktivis.me>
AuthorDate: 2025-01-06 22:36:31 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-01-07 02:22:46 +0000

    sys-libs/error-standalone: append-flags -fPIC
    
    Closes: https://bugs.gentoo.org/947637
    Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
    Closes: https://github.com/gentoo/gentoo/pull/40018
    Signed-off-by: Sam James <sam@gentoo.org>

 .../{error-standalone-2.0.ebuild => error-standalone-2.0-r1.ebuild}   | 4 ++++
 1 file changed, 4 insertions(+)