Bug 262880
| Summary: | [Linux] Mold doesn't like libbacktrace | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Philippe Normand <philn> |
| Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | bugs-noreply, mcatanzaro, vitaly |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Philippe Normand
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
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Philippe Normand
That's when linking JSC.
Michael Catanzaro
Why do you have libbacktrace installed into /usr/lib64 as a *static* library? That's the problem.
Philippe Normand
Indeed! Sorry for the noise.