[Mesa-dev] Mesa Failing to compile with nouveau_vieux_dri.so

Matt Turner mattst88 at gmail.com
Tue Jan 24 06:45:49 PST 2012


On Tue, Jan 24, 2012 at 8:33 AM, STEVEN WARD <stevenward666 at hotmail.com> wrote:
> Hi to all,
>               I used to compile the nvfx driver for my NV40,but I don't that
> Graphics Card anymore.
>
> Anyway, I'm using a NV28 Quatro with 128Mb of memory and I compile
> the nouveau_vieux_dri.so driver for that card instead.
>
> I use the DRM,Mesa,and the nouveau driver code all compiled from git. The
> problem I'm having with Mesa for the past week or two is that I either use
> these ./configure options:
>
> ./autogen.sh --prefix=/usr --bindir=/usr/bin --libdir=/usr/lib
> --includedir=/usr/include --datarootdir=/usr/share
> --with-dri-drivers=nouveau,swrast --with-expat=/usr/lib --enable-debug
> --enable-asm --enable-32-bit --enable-opengl --disable-gles2
> --disable-openvg --enable-dri --enable-glx --enable-xvmc --disable-va
> --disable-vdpau --disable-osmesa --disable-egl --enable-xorg --disable-d3d1x
> --enable-xa --disable-gbm --disable-xlib-glx --disable-gallium-egl
> --disable-gallium-gbm --enable-gallium-llvm --enable-driglx-direct
> --enable-glx-tls --enable-glu
>
> I sometimes just use "make linux-dri-x86" to build the same driver.

Don't use this. The dri drivers (nouveau_vieux included) now use
automake and should be built with ./configure.

> The compile keeps ending up with the following error (from 24-01-12):
>
> LX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS
> -DHAVE_POSIX_MEMALIGN -I../../include -I../../src/glsl -I../../src/mesa
> -I../../src/mapi -I../../src/gallium/include -I../../src/gallium/auxiliary
>  -Wall -Wmissing-prototypes -std=c99 -ffast-math -O2 -g -fPIC -m32 -mmmx
> -msse -msse2 -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
> -fno-strict-aliasing
> g++ -c -o state_tracker/st_glsl_to_tgsi.o state_tracker/st_glsl_to_tgsi.cpp
>  -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
> -D_GNU_SOURCE -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER
> -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS
> -DHAVE_POSIX_MEMALIGN -I../../include -I../../src/glsl -I../../src/mesa
> -I../../src/mapi -I../../src/gallium/include -I../../src/gallium/auxiliary
>  -Wall -O2 -g -fPIC -m32 -mmmx -msse -msse2 -fno-strict-aliasing
> mklib: Making Linux static library:  libmesagallium.a
> ar: creating libmesagallium.a
> make[4]: Entering directory `/home/steve/mesa/src/mesa/drivers'
> make[5]: Entering directory `/home/steve/mesa/src/mesa/drivers/dri'
> Making all in nouveau
> gmake[6]: Entering directory `/home/steve/mesa/src/mesa/drivers/dri/nouveau'
> /bin/mkdir -p ../../../../../lib;
> ln -f .libs/nouveau_vieux_dri.so ../../../../../lib/nouveau_vieux_dri.so;
> ln: accessing `.libs/nouveau_vieux_dri.so': No such file or directory
> gmake[6]: *** [all-local] Error 1
> gmake[6]: Leaving directory `/home/steve/mesa/src/mesa/drivers/dri/nouveau'

Do you have a src/mesa/drivers/dri/nouveau/.libs/ folder when this
happens? It should contain a lot of *.o files and
nouveau_vieux_dri.{la,lai,so}.

Can you do a `make clean` and try again? I haven't seen this.

Matt


More information about the mesa-dev mailing list