[Mesa-users] MesaLib-8.0.4: fatal error: nouveau_device.h: No such file or directory Build Failure

Brian Paul brianp at vmware.com
Fri Oct 5 07:38:15 PDT 2012


On 10/05/2012 08:26 AM, Feuerbacher, Alan wrote:
> Hi,
>
> In trying to compile MesaLib-8.0.4 I got the following error during make:
>
> ############################
> . . .
> gmake[6]: Entering directory `/home/afbacher/LFS71/lfs84/sources/Mesa-8.0.4/src/mesa/drivers/dri/nouveau'
>
> gcc -c -I. -Iserver -I../../../../../include -I../../../../../src/egl/drivers/dri -I../../../../../src/egl/main -I../../../../../src/mapi -I../../../../../src/mesa -I../../../../../src/mesa/drivers/dri/common -I/home/afbacher/GCC/OCTAVE/install/include -I/home/afbacher/GCC/OCTAVE/install/include/libdrm    -DFEATURE_GL=1 -DFEATURE_ES1=1 -DFEATURE_ES2=1 -I/home/afbacher/GCC/OCTAVE/install/include -I/home/afbacher/GCC/OCTAVE/install/include/libdrm -I/home/afbacher/GCC/OCTAVE/install/include/nouveau   -O2 -Wall -Wmissing-prototypes -std=c99 -fno-strict-aliasing -fno-builtin-memcmp  -fPIC  -DUSE_X86_64_ASM -D_GNU_SOURCE -DPTHREADS -DTEXTURE_FLOAT_ENABLED -DHAVE_POSIX_MEMALIGN -DUSE_XCB -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_TLS -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS -DHAVE_MINCORE -DHAVE_XCB_DRI2 -DXCB_DRI2_CONNECT_DEVICE_NAME_BROKEN -D__STDC_CONSTANT_MACROS -DHAVE_LLVM=0x0301 -DUSE_DRICORE  nouveau_screen.c -o nouveau_screen.o
>
> In file included from nouveau_screen.c:27:0:
>
> nouveau_driver.h:41:28: fatal error: nouveau_device.h: No such file or directory
>
> compilation terminated.
>
> gmake[6]: *** [nouveau_screen.o] Error 1
> gmake[6]: Leaving directory `/home/afbacher/LFS71/lfs84/sources/Mesa-8.0.4/src/mesa/drivers/dri/nouveau'
> gmake[5]: *** [lib] Error 2
> gmake[5]: Leaving directory `/home/afbacher/LFS71/lfs84/sources/Mesa-8.0.4/src/mesa/drivers/dri/nouveau'
> . . .
> ############################
>
> Tracking down what's going wrong, the file ..../Mesa-8.0.4/src/mesa/drivers/dri/nouveau/nouveau_screen.c contains an include statement:
>
> #include "nouveau_driver.h"
>
> that in turn contains further include statements referring to more and similar local files, six out of nine of which are missing:
>
> ### MISSING ###
> #include "nouveau_device.h"
> #include "nouveau_grobj.h"
> #include "nouveau_channel.h"
> #include "nouveau_bo.h"
> #include "nouveau_notifier.h"
> #include "nv04_pushbuf.h"
>
> ### NOT MISSING ###
> #include "nouveau_screen.h"
> #include "nouveau_state.h"
> #include "nouveau_surface.h"
>
> After doing some google searches I discovered that a lot of people have encountered this problem, but I have not found any fixes or patches. I found one discussion of a possible bugfix from a year and a half ago, but the discussion petered out without any resolution I could see.
>
> Where do I go from here to complete compiling Mesa?

You need to get/build/install the latest copy of libdrm from 
http://dri.freedesktop.org/libdrm/.  That should install the nouveau 
headers you're missing.

-Brian


More information about the mesa-users mailing list