[Bug 182723] graphics/dri fails to build on 9.2-Stable

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Nov 17 23:54:50 UTC 2014


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

--- Comment #5 from Jean-Sebastien Pedron <dumbbell at FreeBSD.org> ---
(In reply to C Hutchinson from comment #4)
> Just so you know; I'm not a GNU C zealot.
> It was just my understanding the FreeBSD supported *both* gcc,
> and clang/llvm, as the tool-chain in base. Given that clang/llvm is
> *much* larger, and as such, slower for (initially) building/installing
> kernel/world. I chose gcc on a fresh install. Thinking I could
> add clang/llvm later, and into userland. After 3 days of investigating
> all of this. I have discovered all of this to be untrue.

I can't comment on other ports, but on the particular case of Mesa, GCC 4.2.1
from base is unable to build Mesa because it's too old (the "invalid suffix on
integer" error you got).

A modern GCC will build Mesa properly. You could put "USE_GCC=yes" globally in
the Makefile (ie. regardless of any .if block). But this isn't very user
friendly: there may be a way to tell "I want to use GCC for all ports" in
/etc/make.conf but I don't know it.

In all cases, Mesa requires LLVM and Clang to build some parts of the Gallium
drivers. For instance, the GLSL engine of the Radeon drivers is based on LLVM,
no matter the compiler used to build the libraries. When the libOpenCL.so port
will be ready for the Ports tree, it will depend on LLVM too. In both cases,
LLVM is used here for its framework beyond the sole C/C++ compiler.

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


More information about the freebsd-x11 mailing list