I tried to bump ati-drivers to the newly released 10.10, but I got the following build error: make -j3 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= GCC_VER_MAJ=4 KVER=2.6.35-gentoo-r7 KDIR=/usr/src/linux kmod_build make -C /usr/src/linux M=/var/tmp/portage/x11-drivers/ati-drivers-10.10/work/common/lib/modules/fglrx/build_mod/2.6.x modules make[1]: Entering directory `/usr/src/linux-2.6.35-gentoo-r7' CC [M] /var/tmp/portage/x11-drivers/ati-drivers-10.10/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-10.10/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_agp.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-10.10/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-10.10/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_debug.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-10.10/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.o /var/tmp/portage/x11-drivers/ati-drivers-10.10/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘KCL_MapPageToPfn’: /var/tmp/portage/x11-drivers/ati-drivers-10.10/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1636: warning: unused variable ‘bus_addr’ /var/tmp/portage/x11-drivers/ati-drivers-10.10/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.10/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.10/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.c:196: warning: initialization makes pointer from integer without a cast make[2]: *** [/var/tmp/portage/x11-drivers/ati-drivers-10.10/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.10/work/common/lib/modules/fglrx/build_mod/2.6.x] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.35-gentoo-r7' make: *** [kmod_build] Error 2 * ERROR: x11-drivers/ati-drivers-10.10 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-r7 KDIR=/usr/src/linux kmod_build * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 3742: Called linux-mod_src_compile * environment, line 2875: Called die * The specific snippet of code: * 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}"; Any ideas? Reproducible: Always Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r0, 2.6.35-gentoo-r7 x86_64) ================================================================= System uname: Linux-2.6.35-gentoo-r7-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8700_@_2.53GHz-with-gentoo-1.12.13 Timestamp of tree: Wed, 20 Oct 2010 11:00:01 +0000 distcc 3.1 x86_64-pc-linux-gnu [disabled] ccache version 2.4 [disabled] 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-r7 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.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.30-r1 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA dlj-1.1 googleearth skype-eula AdobeFlash-10 AdobeFlash-10.1" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=core2 -ggdb" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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="-O2 -pipe -march=core2 -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.linux.org.tr/gentoo/ http://gentoo.virginmedia.com/ " LANG="en_GB.UTF-8" LC_ALL="en_GB.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="tr en en_GB 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 --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="64bit X a52 aac acl acpi alsa amd64 applet applets aspell automount avahi bash-completion beagle berkdb bluetooth branding brasero bzip2 cairo ccache cdda cddax cddb cdr cdrom cdrtools consolekit cpufreq cracklib crypt css cups cxx daap dbus deskbar device-mapper dga dhcpcd disk-partition dri dtmf dts dvd dvdnav dvdr dvi dvipdfm eds encode evo exif extra faac faad fbcon fbcondecor ffmpeg firefox flac galago gdbm gdu gif gnome gnome-keyring gnutls gpm gps graphics gstreamer gtk h323 hal hddtemp iconv inotify ipv6 jabber java java6 javascript jingle jpeg jpeg2k kms kpathsea laptop libnotify mmx modules mp3 msn mudflap multilib musicbrainz nautilus ncurses networkmanager nls nptl nptlonly nsplugin offensive ogg opengl openmp pam pdf perl png policykit pppd pstricks pulseaudio python qt4 readline science smp sms speex spell sqlite sse sse2 sse4 sse4a ssl ssse3 svg sysfs tcpd theora threads tiff totem truetype udev unicode usb v4l2 vim-syntax vorbis wav wavpack wifi wmf wps xorg zemberek zeroconf zip 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="tr en en_GB en_US" PHP_TARGETS="php-5.2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fglrx radeon" 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, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Confirmed here too.
Created attachment 251669 [details] EBUILD
Created attachment 251671 [details] updated patch
Created attachment 251673 [details] updated patch
Its on my overlay: http://hg.cryptelium.net/hg/system/gentoo/overlay/
Toward the bug error, BUILD_PARAMS seems ignored in the ebuild, so i adapted the patch not to use condtionnal macros but just simple code and patch only in the right use case (make a diff between 10.9 and my 10.10 ebuild).
Created attachment 251697 [details, diff] new ebuild for ati-drivers 10.10 This patch should be applied against ati-drivers-8.780.ebuild and then rename it to ati-drivers-10.10.ebuild. __no additional patch needed, use the original patches provided in the portage tree__ If someone can test it against gentoo-sources-2.6.36 thank you :)
> If someone can test it against gentoo-sources-2.6.36 thank you :) It works against gentoo-sources-2.6.36
(In reply to comment #8) > It works against gentoo-sources-2.6.36 > thank you very much for testing. If someone else uses xorg-server-1.9 he/she can test this version. I tested with 1.7.7-r1
Your patch may not cove all case as mine do.
(In reply to comment #10) > Your patch may not cove all case as mine do. > can you explain please? don't concern to be long-winded :)
You seems not using 32b COMPAT mode as "ati-drivers-CVE-2010-3081-fix.patch" would not apply anymore. For that, you 'll have missed y patch + my updated ebuild (or another flavor in any case) as it 's broken (see #c1). The 'ati-drivers-2.6.36.patch' also needed to be updated to pass on my box (vserver-sources): - 2.6.35 seems also affected - The patch is slightly different with the 10.10 (see unlocked_ioctl)
(In reply to comment #12) > You seems not using 32b COMPAT mode as "ati-drivers-CVE-2010-3081-fix.patch" > would not apply anymore. Becouse it is not needed anymore. the fix is included in the driver release so ati-drivers-CVE-2010-3081-fix.patch should not be applied anymore. > The 'ati-drivers-2.6.36.patch' also needed to be updated to pass on my box > (vserver-sources): > - 2.6.35 seems also affected > - The patch is slightly different with the 10.10 (see unlocked_ioctl) > Mhm i see. I will do some check, thank you.
(In reply to comment #13) > (In reply to comment #12) > > You seems not using 32b COMPAT mode as "ati-drivers-CVE-2010-3081-fix.patch" > > would not apply anymore. No, it does not work, read the bug backtrace, and i was also affected. >
(In reply to comment #14) > No, it does not work, read the bug backtrace, and i was also affected. Can't reproduce i'm sorry. I just installed sys-kernel/vserver-sources-2.3.0.36.32 compiled my ati-drivers against it and it builds correctly. Can't test if it works right in runtime now, but i have no issue building. Which version of vserver-sources are you using?
2.3.0.36.32 also My config is there : http://hg.cryptelium.net/hg/system/config/kernels/file/tip/linux/vserver But you must also enable CONFIG_MSI into it. Sorry the config with CONFIG_MSI enabled is not commited and the hard drive of this laptop is offline by now (some failure i didnt had time to check). I ll commit it in the next days.
process_bug.cgi
oups, sorry, it's CONFIG_PCI_MSI !
Ok i found sometime to test your config. I used your config this time, i used first make oldconfig just to check if it was up to date and it is, then i enabled MSI pci. ati-drivers builds fine...... again cannot reproduce i'm sorry
I tested the latest patch by enrico with xorg-server 1.8 and 1.9 and it works with both of them. Could not find regressions to 10.9 until now.
(In reply to comment #20) > I tested the latest patch by enrico with xorg-server 1.8 and 1.9 and it works > with both of them. Could not find regressions to 10.9 until now. > Thank you very much for testing
I had trouble with kiorky's ebuild, it seemed to fail running the patches. It's possible I hadn't downloaded the updated patches from here to accompany it though. I got Enrico's ebuild working and am glad to be back in X. I am using gentoo-sources-2.6.36 on an AMD64 machine. My xorg-server is 1.7.7-r1. I am going to try upgrading to xorg-server 1.9.1-r1 over the next few days. By the way, I am using a Radeon HD 6870, and there's an annoying "unsupported hardware" watermark on the bottom right of the screen. Pretty sure it wouldn't work at all if it wasn't supported. :P AMD are weird.
(In reply to comment #22) > I got Enrico's ebuild working and am glad to be back in X. I am using > gentoo-sources-2.6.36 on an AMD64 machine. My xorg-server is 1.7.7-r1. > > I am going to try upgrading to xorg-server 1.9.1-r1 over the next few days. Thanks for testing :). > By the way, I am using a Radeon HD 6870, and there's an annoying "unsupported > hardware" watermark on the bottom right of the screen. Pretty sure it wouldn't > work at all if it wasn't supported. :P AMD are weird. > Wow what a new card :). You got an unsupported hardware watermark becouse the support is still experimental or not finished yet. When AMD will release a driver version that officialy support your card the watermark will disappear. I guess this will likely happen with ati-drivers-10.11
Created attachment 252931 [details, diff] EBUILD
I commited on my overlay the xorg changed directory that was present on Enrico patch. Enrico, i think what i have commited (both of our work) is the right thing to have finally: - support for 2.6.35+ instead of 2.6.36+ (ati-drivers-2.6.36.patch) - 64b kernels using 32b compat mode (ati-drivers-CVE-2010-3081-fix.patch) - Directories changes (updated ati-drivers-10.10.ebuild) So either tool those 3 files (and not the ebuild patch) or clone my overlay (see up)
(In reply to comment #22) <snip> > By the way, I am using a Radeon HD 6870, and there's an annoying "unsupported > hardware" watermark on the bottom right of the screen. Pretty sure it wouldn't > work at all if it wasn't supported. :P AMD are weird. > That comment just made my day :) -- Bought it yesterday and was afraid i'D be X(org)-less for a while again (last time it was my 5750 which made me use vesa then radeonhd driver as a temporary X-display without accel ;))
This ebuild works well, and the Catalyst 10.10 drivers are AWESOME! Finally, ACTUAL drivers that are almost as good as AMD chips! why is this ebuild not in the portage tree yet?
(In reply to comment #27) > why is this ebuild not in the portage tree yet? > ati-drivers mantainer is really busy. He will bump it as soon as possible.
+*ati-drivers-10.10 (07 Nov 2010) + + 07 Nov 2010; Luca Barbato <lu_zero@gentoo.org> +ati-drivers-10.10.ebuild: + New version, thanks to Enrico for the ebuild.
Great, all problems i reported are forgotten. Gentoo is not what it was ...
(In reply to comment #30) > Great, all problems i reported are forgotten. > > Gentoo is not what it was ... > let me to disagree. I follow your issue, but i cannot reproduce it, and i can't understand it. When i will be able to i will assemble a fix. As i said i tried vserver-sources with your config and i'm not able to reproduce. It works here for me. If you can open a new bug for your issue (this one is just for the version bug), it would make my life easier. You can also come in irc and talk with me if you wish, my nick is [Enrico] you can find me in #gentoo and #gentoo-desktop channels
OK GOTO #342267
oups, sorry, http://bugs.gentoo.org/show_bug.cgi?id=344775