graphics/libGL 7.6.1 doesn't build with WITHOUT_NOUVEAU set

lists at nrd.fr lists at nrd.fr
Sat May 19 15:48:43 UTC 2012


Hello on FreeBSD X11,

I have upgraded ports and I can't get graphics/libGL (Mesa-7.6.1) to 
build:

# cd /usr/ports/graphics/libGL
# make install clean
   [Please see full logs below]
   gmake[1]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src'
   gmake: *** [default] Error 1
   *** Error code 1

   Stop in /usr/ports/graphics/libGL.


Known things
============
In ports/UPDATING it is written WITHOUT_NOUVEAU=yes must be set in 
/etc/make.conf in order to use Mesa3D 7.6.1 and libdrm 2.4.17 rather 
than 7.4.4 and 2.4.12.

The issue seems not new:
- [PATCH] graphics/dri: does not build WITHOUT_NOUVEAU
   http://www.freebsd.org/cgi/query-pr.cgi?pr=162406
   
http://lists.freebsd.org/pipermail/freebsd-x11/2011-November/011277.html


Things tried
============

The global macro WITHOUT_NOUVEAU=yes is set in /etc/make.conf (also 
tried variants like WITHOUT_NOUVEAU=1 or WITHOUT_NOUVEAU="YES", etc).

I have reinstalled graphics/libdrm (2.4.17) with WITHOUT_NOUVEAU=yes 
set in /etc/make.conf, but the build logs always show:

   libdrm 2.4.17 will be compiled with:
     Intel API      no
     Radeon API     no
     Nouveau API    yes

After I "make reinstall" for libdrm, I get no difference when I try to 
build graphics/libGL.

I have tried setting WITHOUT_NOUVEAU=yes directly in the make command 
line (libdrm and libGL): "make WITHOUT_NOUVEAU=yes install".

Finally, setting CONFIGURE_ARGS= --disable-nouveau-experimental-api in 
libdrm/Makefile will compile libdrm with "Nouveau API no", but it 
doesn't help for libGL.



At this point I'm stuck. I have googled about the intel_drm file that 
seems be making the trouble but couldn't find anything useful.

Please any help will be much appreciated. Thanks in advance.

Benat Dagorret



CONFIG AND BUILD LOG

uname -a
FreeBSD host.domain.tld 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 
15:48:17 UTC 2009     
root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386


===>  Building for libGL-7.6.1
gmake[1]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src'
Making sources for autoconf
gmake[2]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/glx/x11'
cc -c -I. -I../../../include -I../../../include/GL/internal 
-I../../../src/mesa -I../../../src/mesa/glapi -I/usr/local/include 
-I/usr/local/include/drm   -I/usr/local/include   -D_THREAD_SAFE 
-I/usr/local/include   -I/usr/local/include -O2 -pipe 
-fno-strict-aliasing -Wall -Wmissing-prototypes -std=c99  
-fno-strict-aliasing  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM 
-DUSE_SSE_ASM -DHAVE_POSIX_MEMALIGN -DUSE_XCB -DPTHREADS 
-DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS 
-DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DXF86VIDMODE 
-D_REENTRANT -UIN_DRI_DRIVER -DDEFAULT_DRIVER_DIR=\"/usr/local/lib/dri\" 
dri2.c -o dri2.o
/bin/sh ../../../bin/mklib -o GL -linker 'cc' -ldflags 
'-L/usr/local/lib' \
	-major 1 -minor 2  \
	-install ../../../lib -id /usr/local/lib/libGL.1.dylib \
	 -L/usr/local/lib -lXext -lXxf86vm -lXdamage -lXfixes -lX11-xcb -lX11 
