Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96740 - ati-drivers-8.14.13-r1 compile problem on amd64 (2.6.12 kernel)
Summary: ati-drivers-8.14.13-r1 compile problem on amd64 (2.6.12 kernel)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: X11 External Driver Maintainers
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2005-06-21 15:06 UTC by Marcin Deranek
Modified: 2005-06-26 07:26 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Deranek 2005-06-21 15:06:24 UTC
ati-drivers does not compile on amd64 platform:

 * Building the DRM module...
make: Entering directory `/usr/src/linux-2.6.12-gentoo'
  CC [M] 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/agp3.o
  CC [M] 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/nvidia-agp.o
  CC [M] 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/agpgart_be.o
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/agpgart_be.c:
In function `__fgl_agp_init':
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/agpgart_be.c:7629:
warning: `pm_register' is deprecated (declared at include/linux/pm.h:106)
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/agpgart_be.c:
In function `__fgl_agp_cleanup':
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/agpgart_be.c:7639:
warning: `pm_unregister_all' is deprecated (declared at include/linux/pm.h:116)
  CC [M] 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/i7505-agp.o
  CC [M] 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/firegl_public.o
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/firegl_public.c:122:25:
asm/ioctl32.h: No such file or directory
In file included from
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/firegl_public.c:128:

<snip>
make: ***
[_module_/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod]
Error 2
make: Leaving directory `/usr/src/linux-2.6.12-gentoo'
 * DRM module not built

It looks like ioctl32.h is not present on 2.6.12 kernel.
The following patch solves the problem:

--- build_mod.orig/firegl_public.c        2005-06-21 18:30:50.000000000 +0200
+++ build_mod/firegl_public.c     2005-06-21 18:31:31.000000000 +0200
@@ -119,7 +119,9 @@
 #endif

 #ifdef __x86_64__
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,12)
 #include "asm/ioctl32.h"
+#endif
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,2)
 #include "linux/syscalls.h"
 #endif



Reproducible: Always
Steps to Reproduce:
1. emerge ati-drivers

Actual Results:  
Package does not compile (at least fglrx kernel module)

Expected Results:  
Package should compile
Comment 1 Jason Sievert 2005-06-23 07:38:48 UTC
I am getting the same errors.

Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.11-gentoo-r11 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r11 x86_64 AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System version 1.6.12
ccache version 2.4 [disabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.9
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O3 -ffast-math -funroll-all-loops -funit-at-a-time
-fpeel-loops -ftracer -funswitch-loops"
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/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O3 -ffast-math -funroll-all-loops -funit-at-a-time
-fpeel-loops -ftracer -funswitch-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.mirrors.pair.com/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa apache2 audiofile avi bash-completion berkdb bitmap-fonts
bluetooth bonobo bootsplash cddb cdparanoia cdr crypt cups curl dba dbus dts dvd
dvdr eds encode epiphany esd ethereal evo evo2 exif fam flac flash font-server
foomaticdb fortran gd gdbm gif gimpprint glitz gnokii gnome gphoto2 gpm
gstreamer gtk gtk2 gtkhtml guile hal hbci howl icq icu imagemagick imap imlib
ipv6 irmc jabber java jp2 jpeg junit kde ldap libwww lirc lzw lzw-tiff mad
matroska mikmod motif mozilla mp3 mpeg mpeg4 msn mysql ncurses network nfsv4 nls
nptl offensive ofx ogg oggvorbis opengl oscar oss pam pcmcia perl php png pnp
ppds python qt quicktime quotes readline real ruby samba sdl silc sndfile speex
spell ssl subversion svg tcpd theora tiff transcode truetype truetype-fonts
type1-fonts usb userlocales vcd visualization vorbis wifi xanim xine xml xml2
xmms xpm xrandr xv yahoo zeroconf zlib video_cards_radeon userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 2 Luca Barbato gentoo-dev 2005-06-26 07:26:34 UTC
fixed some time ago