On 2/05/2022 3:11 am, David Gessel wrote:
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.



# /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

-David



Hi David, thanks for the report.

LTO support for python3* landed a little prematurely via:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261974

See comment 2 and comment 5 in particular, as this is an example of the "and the build system is not very robust with respect to toolchains" issue described, and where handling it at the framework rather than third party build system level tends to be more robust.

Please open an issue:

- "lang/python*: Fails to configure with ports llvm10"
- With issue 261974 in See Also:
- With python@, myself and pkubaj@ in CC
- Include: /etc/make.conf, /var/run/dmesg.boot, pkg version -v outputs as attachments
- Include: full build log as an attachment (compressed if necessary
- Include: WRKSRC/config.log as an attachment (compressed if necessary)

Thanks






Reply via email to