NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

toolchain/56178: gdb fails to link when building with clang



>Number:         56178
>Category:       toolchain
>Synopsis:       gdb fails to link when building with clang
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 15 14:55:00 +0000 2021
>Originator:     Miko
>Release:        trunk
>Organization:
>Environment:
Linux zenorus 5.12.4-1-uwu #1 SMP PREEMPT Fri, 14 May 2021 12:29:03 +0000 x86_64 GNU/Linux
>Description:
Relevant error:
--- dependall-gpl3 ---
--- gdb ---
#      link  gdb/gdb
/drive2/obj/tooldir.Linux-5.12.4-1-uwu-x86_64/bin/x86_64--netbsd-clang++    --sysroot=/drive2/obj/destdir.amd64 -Wl,--warn-shared-textrel -Wl,-z,relro   -pie      -o gdb  gdb.o  -Wl,-rpath-link,/drive2/obj/destdir.amd64/lib  -L=/lib -L/drive2/obj/external/gpl3/gdb/lib/libgdb -lgdb -L/drive2/obj/external/gpl3/gdb/lib/libopcodes -lopcodes  -L/drive2/obj/external/gpl3/gdb/lib/libbfd -lbfd  -L/drive2/obj/external/gpl3/gdb/lib/libdecnumber -ldecnumber  -L/drive2/obj/external/gpl3/gdb/lib/libgdbsupport -lgdbsupport  -L/drive2/obj/external/gpl3/gdb/lib/libctf -lctf  -L/drive2/obj/external/gpl3/gdb/lib/libgnulib -lgnulib  -L/drive2/obj/external/gpl3/gdb/lib/libreadline -lreadline  -lterminfo  -L/drive2/obj/external/gpl3/gdb/lib/libiberty -liberty -lexpat -llzma -lz -lcurses -lintl -lm -lkvm -lutil -lpthread    
/drive2/obj/tooldir.Linux-5.12.4-1-uwu-x86_64/bin/x86_64--netbsd-ld: /drive2/obj/external/gpl3/gdb/lib/libgdb/libgdb.a(string_view-selftests.o): in function `std::__1::basic_filebuf<char, std::__1::char_traits<char> >::basic_filebuf()':
string_view-selftests.c:(.text._ZNSt3__113basic_filebufIcNS_11char_traitsIcEEEC2Ev[_ZNSt3__113basic_filebufIcNS_11char_traitsIcEEEC2Ev]+0x56): undefined reference to `std::__1::codecvt<char, char, int>::id'
/drive2/obj/tooldir.Linux-5.12.4-1-uwu-x86_64/bin/x86_64--netbsd-ld: string_view-selftests.c:(.text._ZNSt3__113basic_filebufIcNS_11char_traitsIcEEEC2Ev[_ZNSt3__113basic_filebufIcNS_11char_traitsIcEEEC2Ev]+0x86): undefined reference to `std::__1::codecvt<char, char, int>::id'
/drive2/obj/tooldir.Linux-5.12.4-1-uwu-x86_64/bin/x86_64--netbsd-ld: /drive2/obj/external/gpl3/gdb/lib/libgdb/libgdb.a(string_view-selftests.o): in function `std::__1::basic_filebuf<char, std::__1::char_traits<char> >::imbue(std::__1::locale const&)':
string_view-selftests.c:(.text._ZNSt3__113basic_filebufIcNS_11char_traitsIcEEE5imbueERKNS_6localeE[_ZNSt3__113basic_filebufIcNS_11char_traitsIcEEE5imbueERKNS_6localeE]+0x13): undefined reference to `std::__1::codecvt<char, char, int>::id'
x86_64--netbsd-clang: error: linker command failed with exit code 1 (use -v to see invocation)

>How-To-Repeat:
Build a release using build.sh with llvm enabled.
>Fix:



Home | Main Index | Thread Index | Old Index