<div dir="ltr"><br><br>On Sat, 26 Oct 2019 at 22:32, Aditya Atluri <<a href="mailto:aditya.gpu01@gmail.com">aditya.gpu01@gmail.com</a>> wrote:<br>><br>> Hi Dan,<br>> I wasn't expecting a response from you. So, I didn't put effort in writing a detailed email. I am running macOS Mojave (10.14.6)<br>><br>> Attached build script and test program.<br><br>The test program isn't really of any use. Your script doesn't succeed in building clang<br><br>```<br>ninja: error: loading 'build.ninja': No such file or directory<br>Unable to build llvm<br>```<br><br>so there isn't a build of clang available for you to use.<br><br><br>> Let me know if you need any more information<br>><br>> Here is the output log:<br>><br>> -- Sphinx disabled.<br>><br>> -- Linker detection: ld64<br>><br>> -- Found OSX_SYSROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk<br>><br>> ERRORCould not detect OS X Sysroot. Either install Xcode or the Apple Command Line Tools<br><br>That error indicates something is wrong with your compiler toolchain (i.e. what you are using to build llvm/clang/etc...)<br><br>> -- Got ld supported ARCHES: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em<br>><br>> -- Toolchain supported arches: armv6;armv7;armv7s;arm64;arm64e;arm64_32;i386;x86_64;x86_64h;armv6m;armv7k;armv7m;armv7em<br>><br>> -- Finding valid architectures for osx...<br>><br>> CMake Error at projects/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake:68 (message):<br>><br>>   Failed to determine SDK version for "macosx" SDK<br>><br>> Call Stack (most recent call first):<br>><br>>   projects/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake:125 (find_darwin_sdk_version)<br><br>This probably means the call to the following command failed<br><br>```<br>xcodebuild -version -sdk macosx Path<br>```<br><br>That command should work even with just the "Apple Command Line Tools". If it doesn't, then that's a problem. However, based on the other error message it sounds like something is wrong with compiler toolchain.<br><br>><br>>   projects/compiler-rt/cmake/config-ix.cmake:401 (darwin_test_archs)<br>><br>>   projects/compiler-rt/CMakeLists.txt:234 (include)<br>><br>><br>><br>> -- Configuring incomplete, errors occurred!<br>><br>> See also "/Users/aditya/Code/llvm10_x86_64_build_lnx/build_10_x86_64_llvm/CMakeFiles/CMakeOutput.log".<br>><br>> See also "/Users/aditya/Code/llvm10_x86_64_build_lnx/build_10_x86_64_llvm/CMakeFiles/CMakeError.log".<br>><br>> ninja: error: loading 'build.ninja': No such file or directory<br>><br>> Unable to build llvm<br><br><div>Your script `get_llvm_v2.sh` is pulling LLVM sources from the wrong location. LLVM moved to a monorepo layout last week and your script is pulling from the unofficial mirror of LLVM on GitHub.</div><div><br></div><div><br></div></div>