[Mesa-users] Newest Mesa error

tom fogal tfogal at alumni.unh.edu
Tue Oct 5 14:38:19 PDT 2010


"Serg ." <gihjer at mail.ru> writes:
> ./configure --prefix=/usr/local --mandir=/usr/share/man --enable-shared --dis
> able-static \
> --with-expat=/usr/local --with-x --x-includes=/usr/local/include/X11 --x-libr
> aries=/usr/local/lib \
> --with-xorg-driver-dir=/usr/local/lib/xorg/modules/drivers --with-state-track
> ers=dri,egl,glx \
> --enable-driglx-direct --disable-gl-osmesa --enable-egl --enable-glu --enable
> -glw \
[snip]

Do you really need all of this stuff?  Do you actually have a machine
with an i915, i965, r600, AND nvidia card in it?  Where some of them
don't always work so that you need to use swrast or llvm sometimes?
And perhaps you use the machine to emulate embedded dev, so you need
egl?

It's not the current issue, but as general advice which is not specific
to Mesa: don't build things you don't need.

> # gmake[2]: Entering directory `/usr/home/admin/Mesa/Mesa-7.9/src/glsl'
> # g++ -c -I/usr/local/include   -I. -I../mesa -I../mapi -I../../include  -g -
> O2 -Wall -fvisibility=hidden -fno-strict-aliasing -ansi -pedantic  -fPIC  -DH
> AVE_POSIX_MEMALIGN -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAV
> E_ALIAS -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DHAVE_XCB_DRI2  -DFE
> ATURE_GL=1 -DHAVE_POSIX_MEMALIGN -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DR
> I_DRIVER -DHAVE_ALIAS -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DHAVE_
> XCB_DRI2  -DFEATURE_GL=1 builtin_function.cpp -o builtin_function.o
> # builtin_function.cpp: In function 'void _mesa_read_profile(_mesa_glsl_parse
> _state*, exec_list*, int, const char*, const char**, int)':
> # builtin_function.cpp:19099: error: ISO C++ forbids braced-groups within exp
> ressions

It does look like a bug.  I recommend submitting a bug report.

To move on quickly, I bet you can get by this by removing "-ansi
-pedantic" from your compilation flags.

-tom


More information about the mesa-users mailing list