[Mesa-users] Problems while compilation

Brian Paul brianp at vmware.com
Tue Feb 6 17:51:36 UTC 2018


On 02/02/2018 05:21 PM, Zbigniew wrote:
> I wanted to replace somewhat dated Mesa 11 with newest 17.3.3 - I took
> it from "Slackware 64 current" to create package - but after longer
> compilation time there are errors:
> 
> #v+
> Making all in common
> make[6]: Entering directory '/var/tmp/mesa-17.3.3/src/mesa/drivers/dri/common'
> CC utils.lo
> CC dri_util.lo
> CC megadriver_stub.lo
> In file included from dri_util.h:58:0,
> from megadriver_stub.c:25:
> ../../../../../src/mesa/main/mtypes.h:62:9: error: unknown type name 'GLuint64'
> typedef GLuint64 GLbitfield64;
> ^
> ../../../../../src/mesa/main/mtypes.h:3752:4: error: unknown type name 'GLuint64'
> GLuint64 MaxServerWaitTimeout;
> ^
> ../../../../../src/mesa/main/mtypes.h:3882:4: error: unknown type name 'GLuint64'
> GLuint64 MaxElementIndex;
> ^
> In file included from ../../../../../src/mesa/main/mtypes.h:4328:0,
> from dri_util.h:58,
> from megadriver_stub.c:25:
> ../../../../../src/mesa/main/dd.h:784:31: error: unknown type name 'GLuint64'
> GLuint64 *raw_max);
> ^
> ../../../../../src/mesa/main/dd.h:865:18: error: unknown type name 'GLuint64'
> GLbitfield, GLuint64);
> ^
> ../../../../../src/mesa/main/dd.h:867:18: error: unknown type name 'GLuint64'
> GLbitfield, GLuint64);
> ^
> ../../../../../src/mesa/main/dd.h:1044:4: error: expected specifier-qualifier-list before 'GLuint64'
> GLuint64 (*NewTextureHandle)(struct gl_context *ctx,
> ^
> In file included from dri_util.h:58:0,
> from megadriver_stub.c:25:
> ../../../../../src/mesa/main/mtypes.h:4638:4: error: unknown type name 'GLuint64'
> GLuint64 handle;
> ^
> ../../../../../src/mesa/main/mtypes.h:4644:4: error: unknown type name 'GLuint64'
> GLuint64 handle;
> ^
> In file included from dri_util.h:58:0,
> from dri_util.c:43:
> ../../../../../src/mesa/main/mtypes.h:62:9: error: unknown type name 'GLuint64'
> typedef GLuint64 GLbitfield64;
> ^
> ../../../../../src/mesa/main/mtypes.h:3752:4: error: unknown type name 'GLuint64'
> GLuint64 MaxServerWaitTimeout;
> #v-
> 
> It's not related to Slackware files. When I simply decompressed the archive
> and did compilation attempt via usual "configure make" - the problem is still
> the same.
> 
> I'm unable to fix it. Even more: it turned out that I can't even compile
> that older version of Mesa, which I still have installed in my system (so
> somehow it has been compiled anyway?). Of course I have in /usr/include
> sub-directories GLES, GLES2, GLES3 where are files containing GLuint64-related
> definitions - but anyway Mesa package most probably doesn't need them during
> compilation having own copy of these, from what I see.

Yeah, the GLint64 typedef should come from the include/GL/glext.h 
header.  I wonder if you have a really old version of that in 
/usr/include/GL/glext.h which is missing GLint64 and, for some reason, 
is getting picked up instead of the glext.h in the Mesa source tree.


> 
> What can be wrong? Spent around three hours searching - still no conclusion.
> Whether older or newer version (tried 4 different versions selected at
> random) - it still complains about some "unknow type names", starting with
> that GLuint64.

What if you temporarily rename the /usr/include/GL directory to 
/usr/include/GL-foo?

-Brian

> 
> Slackware64 14.2, upgraded LLVM to newest 5.0.1 version (it didn't help).
> 



More information about the mesa-users mailing list