Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184996 - x11-base/x11-drm-20070314 not compiling with 2.6.22-gentoo-r1
Summary: x11-base/x11-drm-20070314 not compiling with 2.6.22-gentoo-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Bryan Stine (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: kernel-2.6.22
  Show dependency tree
 
Reported: 2007-07-11 20:42 UTC by Wouter Coppens
Modified: 2008-09-12 05:17 UTC (History)
6 users (show)

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


Attachments
complete build.log (build.log,17.68 KB, text/plain)
2007-07-11 20:45 UTC, Wouter Coppens
Details
Patch for linux-2.6.22 compatibility (linux_2.6.22.patch,2.50 KB, patch)
2007-07-16 16:25 UTC, Sebastian Volke
Details | Diff
Updated ebuild (x11-drm-20070314-r1.ebuild,7.96 KB, text/plain)
2007-07-30 14:07 UTC, Jonas Pedersen
Details
Patch to put in files directory. (x11-drm-20070314-kernel-2.6.22.patch,2.50 KB, patch)
2007-07-30 14:08 UTC, Jonas Pedersen
Details | Diff
sandbox log (sandbox-x11-base_-_x11-drm-20070314-16906.log,306 bytes, text/plain)
2007-08-13 19:46 UTC, ArYiX
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wouter Coppens 2007-07-11 20:42:26 UTC
/var/tmp/portage/x11-base/x11-drm-20070314/work/drm/linux-core/drm_ioc32.o
/var/tmp/portage/x11-base/x11-drm-20070314/work/drm/linux-core/drm_ioc32.c:31:27: error: linux/ioctl32.h: No such file or directory
make[2]: *** [/var/tmp/portage/x11-base/x11-drm-20070314/work/drm/linux-core/drm_ioc32.o] Error 1
make[1]: *** [_module_/var/tmp/portage/x11-base/x11-drm-20070314/work/drm/linux-core] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.22-gentoo-r1'
make: *** [modules] Error 2
 * Portage could not build the DRM modules. If you see an ACCESS DENIED error,
 * this could mean that you were using an unsupported kernel build system.
 * Only 2.6 kernels at least as new as 2.6.6 are supported.

!!! ERROR: x11-base/x11-drm-20070314 failed.


Reproducible: Always

Steps to Reproduce:
1.upgrade to kernel 2.6.22-gentoo-r1
2.emerge x11-drm
3.




 # emerge --info
Portage 2.1.2.9 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.5-r3, 2.6.22-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r1 x86_64 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 11 Jul 2007 20:00:01 +0000
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en nl"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa amd64 apache2 berkdb bitmap-fonts bzip2 cli cracklib crypt dri fortran gdbm gpm iconv isdnlog libg++ lirc midi mudflap mysql ncurses nls nptl nptlonly opengl openmp pam pcre perl ppds pppd python readline reflection sdl session slang spl ssl tcpd truetype truetype-fonts type1-fonts unicode xml xorg xv zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en nl" LIRC_DEVICES="mceusb2" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Wouter Coppens 2007-07-11 20:45:31 UTC
Created attachment 124591 [details]
complete build.log
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2007-07-11 22:52:44 UTC
replace:

#include <linux/ioctl32.h>

with:

#include <linux/version.h> // if not already included
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)
#include <linux/ioctl32.h>
#endif
Comment 3 Sebastian Volke 2007-07-16 16:25:57 UTC
Created attachment 125045 [details, diff]
Patch for linux-2.6.22 compatibility

This patch changes every source file with a reference to linux/ioctl32.h.
That means 6 files are modified, which solves the issue.

Of course, it would also be possible to do some sed-magic in the ebuild.
The affected files are drm/linux-core/*ioc32.c.
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2007-07-22 17:55:28 UTC
Patch looks correct. Maintainers, please apply.
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2007-07-23 21:31:44 UTC
If you're looking for comments from the herd, feel free to commit dsd.
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2007-07-28 16:52:14 UTC
Treat my patch reviewing as a gesture of good will, I'd rather not have to do all of the work myself...

I'll be pushing for 2.6.22 stabling in the next few days, would be nice to see this fixed.
Comment 7 Doug Goldstein (RETIRED) gentoo-dev 2007-07-30 13:36:43 UTC
Well I don't have this hardware nor use this driver at all. So.... if you push 2.6.22 stable without taking care of this, we're breaking QA.
Comment 8 Jonas Pedersen 2007-07-30 14:06:46 UTC
I have created x11-base/x11-drm-20070314-r1 based on the patch from Sebastian and x11-base/x11-drm-20070314 ebuild. It works on my AMD64 system and with the modules loaded it gives a great performance boost in 3D compared to not having the modules loaded. Feel free to use the updated ebuild. 

x11-base/x11-drm-20070314-r1  VIDEO_CARDS="radeon -i810 -mach64 -mga -nv -r128 -savage -sis (-sunffb) -tdfx -via"

Portage 2.1.2.9 (default-linux/amd64/2006.1/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r2 x86_64 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 30 Jul 2007 12:50:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -msse3 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -msse3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distcc distlocks metadata-transfer multilib-strict sandbox sfperms strict test"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.du.se/pub/os/gentoo http://trumpetti.atm.tut.fi/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ds.thn.htu.se/linux/gentoo"
LC_ALL="en_DK.utf8"
LINGUAS="da en"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acpi aiglx alsa amd64 apache2 arts atk berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dga directfb dri dts dvd dvdr dvdread eds emboss encode fam fbcn ffmpeg firefox fortran ftp gd gdbm gif gphoto2 gpm gstreamer gtk gtk2 hal iconv icq ieee1394 ipv6 isdnlog java jpeg kde libg++ lm_sensors mad midi mikmod mjpeg mozilla mp3 mpeg mplayer msn mudflap ncurses nls nptl nptlonly ogg oggvorbis opengl openmp pam pcre pda pdf perl png ppds pppd python qt qt3 qt4 quicktime readline reflection samba sdl session spell spl sse3 ssl tcpd test threads tiff truetype truetype-fonts type1-fonts unicode vorbis xcomposite xml xorg xscreensaver xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="da en" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 9 Jonas Pedersen 2007-07-30 14:07:35 UTC
Created attachment 126443 [details]
Updated ebuild
Comment 10 Jonas Pedersen 2007-07-30 14:08:26 UTC
Created attachment 126445 [details, diff]
Patch to put in files directory.

And now with both updated ebuild and patch for files directory.
Comment 11 ArYiX 2007-08-13 19:44:11 UTC
ACCESS VIOLATION
open_wr:   /usr/src/linux-2.6.23-rc1-mm2/null.gcda
open_wr:   /usr/src/linux-2.6.23-rc1-mm2/null.gcda
open_wr:   /usr/src/linux-2.6.23-rc1-mm2/null.gcda
open_wr:   /usr/src/linux-2.6.23-rc1-mm2/null.gcda
open_wr:   /usr/src/linux-2.6.23-rc1-mm2/null.gcda
open_wr:   /usr/src/linux-2.6.23-rc1-mm2/null.gcda

Comment 12 ArYiX 2007-08-13 19:46:03 UTC
Created attachment 127979 [details]
sandbox log
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2007-08-14 07:34:52 UTC
(In reply to comment #11)

Not here, Bug 135745
Comment 14 Bryan Stine (RETIRED) gentoo-dev 2008-09-12 05:17:23 UTC
Not sure how I missed closing this one. Fixed in patchball 0.3, anyway...