Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26262 - Emerge of xfree-drm with matrox card fails
Summary: Emerge of xfree-drm with matrox card fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Bob Johnson (RETIRED)
URL:
Whiteboard:
Keywords:
: 29557 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-08-09 06:05 UTC by adele
Modified: 2004-02-14 14:46 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Proposed patch to the installation guide (gentoo-x86-install.diff-xfreedrm,785 bytes, patch)
2003-08-10 07:17 UTC, Sven Vermeulen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description adele 2003-08-09 06:05:26 UTC
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)
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2003-08-09 13:53:41 UTC
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.
Comment 2 adele 2003-08-10 03:06:28 UTC
> 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
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2003-08-10 03:11:35 UTC
assigning to both livecd makers and docs people
Comment 4 Sven Vermeulen (RETIRED) gentoo-dev 2003-08-10 07:17:46 UTC
Created attachment 15857 [details, diff]
Proposed patch to the installation guide

Proposed change to the installation guide.
Comment 5 Ken Nowack (RETIRED) gentoo-dev 2003-08-10 11:30:01 UTC
Patch looks good to me Sven.
Comment 6 Sven Vermeulen (RETIRED) gentoo-dev 2003-08-11 02:28:30 UTC
The installation guide now has a link to the Direct Rendering Guide.
Comment 7 witr 2003-08-26 06:12:25 UTC
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?
Comment 8 witr 2003-08-26 06:16:46 UTC
Also, the dri documentation should explain, or point to an explanation, of how to do the right thing when using genkernel.
Comment 9 Daniel Robbins (RETIRED) gentoo-dev 2003-09-04 17:31:00 UTC
I don't know what genkernel is doing wrong. Maybe pfeifer will know, assigning to him. 
Comment 10 Donnie Berkholz (RETIRED) gentoo-dev 2003-09-25 09:46:12 UTC
*** Bug 29557 has been marked as a duplicate of this bug. ***
Comment 11 Donnie Berkholz (RETIRED) gentoo-dev 2003-09-25 13:33:37 UTC
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
Comment 12 Sven Vermeulen (RETIRED) gentoo-dev 2003-11-18 12:39:20 UTC
Is this bug still valid?
Comment 13 adele 2004-02-14 14:46:27 UTC
Seems to have been fixed a long time ago ?!