Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 344077 - x11-drivers/ati-drivers 10.9-r1 requires ia32 kernel option enabled
Summary: x11-drivers/ati-drivers 10.9-r1 requires ia32 kernel option enabled
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-04 08:51 UTC by Cody F.
Modified: 2010-11-10 10:54 UTC (History)
3 users (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 Cody F. 2010-11-04 08:51:38 UTC
after doing emerge -av ati-drivers, it reported i had DRM turned on and failed due to Magic SysRq not being enabled.  I recompiled the kernel, turning off DRM on turning on Magic SysRq.  upon doing emerge -av ati-drivers, compilation fails.  Here is the output:

 [32;01m*[0m CPV:  x11-drivers/ati-drivers-10.9-r1
 [32;01m*[0m REPO: gentoo
 [32;01m*[0m USE:  amd64 elibc_glibc kernel_linux modules userland_GNU
 [32;01m*[0m Determining the location of the kernel source code
 [32;01m*[0m Found kernel source directory:
 [32;01m*[0m     /usr/src/linux
 [32;01m*[0m Found kernel object directory:
 [32;01m*[0m     /lib/modules/2.6.34-gentoo-r12/build
 [32;01m*[0m Found sources for kernel version:
 [32;01m*[0m     2.6.34-gentoo-r12
 [32;01m*[0m 
 [32;01m*[0m Please note that this driver supports only graphic cards based on
 [32;01m*[0m r600 chipset and newer.
 [32;01m*[0m This represent the ATI Radeon HD series at this moment.
 [32;01m*[0m 
 [32;01m*[0m If your card is older then usage of x11-drivers/xf86-video-ati
 [32;01m*[0m as replacement is highly recommended. Rather than staying with
 [32;01m*[0m old versions of this driver.
 [32;01m*[0m For migration informations please reffer to:
 [32;01m*[0m http://www.gentoo.org/proj/en/desktop/x/x11/ati-migration-guide.xml
 [32;01m*[0m 
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/x11-drivers/ati-drivers-10.9-r1/work
>>> Preparing source in /var/tmp/portage/x11-drivers/ati-drivers-10.9-r1/work ...
 [32;01m*[0m Applying ati-drivers-fix_compilation-bug-297322.patch ...
[A[165C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying ati-drivers-CVE-2010-3081-fix.patch ...
[A[165C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying ati-powermode-opt-path-2.patch ...
[A[165C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Converting 2.6.x/Makefile to use M= instead of SUBDIRS= ...
[A[165C  [34;01m[ [32;01mok[34;01m ][0m
>>> Unpacking ./../common/usr/src/ati/fglrx_sample_source.tgz to /var/tmp/portage/x11-drivers/ati-drivers-10.9-r1/work/extra
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-drivers/ati-drivers-10.9-r1/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-drivers/ati-drivers-10.9-r1/work ...
 [32;01m*[0m Preparing fglrx module
make -j7 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= GCC_VER_MAJ=4 KVER=2.6.34-gentoo-r12 KDIR=/usr/src/linux ARCH_COMPAT_ALLOC_USER_SPACE=1 kmod_build 
make -C /usr/src/linux M=/var/tmp/portage/x11-drivers/ati-drivers-10.9-r1/work/common/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-2.6.34-gentoo-r12'
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-10.9-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-10.9-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-10.9-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_agp.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-10.9-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_debug.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-10.9-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-10.9-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_pci.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-10.9-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_io.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-10.9-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_str.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-10.9-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_wait.o
/var/tmp/portage/x11-drivers/ati-drivers-10.9-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.c: In function 'KCL_IOCTL_RegisterConversion32':
/var/tmp/portage/x11-drivers/ati-drivers-10.9-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.c:177: error: implicit declaration of function 'register_ioctl32_conversion'
/var/tmp/portage/x11-drivers/ati-drivers-10.9-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.c:177: error: 'ioctl_trans_handler_t' undeclared (first use in this function)
/var/tmp/portage/x11-drivers/ati-drivers-10.9-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.c:177: error: (Each undeclared identifier is reported only once
/var/tmp/portage/x11-drivers/ati-drivers-10.9-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.c:177: error: for each function it appears in.)
/var/tmp/portage/x11-drivers/ati-drivers-10.9-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.c:177: error: expected ')' before 'handler'
/var/tmp/portage/x11-drivers/ati-drivers-10.9-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.c: In function 'KCL_IOCTL_UnregisterConversion32':
/var/tmp/portage/x11-drivers/ati-drivers-10.9-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.c:189: error: implicit declaration of function 'unregister_ioctl32_conversion'
make[2]: *** [/var/tmp/portage/x11-drivers/ati-drivers-10.9-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/var/tmp/portage/x11-drivers/ati-drivers-10.9-r1/work/common/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.34-gentoo-r12'
make: *** [kmod_build] Error 2
 [31;01m*[0m ERROR: x11-drivers/ati-drivers-10.9-r1 failed:
 [31;01m*[0m   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.34-gentoo-r12 KDIR=/usr/src/linux ARCH_COMPAT_ALLOC_USER_SPACE=1 kmod_build
 [31;01m*[0m 
 [31;01m*[0m Call stack:
 [31;01m*[0m     ebuild.sh, line   54:  Called src_compile
 [31;01m*[0m   environment, line 3757:  Called linux-mod_src_compile
 [31;01m*[0m   environment, line 2893:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" 						CROSS_COMPILE=${CHOST}- 						LDFLAGS=\"$(get_abi_LDFLAGS)\" 						${BUILD_FIXES} 						${BUILD_PARAMS} 						${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of 'emerge --info =x11-drivers/ati-drivers-10.9-r1',
 [31;01m*[0m the complete build log and the output of 'emerge -pqv =x11-drivers/ati-drivers-10.9-r1'.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/x11-drivers/ati-drivers-10.9-r1/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/x11-drivers/ati-drivers-10.9-r1/temp/environment'.
 [31;01m*[0m S: '/var/tmp/portage/x11-drivers/ati-drivers-10.9-r1/work'





emerge --info
Portage 2.1.8.3 (default/linux/amd64/10.0/no-multilib, gcc-4.4.4, glibc-2.11.2-r3, 2.6.34-gentoo-r12 x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r12-x86_64-AMD_Phenom-tm-_II_X6_1090T_Processor-with-gentoo-1.12.13
Timestamp of tree: Thu, 04 Nov 2010 07:00:01 +0000
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/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  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.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="rsync://rsync.gtlib.gatech.edu/gentoo http://gentoo.mirrors.pair.com/ ftp://gentoo.llarian.net/pub/gentoo rsync://gentoo.mirrors.tds.net/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo/ http://mirror.usu.edu/mirrors/gentoo/"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aac acl aiglx alsa amd64 aoss asf beagle berkdb bzip2 cairo cdr cli cracklib crypt cups cxx dbus device-mapper dri dvd dvdr esd extras fam firefox flac fortran gdbm gdu gif glitz gnome gpm gstreamer gtk hal iconv ieee1394 java jpeg mad mmx modules mono mp3 mp4 mudflap ncurses new-login nls nptl nptlonly nsplugin opengl openmp pam pcre pdf perl png policykit pppd python readline samba session smp spell sqlite sse sse2 sse3 ssl svg symlink sysfs tcpd threads tiff truetype udev unicode usb vorbis x264 xcomposite xine xinerama 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 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="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_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY



Reproducible: Always

Steps to Reproduce:
1.  emerge --sync
2.  emerge -av ati-drivers
3.

Actual Results:  
fails to compile. 

Expected Results:  
compiled driver lets me use sweet opencl for boinc.

amd phenom II x6 1090t 3.2ghz 
8gb ram
ati radeon hd 5770
Comment 1 Cody F. 2010-11-04 10:07:44 UTC
I also tried compiling with qt4 USE flag in order to get catalyst.  makes no difference.
Comment 2 Enrico Tagliavini 2010-11-04 22:12:17 UTC
You don't have CONFIG_COMPAT enabled in the kernel, do you?
(I'm still not sure this is needed, but i have a doubt at this point)
Comment 3 Enrico Tagliavini 2010-11-04 22:54:51 UTC
ok thank you very much for reporting this.
To be short: you must enable ia32 bit emulation in the kernel to be able to compile fglrx as is.
In theory i can make a simple patch to make it working without ia32 emulation enabled, but..... i'm very scared about possible bad consequences, so i will not do such patch for now.

But i will add a check in the ebuild.
Comment 4 Cody F. 2010-11-06 04:29:56 UTC
i just recompiled  the kernel with IA32.  rebooting now to try emerging ati-drivers again.  one note, a few other programs (wine, smuxi, and doing emerge -e system && emerge -e world) failed with the same error.  glitz was the package emerge system && emerge world failed on.  i was going for a full, no multilib 64bit system.  i guess i can't do that and use these things.  that is fine i suppose.  a few questions though... why would i be able to build all my apps, then when i do emerge system && emerge world would it fail, on the same kernel?  surely if i compiled before without IA32 it would let me now?  maybe glitz wasn't in the picture before.  anyway, i thank you for the help.  i'll let you know as soon as i try this.  
Comment 5 Cody F. 2010-11-06 06:14:53 UTC
After rebuilding the kernel, i receive the same error.  I did revdep-rebuild and found that the only broken packages(of which there was around 25 or 30!), all required -lGL, which they cannot find.  So, the IA32 flag may have brought me a step further.  238686.  this quickly became my overall system bug.  after installing the ati drivers from amd's page when the emerge failed due to IA32, my links we're no good.  i follow 238686's comment #5 and its revdep-rebuilding now.  then i'll attempt ati-drivers again.  thank you very much.
Comment 6 Enrico Tagliavini 2010-11-06 11:25:40 UTC
wine is a 32 bit app, the 64 bit version is not ready, if you want to use wine use a multilib profile. glitz is a deprecated package i removed it from my system long ago.

About failed link to libGL this is odd. you should have mesa installed so you can eselect opengl xorg-x11 and libGL should be there again. Of course if those package are searching for the 32 bit libGL version they fails and you have no way to solve but installing a new system with multilib profile
Comment 7 Enrico Tagliavini 2010-11-06 11:28:02 UTC
Oh i fogotten, check that CONFIG_COMPAT is =y in your .config since you need that too (i think it is enabled when ia32 is, but i'm not totally sure). also che that you /usr/src/linux points to the correct sources
Comment 8 Enrico Tagliavini 2010-11-09 12:00:19 UTC
Can you test with the ati-drivers-10.10 pls? If you don't have CONFIG_COMPAT enabled it should fail now, otherwise it should compile fine.

If it doesn't work pls attach your kernel config
Comment 9 Cody F. 2010-11-09 23:42:34 UTC
very sorry... i did a full scratch of my hd and started over.  i compiled from the start with multilib.  things went much smoother.  i suppose multilib was the deal breaker before.  I have a very similar kernel now, and had no real issues.  A couple of typical ati-drivers install problems, but nothing major.  its all fully accelerated now.  without vertical sync 11000+ fps on glxgears, with vert sync(very smooth everything) ~60fps.  extremely sorry i wasn't able to try more situations... i will go back to this again later.  i am very interested in a 64bit only system.  thanks for everything.
Comment 10 Enrico Tagliavini 2010-11-10 10:54:14 UTC
Don't worry, you spotted a problem in the ebuild anyway, so thank you very much for your time :)