<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="">I am trying to build the runtime on MacOS, but Cmake is failing.<div class=""><br class=""></div><div class=""><div class=""><font face="Courier New" class="">$ git branch </font></div><div class=""><font face="Courier New" class=""> master</font></div><div class=""><font face="Courier New" class=""> release/11.x</font></div><div class=""><font face="Courier New" class="">* release/12.x</font></div><div class=""><font face="Courier New" class=""><br class=""></font></div><div class=""><font face="Courier New" class="">$ git describe</font></div><div class=""><font face="Courier New" class="">llvmorg-12.0.0-rc1-51-ge8cdcaeae406</font></div><div class=""><font face="Courier New" class=""><br class=""></font></div><div class=""><font face="Courier New" class="">$ cat JimConfig.sh</font></div><div class=""><font face="Courier New" class="">// Config script</font></div><div class=""><div class=""><font face="Courier New" class="">BUILD_SYSTEM=Ninja</font></div><div class=""><font face="Courier New" class="">BUILD_TAG=ninja</font></div><div class=""><font face="Courier New" class="">INSTALLDIR=$HOME/software/clang-12.0.0/arm64</font></div><div class=""><font face="Courier New" class=""><br class=""></font></div><div class=""><font face="Courier New" class="">cmake ../llvm \</font></div><div class=""><font face="Courier New" class=""> -G$BUILD_SYSTEM -B ${BUILD_TAG}_build \</font></div><div class=""><font face="Courier New" class=""> -DCMAKE_OSX_ARCHITECTURES='arm64' \</font></div><div class=""><font face="Courier New" class=""> -DCMAKE_C_COMPILER=`which clang` \</font></div><div class=""><font face="Courier New" class=""> -DCMAKE_CXX_COMPILER=`which clang++` \</font></div><div class=""><font face="Courier New" class=""> -DCMAKE_BUILD_TYPE=Release \</font></div><div class=""><font face="Courier New" class=""> -DCMAKE_INSTALL_PREFIX=$INSTALLDIR \</font></div><div class=""><font face="Courier New" class=""> -DLLVM_LOCAL_RPATH=$INSTALLDIR/lib \</font></div><div class=""><font face="Courier New" class=""> -DLLVM_ENABLE_WERROR=FALSE \</font></div><div class=""><font face="Courier New" class=""> -DLLVM_TARGETS_TO_BUILD='AArch64' \</font></div><div class=""><font face="Courier New" class=""> -DLLVM_DEFAULT_TARGET_TRIPLE='aarch64-apple-darwin20.2.0' \</font></div><div class=""><font face="Courier New" class=""> -DDEFAULT_SYSROOT="$(xcrun --show-sdk-path)" \</font></div><div class=""><font face="Courier New" class=""> -DLLVM_ENABLE_PROJECTS=‘openmp'</font></div></div><div class=""><font face="Courier New" class=""><br class=""></font></div><div class=""><div class=""><font face="Courier New" class="">$ sh JimConfig.sh </font></div><div class=""><font face="Courier New" class="">-- clang project is disabled</font></div><div class=""><font face="Courier New" class="">-- clang-tools-extra project is disabled</font></div><div class=""><font face="Courier New" class="">-- compiler-rt project is disabled</font></div><div class=""><font face="Courier New" class="">-- debuginfo-tests project is disabled</font></div><div class=""><font face="Courier New" class="">-- libc project is disabled</font></div><div class=""><font face="Courier New" class="">-- libclc project is disabled</font></div><div class=""><font face="Courier New" class="">-- libcxx project is disabled</font></div><div class=""><font face="Courier New" class="">-- libcxxabi project is disabled</font></div><div class=""><font face="Courier New" class="">-- libunwind project is disabled</font></div><div class=""><font face="Courier New" class="">-- lld project is disabled</font></div><div class=""><font face="Courier New" class="">-- lldb project is disabled</font></div><div class=""><font face="Courier New" class="">-- mlir project is disabled</font></div><div class=""><font face="Courier New" class="">-- openmp project is enabled</font></div><div class=""><font face="Courier New" class="">-- parallel-libs project is disabled</font></div><div class=""><font face="Courier New" class="">-- polly project is disabled</font></div><div class=""><font face="Courier New" class="">-- pstl project is disabled</font></div><div class=""><font face="Courier New" class="">-- flang project is disabled</font></div><div class=""><font face="Courier New" class="">-- Found libtool - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool</font></div><div class=""><font face="Courier New" class="">-- Native target X86 is not selected; lli will not JIT code</font></div><div class=""><font face="Courier New" class="">-- Threads enabled.</font></div><div class=""><font face="Courier New" class="">-- Doxygen disabled.</font></div><div class=""><font face="Courier New" class="">-- Go bindings disabled.</font></div><div class=""><font face="Courier New" class="">-- Ninja version: 1.10.2</font></div><div class=""><font face="Courier New" class="">-- Found ld64 - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld</font></div><div class=""><font face="Courier New" class="">-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) </font></div><div class=""><font face="Courier New" class="">-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) </font></div><div class=""><font face="Courier New" class="">-- OCaml bindings disabled.</font></div><div class=""><font face="Courier New" class="">-- LLVM host triple: x86_64-apple-darwin20.2.0</font></div><div class=""><font face="Courier New" class="">-- LLVM default target triple: aarch64-apple-darwin20.2.0</font></div><div class=""><font face="Courier New" class="">CMake Warning at cmake/modules/HandleLLVMOptions.cmake:261 (message):</font></div><div class=""><font face="Courier New" class=""> -fPIC is not supported.</font></div><div class=""><font face="Courier New" class="">Call Stack (most recent call first):</font></div><div class=""><font face="Courier New" class=""> cmake/modules/HandleLLVMOptions.cmake:297 (add_flag_or_print_warning)</font></div><div class=""><font face="Courier New" class=""> CMakeLists.txt:698 (include)</font></div><div class=""><font face="Courier New" class=""><br class=""></font></div><div class=""><font face="Courier New" class=""><br class=""></font></div><div class=""><font face="Courier New" class="">-- Targeting AArch64</font></div><div class=""><font face="Courier New" class="">CMake Error at /Users/jcownie/llvm-project/openmp/CMakeLists.txt:93 (add_subdirectory):</font></div><div class=""><font face="Courier New" class=""> The binary directory</font></div><div class=""><font face="Courier New" class=""><br class=""></font></div><div class=""><font face="Courier New" class=""> /Users/jcownie/llvm-project/build_aarch64/ninja_build/projects/openmp/runtime</font></div><div class=""><font face="Courier New" class=""><br class=""></font></div><div class=""><font face="Courier New" class=""> is already used to build a source directory. It cannot be used to build</font></div><div class=""><font face="Courier New" class=""> source directory</font></div><div class=""><font face="Courier New" class=""><br class=""></font></div><div class=""><font face="Courier New" class=""> /Users/jcownie/llvm-project/openmp/runtime</font></div><div class=""><font face="Courier New" class=""><br class=""></font></div><div class=""><font face="Courier New" class=""> Specify a unique binary directory name.</font></div><div class=""><font face="Courier New" class=""><br class=""></font></div><div class=""><font face="Courier New" class=""><br class=""></font></div><div class=""><font face="Courier New" class="">-- Registering Bye as a pass plugin (static build: OFF)</font></div><div class=""><font face="Courier New" class="">-- Failed to find LLVM FileCheck</font></div><div class=""><font face="Courier New" class="">-- Version: 0.0.0</font></div><div class=""><font face="Courier New" class="">-- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES -- failed to compile</font></div><div class=""><font face="Courier New" class="">-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile</font></div><div class=""><font face="Courier New" class="">-- Performing Test HAVE_POSIX_REGEX -- success</font></div><div class=""><font face="Courier New" class="">-- Performing Test HAVE_STEADY_CLOCK -- success</font></div><div class=""><font face="Courier New" class="">-- Configuring incomplete, errors occurred!</font></div><div class=""><font face="Courier New" class="">See also "/Users/jcownie/llvm-project/build_aarch64/ninja_build/CMakeFiles/CMakeOutput.log".</font></div><div class=""><font face="Courier New" class="">See also "/Users/jcownie/llvm-project/build_aarch64/ninja_build/CMakeFiles/CMakeError.log".</font></div><div class=""><font face="Courier New" class="">$ </font></div></div><div class=""><br class=""></div><div class="">This previously worked (with an older version of 12.0).</div><div class=""><br class=""></div><div class="">Suggestions, please...</div><div class=""><br class=""></div><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=""></div></body></html>