Created attachment 218908 [details] CMakeError.log 12.1-p10 amd64. llvm10-10.0.1_1 was build fine, but current llvm10-10.0.1_2 failed. BE_AMDGPU : on BE_FREEBSD : off BE_NATIVE : on BE_STANDARD : off CLANG : on COMPILER_RT : on DOCS : off EXTRAS : on GOLD : on LIT : on LLD : on LLDB : on LLD_LINK : on OPENMP : on PYCLANG : on After [4573/4573] error: -- Looking for rpc/xdr.h -- Looking for rpc/xdr.h - not found CMake Warning at cmake/Modules/CompilerRTUtils.cmake:245 (message): llvm-config finding xray failed with status 1 Call Stack (most recent call first): CMakeLists.txt:77 (load_llvm_config) CMake Warning at cmake/Modules/CompilerRTUtils.cmake:269 (message): testingsupport library not installed, some tests will be skipped Call Stack (most recent call first): CMakeLists.txt:77 (load_llvm_config) CMake Error at cmake/Modules/CompilerRTUtils.cmake:293 (include): include could not find load file: /tmp/work/usr/ports/devel/llvm10/work/lib/cmake/llvm/LLVMConfig.cmake Call Stack (most recent call first): CMakeLists.txt:77 (load_llvm_config) -- Found PythonInterp: /usr/local/bin/python3.7 (found version "3.7.9") CMake Error at cmake/Modules/CompilerRTUtils.cmake:317 (string): string sub-command REPLACE requires at least four arguments. Call Stack (most recent call first): CMakeLists.txt:106 (construct_compiler_rt_default_triple) ............... -- Builtin supported architectures: -- Configuring incomplete, errors occurred! See also "/tmp/work/usr/ports/devel/llvm10/work/compiler-rt-build/CMakeFiles/CMakeOutput.log". See also "/tmp/work/usr/ports/devel/llvm10/work/compiler-rt-build/CMakeFiles/CMakeError.log". *** Error code 1
Created attachment 218909 [details] CMakeOutput.log
Seeing the same build error in a 12.1-RELEASE-p10 amd64 jail. http://pkg.awarnach.mathstat.dal.ca/data/12amd64-default/2020-10-19_23h49m44s/logs/errors/llvm10-10.0.1_2.log
I got "-- Configuring done" without fial. I use cmake-3.18.3 instead of 3.18.4.
Build failed in condition comment #3. The fact that cmake is new doesn't seem to matter.
A commit references this bug: Author: kevans Date: Tue Oct 20 11:38:05 UTC 2020 New revision: 552813 URL: https://svnweb.freebsd.org/changeset/ports/552813 Log: devel/llvm10: fix the patch added in r552764 A stray semicolon would cause llvm binaries to segfault as they always get the wrong "executable path" on 12.1/11.4. Only test built on -CURRENT, which doesn't use this path. =( Pointy hat: kevans PR: 250478, 250448 MFH: 2020Q4 (implicit, build fix) Changes: head/devel/llvm10/files/patch-lib_Support_Unix_Path.inc
Steal; this is my fault. Note the rpc/xdr.h bit is a red herring: CMake Warning at cmake/Modules/CompilerRTUtils.cmake:245 (message): llvm-config finding xray failed with status 1 =(
A commit references this bug: Author: kevans Date: Tue Oct 20 13:25:18 UTC 2020 New revision: 552818 URL: https://svnweb.freebsd.org/changeset/ports/552818 Log: MFH: r552813 devel/llvm10: fix the patch added in r552764 A stray semicolon would cause llvm binaries to segfault as they always get the wrong "executable path" on 12.1/11.4. Only test built on -CURRENT, which doesn't use this path. =( Pointy hat: kevans PR: 250478, 250448 Approved by: ports-secteam (implicit, build fix) Changes: _U branches/2020Q4/ branches/2020Q4/devel/llvm10/files/patch-lib_Support_Unix_Path.inc
Fix was confirmed on 12.1/i386 and MFH'd; sorry for the breakage!