[PATCH] graphics/dri: does not build WITHOUT_NOUVEAU

Adam K Kirchhoff akirchhoff135014 at comcast.net
Wed Nov 9 14:58:51 UTC 2011


On 11/09/11 09:44, Dmitry Marakasov wrote:
>> Submitter-Id:	current-users
>> Originator:	Dmitry Marakasov
>> Organization:	
>> Confidential:	no
>> Synopsis:	[PATCH] graphics/dri: does not build WITHOUT_NOUVEAU
>> Severity:	serious
>> Priority:	low
>> Category:	ports
>> Class:		change-request
>> Release:	FreeBSD 8.2-RELEASE i386
>> Environment:
> System: FreeBSD hades.panopticon 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Tue Mar  8 09:48:52 MSK
>> Description:
> graphics/dri does not build with WITHOUT_NOUVEAU defined.
>
> ---

<snip>

> cc -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver -I../../../../../include -I../../../../../src/mesa -I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri -I/usr/local/include -I/usr/local/include/drm    -I/usr/local/include -O2 -pipe -fno-strict-aliasing -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing  -fPIC  -DUSE_X86_64_ASM -DHAVE_POSIX_MEMALIGN -DUSE_XCB -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING  -DRADEON_COMMON=1 -DRADEON_COMMON_FOR_R200 -Wall radeon_screen.c -o radeon_screen.o
> radeon_screen.c: In function 'radeonCreateScreen':
> radeon_screen.c:1025: error: 'R600_SCRATCH_REG_OFFSET' undeclared (first use in this function)
> radeon_screen.c:1025: error: (Each undeclared identifier is reported only once
> radeon_screen.c:1025: error: for each function it appears in.)
> gmake[5]: *** [radeon_screen.o] Error 1
> gmake[5]: Leaving directory `/work/a/ports/_custom/dri-nonouveau/work/Mesa-7.6.1/src/mesa/drivers/dri/r200'
> gmake[4]: *** [subdirs] Error 1
> gmake[4]: Leaving directory `/work/a/ports/_custom/dri-nonouveau/work/Mesa-7.6.1/src/mesa/drivers/dri'
> gmake[3]: *** [default] Error 1
> gmake[3]: Leaving directory `/work/a/ports/_custom/dri-nonouveau/work/Mesa-7.6.1/src/mesa/drivers'
> gmake[2]: *** [driver_subdirs] Error 2
> gmake[2]: Leaving directory `/work/a/ports/_custom/dri-nonouveau/work/Mesa-7.6.1/src/mesa'
> gmake[1]: *** [subdirs] Error 1
> gmake[1]: Leaving directory `/work/a/ports/_custom/dri-nonouveau/work/Mesa-7.6.1/src'
> gmake: *** [default] Error 1
> *** Error code 1
> ---

That error sounds like graphics/libdrm is too old.  That should not be a 
problem as long as graphics/libdrm is also built with WITHOUT_NOUVEAU 
set.  Make sure libdrm as at 2.4.17.  If I had to guess, I'd say that 
WITHOUT_NOUVEAU was set after graphics/libdrm was built but before 
graphics/dri was built.



I've never really understood why the newer versions of graphics/dri and 
graphics/libdrm aren't the default, and why nouveau users shouldn't have 
to set an option.

Adam




More information about the freebsd-x11 mailing list