Bug 43404

Summary: Git head fails to build-No rule to make target 'default' in src/gallium/drivers/failover
Product: Mesa Reporter: idunham
Component: OtherAssignee: mesa-dev
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: medium CC: idunham, jfonseca
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description idunham 2011-11-30 22:53:41 UTC
I updated to the latest git, ran make distclean, reconfigured, and ran make.
It died here:
make[3]: Leaving directory `/mnt/mesa/src/gfx/mesa.git/src/gallium/auxiliary'
make[3]: Entering directory `/mnt/mesa/src/gfx/mesa.git/src/gallium/drivers'
make[4]: Entering directory `/mnt/mesa/src/gfx/mesa.git/src/gallium/drivers/failover'
make[4]: *** No rule to make target `default'.  Stop.
make[4]: Leaving directory `/mnt/mesa/src/gfx/mesa.git/src/gallium/drivers/failover'
make[3]: *** [default] Error 1
make[3]: Leaving directory `/mnt/mesa/src/gfx/mesa.git/src/gallium/drivers'
make[2]: *** [default] Error 1
make[2]: Leaving directory `/mnt/mesa/src/gfx/mesa.git/src/gallium'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/mnt/mesa/src/gfx/mesa.git/src'
make: *** [default] Error 1

Apparently the failover driver removal (commit 0a22fb6a5d519ca26d423fa4a9404697dca56cbf ) was not complete.
I've only tested with Linux on x86/ia32, but it probably affects most platforms.

Config details:
./configure --enable-gallium-llvm --with-gallium-drivers=swrast,r600 --enable-motif --enable-glw --enable-texture-float --disable-gles1 --enable-shared-glapi --enable-gles2 --enable-egl --enable-xorg --enable-patented --enable-va --disable-xvmc --enable-vdpau --prefix=/opt/mesa712 --without-dri-drivers --with-dri-driverdir=/opt/mesa712
Comment 1 idunham 2011-11-30 23:09:28 UTC
By the way:
After reverting the relevant commit, I still get some problems building:
make dies with an error about "no rule to make src/gallium/winsys/radeon/drm/libradeonwinsys.a"; the workaround is:
make -C src/gallium/winsys/radeon/drm libradeonwinsys.a
make

This results in a complete build.
Comment 2 Jose Fonseca 2011-11-30 23:25:58 UTC
(In reply to comment #0)
> I updated to the latest git, ran make distclean, reconfigured, and ran make.
> It died here:

You'll need to run ./autogen.sh as well.
Comment 3 Jose Fonseca 2011-12-01 02:11:58 UTC
I've reproduced it, and re-runing ./autogen.sh solved the issue.
Comment 4 idunham 2011-12-01 08:18:11 UTC
OK. 
Well, now to get autogen.sh to work--I don't have an intel card, but autogen.sh needs libdrm_intel updated anyhow.
Comment 5 Jose Fonseca 2011-12-01 08:22:28 UTC
./autogen.sh invokes ./configure automatically. You can pass the same arguments as configure has, and tell it not to build intel drivers.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.