Bug 262880 - [Linux] Mold doesn't like libbacktrace
Summary: [Linux] Mold doesn't like libbacktrace
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-09 03:14 PDT by Philippe Normand
Modified: 2023-10-09 07:20 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Normand 2023-10-09 03:14:52 PDT
I get a bunch of

mold: error: /usr/lib64/libbacktrace.a(dwarf.o):(.text): R_X86_64_32 relocation at offset 0x5d8 against symbol `<fragment>' can not be used; recompile with -fPIC

When building with clang and with mold enabled:

export CC=clang
export CXX=clang++
export LDFLAGS=-fuse-ld=mold
Comment 1 Philippe Normand 2023-10-09 03:15:32 PDT
That's when linking JSC.
Comment 2 Michael Catanzaro 2023-10-09 05:46:27 PDT
Why do you have libbacktrace installed into /usr/lib64 as a *static* library? That's the problem.
Comment 3 Philippe Normand 2023-10-09 07:20:05 PDT
Indeed! Sorry for the noise.