Build Breakpad tools: linux, clang-9, lld-9, libc++

129 views
Skip to first unread message

Stepan Mikhaylov

unread,
Jan 4, 2023, 11:12:12 AM1/4/23
to Google Breakpad Discuss
Hello there,

I am trying to build Google Breakpad including the tools on Ubuntu using clang-9, lld-9, libc++, get getting failure on linking.

Thanks in advance for any help!

Command:
"/usr/bin/ld.lld-9" -z relro --hash-style=gnu --build-id --eh-frame-hdr -m elf_x86_64 -static -o src/tools/linux/pid2md/pid2md /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../x86_64-linux-gnu/crt1.o /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../x86_64-linux-gnu/crti.o /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/crtbeginT.o -L/home/stepan/vcpkg_breakpad/vcpkg/installed/x64-linux-clang9-custom/debug/lib -L/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0 -L/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../x86_64-linux-gnu -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../.. -L/usr/lib/llvm-9/bin/../lib -L/lib -L/usr/lib --no-export-dynamic /usr/lib/llvm-9/lib/libc++.a /usr/lib/llvm-9/lib/libc++abi.a src/tools/linux/pid2md/pid2md.o src/client/linux/libbreakpad_client.a src/common/path_helper.o -lc++ -lm --start-group -lgcc -lgcc_eh -lc -lc --end-group /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/crtend.o /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../x86_64-linux-gnu/crtn.o

Error log:
ld.lld-9: error: duplicate symbol: __lll_lock_wait_private
>>> defined at libc-lowlevellock.o:(__lll_lock_wait_private) in archive /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../x86_64-linux-gnu/libc.a
>>> defined at lowlevellock.S:78 (../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:78)
>>>            lowlevellock.o:(.text+0x0) in archive /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../x86_64-linux-gnu/libpthread.a

Root issue:

Reply all
Reply to author
Forward
0 new messages