[Bug 291409] native-xtools fails to build on 15.0-RELEASE for arm64 (libprivatellvm.so missing)
Date: Fri, 05 Dec 2025 02:17:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291409
Bug ID: 291409
Summary: native-xtools fails to build on 15.0-RELEASE for arm64
(libprivatellvm.so missing)
Product: Base System
Version: 15.0-RELEASE
Hardware: amd64
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: bin
Assignee: bugs@FreeBSD.org
Reporter: daz@hyperchronos.org
Created attachment 265864
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=265864&action=edit
make native-xtools build log
Attempting to build native-xtools on amd64 15.0-RELEASE for arm64 fails with an
error that libprivatellvm.so is missing. The full build log is attached.
Here's the section where the error occurs:
--- llvm-ar ---
c++ -target x86_64-unknown-freebsd15.0
--sysroot=/usr/obj/aarch64/usr/src/amd64.amd64/nxb/arm64.aarch64/tmp
-B/usr/obj/aarch64/usr/src/amd64.amd64/nxb/arm64.aarch64/tmp/usr/bin -O2 -pipe
-fno-common
-I/usr/obj/aarch64/usr/src/amd64.amd64/nxb/arm64.aarch64/lib/clang/libllvm
-I/usr/src/lib/clang/include -I/usr/src/contrib/llvm-project/llvm/include
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-DHAVE_VCS_VERSION_INC -DNDEBUG
-DLLVM_DEFAULT_TARGET_TRIPLE=\"aarch64-unknown-freebsd15.0\"
-DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd15.0\" -DDEFAULT_SYSROOT=\"\"
-DLLVM_TARGET_ENABLE_AARCH64 -DLLVM_TARGET_ENABLE_ARM
-DLLVM_TARGET_ENABLE_POWERPC -DLLVM_TARGET_ENABLE_RISCV
-DLLVM_TARGET_ENABLE_X86 -DLLVM_NATIVE_ASMPARSER=LLVMInitializeX86AsmParser
-DLLVM_NATIVE_ASMPRINTER=LLVMInitializeX86AsmPrinter
-DLLVM_NATIVE_DISASSEMBLER=LLVMInitializeX86Disassembler
-DLLVM_NATIVE_TARGET=LLVMInitializeX86Target
-DLLVM_NATIVE_TARGETINFO=LLVMInitializeX86TargetInfo
-DLLVM_NATIVE_TARGETMC=LLVMInitializeX86TargetMC -ffunction-sections
-fdata-sections -ffile-prefix-map=/usr/src=/usr/src
-ffile-prefix-map=/usr/obj/aarch64/usr/src/amd64.amd64/nxb=/usr/obj
-Wno-format-zero-length -Wdate-time -Wno-empty-body -Wno-string-plus-int
-Wno-unused-const-variable -Wno-error=unused-but-set-parameter
-Wno-error=cast-function-type-mismatch -Wno-tautological-compare
-Wno-unused-value -Wno-parentheses-equality -Wno-unused-function
-Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packed-member
-Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses
-Qunused-arguments -fno-exceptions -fno-rtti
-ffile-prefix-map=/usr/src=/usr/src
-ffile-prefix-map=/usr/obj/aarch64/usr/src/amd64.amd64/nxb=/usr/obj -std=c++17
-stdlib=libc++ -Wl,--gc-sections -Wl,-zrelro -static -o llvm-ar
llvm-ar-driver.o llvm-ar.o
/usr/obj/aarch64/usr/src/amd64.amd64/nxb/arm64.aarch64/lib/clang/libllvm/libprivatellvm.so
-lz -lprivatezstd -lcompiler_rt -lcompiler_rt -lcompiler_rt
-lexecinfo -lelf -ltinfow -lcompiler_rt -lcompiler_rt -lcompiler_rt
-lpthread -lc -lsys
c++: error: no such file or directory:
'/usr/obj/aarch64/usr/src/amd64.amd64/nxb/arm64.aarch64/lib/clang/libllvm/libprivatellvm.so'
*** [llvm-ar] Error code 1
make[5]: stopped making "all" in /usr/src/usr.bin/clang/llvm-ar
make[5]: 1 error
make[5]: stopped making "all" in /usr/src/usr.bin/clang/llvm-ar
make[4]: stopped making "all" in /usr/src/usr.bin/clang
--- all_subdir_usr.bin/clang/llvm-nm ---
make[4]: stopped making "all" in /usr/src/usr.bin/clang
--- all_subdir_usr.bin/clang/clang ---
make[4]: stopped making "all" in /usr/src/usr.bin/clang
--- all_subdir_usr.bin/clang/clang-scan-deps ---
make[4]: stopped making "all" in /usr/src/usr.bin/clang
This is on amd64 15.0-RELEASE building for arm64 with make.conf, src.conf, and
src-env.conf all empty. I can reproduce the problem consistently with the
following command:
/usr/src # env -i MAKEOBJDIRPREFIX=/usr/obj/aarch64 make -j 4 TARGET=arm64
TARGET_ARCH=aarch64 native-xtools
--
You are receiving this mail because:
You are the assignee for the bug.