pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: mk/mesa.buildlink3.mk: MESA_TYPE



Hi!

Thanks for testing.

If I google correctly, this is a C23 feature (fixed-underlying-type
enums), so

USE_CC_FEATURES+= c23

should be the proper fix. This will pull in gcc 14, though 13 might be
enough for this particular feature.

Can you give that a try?
 Thomas

On Thu, Nov 26, 2026 at 05:43:51PM +0100, David Brownlee wrote:
> I'm getting an error when trying to build with the default gcc version
> 12.5.0 on netbsd-11 (error below). Seems to build fine with
> GCC_REQD=13 or 14...
> 
> Thanks
> 
> David
> 
> In file included from ../src/intel/compiler/jay/jay_private.h:8,
>                  from src/intel/compiler/jay/jay_nir_algebraic.c:1:
> ../src/intel/compiler/jay/jay_ir.h:521:22: error: expected identifier
> or '(' before ':' token
>   521 | enum jay_predication : uint8_t {
>       |                      ^
> ../src/intel/compiler/jay/jay_ir.h:595:25: error: field 'predication'
> has incomplete type
>   595 |    enum jay_predication predication;
>       |                         ^~~~~~~~~~~
> ../src/intel/compiler/jay/jay_ir.h: In function 'jay_inst_has_default':
> ../src/intel/compiler/jay/jay_ir.h:645:29: error:
> 'JAY_PREDICATED_DEFAULT' undeclared (first use in this function)
>   645 |    return I->predication >= JAY_PREDICATED_DEFAULT;
>       |                             ^~~~~~~~~~~~~~~~~~~~~~
> ../src/intel/compiler/jay/jay_ir.h:645:29: note: each undeclared
> identifier is reported only once for each function it appears in
> At top level:
> 
> 
> On Wed, 25 Nov 2026 at 14:46, Thomas Klausner <wiz%netbsd.org@localhost> wrote:
> >
> > Hi!
> >
> > I've just added mk/mesa.buildlink3.mk (based on the
> > jpeg.buildlink3.mk) for selecting between the very old
> > graphics/MesaLib and the new graphics/mesa packages. The default stays
> > the same as before, graphics/MesaLib.
> >
> > They are the same codebase, just years apart.
> >
> > I'll be (locally) switching to mesa and seeing how it goes,
> > i.e. setting
> >
> > MESA_DEFAULT=mesa
> >
> > in my /etc/mk.conf.
> >
> > Please give it a try as well, so we know what would be affected when
> > we switch to graphics/mesa by default (definitely not before the next
> > branch).
> >
> > I see that mesa is currently not building in the SmartOS builds, so if
> > someone could fix that, I'd appreciate it.
> >
> > Cheers,
> >  Thomas


Home | Main Index | Thread Index | Old Index