<div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>I'm trying to link my app statically with the upstream LLVM/Clang, but</div><div>I get this at the last stage:</div><div><br></div><div><div>[100%] Linking CXX executable nest</div><div>/usr/lib/gcc/aarch64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `sem_open':</div><div>(.text+0x7810): warning: the use of `mktemp' is dangerous, better use `mkstemp'</div><div>/home/itaru/opt/llvm+clang-upstream/bin/../lib/libomp.a(ompt-general.cpp.o): In function `ompt_start_tool':</div><div>/home/itaru/projects/llvm/projects/openmp/runtime/src/ompt-general.cpp:144: undefined reference to `dlsym'</div><div>/home/itaru/opt/llvm+clang-upstream/bin/../lib/libomp.a(ompt-general.cpp.o): In function `ompt_try_start_tool(unsigned int, char const*)':</div><div>ompt-general.cpp:(.text+0xf00): undefined reference to `dlopen'</div><div>ompt-general.cpp:(.text+0xf20): undefined reference to `dlsym'</div><div>clang-8: error: linker command failed with exit code 1 (use -v to see invocation)</div><div>make[3]: *** [nest/CMakeFiles/nest.dir/build.make:135: nest/nest] Error 1</div><div>make[2]: *** [CMakeFiles/Makefile2:735: nest/CMakeFiles/nest.dir/all] Error 2</div><div>make[1]: *** [CMakeFiles/Makefile2:747: nest/CMakeFiles/nest.dir/rule] Error 2</div><div>make: *** [Makefile:364: nest] Error 2</div></div><div><br></div><div>I'm building a tool placing openmp and clang under projects and tools respectively under the top llvm directory. Any way to disable the OMPT</div><div>completely as currently it is underdevelopment and have no interest in</div><div>using it at the moment.</div><div><br></div></div></div>