Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 409935 - x11-drivers/ati-drivers-12.2 with kernel > 3.2.7.1: Compile fails
Summary: x11-drivers/ati-drivers-12.2 with kernel > 3.2.7.1: Compile fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 414575 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-03-27 23:56 UTC by hololeap
Modified: 2012-05-04 15:18 UTC (History)
4 users (show)

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


Attachments
Patch to fix x11-drivers/ati-drivers-12.2 on kernels > 3.2.7.1 (post_3.2.7.1-fix.diff,948 bytes, text/plain)
2012-03-27 23:56 UTC, hololeap
Details
emerge --info (emergeinfo.txt,13.66 KB, text/plain)
2012-04-05 21:40 UTC, myxol
Details
Config file for gentoo-sources-3.3.0 (config,79.16 KB, text/plain)
2012-04-07 23:37 UTC, hololeap
Details
patch to fix TS_USEDFPU compilation error (amd-drivers-3.2.7.1.patch,560 bytes, patch)
2012-04-08 11:59 UTC, Enrico Tagliavini
Details | Diff
Ebuild to fix TS_USEDFPU compulation error (ati-drivers-12.3-r1.ebuild,19.08 KB, text/plain)
2012-04-08 12:01 UTC, Enrico Tagliavini
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hololeap 2012-03-27 23:56:26 UTC
Created attachment 306915 [details]
Patch to fix x11-drivers/ati-drivers-12.2 on kernels > 3.2.7.1

I have installed sys-kernel/gentoo-sources-3.3.0 and tried to rebuild x11-drivers/ati-drivers-12.2. The compile phase failed with the following error:

/var/tmp/portage/x11-drivers/ati-drivers-12.2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'KCL_fpu_begin':
/var/tmp/portage/x11-drivers/ati-drivers-12.2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:5804:28: error: 'TS_USEDFPU' undeclared (first use in this function)
/var/tmp/portage/x11-drivers/ati-drivers-12.2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:5804:28: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [/var/tmp/portage/x11-drivers/ati-drivers-12.2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1
make[1]: *** [_module_/var/tmp/portage/x11-drivers/ati-drivers-12.2/work/common/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-3.3.0-gentoo'
make: *** [kmod_build] Error 2

This error also occurs on ati-drivers-12.1-r1. I haven't tested it on any other versions. I Googled the error and found the following post in the Fedora forums:
http://forums.fedoraforum.org/showthread.php?t=277857

I made a patch from the content of post #6 and have attached it:
http://forums.fedoraforum.org/showpost.php?s=31a2090d9f0d4ab85d17ce8ba197b629&p=1564578&postcount=6

I have tested it and it works on my system with ati-drivers-12.2.

-----------------------

emerge --info:

Portage 2.1.10.47 (default/linux/x86/10.0/desktop/kde, gcc-4.5.3, glibc-2.14.1-r2, 3.3.0-gentoo i686)
=================================================================
System uname: Linux-3.3.0-gentoo-i686-AMD_Athlon-tm-_II_Dual-Core_M300-with-gentoo-2.1
Timestamp of tree: Tue, 27 Mar 2012 00:45:01 +0000
ccache version 3.1.7 [enabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.7-r2, 2.7.2-r3, 3.2.2
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.7-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.8.4-r1::pentoo
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo kde proaudio spring portato pentoo
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=amdfam10 -pipe -fomit-frame-pointer -msse4a"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=amdfam10 -pipe -fomit-frame-pointer -msse4a"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="https://ftp.ucsb.edu/pub/mirrors/linux/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/kde /var/lib/layman/pro-audio /var/lib/layman/Spring /var/lib/layman/portato /var/lib/layman/pentoo"
SYNC="rsync://rsync24.us.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa bash-completion berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups custom-cpuopts cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif gstreamer gtk iconv idn ipv6 jpeg kde kipi laptop lcms ldap libnotify libsamplerate lua lzma mad mmx mmxext mng modules mp3 mp4 mpeg mudflap ncurses nptl nptlonly nsplugin offensive ogg opengl openmp pam pango pcre pdf perl phonon plasma png policykit ppds pppd pulseaudio python qt3support qt4 readline ruby samba sdl semantic-desktop session spell sse sse2 ssl ssse3 startup-notification svg sysfs tcl tcpd tiff truetype udev unicode usb vim-syntax vorbis wifi x264 x86 xcb xcomposite xml xorg xscreensaver xulrunner xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" 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 keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vesa 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Enrico Tagliavini 2012-03-28 17:28:53 UTC
Sounds a x86 issue only for me. I cannot reproduce on amd64. This is strange, I would like to hear some opinion and test from others to understand if this is a common issue, or a config one.

Please attach your .config for the failing kernel.
Comment 2 myxol 2012-04-05 21:40:48 UTC
Created attachment 307941 [details]
emerge --info

> I would like to hear some opinion and test from others
I have the same problem.
Comment 3 hololeap 2012-04-07 23:37:50 UTC
Created attachment 308177 [details]
Config file for gentoo-sources-3.3.0

This bug is also present in x11-drivers/ati-drivers-12.3. Here is the config file you requested.
Comment 4 Enrico Tagliavini 2012-04-08 11:59:28 UTC
Created attachment 308211 [details, diff]
patch to fix TS_USEDFPU compilation error

This is a reworked patch to solve the problem. I will attach an ebuild to test this patch in a minute. If this fixes the problem for the reporter i will push it to the X11 overlay.
Comment 5 Enrico Tagliavini 2012-04-08 12:01:16 UTC
Created attachment 308213 [details]
Ebuild to fix TS_USEDFPU compulation error

This is the ebuild using the previous attached patch. Test it please, thank you.
Comment 6 hololeap 2012-04-24 04:26:59 UTC
It seems to work fine on the aforementioned system. Thank you for making that.
Comment 7 Enrico Tagliavini 2012-04-24 09:17:02 UTC
(In reply to comment #6)
> It seems to work fine on the aforementioned system. Thank you for making
> that.

Thank you for the test. Given that I don't have much time these days (sorry!) I might wait for the 12.4 release to apply this patch (if still needed with 12.4 version).

12.4 should be out in one week if no delay will happen.
Comment 8 Enrico Tagliavini 2012-05-01 12:07:09 UTC
ati-drivers-12.4 is in the main portage tree. I mark this bug as fixed.

Cheers
Comment 9 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-05-04 15:18:50 UTC
*** Bug 414575 has been marked as a duplicate of this bug. ***