<div dir="auto"><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I am configuring a openmp runtime build this way:<br>
<br>
 cmake -G Ninja -DCMAKE_BUILD_TYPE=Release \<br>
        -DCMAKE_INSTALL_PREFIX=$PROJECT/kitayama1/dev/clang \<br>
        -DCLANG_OPENMP_NVPTX_DEFAULT_ARCH=sm_80 \<br>
        -DLIBOMPTARGET_NVPTX_COMPUTE_CAPABILITIES=80 \<br>
        -DCMAKE_C_COMPILER=clang \<br>
        -DCMAKE_CXX_COMPILER=clang++ \<br>
        -DLLVM_ENABLE_RUNTIMES="openmp" \<br>
        $SCRATCH/kitayama1/projects/llvm-project/llvm</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><br>
... however I see a build error:<br>
<br>... CCcore-9.3.0/bin/ld:<br>
undefined reference to `std::_Sp_make_shared_tag::_S_eq(std::type_info<br>
const&)<br></blockquote></div><div dir="auto"><br></div><div dir="auto">Cmake invocation looks fine. It appears the static llvm libraries linked have been built with incompatible c++ flags to the other libraries found on your system.</div><div dir="auto"><br></div><div dir="auto">A few options come to mind. You could pass the flags to disable zlib et al, search for what compiler flag (or maybe libc++ version) corresponds to that symbol and pass the options to the llvm build, or look up how the other libraries were built and change that.</div><div dir="auto"><br></div><div dir="auto">Clang builds are probably tested against the libraries that ship with Linux distributions. The paths in your error message suggest you're using some other source for them. Maybe a HPC module system of some sort? Can't see how to debug that from the outside. Maybe contact whoever set up the zlib etc builds.</div><div dir="auto"><br></div><div dir="auto">Jon</div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div>