I am on 12.1-RELEASE and trying to build LLVM 11. It builds fine but at the end of the installation stage it gives the following error and fails to install: install -m 0644 /usr/ports/devel/llvm11/work/llvm-11.0.0rc4.src/utils/lit/lit/builtin_commands/*.py /usr/ports/devel/llvm11/work/stage/usr/local/lib/python3.7/site-packages/lit11/builtin_commands install -m 0644 /usr/ports/devel/llvm11/work/llvm-11.0.0rc4.src/utils/lit/lit/formats/*.py /usr/ports/devel/llvm11/work/stage/usr/local/lib/python3.7/site-packages/lit11/formats install -s -m 555 /usr/ports/devel/llvm11/work/.build/bin/FileCheck /usr/ports/devel/llvm11/work/stage/usr/local/llvm11/bin/ /bin/ln -f /usr/ports/devel/llvm11/work/stage/usr/local/llvm11/bin/FileCheck /usr/ports/devel/llvm11/work/stage/usr/local/bin/FileCheck11 eck /usr/ports/devel/llvm11/work/stage/usr/local/bin/FileCheck11 /bin/ln -s ld.lld /usr/ports/devel/llvm11/work/stage/usr/local/llvm11/bin/ld ====> Compressing man pages (compress-man) ===> Installing ldconfig configuration file ===> Installing for llvm11-11.0.0.r4 ===> Checking if llvm11 is already installed ===> Registering installation for llvm11-11.0.0.r4 as automatic pkg-static: Unable to access file /usr/ports/devel/llvm11/work/stage/usr/local/llvm11/lib/libLLVMAVRAsmParser.a:No such file or directory pkg-static: Unable to access file /usr/ports/devel/llvm11/work/stage/usr/local/llvm11/lib/libLLVMAVRCodeGen.a:No such file or directory pkg-static: Unable to access file /usr/ports/devel/llvm11/work/stage/usr/local/llvm11/lib/libLLVMAVRDesc.a:No such file or directory pkg-static: Unable to access file /usr/ports/devel/llvm11/work/stage/usr/local/llvm11/lib/libLLVMAVRDisassembler.a:No such file or directory pkg-static: Unable to access file /usr/ports/devel/llvm11/work/stage/usr/local/llvm11/lib/libLLVMAVRInfo.a:No such file or directory *** Error code 74 Stop. make[3]: stopped in /usr/ports/devel/llvm11 *** Error code 1 Stop. make[2]: stopped in /usr/ports/devel/llvm11 *** Error code 1 Stop. make[1]: stopped in /usr/ports/databases/postgresql12-server *** Error code 1 Stop. make: stopped in /usr/ports/databases/postgresql12-server I am trying to build PostgreSQL 12 and it relies on LLVM 11 which is not available in binary form.
OK, I figured what's wrong. I usually build LLVM with BE_NATIVE option. If I instead choose BE_STANDARD backend it builds and installs just fine. This is definitely a bug in the port. I did not test BE_FREEBSD option.
A commit references this bug: Author: brooks Date: Mon Oct 5 19:03:50 UTC 2020 New revision: 551536 URL: https://svnweb.freebsd.org/changeset/ports/551536 Log: Update to 11.0.0rc5. Add the AVR backend to the list of standard backends which should fix builds with BE_NATIVE or BE_FREEBSD. PR: 250029 Reported by: Mohammad S. Babaei MFH: 2020Q4 Changes: head/devel/llvm11/Makefile head/devel/llvm11/distinfo head/devel/llvm11/files/compiler-rt/patch-lib_sanitizer__common_sanitizer__platform__interceptors.h head/devel/llvm11/pkg-plist
Thanks for the report should be fixed now.