Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129549 - ati-drivers fails to compile properly on gentoo-sources-2.6.16-r1
Summary: ati-drivers fails to compile properly on gentoo-sources-2.6.16-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-10 18:34 UTC by Cam Cope
Modified: 2006-05-01 17:04 UTC (History)
2 users (show)

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


Attachments
mem_map and gcc-4.1 patch (ati-drivers-8.23.7-gcc41.patch,1.91 KB, text/plain)
2006-04-30 15:52 UTC, Jory A. Pratt
Details
emerge --info on a machine that successfully compiles with the patch (info,2.85 KB, text/plain)
2006-04-30 16:30 UTC, Cam Cope
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cam Cope 2006-04-10 18:34:58 UTC
The DRM module of ati-drivers-8.23.7 fails to compile with gentoo-sources-2.6.16-r1.

Anarchy says that there is a conflict between a header patch in the new gentoo-sources and the driver. He doesn't have the time to go through and find the specific header, unfortunately. This must be identified and a patch made.
Comment 1 Martin Honermeyer 2006-04-14 02:00:14 UTC
8.23.7 doesn't compile on kernel 2.6.16-r1 / amd64 for me, too!

/var/tmp/portage/ati-drivers-8.23.7/work/common/lib/modules/fglrx/build_mod/firegl_public.c: In function `__ke_get_page':
/var/tmp/portage/ati-drivers-8.23.7/work/common/lib/modules/fglrx/build_mod/firegl_public.c:1833: error: `mem_map' undeclared (first use in this function)
Comment 2 Jory A. Pratt 2006-04-18 18:57:05 UTC
(In reply to comment #1)
> 8.23.7 doesn't compile on kernel 2.6.16-r1 / amd64 for me, too!
> 
> /var/tmp/portage/ati-drivers-8.23.7/work/common/lib/modules/fglrx/build_mod/firegl_public.c:
> In function `__ke_get_page':
> /var/tmp/portage/ati-drivers-8.23.7/work/common/lib/modules/fglrx/build_mod/firegl_public.c:1833:
> error: `mem_map' undeclared (first use in this function)
> 
A patch that is being applied to gentoo-sources is due to be in 2.6.17 identify the patch and remove it and ati-drivers will compile without a hitch I am sure.

Comment 3 Jory A. Pratt 2006-04-30 15:52:53 UTC
Created attachment 85866 [details]
mem_map and gcc-4.1 patch

test it and let me know if all is good I will commit it.
Comment 4 Jory A. Pratt 2006-04-30 15:53:31 UTC
if you all would please post emerge info, I need to also make sure this is not a gcc bug.
Comment 5 Cam Cope 2006-04-30 16:30:00 UTC
Created attachment 85871 [details]
emerge --info on a machine that successfully compiles with the patch

"mem_map bug [fix]" -(Anarchy)
Comment 6 Cam Cope 2006-04-30 16:43:12 UTC
Comment on attachment 85871 [details]
emerge --info on a machine that successfully compiles with the patch

>Gentoo Base System version 1.12.0_pre18
>Portage 2.1_pre10 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.4-r1, 2.6.16-ck6-r1 x86_64)
>=================================================================
>System uname: 2.6.16-ck6-r1 x86_64 AMD Athlon(tm) 64 Processor 3200+
>ccache version 2.4 [enabled]
>dev-lang/python:     2.3.4-r1, 2.4.3
>dev-util/ccache:     2.4-r1
>dev-util/confcache:  [Not Present]
>sys-apps/sandbox:    1.2.17
>sys-devel/autoconf:  2.13, 2.59-r7
>sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
>sys-devel/binutils:  2.16.1-r2
>sys-devel/libtool:   1.5.22
>virtual/os-headers:  2.6.11-r3
>ACCEPT_KEYWORDS="amd64 ~amd64"
>AUTOCLEAN="yes"
>CBUILD="x86_64-pc-linux-gnu"
>CFLAGS="-march=athlon64 -O2 -pipe"
>CHOST="x86_64-pc-linux-gnu"
>CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
>CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
>CXXFLAGS="-march=athlon64 -O2 -pipe"
>DISTDIR="/usr/portage/distfiles"
>FEATURES="autoconfig ccache distcc distlocks fixpackages metadata-transfer sandbox sfperms strict"
>GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ http://mirrors.acm.cs.rpi.edu/gentoo/ http://mirror.mcs.anl.gov/pub/gentoo/ http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.mirrors.tds.net/gentoo"
>MAKEOPTS="-j2"
>PKGDIR="/usr/portage/packages"
>PORTAGE_TMPDIR="/var/tmp"
>PORTDIR="/usr/portage"
>PORTDIR_OVERLAY="/usr/local/portage"
>SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
>USE="amd64 64bit 7zip X aac acpi aim aimextras alsa apm applet artworkextra avi bcmath berkdb bitmap-fonts cddb cdrom chm cli crypt css cups dbus directfb disk-cache dri drm dvd dvdr dvdread eds emboss emul-linux-x86 encode escreen fbcon fbsplash firefox font-server fontconfig foomaticdb fortran freetype ftp fuse gif gimp gimpprint ginac glx gmail gmailtimestamps gnome gnome-print gnomecanvas gnomedb gpm grammar gstreamer gtalk gtk gtk2 hddtemp id3 imlib imlib2 ipod iproute2 ipv6 isdnlog ithreads jpeg libtommath lm_sensors lzw lzw-tiff math mozcalendar mozsvg mp3 mpeg mplayer musicbrainz nautilus ncurses net nls nocardbus nptl nptlonly ntfs opengl pam pcre pdf pdflib perl png pppd python qt quicktime rar readline reflection rhythmbox rss sdl sensord session spell spl ssl symlink sysfs tagwriting tcpd thesaurus threads tiff truetype-fonts type1-fonts usb xorg xpm xprint xrandr xscreensaver xv zip zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_ati video_cards_vesa"
>Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS
>
Comment 7 Jory A. Pratt 2006-05-01 17:04:02 UTC
Commited to the tree.