Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 May 2022 11:39:26 +1000
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        gessel@blackrosetech.com, freebsd-python@FreeBSD.org
Subject:   Re: configure: error: llvm-ar is required for a --with-lto build with clang but could not be found. python38-3.8.13_1
Message-ID:  <2229da3c-a643-03ff-b986-902f9145e1e5@FreeBSD.org>
In-Reply-To: <e0d0f20f-b797-0efb-f5fe-016ac572149a@blackrosetech.com>
References:  <e0d0f20f-b797-0efb-f5fe-016ac572149a@blackrosetech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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








Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2229da3c-a643-03ff-b986-902f9145e1e5>