<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Option -DLLVM_LINK_LLVM_DYLIB=ON broken on NetBSD"
   href="https://bugs.llvm.org/show_bug.cgi?id=33496">33496</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Option -DLLVM_LINK_LLVM_DYLIB=ON broken on NetBSD
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>NetBSD
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Backend: X86
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>n54@gmx.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>