[llvm-bugs] [Bug 33496] New: Option -DLLVM_LINK_LLVM_DYLIB=ON broken on NetBSD

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jun 17 15:27:00 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=33496

            Bug ID: 33496
           Summary: Option -DLLVM_LINK_LLVM_DYLIB=ON broken on NetBSD
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: NetBSD
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: n54 at gmx.com
                CC: llvm-bugs at lists.llvm.org

Building LLVM on NetBSD with the -DLLVM_LINK_LLVM_DYLIB=ON option breaks.

[ 84%] Linking CXX executable ../../bin/llvm-config
CMakeFiles/llvm-config.dir/llvm-config.cpp.o: In function
`GetExecutablePath[abi:cxx11](char const*)':
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/tools/llvm-config/llvm-config.cpp:231:
undefined reference to `llvm::sys::fs::getMainExecutable[abi:cxx11](char
const*, void*)'
CMakeFiles/llvm-config.dir/llvm-config.cpp.o: In function
`ComputeLibsForComponents(std::vector<llvm::StringRef,
std::allocator<llvm::StringRef> > const&, bool, bool,
std::function<std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> > (llvm::StringRef const&)> const*,
std::vector<std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > > >*,
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&)':
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/tools/llvm-config/llvm-config.cpp:158:
undefined reference to `llvm::StringRef::lower[abi:cxx11]() const'
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/tools/llvm-config/llvm-config.cpp:162:
undefined reference to `llvm::errs()'
CMakeFiles/llvm-config.dir/llvm-config.cpp.o: In function `main':
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/tools/llvm-config/llvm-config.cpp:284:
undefined reference to
`llvm::sys::fs::make_absolute(llvm::SmallVectorImpl<char>&)'
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/tools/llvm-config/llvm-config.cpp:286:
undefined reference to `llvm::sys::path::parent_path(llvm::StringRef,
llvm::sys::path::Style)'
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/tools/llvm-config/llvm-config.cpp:286:
undefined reference to `llvm::sys::path::parent_path(llvm::StringRef,
llvm::sys::path::Style)'
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/tools/llvm-config/llvm-config.cpp:337:
undefined reference to `llvm::sys::fs::make_absolute(llvm::Twine const&,
llvm::SmallVectorImpl<char>&)'
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/tools/llvm-config/llvm-config.cpp:353:
undefined reference to `llvm::Triple::normalize[abi:cxx11](llvm::StringRef)'
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/tools/llvm-config/llvm-config.cpp:353:
undefined reference to `llvm::Triple::Triple(llvm::Twine const&)'
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/tools/llvm-config/llvm-config.cpp:395:
undefined reference to `llvm::Twine::str[abi:cxx11]() const'
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/tools/llvm-config/llvm-config.cpp:403:
undefined reference to `llvm::Twine::str[abi:cxx11]() const'
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/tools/llvm-config/llvm-config.cpp:470:
undefined reference to `llvm::outs()'
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/tools/llvm-config/llvm-config.cpp:542:
undefined reference to `llvm::Triple::normalize[abi:cxx11](llvm::StringRef)'
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/tools/llvm-config/llvm-config.cpp:582:
undefined reference to `llvm::errs()'
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/tools/llvm-config/llvm-config.cpp:710:
undefined reference to `llvm::errs()'
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/tools/llvm-config/llvm-config.cpp:615:
undefined reference to `llvm::errs()'
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/tools/llvm-config/llvm-config.cpp:622:
undefined reference to `llvm::errs()'
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/tools/llvm-config/llvm-config.cpp:627:
undefined reference to `llvm::errs()'
CMakeFiles/llvm-config.dir/llvm-config.cpp.o: In function
`llvm::sys::fs::equivalent(llvm::Twine const&, llvm::Twine const&)':
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/include/llvm/Support/FileSystem.h:445:
undefined reference to `llvm::sys::fs::equivalent(llvm::Twine const&,
llvm::Twine const&, bool&)'
CMakeFiles/llvm-config.dir/llvm-config.cpp.o: In function
`llvm::sys::fs::exists(llvm::Twine const&)':
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/include/llvm/Support/FileSystem.h:401:
undefined reference to `llvm::sys::fs::access(llvm::Twine const&,
llvm::sys::fs::AccessMode)'
CMakeFiles/llvm-config.dir/llvm-config.cpp.o: In function
`llvm::raw_ostream::operator<<(char)':
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/include/llvm/Support/raw_ostream.h:147:
undefined reference to `llvm::raw_ostream::write(unsigned char)'
CMakeFiles/llvm-config.dir/llvm-config.cpp.o: In function
`llvm::raw_ostream::operator<<(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)':
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/include/llvm/Support/raw_ostream.h:190:
undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
CMakeFiles/llvm-config.dir/llvm-config.cpp.o: In function `operator()':
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/tools/llvm-config/llvm-config.cpp:(.text._ZZ4mainENK3$_0clB5cxx11ERKN4llvm9StringRefEb+0x97):
undefined reference to `llvm::Twine::str[abi:cxx11]() const'
CMakeFiles/llvm-config.dir/llvm-config.cpp.o: In function `usage()':
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/tools/llvm-config/llvm-config.cpp:182:
undefined reference to `llvm::errs()'
CMakeFiles/llvm-config.dir/llvm-config.cpp.o: In function
`llvm::raw_ostream::operator<<(llvm::StringRef)':
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/include/llvm/Support/raw_ostream.h:172:
undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
CMakeFiles/llvm-config.dir/llvm-config.cpp.o: In function
`VisitComponent(std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, llvm::StringMap<AvailableComponent*,
llvm::MallocAllocator> const&, std::set<AvailableComponent*,
std::less<AvailableComponent*>, std::allocator<AvailableComponent*> >&,
std::vector<std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > > >&, bool, bool,
std::function<std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> > (llvm::StringRef const&)> const*,
std::vector<std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > > >*,
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&)':
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/tools/llvm-config/llvm-config.cpp:87:
undefined reference to `llvm::errs()'
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/tools/llvm-config/llvm-config.cpp:89:
undefined reference to `llvm::errs()'
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/tools/llvm-config/llvm-config.cpp:91:
undefined reference to `llvm::errs()'
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/tools/llvm-config/llvm-config.cpp:92:
undefined reference to `llvm::report_fatal_error(char const*, bool)'
CMakeFiles/llvm-config.dir/llvm-config.cpp.o: In function
`std::pair<llvm::StringMapIterator<AvailableComponent*>, bool>
llvm::StringMap<AvailableComponent*,
llvm::MallocAllocator>::try_emplace<>(llvm::StringRef)':
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/include/llvm/ADT/StringMap.h:396:
undefined reference to `llvm::StringMapImpl::LookupBucketFor(llvm::StringRef)'
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/include/llvm/ADT/StringMap.h:408:
undefined reference to `llvm::StringMapImpl::RehashTable(unsigned int)'
CMakeFiles/llvm-config.dir/llvm-config.cpp.o: In function
`llvm::StringMap<AvailableComponent*,
llvm::MallocAllocator>::find(llvm::StringRef) const':
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/include/llvm/ADT/StringMap.h:340:
undefined reference to `llvm::StringMapImpl::FindKey(llvm::StringRef) const'
CMakeFiles/llvm-config.dir/llvm-config.cpp.o: In function `operator()':
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/tools/llvm-config/llvm-config.cpp:(.text._ZZ4mainENK3$_3clB5cxx11ERKN4llvm9StringRefEb+0x176):
undefined reference to `llvm::Twine::str[abi:cxx11]() const'
CMakeFiles/llvm-config.dir/llvm-config.cpp.o: In function
`llvm::SmallVectorTemplateCommon<char, void>::grow_pod(unsigned long, unsigned
long)':
/public/pkgsrc-tmp/wip/llvm-git/work/llvm/include/llvm/ADT/SmallVector.h:82:
undefined reference to `llvm::SmallVectorBase::grow_pod(void*, unsigned long,
unsigned long)'
[ 84%] Building CXX object
tools/bugpoint/CMakeFiles/bugpoint.dir/CrashDebugger.cpp.o
clang-5.0: error: linker command failed with exit code 1 (use -v to see
invocation)
--- bin/llvm-config ---
*** [bin/llvm-config] Error code 1


This option used to work on LLVM-4.0.0.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170617/1a4ad222/attachment.html>


More information about the llvm-bugs mailing list