<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Thanks. That has now configured OK and is building. (428/4014) :-)<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 4 Feb 2021, at 14:38, Shilei Tian <<a href="mailto:tianshilei1992@gmail.com" class="">tianshilei1992@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="content-type" content="text/html; charset=utf-8" class=""><div dir="auto" class="">And yes, in the release/12.x branch.<br class=""><br class=""><div dir="ltr" class="">Regards,<div class="">Shilei</div></div><div dir="ltr" class=""><br class=""><blockquote type="cite" class="">On Feb 4, 2021, at 09:37, Shilei Tian <<a href="mailto:tianshilei1992@gmail.com" class="">tianshilei1992@gmail.com</a>> wrote:<br class=""><br class=""></blockquote></div><blockquote type="cite" class=""><div dir="ltr" class=""><meta http-equiv="content-type" content="text/html; charset=utf-8" class="">I’ve reverted the commit so CMake issue should go. <br class=""><br class=""><div dir="ltr" class="">Regards,<div class="">Shilei</div></div><div dir="ltr" class=""><br class=""><blockquote type="cite" class="">On Feb 4, 2021, at 09:33, Jim Cownie <<a href="mailto:jcownie@gmail.com" class="">jcownie@gmail.com</a>> wrote:<br class=""><br class=""></blockquote></div><blockquote type="cite" class=""><div dir="ltr" class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">So this is fixed in the 12.0 branch now?<br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On 4 Feb 2021, at 14:32, Shilei Tian <<a href="mailto:shiltian@cs.stonybrook.edu" class="">shiltian@cs.stonybrook.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Sorry it’s actually a cherry-pick mistake. I’ve reverted the commit.<br class=""><br class="">Regards,<br class="">Shilei<br class=""><br class=""><blockquote type="cite" class="">On Feb 4, 2021, at 09:24, Johannes Doerfert <<a href="mailto:johannesdoerfert@gmail.com" class="">johannesdoerfert@gmail.com</a>> wrote:<br class=""><br class="">Hi Jim,<br class=""><br class="">In order to support various new "features" we changed the way to build the openmp offload support, it is as runtime not a project now. I thought the old way would still work, especially for non-offload openmp, but maybe that was wrong.<br class=""><br class="">Long story short, we should add more cmake magic to either make the old way work properly or emit an appropriate warning.<br class=""><br class="">I think the problem here is that openmp now wants `clang` to be the compiler (mainly for the GPU runtimes). To guarantee we have a matching and capable `clang` we generally like `clang` to be in the enabled projects and openmp in the enabled runtimes (-DLLVM_ENABLE_RUNTIMES="openmp"). Since you build with clang we could verify if the version is recent enough and use it. We also might not need any of this because you don't build the target stuff (explicitly) so we could disable that part and go with whatever compiler was chosen.<br class=""><br class="">@Shilei, @Jon, could you take a look?<br class=""><br class="">~ Johannes<br class=""><br class=""><br class=""><blockquote type="cite" class="">On 2/4/21 6:43 AM, Jim Cownie via Openmp-dev wrote:<br class="">p.s. Note that if I switch to the “master” branch (and add a few more build targets as below), then this failure does not occur.<br class=""> -DLLVM_ENABLE_PROJECTS='clang;openmp;polly;clang-tools-extra;libcxx;libcxxabi'<br class=""><br class=""><blockquote type="cite" class=""><blockquote type="cite" class="">On 4 Feb 2021, at 12:34, Jim Cownie <<a href="mailto:JCOWNIE@GMAIL.COM" class="">JCOWNIE@GMAIL.COM</a>> wrote:<br class=""></blockquote><br class="">I am trying to build the runtime on MacOS, but Cmake is failing.<br class=""><br class="">$ git branch<br class=""> master<br class=""> release/11.x<br class="">* release/12.x<br class=""><br class="">$ git describe<br class="">llvmorg-12.0.0-rc1-51-ge8cdcaeae406<br class=""><br class="">$ cat JimConfig.sh<br class="">// Config script<br class="">BUILD_SYSTEM=Ninja<br class="">BUILD_TAG=ninja<br class="">INSTALLDIR=$HOME/software/clang-12.0.0/arm64<br class=""><br class="">cmake ../llvm \<br class=""> -G$BUILD_SYSTEM -B ${BUILD_TAG}_build \<br class=""> -DCMAKE_OSX_ARCHITECTURES='arm64' \<br class=""> -DCMAKE_C_COMPILER=`which clang` \<br class=""> -DCMAKE_CXX_COMPILER=`which clang++` \<br class=""> -DCMAKE_BUILD_TYPE=Release \<br class=""> -DCMAKE_INSTALL_PREFIX=$INSTALLDIR \<br class=""> -DLLVM_LOCAL_RPATH=$INSTALLDIR/lib \<br class=""> -DLLVM_ENABLE_WERROR=FALSE \<br class=""> -DLLVM_TARGETS_TO_BUILD='AArch64' \<br class=""> -DLLVM_DEFAULT_TARGET_TRIPLE='aarch64-apple-darwin20.2.0' \<br class=""> -DDEFAULT_SYSROOT="$(xcrun --show-sdk-path)" \<br class=""> -DLLVM_ENABLE_PROJECTS=‘openmp'<br class=""><br class="">$ sh JimConfig.sh<br class="">-- clang project is disabled<br class="">-- clang-tools-extra project is disabled<br class="">-- compiler-rt project is disabled<br class="">-- debuginfo-tests project is disabled<br class="">-- libc project is disabled<br class="">-- libclc project is disabled<br class="">-- libcxx project is disabled<br class="">-- libcxxabi project is disabled<br class="">-- libunwind project is disabled<br class="">-- lld project is disabled<br class="">-- lldb project is disabled<br class="">-- mlir project is disabled<br class="">-- openmp project is enabled<br class="">-- parallel-libs project is disabled<br class="">-- polly project is disabled<br class="">-- pstl project is disabled<br class="">-- flang project is disabled<br class="">-- Found libtool - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool<br class="">-- Native target X86 is not selected; lli will not JIT code<br class="">-- Threads enabled.<br class="">-- Doxygen disabled.<br class="">-- Go bindings disabled.<br class="">-- Ninja version: 1.10.2<br class="">-- Found ld64 - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld<br class="">-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)<br class="">-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)<br class="">-- OCaml bindings disabled.<br class="">-- LLVM host triple: x86_64-apple-darwin20.2.0<br class="">-- LLVM default target triple: aarch64-apple-darwin20.2.0<br class="">CMake Warning at cmake/modules/HandleLLVMOptions.cmake:261 (message):<br class=""> -fPIC is not supported.<br class="">Call Stack (most recent call first):<br class=""> cmake/modules/HandleLLVMOptions.cmake:297 (add_flag_or_print_warning)<br class=""> CMakeLists.txt:698 (include)<br class=""><br class=""><br class="">-- Targeting AArch64<br class="">CMake Error at /Users/jcownie/llvm-project/openmp/CMakeLists.txt:93 (add_subdirectory):<br class=""> The binary directory<br class=""><br class=""> /Users/jcownie/llvm-project/build_aarch64/ninja_build/projects/openmp/runtime<br class=""><br class=""> is already used to build a source directory. It cannot be used to build<br class=""> source directory<br class=""><br class=""> /Users/jcownie/llvm-project/openmp/runtime<br class=""><br class=""> Specify a unique binary directory name.<br class=""><br class=""><br class="">-- Registering Bye as a pass plugin (static build: OFF)<br class="">-- Failed to find LLVM FileCheck<br class="">-- Version: 0.0.0<br class="">-- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES -- failed to compile<br class="">-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile<br class="">-- Performing Test HAVE_POSIX_REGEX -- success<br class="">-- Performing Test HAVE_STEADY_CLOCK -- success<br class="">-- Configuring incomplete, errors occurred!<br class="">See also "/Users/jcownie/llvm-project/build_aarch64/ninja_build/CMakeFiles/CMakeOutput.log".<br class="">See also "/Users/jcownie/llvm-project/build_aarch64/ninja_build/CMakeFiles/CMakeError.log".<br class="">$<br class=""><br class="">This previously worked (with an older version of 12.0).<br class=""><br class="">Suggestions, please...<br class=""><br class="">-- Jim<br class="">James Cownie <<a href="mailto:jcownie@gmail.com" class="">jcownie@gmail.com</a> <<a href="mailto:jcownie@gmail.com" class="">mailto:jcownie@gmail.com</a>>><br class="">Mob: +44 780 637 7146<br class=""><br class=""></blockquote><br class="">-- Jim<br class="">James Cownie <<a href="mailto:jcownie@gmail.com" class="">jcownie@gmail.com</a>><br class="">Mob: +44 780 637 7146<br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class="">_______________________________________________<br class="">Openmp-dev mailing list<br class=""><a href="mailto:Openmp-dev@lists.llvm.org" class="">Openmp-dev@lists.llvm.org</a><br class=""><a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev" class="">https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</a><br class=""></blockquote></blockquote></div></div></blockquote></div><br class=""><div class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">-- Jim<br class="">James Cownie <<a href="mailto:jcownie@gmail.com" class="">jcownie@gmail.com</a>><br class="">Mob: +44 780 637 7146<br class=""><br class=""><br class=""><br class=""></div></div>
</div>
<br class=""></div></blockquote></div></blockquote></div></div></blockquote></div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">-- Jim<br class="">James Cownie <<a href="mailto:jcownie@gmail.com" class="">jcownie@gmail.com</a>><br class="">Mob: +44 780 637 7146<br class=""><br class=""><br class=""><br class=""></div></div>
</div>
<br class=""></body></html>