Bug#872267: llvm-toolchain-3.8: Please link LLDB with -latomic on powerpcspe

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Tue Aug 15 15:31:58 UTC 2017


On 08/15/2017 05:23 PM, Mathieu Malaterre wrote:
> I am pretty sure this also apply to llvm-toolchain-3.9 &
> llvm-toolchain-4.0, do you want me to clone the bug for those binary
> packages ?

I am not 100% sure whether the problem applies to the newer versions.

At least for 4.0, the failure is different:

[ 90%] Building CXX object tools/lldb/source/API/CMakeFiles/liblldb.dir/SBCommunication.cpp.o
cd /<<PKGBUILDDIR>>/build-llvm/tools/lldb/source/API && /usr/bin/g++-6   -DHAVE_PROCESS_VM_READV -DHAVE_ROUND -DLLDB_DISABLE_LIBEDIT -DLLDB_USE_BUILTIN_DEMANGLER -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/<<PKGBUILDDIR>>/build-llvm/tools/lldb/source/API -I/<<PKGBUILDDIR>>/tools/lldb/source/API -I/<<PKGBUILDDIR>>/tools/lldb/include -I/<<PKGBUILDDIR>>/build-llvm/tools/lldb/include -I/<<PKGBUILDDIR>>/build-llvm/include -I/<<PKGBUILDDIR>>/include -I/usr/include/python2.7 -I/<<PKGBUILDDIR>>/tools/clang/include -I/<<PKGBUILDDIR>>/build-llvm/tools/lldb/../clang/include -I/<<PKGBUILDDIR>>/tools/lldb/source/. -I/<<PKGBUILDDIR>>/tools/lldb/source/Plugins/Process/Linux -I/<<PKGBUILDDIR>>/tools/lldb/source/Plugins/Process/POSIX  -std=c++0x -gsplit-dwarf -Wl,-fuse-ld=gold -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment -Werror=date-time -std=c++11 -ffunction-sections -fdata-sections -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-deprecated-register -Wno-vla-extension -O2 -g -DNDEBUG -fPIC    -fno-exceptions -o CMakeFiles/liblldb.dir/SBCommunication.cpp.o -c /<<PKGBUILDDIR>>/tools/lldb/source/API/SBCommunication.cpp
/<<PKGBUILDDIR>>/tools/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp:158: error: undefined reference to 'lldb_private::process_linux::NativeRegisterContextLinux::CreateHostNativeRegisterContextLinux(lldb_private::ArchSpec const&, lldb_private::NativeThreadProtocol&, unsigned int)'
../../../../lib/liblldbPluginProcessLinux.a(NativeThreadLinux.cpp.o)(.debug_addr+0xa6c): error: undefined reference to 'lldb_private::process_linux::NativeRegisterContextLinux::CreateHostNativeRegisterContextLinux(lldb_private::ArchSpec const&, lldb_private::NativeThreadProtocol&, unsigned int)'
collect2: error: ld returned 1 exit status
tools/lldb/tools/lldb-server/CMakeFiles/lldb-server.dir/build.make:281: recipe for target 'bin/lldb-server-4.0.0' failed

I have checked the upstream sources and couldn't even find any definitions of
CreateHostNativeRegisterContextLinux for the PPC targets. But I also haven't
worked on the LLVM code yet, so it might be just defined elsewhere.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


More information about the Pkg-llvm-team mailing list