Versions: Gentoo Base System version 1.4.3.8p1 xfree-drm-4.3.0-r6 Hello, I tried to emerge xfree-drm for my matrox G550 Dualhead and got following errormessages: Jambalaya var # VIDEO_CARDS="matrox" emerge xfree-drm Calculating dependencies ...done! >>> emerge (1 of 1) x11-base/xfree-drm-4.3.0-r6 to / >>> Downloading http://gentoo.oregonstate.edu/distfiles/xfree-drm-4.3.0-r6-gentoo-0.3.tar.bz2 --11:18:20-- http://gentoo.oregonstate.edu/distfiles/xfree-drm-4.3.0-r6-gentoo-0.3.tar.bz2 => `/usr/portage/distfiles/xfree-drm-4.3.0-r6-gentoo-0.3.tar.bz2' Resolving gentoo.oregonstate.edu... done. Connecting to gentoo.oregonstate.edu[128.193.0.3]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 543,850 [application/x-tar] 100%[=============================================================================================>] 543,850 49.29K/s ETA 00:00 11:18:32 (49.29 KB/s) - `/usr/portage/distfiles/xfree-drm-4.3.0-r6-gentoo-0.3.tar.bz2' saved [543850/543850] >>> Downloading http://gentoo.oregonstate.edu/distfiles/linux-drm-4.3.0-kernelsource-20030714.tar.gz --11:18:32-- http://gentoo.oregonstate.edu/distfiles/linux-drm-4.3.0-kernelsource-20030714.tar.gz => `/usr/portage/distfiles/linux-drm-4.3.0-kernelsource-20030714.tar.gz' Resolving gentoo.oregonstate.edu... done. Connecting to gentoo.oregonstate.edu[128.193.0.3]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 329,112 [application/x-tar] 100%[=============================================================================================>] 329,112 52.82K/s ETA 00:00 11:18:38 (52.82 KB/s) - `/usr/portage/distfiles/linux-drm-4.3.0-kernelsource-20030714.tar.gz' saved [329112/329112] >>> md5 src_uri ;-) linux-drm-4.3.0-kernelsource-20030714.tar.gz >>> md5 src_uri ;-) xfree-drm-4.3.0-r6-gentoo-0.3.tar.bz2 >>> Unpacking source... >>> Unpacking linux-drm-4.3.0-kernelsource-20030714.tar.gz to /var/tmp/portage/xfree-drm-4.3.0-r6/work >>> Unpacking xfree-drm-4.3.0-r6-gentoo-0.3.tar.bz2 to /var/tmp/portage/xfree-drm-4.3.0-r6/work * Applying xfree-drm-4.3.0-r6-gentoo-Makefile-fixup.patch... [ ok ] * Applying xfree-drm-4.3.0-r6-dristat.patch... [ ok ] * Detected rmap enabled kernel. * Applying rmap patch... [ ok ]>>> Source unpacked. * Building DRM... make: *** No rule to make target `mga.o'. Stop. gcc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wnested-externs -Wpointer-arith -g -ansi -pedantic -DPOSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -I../../../../../../include -I../../../../../../../../include -I../../../../../../../../programs/Xserver/hw/xfree86/common -I. -I../../.. -I../../../../../../../../lib/X11 dristat.c -o dristat xf86drm.c:1170: warning: `drm_unlock_callback' defined but not used >>> Install xfree-drm-4.3.0-r6 into /var/tmp/portage/xfree-drm-4.3.0-r6/image/ category x11-base * installing DRM... make: *** No rule to make target `mga.o', needed by `install'. Stop. !!! ERROR: x11-base/xfree-drm-4.3.0-r6 failed. !!! Function src_install, Line 144, Exitcode 2 !!! (no error message)
You need to have agpgart and your AGP chipset enabled in your kernel for there to be a target for mga.o. Take a look through http://www.gentoo.org/doc/en/dri-howto.xml to see how to do this. I've also seen this happen when a person previously had an nVidia card and had nvidia-kernel still installed.
> You need to have agpgart and your AGP chipset enabled in your kernel for there to > be a target for mga.o. Take a look through > > http://www.gentoo.org/doc/en/dri-howto.xml > to see how to do this. I've also seen this happen when a person previously had an > nVidia card and had nvidia-kernel still installed. Thanks, that worked :-) Maybe it would be a goog idea to make a link from the installation documentation to the dri-howto when it comes to this point. I used "genkernel" to build the kernel, and this script did not recognice AGP and the Matrox card. That's why the emerge of "xfee-drm" also failed. cheers, adele
assigning to both livecd makers and docs people
Created attachment 15857 [details, diff] Proposed patch to the installation guide Proposed change to the installation guide.
Patch looks good to me Sven.
The installation guide now has a link to the Direct Rendering Guide.
Please be advised that the same thing happens for 810 video: genkernel followed by xfree-drm emerge fails with: make: *** No rule to make target `i810.o'. Stop. Shouldn't genkernel do a better job here?
Also, the dri documentation should explain, or point to an explanation, of how to do the right thing when using genkernel.
I don't know what genkernel is doing wrong. Maybe pfeifer will know, assigning to him.
*** Bug 29557 has been marked as a duplicate of this bug. ***
Daniel, this is what genkernel's doing wrong (and it's not even genkernel's fault). The gentoo-sources kernel-config file should be changed from: # CONFIG_AGP is not set to: CONFIG_AGP=m CONFIG_AGP_INTEL=y CONFIG_AGP_I810=y CONFIG_AGP_VIA=y CONFIG_AGP_AMD=y CONFIG_AGP_AMD_8151=y CONFIG_AGP_SIS=y CONFIG_AGP_ALI=y CONFIG_AGP_SWORKS=y
Is this bug still valid?
Seems to have been fixed a long time ago ?!