-lxcb-glx -lxcb   -L/usr/local/lib -ldrm   -lm -lpthread  
glcontextmodes.o clientattrib.o compsize.o eval.o glxcmds.o glxcurrent.o 
glxext.o glxextensions.o indirect.o indirect_init.o indirect_size.o 
indirect_window_pos.o indirect_texture_compression.o 
indirect_transpose_matrix.o indirect_vertex_array.o 
indirect_vertex_program.o pixel.o pixelstore.o render2.o renderpix.o 
single2.o singlepix.o vertarr.o xfont.o glx_pbuffer.o glx_query.o 
drisw_glx.o dri_common.o dri_glx.o XF86dri.o glxhash.o dri2_glx.o dri2.o 
../../../src/mesa/main/dispatch.o ../../../src/mesa/glapi/glapi.o 
../../../src/mesa/glapi/glapi_getproc.o 
../../../src/mesa/glapi/glthread.o ../../../src/mesa/x86/glapi_x86.o
mklib: Making FreeBSD shared library:  libGL.so.1
mklib: Installing libGL.so.1 libGL.so in ../../../lib
gmake[2]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/glx/x11'
gmake[2]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/mesa'
gmake[3]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/mesa/x86'
gmake[3]: Nothing to be done for `default'.
gmake[3]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/mesa/x86'
gmake[3]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/mesa/drivers'
gmake[4]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/mesa/drivers/dri'
gmake[4]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/mesa/drivers/dri'
gmake[3]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/mesa/drivers'
gmake[2]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/mesa'
gmake[2]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium'
gmake[3]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary'
gmake[4]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary/rbug'
gmake[4]: Nothing to be done for `default'.
gmake[4]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary/rbug'
gmake[4]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary/draw'
gmake[4]: Nothing to be done for `default'.
gmake[4]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary/draw'
gmake[4]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary/translate'
gmake[4]: Nothing to be done for `default'.
gmake[4]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary/translate'
gmake[4]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary/cso_cache'
gmake[4]: Nothing to be done for `default'.
gmake[4]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary/cso_cache'
gmake[4]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary/pipebuffer'
gmake[4]: Nothing to be done for `default'.
gmake[4]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary/pipebuffer'
gmake[4]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary/tgsi'
gmake[4]: Nothing to be done for `default'.
gmake[4]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary/tgsi'
gmake[4]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary/sct'
gmake[4]: Nothing to be done for `default'.
gmake[4]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary/sct'
gmake[4]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary/rtasm'
gmake[4]: Nothing to be done for `default'.
gmake[4]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary/rtasm'
gmake[4]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary/util'
gmake[4]: Nothing to be done for `default'.
gmake[4]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary/util'
gmake[4]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary/indices'
gmake[4]: Nothing to be done for `default'.
gmake[4]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary/indices'
gmake[3]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary'
gmake[3]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/drivers'
gmake[4]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/drivers/softpipe'
gmake[4]: Nothing to be done for `default'.
gmake[4]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/drivers/softpipe'
gmake[4]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/drivers/failover'
gmake[4]: Nothing to be done for `default'.
gmake[4]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/drivers/failover'
gmake[4]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/drivers/trace'
gmake[4]: Nothing to be done for `default'.
gmake[4]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/drivers/trace'
gmake[4]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/drivers/identity'
gmake[4]: Nothing to be done for `default'.
gmake[4]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/drivers/identity'
gmake[4]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/drivers/i915simple'
gmake[4]: Nothing to be done for `default'.
gmake[4]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/drivers/i915simple'
gmake[3]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/drivers'
gmake[3]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/state_trackers'
gmake[3]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/state_trackers'
gmake[2]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium'
gmake[2]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/winsys'
gmake[3]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/winsys/drm'
gmake[4]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/winsys/drm/intel'
gmake[5]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/winsys/drm/intel/gem'
cc -c -I. -I../../../../../../src/gallium/include 
-I../../../../../../src/gallium/auxiliary 
-I../../../../../../src/gallium/drivers -I/src/gallium/include 
-I/src/gallium/auxiliary -I/src/gallium/drivers -I/usr/local/include 
-I/usr/local/include/drm   -I/usr/local/include -O2 -pipe 
-fno-strict-aliasing -Wall -Wmissing-prototypes -std=c99  
-fno-strict-aliasing  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM 
-DUSE_SSE_ASM -DHAVE_POSIX_MEMALIGN -DUSE_XCB -DPTHREADS 
-DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS 
-DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING   
intel_drm_batchbuffer.c -o intel_drm_batchbuffer.o
cc -c -I. -I../../../../../../src/gallium/include 
-I../../../../../../src/gallium/auxiliary 
-I../../../../../../src/gallium/drivers -I/src/gallium/include 
-I/src/gallium/auxiliary -I/src/gallium/drivers -I/usr/local/include 
-I/usr/local/include/drm   -I/usr/local/include -O2 -pipe 
-fno-strict-aliasing -Wall -Wmissing-prototypes -std=c99  
-fno-strict-aliasing  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM 
-DUSE_SSE_ASM -DHAVE_POSIX_MEMALIGN -DUSE_XCB -DPTHREADS 
-DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS 
-DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING   intel_drm_buffer.c -o 
intel_drm_buffer.o
In file included from intel_drm_buffer.c:2:
intel_drm_winsys.h:8:26: error: intel_bufmgr.h: No such file or 
directory
In file included from intel_drm_buffer.c:2:
intel_drm_winsys.h:30: error: expected specifier-qualifier-list before 
'drm_intel_bufmgr'
intel_drm_winsys.h:41: error: expected ')' before '*' token
intel_drm_winsys.h:56: error: expected specifier-qualifier-list before 
'drm_intel_bo'
intel_drm_winsys.h:72: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before '*' token
In file included from intel_drm_batchbuffer.c:2:
intel_drm_winsys.h:8:26: error: intel_bufmgr.h: No such file or 
directory
In file included from intel_drm_batchbuffer.c:2:
intel_drm_winsys.h:30: error: expected specifier-qualifier-list before 
'drm_intel_bufmgr'
intel_drm_winsys.h:41: error: expected ')' before '*' token
intel_drm_winsys.h:56: error: expected specifier-qualifier-list before 
'drm_intel_bo'
intel_drm_winsys.h:72: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before '*' token
intel_drm_buffer.c: In function 'intel_drm_buffer_create':
intel_drm_buffer.c:14: error: 'drm_intel_bufmgr' undeclared (first use 
in this function)
intel_drm_buffer.c:14: error: (Each undeclared identifier is reported 
only once
intel_drm_buffer.c:14: error: for each function it appears in.)
intel_drm_buffer.c:14: error: 'pool' undeclared (first use in this 
function)
intel_drm_buffer.c:21: error: 'struct intel_drm_buffer' has no member 
named 'flinked'
intel_drm_buffer.c:22: error: 'struct intel_drm_buffer' has no member 
named 'flink'
intel_drm_buffer.c:23: error: 'struct intel_drm_buffer' has no member 
named 'map_gtt'
intel_drm_buffer.c:27: error: 'struct <anonymous>' has no member named 
'gem'
intel_drm_buffer.c:30: error: 'struct <anonymous>' has no member named 
'gem'
intel_drm_buffer.c:33: error: 'struct <anonymous>' has no member named 
'gem'
intel_drm_buffer.c:34: error: 'struct intel_drm_buffer' has no member 
named 'map_gtt'
intel_drm_buffer.c:38: error: 'struct <anonymous>' has no member named 
'gem'
intel_drm_buffer.c:41: error: 'struct intel_drm_buffer' has no member 
named 'bo'
intel_drm_buffer.c:41: warning: implicit declaration of function 
'drm_intel_bo_alloc'
intel_drm_batchbuffer.c:23: error: expected specifier-qualifier-list 
before 'drm_intel_bo'
intel_drm_buffer.c:43: error: 'struct intel_drm_buffer' has no member 
named 'bo'
intel_drm_batchbuffer.c: In function 'intel_drm_batchbuffer_reset':
intel_drm_batchbuffer.c:37: error: 'struct intel_drm_batchbuffer' has 
no member named 'bo'
intel_drm_batchbuffer.c:38: warning: implicit declaration of function 
'drm_intel_bo_unreference'
intel_drm_batchbuffer.c:38: error: 'struct intel_drm_batchbuffer' has 
no member named 'bo'
intel_drm_batchbuffer.c:39: error: 'struct intel_drm_batchbuffer' has 
no member named 'bo'
intel_drm_batchbuffer.c:39: warning: implicit declaration of function 
'drm_intel_bo_alloc'
intel_drm_batchbuffer.c:39: error: 'struct <anonymous>' has no member 
named 'gem'
intel_drm_batchbuffer.c:43: warning: implicit declaration of function 
'drm_intel_bo_map'
intel_drm_batchbuffer.c:43: error: 'struct intel_drm_batchbuffer' has 
no member named 'bo'
intel_drm_batchbuffer.c:44: error: 'struct intel_drm_batchbuffer' has 
no member named 'bo'
intel_drm_buffer.c: In function 'intel_drm_buffer_set_fence_reg':
intel_drm_buffer.c:64: warning: implicit declaration of function 
'drm_intel_bo_set_tiling'
intel_drm_buffer.c:64: warning: implicit declaration of function 
'intel_bo'
intel_drm_batchbuffer.c: In function 'intel_drm_batchbuffer_reloc':
intel_drm_batchbuffer.c:115: warning: implicit declaration of function 
'drm_intel_bo_emit_reloc'
intel_drm_batchbuffer.c:115: error: 'struct intel_drm_batchbuffer' has 
no member named 'bo'
intel_drm_batchbuffer.c:116: warning: implicit declaration of function 
'intel_bo'
intel_drm_batchbuffer.c:120: error: invalid type argument of '->'
intel_drm_buffer.c: In function 'intel_drm_buffer_map':
intel_drm_buffer.c:73: error: 'drm_intel_bo' undeclared (first use in 
this function)
intel_drm_buffer.c:73: error: 'bo' undeclared (first use in this 
function)
intel_drm_buffer.c:78: error: 'struct intel_drm_buffer' has no member 
named 'map_count'
intel_drm_buffer.c:81: error: 'struct intel_drm_buffer' has no member 
named 'map_gtt'
intel_drm_batchbuffer.c: In function 'intel_drm_batchbuffer_flush':
intel_drm_buffer.c:82: warning: implicit declaration of function 
'drm_intel_gem_bo_map_gtt'
intel_drm_batchbuffer.c:159: warning: implicit declaration of function 
'drm_intel_bo_unmap'
intel_drm_batchbuffer.c:159: error: 'struct intel_drm_batchbuffer' has 
no member named 'bo'
intel_drm_buffer.c:84: warning: implicit declaration of function 
'drm_intel_bo_map'
intel_drm_batchbuffer.c:162: warning: implicit declaration of function 
'drm_intel_bo_exec'
intel_drm_buffer.c:86: error: 'struct intel_drm_buffer' has no member 
named 'ptr'intel_drm_batchbuffer.c:162: error: 'struct 
intel_drm_batchbuffer' has no member named 'bo'

