Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Dec 2020 01:18:34 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        FreeBSD ports <freebsd-ports@freebsd.org>, Steve Kargl <sgk@troutmask.apl.washington.edu>
Subject:   Re: DEFAULT_VERSIONS+=llvm=90 ignored?
Message-ID:  <4F024E2C-3657-4FB9-A55B-6FA445EDD21B@yahoo.com>
References:  <4F024E2C-3657-4FB9-A55B-6FA445EDD21B.ref@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Steve Kargl sgk at troutmask.apl.washington.edu wrote on:
Fri Dec 4 22:59:46 UTC 2020

> On Fri, Dec 04, 2020 at 11:41:41PM +0100, Jan Beich wrote:
> > Steve Kargl <sgk at troutmask.apl.washington.edu> writes:
> > 
> > > It takes a long time to compile on my laptop.  I have
> > >
> > > DEFAULT_VERSIONS+=llvm=90
> > 
> > Why do you need to redefine current default?
> 
> Simply changed /etc/make.conf on my laptop from 80 to 90
> when I got a similar problem trying to rebuild gnuplot.
> Getting llvm10 when LLVM_DEFAULT=80 or 90 seems dubious.
> 
> > Mk/bsd.default-versions.mk:
> > LLVM_DEFAULT?=		90
> > 
> > > % portmaster -Byd gnuplot
> > > ...
> > >         Install devel/llvm10
> > > ...
> > >         Install devel/llvm90
> > 
> > devel/llvm10 is pinned by graphics/mesa-* likely to reduce QA after a
> > fiasco in bug 239682. Trying to unpin in bug 250869 was rejected.
> > 
> > graphics/mesa-dri/Makefile.common:
> > LLVM_DEFAULT=	10
> 
> Well, I guess that pretty much kills LLVM_DEFAULT for any
> modern hardware (even a 8 year old laptop) that uses drm
> unless a user wants base-system llvm, llvm90, and llvm10 
> installed.  One will certainly be able to compile any
> c/c++ thrown ones way.

LLVM's API seems to be unstable enough from LLVM release to
LLVM release that maintaining many-release build compatibility
for projects using the LLVM API is not all that common.

I expect that graphics/mesa-* is using the LLVM API, not just
clang/clang++ compilers. Base-system LLVM does not provide the
API (too unstable to hold unchanged for a FreeBSD release support
period). So base-system LLVM is not an option for things using
the LLVM API.

Having all ports using the same LLVM API release is probably
not an option (upstream issues).

In other words: software that chooses to be in part based on the
LLVM API tends to lead to needing various vintages of LLVM to
be installed.


===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F024E2C-3657-4FB9-A55B-6FA445EDD21B>