[Bug 238906] graphics/mesa-dri: Allow building without LLVM

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jul 2 18:15:46 UTC 2019


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

--- Comment #10 from Niclas Zeising <zeising at FreeBSD.org> ---
(In reply to Helge Oldach from comment #7)
> (In reply to Niclas Zeising from comment #4)
> > Adding more options and complexity to mesa is not desirable.
> 
> Actually this option was in place until a few days ago! It was called
> MESA_LLVM_VER. Setting this Makefile variable to an empty string had
> effectively suppressed any LLVM dependency. Please cross-check with the
> previous Makefile and Makefile.common before the recent update. And yes,
> Mesa has indeed been working fine in the non accelerated case.

This was never supported, and the fact that it did work was an accident.
> 
> I understand the background of the recent build unification for other
> platforms, however for the common amd64 and i386 cases this took away a nice
> feature.
> 
> > The reason we use llvm from ports is two fold. First off, it gives us
> > one unified version of llvm+mesa across all of FreeBSD, which lessens
> > the diversity and makes the port easier to test and maintain. Secondly,
> > and perhaps more importantly, as already been pointed out, the libraries
> > that mesa needs are not provided by base llvm.
> 
> Story is clear, but the price is extremely high. In my case it has almost
> doubled the disk size of port installation. Also compilation is a burden -
> LLVM takes hours to build on less capable platforms - it's an order of
> magnitude more than just Mesa alone!
> 
> Furthermore this price is paid even when it's not needed - for example in
> the not too unusual case of a stock Intel CPU with built-in graphics.
> 
> > We understand that this can be resource intensive for some people
> 
> It's not the people, it basically disallows using 3d graphics on less
> capable platforms, and even on decent platforms it's a burden. This really
> should be made more lightweight.

It is possible to install both llvm and mesa from pkg, they work quite well,
and you don't have to build everything yourself.

Changing the mesa ports to make llvm optional, even if possible, makes these
already quite complex ports even more complex, and adds further use cases to
test for.  All this requires more man power.

Regards
Niclas Zeising
FreeBSD Graphics Team

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-x11 mailing list