x11-drivers/ati-drivers-15.7 cannot be fetched. Reproducible: Always Steps to Reproduce: 1. emerge ati-drivers Actual Results: ati-drivers is not installed because the package cannot be fetched. Expected Results: ati-drivers to be installed. emerge --info Portage 2.2.20 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.8.4, glibc-2.20-r2, 4.0.5-gentoo x86_64) ================================================================= System uname: Linux-4.0.5-gentoo-x86_64-Intel-R-_Core-TM-_i7-4790K_CPU_@_4.00GHz-with-gentoo-2.2 KiB Mem: 16374960 total, 9374568 free KiB Swap: 16777212 total, 16777072 free Timestamp of repository gentoo: Sun, 12 Jul 2015 06:00:01 +0000 sh bash 4.3_p33-r2 ld GNU ld (Gentoo 2.24 p1.4) 2.24 app-shells/bash: 4.3_p33-r2::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.9-r1::gentoo, 3.3.5-r1::gentoo, 3.4.1::gentoo dev-util/cmake: 3.2.2::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.17::gentoo sys-apps/sandbox: 2.6-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.14.1::gentoo sys-devel/binutils: 2.24-r3::gentoo sys-devel/gcc: 4.8.4::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers) sys-libs/glibc: 2.20-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 steam-overlay location: /var/lib/layman/steam-overlay masters: gentoo priority: 0 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core-avx2 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=core-avx2 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://files.gentoo.gr ftp://files.gentoo.gr http://ftp.ntua.gr/pub/linux/gentoo/ ftp://ftp.ntua.gr/pub/linux/gentoo/ http://ftp.cc.uoc.gr/mirrors/linux/gentoo/ ftp://ftp.cc.uoc.gr/mirrors/linux/gentoo/" LANG="el_GR.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j8 -l5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cddb cdr cli consolekit cracklib crypt cups cxx dbus declarative device-mapper doc dri dts dvd dvdr egl emboss encode examples exif fam firefox flac fontconfig fortran g15 gd gdbm gif git glamor gpm gtk html iconv icu id3tag ipv6 jpeg kde kdepim kipi lcd lcms ldap libnotify lm_sensors mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl nsplugin offensive ogg opencl opengl openmp openvg pam pango pcre pdf perl phonon plasma png policykit ppds pulseaudio python qt3support qt4 readline samba sdl semantic-desktop session smp spell sse sse2 sse4_1 ssl ssse3 startup-notification steamruntime svg tcpd tiff truetype udev udisks unicode upower usb vim-syntax vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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 ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="g15" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="el en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Created attachment 406584 [details] build.log Log file.
Seconded.
This works manually: wget --referer='http://support.amd.com/en-us/download/desktop?os=Linux+x86' http://www2.ati.com/drivers/linux/amd-driver-installer-15.20.1046-x86.x86_64.zip Thanks to our cousins on the Russian speaking Ubuntu forum. They also refer to this patchset, but doesn't work here: wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=0BwvtJY6MtRdWS2JMNWlxRzN2NmM'-O patches.rar Or rather, all but one patch succeeds, but the ebuild fails after deleting that patch. It also fails without the additional patches.
With additional patches: >>> Emerging (1 of 1) x11-drivers/ati-drivers-15.7 from local_repository * amd-driver-installer-15.20.1046-x86.x86_64.zip SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] * xvba-sdk-0.74-404001.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found kernel object directory: * /lib/modules/4.1.2/build * Found sources for kernel version: * 4.1.2 * * Please note that this driver only supports graphic cards based on * Evergreen chipset and newer. * This includes the AMD Radeon HD 5400+ series at this moment. * * If your card is older then use x11-drivers/xf86-video-ati * For migration informations please refer to: * http://www.gentoo.org/proj/en/desktop/x/x11/ati-migration-guide.xml * >>> Unpacking source... >>> Unpacking amd-driver-installer-15.20.1046-x86.x86_64.zip to /var/tmp/portage/x11-drivers/ati-drivers-15.7/work Warning: target directory exists /var/tmp/portage/x11-drivers/ati-drivers-15.7/work >>> Unpacking xvba-sdk-0.74-404001.tar.gz to /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/xvba_sdk >>> Source unpacked in /var/tmp/portage/x11-drivers/ati-drivers-15.7/work /var/tmp/portage/x11-drivers/ati-drivers-15.7/work /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/extra * Applying user patches from /etc/portage/patches//x11-drivers/ati-drivers-15.7 ... * arch-fglrx-authatieventsd_new.patch ... [ ok ] * cold-fglrx-3.14-current_euid.patch ... [ ok ] * fglrx_3.17rc6-no_hotplug.patch ... [ ok ] * fglrx_gpl_symbol.patch ... [ ok ] * kolasa_4.0-cr4-strn.patch ... [ ok ] * kolasa_4.1_remove-IRQF_DISABLED-15.7.patch ... [ ok ] * lano1106_fglrx-13.8_proc.patch ... [ ok ] * lano1106_fglrx_intel_iommu.patch ... [ ok ] * lano1106_kcl_agp_13_4.patch ... [ ok ] * makefile_compat.patch ... [ ok ] * Done with patching /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/extra >>> Preparing source in /var/tmp/portage/x11-drivers/ati-drivers-15.7/work ... * Applying ati-powermode-opt-path-3.patch ... [ ok ] * Applying ati-drivers-x32_something_something.patch ... [ ok ] * Applying ati-drivers-12.9-KCL_AGP_FindCapsRegisters-stub.patch ... [ ok ] * Applying ati-drivers-13.8-beta-include-seq_file.patch ... [ ok ] * Applying fgl_glxgears-do-not-include-glATI.patch ... [ ok ] * Applying use-kernel_fpu_begin.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/x11-drivers/ati-drivers-15.7/work ... >>> Source configured. >>> Compiling source in /var/tmp/portage/x11-drivers/ati-drivers-15.7/work ... * Preparing fglrx module make -j3 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= GCC_VER_MAJ=4 KVER=4.1.2 KDIR=/lib/modules/4.1.2/build 'CFLAGS_MODULE+=-DMODULE -DATI -DFGL' CFLAGS_MODULE+=-DCOMPAT_ALLOC_USER_SPACE=arch_compat_alloc_user_space kmod_build make -C /lib/modules/4.1.2/build SUBDIRS=/var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x modules make[1]: Entering directory '/usr/src/linux-4.1.2' CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_agp.o <command-line>:0:0: warning: "COMPAT_ALLOC_USER_SPACE" redefined <command-line>:0:0: note: this is the location of the previous definition /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_agp.c:482:33: error: redefinition of ‘KCL_AGP_FindCapsRegisters’ int ATI_API_CALL KCL_AGP_FindCapsRegisters(KCL_PCI_DevHandle dev) ^ /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_agp.c:63:33: note: previous definition of ‘KCL_AGP_FindCapsRegisters’ was here int ATI_API_CALL KCL_AGP_FindCapsRegisters(KCL_PCI_DevHandle dev) ^ scripts/Makefile.build:258: recipe for target '/var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_agp.o' failed make[2]: *** [/var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_agp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... <command-line>:0:0: warning: "COMPAT_ALLOC_USER_SPACE" redefined <command-line>:0:0: note: this is the location of the previous definition /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:832:20: warning: ‘KCL_ACPI_Slot_No_Hotplug’ defined but not used [-Wunused-function] static acpi_status KCL_ACPI_Slot_No_Hotplug(KCL_ACPI_DevHandle handle, u32 lvl, void *data, void **rv) ^ <command-line>:0:0: warning: "COMPAT_ALLOC_USER_SPACE" redefined <command-line>:0:0: note: this is the location of the previous definition /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:6457:12: warning: ‘KCL_fpu_save_init’ defined but not used [-Wunused-function] static int KCL_fpu_save_init(struct task_struct *tsk) ^ Makefile:1383: recipe for target '_module_/var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x' failed make[1]: *** [_module_/var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x] Error 2 make[1]: Leaving directory '/usr/src/linux-4.1.2' Makefile:89: recipe for target 'kmod_build' failed make: *** [kmod_build] Error 2 * ERROR: x11-drivers/ati-drivers-15.7 failed (compile phase): * emake failed *
Without additional patches: >>> Emerging (1 of 1) x11-drivers/ati-drivers-15.7 from local_repository * amd-driver-installer-15.20.1046-x86.x86_64.zip SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] * xvba-sdk-0.74-404001.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found kernel object directory: * /lib/modules/4.1.2/build * Found sources for kernel version: * 4.1.2 * * Please note that this driver only supports graphic cards based on * Evergreen chipset and newer. * This includes the AMD Radeon HD 5400+ series at this moment. * * If your card is older then use x11-drivers/xf86-video-ati * For migration informations please refer to: * http://www.gentoo.org/proj/en/desktop/x/x11/ati-migration-guide.xml * >>> Unpacking source... >>> Unpacking amd-driver-installer-15.20.1046-x86.x86_64.zip to /var/tmp/portage/x11-drivers/ati-drivers-15.7/work Warning: target directory exists /var/tmp/portage/x11-drivers/ati-drivers-15.7/work >>> Unpacking xvba-sdk-0.74-404001.tar.gz to /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/xvba_sdk >>> Source unpacked in /var/tmp/portage/x11-drivers/ati-drivers-15.7/work /var/tmp/portage/x11-drivers/ati-drivers-15.7/work /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/extra /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/extra >>> Preparing source in /var/tmp/portage/x11-drivers/ati-drivers-15.7/work ... * Applying ati-powermode-opt-path-3.patch ... [ ok ] * Applying ati-drivers-x32_something_something.patch ... [ ok ] * Applying ati-drivers-12.9-KCL_AGP_FindCapsRegisters-stub.patch ... [ ok ] * Applying ati-drivers-13.8-beta-include-seq_file.patch ... [ ok ] * Applying fgl_glxgears-do-not-include-glATI.patch ... [ ok ] * Applying use-kernel_fpu_begin.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/x11-drivers/ati-drivers-15.7/work ... >>> Source configured. >>> Compiling source in /var/tmp/portage/x11-drivers/ati-drivers-15.7/work ... * Preparing fglrx module make -j3 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= GCC_VER_MAJ=4 KVER=4.1.2 KDIR=/lib/modules/4.1.2/build 'CFLAGS_MODULE+=-DMODULE -DATI -DFGL' CFLAGS_MODULE+=-DCOMPAT_ALLOC_USER_SPACE=arch_compat_alloc_user_space kmod_build make -C /lib/modules/4.1.2/build SUBDIRS=/var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x modules make[1]: Entering directory '/usr/src/linux-4.1.2' CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_agp.o /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:832:20: warning: ‘KCL_ACPI_Slot_No_Hotplug’ defined but not used [-Wunused-function] static acpi_status KCL_ACPI_Slot_No_Hotplug(KCL_ACPI_DevHandle handle, u32 lvl, void *data, void **rv) ^ CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_debug.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_io.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_pci.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_str.o /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘KCL_InstallInterruptHandler’: /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3503:22: error: ‘IRQF_DISABLED’ undeclared (first use in this function) ((useMSI) ? (IRQF_DISABLED) : (IRQF_SHARED)), ^ /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3503:22: note: each undeclared identifier is reported only once for each function it appears in /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘kcl_mem_pat_setup’: /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4503:9: error: implicit declaration of function ‘read_cr4’ [-Werror=implicit-function-declaration] cr4 = read_cr4(); ^ /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4504:9: error: implicit declaration of function ‘write_cr4’ [-Werror=implicit-function-declaration] write_cr4(cr4 & ~X86_CR4_PGE); ^ /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: At top level: /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:6428:12: warning: ‘KCL_fpu_save_init’ defined but not used [-Wunused-function] static int KCL_fpu_save_init(struct task_struct *tsk) ^ /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘KCL_InstallInterruptHandler’: /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3507:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ cc1: some warnings being treated as errors scripts/Makefile.build:258: recipe for target '/var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o' failed make[2]: *** [/var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1 make[2]: *** Waiting for unfinished jobs.... /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_str.c: In function ‘KCL_STR_Strnicmp’: /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_str.c:172:5: error: implicit declaration of function ‘strnicmp’ [-Werror=implicit-function-declaration] return strnicmp(s1, s2, count); ^ cc1: some warnings being treated as errors scripts/Makefile.build:258: recipe for target '/var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_str.o' failed make[2]: *** [/var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_str.o] Error 1 Makefile:1383: recipe for target '_module_/var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x' failed make[1]: *** [_module_/var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x] Error 2 make[1]: Leaving directory '/usr/src/linux-4.1.2' Makefile:88: recipe for target 'kmod_build' failed make: *** [kmod_build] Error 2 * ERROR: x11-drivers/ati-drivers-15.7 failed (compile phase): * emake failed
The download directly from the ebuild does not work because none of the gentoo mirrors have the file. I even commented out my GENTOO_MIRRORS entry in make.conf, none of the generic mirrors have it either.
I did get this to compile using the following cocktail of additional patches: the catalyst157.patch from https://bluehatrecord.wordpress.com/2015/07/08/installing-the-proprietary-amd-catalyst-15-7-fglrx-15-20-driver-on-fedora-22-with-linux-kernel-4-0-6/ This select group of 3 (of about 8) patches: fglrx_gpl_symbol.patch kolasa_4.1_remove-IRQF_DISABLED-15.7.patch makefile_compat.patch from wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=0BwvtJY6MtRdWS2JMNWlxRzN2NmM'-O patches.rar ======================== >>> Emerging (1 of 1) x11-drivers/ati-drivers-15.7 from saijas_local_repository * amd-driver-installer-15.20.1046-x86.x86_64.zip SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] * xvba-sdk-0.74-404001.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found kernel object directory: * /lib/modules/4.1.2/build * Found sources for kernel version: * 4.1.2 * * Please note that this driver only supports graphic cards based on * Evergreen chipset and newer. * This includes the AMD Radeon HD 5400+ series at this moment. * * If your card is older then use x11-drivers/xf86-video-ati * For migration informations please refer to: * http://www.gentoo.org/proj/en/desktop/x/x11/ati-migration-guide.xml * >>> Unpacking source... >>> Unpacking amd-driver-installer-15.20.1046-x86.x86_64.zip to /var/tmp/portage/x11-drivers/ati-drivers-15.7/work Warning: target directory exists /var/tmp/portage/x11-drivers/ati-drivers-15.7/work >>> Unpacking xvba-sdk-0.74-404001.tar.gz to /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/xvba_sdk >>> Source unpacked in /var/tmp/portage/x11-drivers/ati-drivers-15.7/work /var/tmp/portage/x11-drivers/ati-drivers-15.7/work /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/extra * Applying user patches from /etc/portage/patches//x11-drivers/ati-drivers-15.7 ... * catalyst157.patch ... [ ok ] * fglrx_gpl_symbol.patch ... [ ok ] * kolasa_4.1_remove-IRQF_DISABLED-15.7.patch ... [ ok ] * makefile_compat.patch ... [ ok ] * Done with patching /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/extra >>> Preparing source in /var/tmp/portage/x11-drivers/ati-drivers-15.7/work ... * Applying ati-powermode-opt-path-3.patch ... [ ok ] * Applying ati-drivers-x32_something_something.patch ... [ ok ] * Applying ati-drivers-12.9-KCL_AGP_FindCapsRegisters-stub.patch ... [ ok ] * Applying ati-drivers-13.8-beta-include-seq_file.patch ... [ ok ] * Applying fgl_glxgears-do-not-include-glATI.patch ... [ ok ] * Applying use-kernel_fpu_begin.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/x11-drivers/ati-drivers-15.7/work ... >>> Source configured. >>> Compiling source in /var/tmp/portage/x11-drivers/ati-drivers-15.7/work ... * Preparing fglrx module make -j3 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= GCC_VER_MAJ=4 KVER=4.1.2 KDIR=/lib/modules/4.1.2/build 'CFLAGS_MODULE+=-DMODULE -DATI -DFGL' CFLAGS_MODULE+=-DCOMPAT_ALLOC_USER_SPACE=arch_compat_alloc_user_space kmod_build make -C /lib/modules/4.1.2/build SUBDIRS=/var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x modules make[1]: Entering directory '/usr/src/linux-4.1.2' CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_agp.o <command-line>:0:0: warning: "COMPAT_ALLOC_USER_SPACE" redefined <command-line>:0:0: note: this is the location of the previous definition CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_debug.o <command-line>:0:0: warning: "COMPAT_ALLOC_USER_SPACE" redefined <command-line>:0:0: note: this is the location of the previous definition CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.o <command-line>:0:0: warning: "COMPAT_ALLOC_USER_SPACE" redefined <command-line>:0:0: note: this is the location of the previous definition /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:832:20: warning: ‘KCL_ACPI_Slot_No_Hotplug’ defined but not used [-Wunused-function] static acpi_status KCL_ACPI_Slot_No_Hotplug(KCL_ACPI_DevHandle handle, u32 lvl, void *data, void **rv) ^ CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_io.o <command-line>:0:0: warning: "COMPAT_ALLOC_USER_SPACE" redefined <command-line>:0:0: note: this is the location of the previous definition CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_pci.o <command-line>:0:0: warning: "COMPAT_ALLOC_USER_SPACE" redefined <command-line>:0:0: note: this is the location of the previous definition CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_str.o <command-line>:0:0: warning: "COMPAT_ALLOC_USER_SPACE" redefined <command-line>:0:0: note: this is the location of the previous definition <command-line>:0:0: warning: "COMPAT_ALLOC_USER_SPACE" redefined <command-line>:0:0: note: this is the location of the previous definition CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_iommu.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl.o <command-line>:0:0: warning: "COMPAT_ALLOC_USER_SPACE" redefined <command-line>:0:0: note: this is the location of the previous definition CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_wait.o <command-line>:0:0: warning: "COMPAT_ALLOC_USER_SPACE" redefined <command-line>:0:0: note: this is the location of the previous definition <command-line>:0:0: warning: "COMPAT_ALLOC_USER_SPACE" redefined <command-line>:0:0: note: this is the location of the previous definition /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:6450:12: warning: ‘KCL_fpu_save_init’ defined but not used [-Wunused-function] static int KCL_fpu_save_init(struct task_struct *tsk) ^ <command-line>:0:0: warning: "COMPAT_ALLOC_USER_SPACE" redefined <command-line>:0:0: note: this is the location of the previous definition LD [M] /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/fglrx.o Building modules, stage 2. MODPOST 1 modules CC /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/fglrx.mod.o <command-line>:0:0: warning: "COMPAT_ALLOC_USER_SPACE" redefined <command-line>:0:0: note: this is the location of the previous definition LD [M] /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/fglrx.ko make[1]: Leaving directory '/usr/src/linux-4.1.2' * Building fgl_glxgears ... [ ok ] >>> Source compiled. It's a remote system, won't be tested for several hours.
I posted too soon, further refinement gets rid of most warnings. makefile_compat.patch was not needed and caused most warnings. I added two others from the patchset. So what works best for me is this list of additional patches: catalyst157.patch fglrx_gpl_symbol.patch kolasa_4.1_remove-IRQF_DISABLED-15.7.patch fglrx_3.17rc6-no_hotplug.patch lano1106_fglrx-13.8_proc.patch (not sure, but doesn't hurt) Leaving only these two warnings: /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:832:20: warning: ‘KCL_ACPI_Slot_No_Hotplug’ defined but not used [-Wunused-function] static acpi_status KCL_ACPI_Slot_No_Hotplug(KCL_ACPI_DevHandle handle, u32 lvl, void *data, void **rv) ^ /var/tmp/portage/x11-drivers/ati-drivers-15.7/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:6453:12: warning: ‘KCL_fpu_save_init’ defined but not used [-Wunused-function]
https://bugs.gentoo.org/attachment.cgi?id=406958 is a user patch that works with this minute's ati-drivers-15.7 ebuild. Sadly the distfile has departed the mirrors and manual download is again required.
Created attachment 406962 [details] emerge -1 ati-drivers-15.7 results with user patch
This bug is about the fetch problem, not a build problem. I believe someone either needs to hand-upload the required files to the distfiles master, or this ebuild needs to set RESTRICT=fetch. It is nonsense to set SRC_URI="mirror://gentoo/..." when the file does not and never will exist on gentoo mirrors.
ati-drivers-15.1.ebuild used: DRIVERS_URI="mirror://ubuntu/pool/restricted/f/fglrx-installer/fglrx-installer_15.200.orig.tar.gz" XVBA_SDK_URI="http://developer.amd.com/wordpress/media/2012/10/xvba-sdk-0.74-404001.tar.gz" Why not now, for ati-drivers-15.7, use the analogous: DRIVERS_URI="mirror://ubuntu/pool/restricted/f/fglrx-installer/fglrx-installer_15.200.1.orig.tar.gz" XVBA_SDK_URI="http://developer.amd.com/wordpress/media/2012/10/xvba-sdk-0.74-404001.tar.gz" Downloading ftp.osuosl.org/pub/ubuntu/pool/restricted/f/fglrx-installer/fglrx-installer_15.200.1.orig.tar.gz and extracting down to the buildmod directory and running diff against the ubuntu buildmod directory versus the AMD Catalyst™ 15.7 Proprietary Linux Graphics Driver's buildmod directory showed them identical.
Created attachment 407198 [details] ati-drivers-15.7-r2 proposed ebuild eliminates fetch problem by using ubuntu copy of amd's 15.7 release as ati-driver-15.1 did with amd release 15.2 eliminates user patching by incorporating the patch in the ebuild and the files directory. does not eliminate the need to edit /usr/src/linux/arch/x86/mm/init.c but if EXPORT_SYMBOL_GPL(cpu_tlbstate) is found there causes a die with information for the user who still wishes to install.
Created attachment 407200 [details, diff] 15.7-r2.patch intended for /var/lib/layman/x11/x11-drivers/ati-drivers/files/ and/or 15.7-r2.patch intended for install as /var/lib/layman/x11/x11-drivers/ati-drivers/files/15.7-r2.patch in conjunction with installing ati-drivers-15.7-r2.ebuild as /var/lib/layman/x11/x11-drivers/ati-drivers/ati-drivers-15.7-r2.ebuild can be done by user's on local overlay's or by ?? on the master. the patch implement kolasa's updates to amd's code for kernel-4 and some coding errors. Candidates for /usr/portage/x11-drivers/ati-drivers/
kernel-4.1.3 adds a further problem. A new line, EXPORT_SYMBOL_GPL(pci_ignore_hotplug); added to /usr/src/linux/drivers/pci/pci.c; prevents installing ati-drivers with " Building modules, stage 2. MODPOST 1 modules FATAL: modpost: GPL-incompatible module fglrx.ko uses GPL-only symbol 'pci_ignore_hotplug' scripts/Makefile.modpost:90: recipe for target '__modpost' failed " The user can run: sed -i 's/EXPORT_SYMBOL_GPL(cpu_tlbstate)/EXPORT_SYMBOL(cpu_tlbstate)/g' /usr/src/linux/arch/x86/mm/init.c' and sed -i 's/EXPORT_SYMBOL_GPL(pci_ignore_hotplug)/EXPORT_SYMBOL(pci_ignore_hotplug)/g' /usr/src/linux/arch/x86/mm/init.c' in a terminal. After the edit; recompile/reinstall the kernel and emerge ati-drivers."
I was able to install the updated driver with the following procedure: 1. I put Drakes's ati-drivers-15.7-r2.ebuild and 15.7-r2.patch (along with all files from /usr/portage/x11-drivers/ati-drivers/files/) on my local overlay (as described in https://wiki.gentoo.org/wiki/Overlay/Local_overlay). 2. I applied "sed -i 's/EXPORT_SYMBOL_GPL(cpu_tlbstate)/EXPORT_SYMBOL(cpu_tlbstate)/g' /usr/src/linux/arch/x86/mm/init.c", as suggested by the ebuild. 3. I rebuilt and installed the kernel (v4.0.5). 4. I emerged x11-drivers/ati-drivers from the local overlay. It finally built OK and it seems to be functioning well.
sed -i 's/EXPORT_SYMBOL_GPL(pci_ignore_hotplug)/EXPORT_SYMBOL(pci_ignore_hotplug)/g' /usr/src/linux/arch/x86/mm/init.c' should be: sed -i 's/EXPORT_SYMBOL_GPL(pci_ignore_hotplug)/EXPORT_SYMBOL(pci_ignore_hotplug)/g' /usr/src/linux/drivers/pci/pci.c
Created attachment 407730 [details] revised proposed ati-drivers-15.7-r2.ebuild adds user suggestion to the ebuild for dealing with EXPORT_SYMBOL_GPL(pci_ignore_hotplug) appearing in kernel source code 4.1.3 and later.
Abulhair Saparov reported "Some feedback on ati-drivers-15.7-r2 patches and ebuild: Make sure to use xorg-server-1.16 (and possibly older) otherwise X will throw a segmentation fault when it tries to start." at https://bugs.gentoo.org/show_bug.cgi?id=548118#c63 Based on 2 tests, it appears the chances of using ati-drivers-15.7-r2 and xorg-server more recent than 1.16 is 50%. I had been using xorg-server-1.16.4 with gentoo-sources-4.1.5 (EXPORT_SYMBOL edits done) and ati-drivers-15.7-r2 with no problems. I keyworded xorg-server-1.17.2 as ~amd64. Despite several blockers and required dependency keyword changes, xorg-server-1.17.2 and ati-drivers-15.7-r2 emerged against gentoo-sources-4.1.5. After reboot, no problems were encountered. As the latest update had installed gentoo-sources-4.1.6, I edited the kernel-4.1.6 source to EXPORT_SYMBOL(cpu_tlbstate) and EXPORT_SYMBOL(pci_ignore_hotplug), compiled and installed the 4.1.6 kernel, emerged ati-drivers, rebooted, no problems. What variations in equipment and software caused the disparate results is unknown. Test results for > xorg-server-1.16 of great interest.
Created attachment 410660 [details] proposed ati-drivers-15.7-r3.ebuild like to test a patch? The 4.2 kernel replaces /usr/src/linux-4.1.6-gentoo/arch/x86/include/asm/i387.h with a directory structure: as in /usr/src/linux-4.2-rc8/arch/x86/include/asm/fpu containing api.h internal.h regset.h signal.h types.h xstate.h Also adds a couple more EXPORT_SYMBOL_GPL() calls. Correcting those problems exposed an implicit declaration error. Save the attachments as /var/lib/layman/x11/x11-drivers/ati-drivers/ati-drivers-15.7-r3.ebuild /var/lib/layman/x11/x11-drivers/ati-drivers/files/15.7-r2.patch /var/lib/layman/x11/x11-drivers/ati-drivers/files/15.7-r3.patch run ebuild /var/lib/layman/x11/x11-drivers/ati-drivers manifest Run the sed commands listed in the ebuild, recompile the kernel, emerge ati-drivers. Expect to see WARNING: "__fgl_cmpxchg" [/var/tmp/portage/x11-drivers/ati-drivers-15.7-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/fglrx.ko] undefined! Which seems to be harmless and probably results from my inept resolution of the implicit declaration of __fgl_cmpxchg error.
Created attachment 410662 [details, diff] 15.7-r3.patch
(In reply to Drake Donahue from comment #20) > Created attachment 410660 [details] > proposed ati-drivers-15.7-r3.ebuild > > like to test a patch? The 4.2 kernel replaces > /usr/src/linux-4.1.6-gentoo/arch/x86/include/asm/i387.h with a directory > structure: as in /usr/src/linux-4.2-rc8/arch/x86/include/asm/fpu > containing api.h internal.h regset.h signal.h types.h xstate.h > Also adds a couple more EXPORT_SYMBOL_GPL() calls. Correcting those > problems exposed an implicit declaration error. > > Save the attachments as > /var/lib/layman/x11/x11-drivers/ati-drivers/ati-drivers-15.7-r3.ebuild > /var/lib/layman/x11/x11-drivers/ati-drivers/files/15.7-r2.patch > /var/lib/layman/x11/x11-drivers/ati-drivers/files/15.7-r3.patch > run ebuild /var/lib/layman/x11/x11-drivers/ati-drivers manifest > Run the sed commands listed in the ebuild, recompile the kernel, emerge > ati-drivers. > > Expect to see WARNING: "__fgl_cmpxchg" > [/var/tmp/portage/x11-drivers/ati-drivers-15.7-r3/work/common/lib/modules/ > fglrx/build_mod/2.6.x/fglrx.ko] undefined! > Which seems to be harmless and probably results from my inept resolution of > the implicit declaration of __fgl_cmpxchg error. I have a problem after emerging ati-drivers-15.7-r3 in kernel 4.2. When I type glxinfo, I get this output: name of display: :0 X Error of failed request: BadRequest (invalid request code or no such operation) Major opcode of failed request: 156 (ATIFGLEXTENSION) Minor opcode of failed request: 66 () Serial number of failed request: 13 Current serial number in output stream: 13 And because of that I cant launch compton or steam.
Guys, this bug is supposed to be about the driver being unfetchable. Make your own bug reports!
Fernando Rodriguez has a solution at https://github.com/fernando-rodriguez/portage-overlay/tree/master/x11-drivers/ati-drivers . It has been tested on amd64 and compiles, installs, and runs on kernels 3.18.16, 4.1.6, and 4.2. It appears ready for addition to the testing branch. His work has no EXPORT_SYMBOL_GPL issues. It supports glxinfo and glxgears on kernel-4.2 . Manual download from the amd driver page is required. Fetch instructions are in the ebuild. Thanks, Fernando. I have obsoleted my less effective offerings.
I added 15.9 that includes RESTRICT="fetch" and added it to 15.7-r1, for everything else see bug #548118