intel_drm_buffer.c:93: error: 'struct intel_drm_buffer' has no member 
named 'map_count'
intel_drm_buffer.c:94: error: 'struct intel_drm_buffer' has no member 
named 'ptr'
intel_drm_batchbuffer.c:167: error: 'struct intel_drm_batchbuffer' has 
no member named 'bo'
intel_drm_batchbuffer.c:168: error: 'struct intel_drm_batchbuffer' has 
no member named 'bo'
intel_drm_buffer.c: In function 'intel_drm_buffer_unmap':
intel_drm_buffer.c:103: error: 'struct intel_drm_buffer' has no member 
named 'map_count'
intel_drm_buffer.c:106: error: 'struct intel_drm_buffer' has no member 
named 'map_gtt'
intel_drm_batchbuffer.c:175: error: 'struct intel_drm_batchbuffer' has 
no member named 'bo'
intel_drm_buffer.c:107: warning: implicit declaration of function 
'drm_intel_gem_bo_unmap_gtt'
intel_drm_buffer.c:109: warning: implicit declaration of function 
'drm_intel_bo_unmap'
intel_drm_batchbuffer.c:190: warning: implicit declaration of function 
'intel_drm_fence_create'
intel_drm_batchbuffer.c:190: error: 'struct intel_drm_batchbuffer' has 
no member named 'bo'
intel_drm_batchbuffer.c:190: warning: assignment makes pointer from 
integer without a cast
intel_drm_batchbuffer.c: In function 'intel_drm_batchbuffer_destroy':
intel_drm_batchbuffer.c:202: error: 'struct intel_drm_batchbuffer' has 
no member named 'bo'
intel_drm_batchbuffer.c:203: error: 'struct intel_drm_batchbuffer' has 
no member named 'bo'
gmake[5]: *** [intel_drm_batchbuffer.o] Error 1
gmake[5]: *** Waiting for unfinished jobs....
intel_drm_buffer.c: In function 'intel_drm_buffer_destroy':
intel_drm_buffer.c:116: warning: implicit declaration of function 
'drm_intel_bo_unreference'
gmake[5]: *** [intel_drm_buffer.o] Error 1
gmake[5]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/winsys/drm/intel/gem'
gmake[4]: *** [default] Error 1
gmake[4]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/winsys/drm/intel'
gmake[3]: *** [default] Error 1
gmake[3]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/winsys/drm'
gmake[2]: *** [default] Error 1
gmake[2]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/winsys'
gmake[1]: *** [subdirs] Error 1
gmake[1]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src'
gmake: *** [default] Error 1
*** Error code 1

Stop in /usr/ports/graphics/libGL.



More information about the freebsd-x11 mailing list