Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 338325 - x11-drivers/ati-drivers-10.9 fails to build
Summary: x11-drivers/ati-drivers-10.9 fails to build
Status: RESOLVED DUPLICATE of bug 336467
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-22 04:12 UTC by rainer
Modified: 2010-09-22 11:37 UTC (History)
2 users (show)

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


Attachments
modified patch from phoronix forum (ioctl_compat_alloc_user_space.patch,338 bytes, patch)
2010-09-22 11:23 UTC, DarkNRG
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description rainer 2010-09-22 04:12:06 UTC
# emerge -uDN ati-drivers
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) x11-drivers/ati-drivers-10.9
 * ati-driver-installer-10-9-x86.x86_64.run RMD160 SHA1 SHA256 size ;-) ...  [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
 * Package:    x11-drivers/ati-drivers-10.9
 * Repository: gentoo
 * Maintainer: lu_zero@gentoo.org x11@gentoo.org
 * USE:  amd64 elibc_glibc kernel_linux modules multilib qt4 userland_GNU
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.35-gentoo-r8cfg-2010-08-14
 * 
 * Please note that this driver supports only graphic cards based on
 * r600 chipset and newer.
 * This represent the ATI Radeon HD series at this moment.
 * 
 * If your card is older then usage of x11-drivers/xf86-video-ati
 * as replacement is highly recommended. Rather than staying with
 * old versions of this driver.
 * For migration informations please reffer to:
 * http://www.gentoo.org/proj/en/desktop/x/x11/ati-migration-guide.xml
 * 
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/x11-drivers/ati-drivers-10.9/work
>>> Preparing source in /var/tmp/portage/x11-drivers/ati-drivers-10.9/work ...
 * Applying ati-drivers-fix_compilation-bug-297322.patch ...             [ ok ]
 * Applying ati-powermode-opt-path-2.patch ...                           [ ok ]
 * Converting 2.6.x/Makefile to use M= instead of SUBDIRS= ...           [ ok ]
>>> Unpacking ./../common/usr/src/ati/fglrx_sample_source.tgz to /var/tmp/portage/x11-drivers/ati-drivers-10.9/work/extra
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-drivers/ati-drivers-10.9/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-drivers/ati-drivers-10.9/work ...
 * Preparing fglrx module
make -j9 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= GCC_VER_MAJ=4 KVER=2.6.35-gentoo-r8cfg-2010-08-14 KDIR=/usr/src/linux kmod_build 
make -C /usr/src/linux M=/var/tmp/portage/x11-drivers/ati-drivers-10.9/work/common/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-2.6.35-gentoo-r8'
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-10.9/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-10.9/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-10.9/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_agp.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-10.9/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_debug.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-10.9/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-10.9/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_io.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-10.9/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_pci.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-10.9/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_str.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-10.9/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_wait.o
/var/tmp/portage/x11-drivers/ati-drivers-10.9/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.c: In function 'KCL_IOCTL_AllocUserSpace32':
/var/tmp/portage/x11-drivers/ati-drivers-10.9/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.c:196: error: implicit declaration of function 'compat_alloc_user_space'
/var/tmp/portage/x11-drivers/ati-drivers-10.9/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.c:196: warning: return makes pointer from integer without a cast
make[2]: *** [/var/tmp/portage/x11-drivers/ati-drivers-10.9/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.o] Error 1
make[1]: *** [_module_/var/tmp/portage/x11-drivers/ati-drivers-10.9/work/common/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.35-gentoo-r8'
make: *** [kmod_build] Error 2
emake failed
 * ERROR: x11-drivers/ati-drivers-10.9 failed:
 *   Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=  GCC_VER_MAJ=4 KVER=2.6.35-gentoo-r8cfg-2010-08-14 KDIR=/usr/src/linux kmod_build


Reproducible: Always




# emerge --info
Portage 2.1.9.9 (default/linux/amd64/10.0/desktop, gcc-4.4.4, glibc-2.12.1-r1, 2.6.35-gentoo-r5cfg-2010-08-14 x86_64)
=================================================================
System uname: Linux-2.6.35-gentoo-r5cfg-2010-08-14-x86_64-Intel-R-_Core-TM-_i7_CPU_860_@_2.80GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 22 Sep 2010 03:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.67
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -msse4 -mcx16 -msahf -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -msse4 -mcx16 -msahf -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.gtlib.gatech.edu/pub/gentoo"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/science /usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aim alsa amd64 ao audiofile avahi bash-completion bcmath berkdb blas bluetooth branding bzip2 cairo calendar caps cdda cddb cdparanoia cdr cli consolekit cracklib crypt css cups curl curlwrappers cxx dbus dga directfb djvu dri dts dv dvd dvdr emacs emboss encode esd exif fam fbcon ffmpeg firefox flac fontconfig fortran ftp gd gdbm gif gimp ginac glut gnome gnome-keyring gnuplot gnutls gphoto2 gpm gps graphviz gsm gstreamer gtk gtkhtml gzip hal hddtemp iconv icq ieee1394 imagemagick imap imlib iodbc ipv6 jabber java java6 javascript jbig jingle jpeg jpeg2k kde kontact lame lapack lash latex lcms ldap libgda libnotify lirc lm_sensors lzo mad matroska mikmod mime mmx mng modules mono mozilla mp3 mp4 mpeg mpi mplayer msn mudflap mule multilib musepack musicbrainz mysql mysqli nas ncurses neXt nls nntp nocd nptl nptlonly nsplugin odbc offensive ofx ogg openal openexr opengl openmp osc oscar oss pam pango pcre pdf perl php plasma plotutils png policykit ppds pppd pulseaudio python qt3support qt4 quicktime raw readline reflection rss ruby samba scanner sdl semantic-desktop session smp sockets socks5 sox speex spell sqlite sqlite3 sse sse2 ssl startup-notification svg symlink sysfs syslog sysvipc szip tcl tcpd threads tiff truetype unicode usb v4l v4l2 vcd vde vnc vorbis wmf wxwidgets x264 xattr xcb xcomposite xemacs xft xml xorg xosd xpm xsl xulrunner xv xvid yahoo 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa radeon fglrx" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 emil karlson 2010-09-22 06:38:49 UTC
Fixed in upstream, too lazy to make (and test properly) a patch.

Fix can be found at.

http://www.phoronix.com/forums/showthread.php?t=25485
Comment 2 emil karlson 2010-09-22 06:47:14 UTC
(In reply to comment #1)
> Fixed in upstream, too lazy to make (and test properly) a patch.
> 
> Fix can be found at.
> 
> http://www.phoronix.com/forums/showthread.php?t=25485
> 

Seems my "upstream" was ubuntu ppa, not sure about amd repos...
Comment 3 DarkNRG 2010-09-22 11:23:12 UTC
Created attachment 248347 [details, diff]
modified patch from phoronix forum

I've modified the file-path of this patch.
Seems to work for me.
Comment 4 I am 2010-09-22 11:35:13 UTC
(In reply to comment #3)
> Created an attachment (id=248347) [details]
> modified patch from phoronix forum
> 
> I've modified the file-path of this patch.
> Seems to work for me.
> 

I have manually modified kcl_ioctl.c :

from 

 return compat_alloc_user_space(size);

to

 return arch_compat_alloc_user_space(size);


and it worked also.


So i think the patch should be included in ati-drivers-10.9-r1.ebuild
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-09-22 11:37:06 UTC

*** This bug has been marked as a duplicate of bug 336467 ***