Bug 263801 - lang/python3*: Fails to configure LTO with ports LLVM: checking for llvm-ar... no
Summary: lang/python3*: Fails to configure LTO with ports LLVM: checking for llvm-ar.....
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-python (Nobody)
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2022-05-05 17:20 UTC by gessel
Modified: 2022-05-06 04:56 UTC (History)
4 users (show)

See Also:
koobs: maintainer-feedback? (python)


Attachments
make.conf (1.83 KB, text/plain)
2022-05-05 17:20 UTC, gessel
no flags Details
/var/ports/usr/ports/lang/python38/work/Python-3.8.13/config.log (83.29 KB, text/plain)
2022-05-05 17:23 UTC, gessel
no flags Details
output of pkg version -v (8.42 KB, text/plain)
2022-05-05 17:24 UTC, gessel
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description gessel 2022-05-05 17:20:18 UTC
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
Comment 1 gessel 2022-05-05 17:23:42 UTC
Created attachment 233751 [details]
/var/ports/usr/ports/lang/python38/work/Python-3.8.13/config.log
Comment 2 gessel 2022-05-05 17:24:13 UTC
Created attachment 233752 [details]
output of pkg version -v
Comment 3 Herbert J. Skuhra 2022-05-05 17:31:04 UTC
FreeBSD 11.3 is EOL:

https://www.freebsd.org/security/unsupported/
Comment 4 Herbert J. Skuhra 2022-05-06 04:47:39 UTC
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?
Comment 5 Herbert J. Skuhra 2022-05-06 04:48:23 UTC
(In reply to Herbert J. Skuhra from comment #4)

ad 3) and rebuilding the llvm10 port.
Comment 6 Kubilay Kocak freebsd_committer freebsd_triage 2022-05-06 04:56:24 UTC
My typo in title change.