Created attachment 233750 [details] make.conf See Also: bug 261974 with LTO enabled, build of Python8 fails with: checking for --with-lto... yes checking for llvm-ar... no configure: error: llvm-ar is required for a --with-lto build with clang but could not be found. But llvm-ar is installed at the following location. # /usr/local/llvm10/bin/llvm-ar /usr/local/llvm10/bin/llvm-ar: error: an archive name must be specified OVERVIEW: LLVM Archiver config.log is empty. disabling --with-lto permits build, it is just this check FreeBSD 11.3-RELEASE-p8 #0 r360490
Created attachment 233751 [details] /var/ports/usr/ports/lang/python38/work/Python-3.8.13/config.log
Created attachment 233752 [details] output of pkg version -v
FreeBSD 11.3 is EOL: https://www.freebsd.org/security/unsupported/
1. There is no lang/python8* or lang/python4* port 2. The reporter runs an unsupported FreeBSD version (ships with gcc 4.2 and clang 8; no llvm-ar in base.txz) 3. Maybe adding llvm=10 to DEFAULT_VERSIONS+= in /etc/make.conf helps?
(In reply to Herbert J. Skuhra from comment #4) ad 3) and rebuilding the llvm10 port.
My typo in title change.