<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/83669>83669</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Building LLVM pass out of source - undefined symbols
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          BestToYou
      </td>
    </tr>
</table>

<pre>
    FAILED: skeleton/SkeletonPass.dylib 
: && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -std=c++17 -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -bundle -Wl,-headerpad_max_install_names -Wl,-dead_strip -o skeleton/SkeletonPass.dylib skeleton/CMakeFiles/SkeletonPass.dir/Skeleton.cpp.o -L/Users/besttoyou/代码阅读/clang-llvm/lib -Wl,-rpath,@loader_path/../lib -Wl,-rpath,/Users/besttoyou/代码阅读/clang-llvm/lib && :
ld: Undefined symbols:
  llvm::raw_ostream::write(char const*, unsigned long), referenced from:
      llvm::raw_ostream::operator<<(llvm::StringRef) in Skeleton.cpp.o
  llvm::SmallVectorBase<unsigned int>::mallocForGrow(void*, unsigned long, unsigned long, unsigned long&), referenced from:
      llvm::SmallVectorTemplateBase<std::__1::function<void (llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>&, llvm::OptimizationLevel)>, false>::mallocForGrow(unsigned long, unsigned long&) in Skeleton.cpp.o
  llvm::SmallVectorBase<unsigned int>::set_size(unsigned long), referenced from:
      llvm::SmallVectorTemplateBase<std::__1::function<void (llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>&, llvm::OptimizationLevel)>, false>::push_back(std::__1::function<void (llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>&, llvm::OptimizationLevel)> const&) in Skeleton.cpp.o
  llvm::PreservedAnalyses::AllAnalysesKey, referenced from:
      llvm::PreservedAnalyses::all() in Skeleton.cpp.o
  llvm::SmallPtrSetImplBase::insert_imp_big(void const*), referenced from:
      llvm::SmallPtrSetImplBase::insert_imp(void const*) in Skeleton.cpp.o
  llvm::errs(), referenced from:
      (anonymous namespace)::SkeletonPass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) in Skeleton.cpp.o
  llvm::SmallVectorBase<unsigned int>::size() const, referenced from:
  
  
  
  this is why?
  
  
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsVk1v2zgQ_TXjCyHBJv0hHXzwlxZFEzRYt93uSaCokcUNRQokldT99QvKdu0mTZoUuSywhgHLM0-cN8PH4XDn5E4jzmGyhMl6wDtfGztfovMfzd-mGxSm3M-zxburzRrYgrhbVOiNBpptj4833Lm43CtZEBiuYbgIOKBToFMCNFu0rZKCe2m0A5p9EabEmLct0GxltEftg3mNd6hMixZo9tEYJWouz_g1VrxTPv4q_MkHNOtcQBf9swC6BLokkfMlsPXx72hGoh2JuBU14baZjkkk3d5ZY_zvUbtR3FfGNsF-zcWH7Ze4PZoeILfr92fQaBzT2JW3JCo6XSok0V8K6CqqkZdoW17mDf-aS-08VyrXvEF3gpTIy9x5K1sSmV-U_8K7uua3mEmF7hFU2gtTLNo2NiS6App9cmgDvEDnvdmbDmgGmzEsl7BgsJnBYgjJCDYppAkkE9gksMiCl2ZCcb2LlLoLZQhUjuxty30NdAXjoTIh1_xgyOL4CeDb0jjJkC0O0lRlEOcnXWIlNZbE7ZvCKPfdT0j_Mgsatvw-N85b5EfDvZUegSai5pYIo50HugC6Ip3uD1FJlNE7oGmwWazQohZYksqa5iJC-DwTJeiHe2OBrcKXJmfs1lupd39iBTQlUpMfN_FxBtuGK_UZhTd2yR0CW31nKrUHtjnAAsqIzNg_rLkHmtwZWf48s18bpq9M_4LiR2zCWcIj1f4gB0iejw4PVadFOKvAVoEi-aE2Qd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