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

"Feuerbacher, Alan" <[email protected]>
Newsgroups gmane.comp.video.mesa3d.user
Message-ID <[email protected]>
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_DR
 IVER -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?

My system is my employer's Dell T7500, which has two Xeon 6-core processors, and runs Redhat 5 (RHEL5). I'm not root so I'm limited in what I can do. I've installed a big pile of late-model software loosely following guidelines from LinuxFromScratch, including nearly the latest gcc, binutils and glibc. I'm now loosely following guidelines from BeyondLinuxFromScratch to install Mesa. Ultimately I'm trying to build a complete version of octave, the latest version of which requires recent versions of all manner of GNU/Linux software. The RHEL5 version of OpenGL (fairly old) seems not to work well in building octave; hence I want to try the latest version of Mesa.

Alan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.