View previous topic :: View next topic |
Author |
Message |
lostinspace2011 Apprentice
Joined: 09 Sep 2005 Posts: 230
|
Posted: Thu Jun 18, 2015 8:46 am Post subject: ATI-Drivers stopped working with 4.0.5 kernel |
|
|
Just upgraded to 4.0.5 kernel and tried to rebuild the ati-drivers. [/bug]
Quote: |
Calculating dependencies
* IMPORTANT: 15 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
... done!
>>> Verifying ebuild manifests
>>> Running pre-merge checks for x11-drivers/ati-drivers-14.12-r3
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/4.0.5-gentoo/build
* Found sources for kernel version:
* 4.0.5-gentoo
* Checking for suitable kernel configuration options...
[ ok ]
* Checking for suitable kernel configuration options...
[ ok ]
>>> Emerging (1 of 1) x11-drivers/ati-drivers-14.12-r3::gentoo
* amd-catalyst-omega-14.12-linux-run-installers.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.0.5-gentoo/build
* Found sources for kernel version:
* 4.0.5-gentoo
*
* 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-catalyst-omega-14.12-linux-run-installers.zip to /var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work
Warning: target directory exists /var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work
>>> Unpacking xvba-sdk-0.74-404001.tar.gz to /var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/xvba_sdk
>>> Source unpacked in /var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work
>>> Preparing source in /var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/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 fix-the-linux-3.17-no_hotplug-error.patch ...
[ ok ]
* Applying use-kernel_fpu_begin.patch ...
[ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work ...
* Preparing fglrx module
make -j13 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' GCC_VER_MAJ=4 KVER=4.0.5-gentoo KDIR=/lib/modules/4.0.5-gentoo/build 'CFLAGS_MODULE+=-DMODULE -DATI -DFGL' CFLAGS_MODULE+=-DCOMPAT_ALLOC_USER_SPACE=arch_compat_alloc_user_space kmod_build
make -C /lib/modules/4.0.5-gentoo/build SUBDIRS=/var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory '/usr/src/linux-4.0.5-gentoo'
CC [M] /var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
CC [M] /var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o
CC [M] /var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_agp.o
CC [M] /var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_debug.o
CC [M] /var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.o
CC [M] /var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_io.o
CC [M] /var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_pci.o
CC [M] /var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_str.o
CC [M] /var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_iommu.o
CC [M] /var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl.o
CC [M] /var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_wait.o
CC [M] /var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl.o
CC [M] /var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_wait.o
/var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/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-14.12-r3/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-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_str.o' failed
make[2]: *** [/var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_str.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_iommu.c: In function 'KCL_IOMMU_RestoreCBs':
/var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_iommu.c:230:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/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-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4473:9: error: implicit declaration of function 'read_cr4' [-Werror=implicit-function-declaration]
cr4 = read_cr4();
^
/var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4474: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-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'kasSetExecutionLevel':
/var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4821:5: error: implicit declaration of function '__get_cpu_var' [-Werror=implicit-function-declaration]
orig_level = __get_cpu_var(kasExecutionLevel);
^
/var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4822:38: error: lvalue required as left operand of assignment
__get_cpu_var(kasExecutionLevel) = level;
^
/var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: At top level:
/var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:6398:12: warning: 'KCL_fpu_save_init' defined but not used [-Wunused-function]
static int KCL_fpu_save_init(struct task_struct *tsk)
^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o' failed
make[2]: *** [/var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1
Makefile:1390: recipe for target '_module_/var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x' failed
make[1]: *** [_module_/var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory '/usr/src/linux-4.0.5-gentoo'
Makefile:88: recipe for target 'kmod_build' failed
make: *** [kmod_build] Error 2
* ERROR: x11-drivers/ati-drivers-14.12-r3::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=x11-drivers/ati-drivers-14.12-r3::gentoo'`,
* the complete build log and the output of `emerge -pqv '=x11-drivers/ati-drivers-14.12-r3::gentoo'`.
* The complete build log is located at '/var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/temp/environment'.
* Working directory: '/var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x'
* S: '/var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work'
>>> Failed to emerge x11-drivers/ati-drivers-14.12-r3, Log file:
>>> '/var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/temp/build.log'
* Messages for package x11-drivers/ati-drivers-14.12-r3:
*
* 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
* ERROR: x11-drivers/ati-drivers-14.12-r3::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=x11-drivers/ati-drivers-14.12-r3::gentoo'`,
* the complete build log and the output of `emerge -pqv '=x11-drivers/ati-drivers-14.12-r3::gentoo'`.
* The complete build log is located at '/var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/temp/environment'.
* Working directory: '/var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x'
* S: '/var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work'
|
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Thu Jun 18, 2015 6:27 pm Post subject: |
|
|
https://bugs.gentoo.org/show_bug.cgi?id=548118 includes a patch that works
reference: https://wiki.gentoo.org/wiki//etc/portage/patches
there is a licensing problem preventing a version bump, somebody at kernel.org decided to restart the gpl fight
as root, create directory with parents Code: | mkdir -p /etc/portage/patches/x11-drivers/ati-drivers/ | put the patch in the directory Code: | wget -O /etc/portage/patches/x11-drivers/ati-drivers/kernel-4.1.0-rc3.patch https://548118.bugs.gentoo.org/attachment.cgi?id=403430 | watch the patch apply during either: Code: | emerge -1 =x11-drivers/ati-drivers-14.12-r3 | or, if ati-drivers is in package.keywords,: Code: | emerge -1 =x11-drivers/ati-drivers-15.1 |
google 'gentoo patch ebuild howto' for explanations and alternatives
when/if a version bump to ati-drivers occurs this patch may conflict with the new version, when that happens remove the .patch or remove the patches directory if this .patch is the only .patch in it. patch has worked for me with kernels from gentoo-sources-3.18.9 to git-sources-4.1-rc7 with both stable and testing ati-drivers.
Edit to correct typos
2nd edit to reference how to user patch an ebuild. _________________ Defund the FCC.
Last edited by DONAHUE on Mon Jun 29, 2015 1:45 pm; edited 3 times in total |
|
Back to top |
|
|
lostinspace2011 Apprentice
Joined: 09 Sep 2005 Posts: 230
|
Posted: Sun Jun 21, 2015 8:23 am Post subject: |
|
|
Thanks for this. I am hoping there will be an official update on the driver. |
|
Back to top |
|
|
deltamalloc Apprentice
Joined: 18 Jan 2013 Posts: 279
|
Posted: Fri Jun 26, 2015 7:29 pm Post subject: |
|
|
DONAHUE wrote: | https://bugs.gentoo.org/show_bug.cgi?id=548118 includes a patch that works
there is a licensing problem preventing a version bump, somebody at kernel.org decided to restart the gpl fight
as root, create directory with parents Code: | mkdir -p /etc/portage/patches/x11-drivers/ati-drivers/ | put the patch in the directory Code: | wget -O /etc/portage/patches/x11-drivers/ati-drivers/kernel-4.1.0-rc3.patch https://548118.bugs.gentoo.org/attachment.cgi?id=403430 | watch the patch apply during either: Code: | emerge -1 x11-drivers/ati-drivers-12-r3 | or, if ati-drivers is in package.keywords,: Code: | emerge -1 x11-drivers/ati-drivers-15.1 |
google 'gentoo patch ebuild howto' for explanations and alternatives
when/if a version bump to ati-drivers occurs this patch may conflict with the new version, when that happens remove the .patch or remove the patches directory if this .patch is the only .patch in it. patch has worked for me with kernels from gentoo-sources-3.18.9 to git-sources-4.1-rc7 with both stable and testing ati-drivers. |
Thanks for this step by step procedure. However, I can't get it to work.
I did the steps and it fails at the last one.
Code: |
# emerge -1 x11-drivers/ati-drivers-12-r3
!!! 'x11-drivers/ati-drivers-12-r3' is not a valid package atom.
!!! Please check ebuild(5) for full details.
|
While the alternative gives:
Code: |
# emerge -1 x11-drivers/ati-drivers-15.1
!!! 'x11-drivers/ati-drivers-15.1' is not a valid package atom.
!!! Please check ebuild(5) for full details.
|
Whereas using just "ati-drivers" instead:
Code: |
# emerge -1 x11-drivers/ati-drivers
|
Results in the very same compilation error as before.
I have ati-drivers-15.1 as the latest available version (with x11-drivers/ati-drivers ~amd64 in the keywords accept file):
Code: |
* x11-drivers/ati-drivers
Latest version available: 15.1
Latest version installed: 14.12-r3
|
|
|
Back to top |
|
|
Irre Guru
Joined: 09 Nov 2013 Posts: 434 Location: Stockholm
|
Posted: Fri Jun 26, 2015 8:21 pm Post subject: |
|
|
Did you forget the equal-sign?
emerge -1 =x11-drivers/ati-drivers-12-r3 |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Fri Jun 26, 2015 8:25 pm Post subject: |
|
|
I've corrected 3 typos in my post at Thu Jun 18, 2015 1:27 pm which should eliminate the "is not a valid package atom" errors. My apologies.
Shortly after executing Code: | emerge -1 ati-drivers | you should see: Quote: | * Applying user patches from /etc/portage/patches//x11-drivers/ati-drivers ...
* kernel-4.1.0-rc3.patch ... [ ok ]
* Done with patching | if that does not happen: Code: | ls -l /etc/portage/patches/x11-drivers/ati-drivers/kernel-4.1.0-rc3.patch | to verify the patch installed
if present Code: | nano /etc/portage/patches/x11-drivers/ati-drivers/kernel-4.1.0-rc3.patch | and verify content against the patch on bugzilla..
I have just verified that the kernel-4.1.0-rc3.patch still works for me.
Yesterday verified kernel-4.* patch by Machredsch worked for me
Today 'clear license, kernel 4/4.1 compatible, kernel must be patched and recompiled' worked for me after a kernel patch and recompile. _________________ Defund the FCC. |
|
Back to top |
|
|
deltamalloc Apprentice
Joined: 18 Jan 2013 Posts: 279
|
Posted: Sat Jun 27, 2015 3:04 am Post subject: |
|
|
DONAHUE wrote: | I've corrected 3 typos in my post at Thu Jun 18, 2015 1:27 pm which should eliminate the "is not a valid package atom" errors. My apologies.
Shortly after executing Code: | emerge -1 ati-drivers | you should see: Quote: | * Applying user patches from /etc/portage/patches//x11-drivers/ati-drivers ...
* kernel-4.1.0-rc3.patch ... [ ok ]
* Done with patching | if that does not happen: Code: | ls -l /etc/portage/patches/x11-drivers/ati-drivers/kernel-4.1.0-rc3.patch | to verify the patch installed
if present Code: | nano /etc/portage/patches/x11-drivers/ati-drivers/kernel-4.1.0-rc3.patch | and verify content against the patch on bugzilla..
I have just verified that the kernel-4.1.0-rc3.patch still works for me.
Yesterday verified kernel-4.* patch by Machredsch worked for me
Today 'clear license, kernel 4/4.1 compatible, kernel must be patched and recompiled' worked for me after a kernel patch and recompile. |
Strange.
I've tried the revised commands (from scratch) and I still can't get it to execute properly.
I don't see it applying the "kernel-4.1.0-rc3.patch".
The file at /etc/portage/patches/x11-drivers/ati-drivers/kernel-4.1.0-rc3.patch does exist on my system, and its contents match that found on https://548118.bugs.gentoo.org/attachment.cgi?id=403430
The exact commands I enter are as follows:
Code: |
# mkdir -p /etc/portage/patches/x11-drivers/ati-drivers
# wget -O /etc/portage/patches/x11-drivers/ati-drivers/kernel-4.1.0-rc3.patch https://548118.bugs.gentoo.org/attachment.cgi?id=403430
# emerge -1 =x11-drivers/ati-drivers-14.12-r3
|
The last commands give the following output:
Code: |
>>> Preparing source in /var/tmp/portage/x11-drivers/ati-drivers-15.1/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.
|
Then it fails with multiple errors, e.g.:
Code: |
/var/tmp/portage/x11-drivers/ati-drivers-15.1/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.1/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.1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_str.o' failed
make[2]: *** [/var/tmp/portage/x11-drivers/ati-drivers-15.1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_str.o] Error 1
make[2]: *** Waiting for unfinished jobs....
|
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sat Jun 27, 2015 3:51 am Post subject: |
|
|
are you logged in as root?
Check your permissions, owner,group, file size match; date/time reasonable, no typos?
ls -l /etc/portage/patches/x11-drivers/ati-drivers
total 24
-rw-r--r-- 1 root root 5884 Jun 26 16:18 kernel-4.1.0-rc3.patch
Just retried Code: | emerge -1 =x11-drivers/ati-drivers-14.12-r3 | which did apply the patch, but the patch failed. The patch has lost backward compatibility. Stick with ati-drivers-15.1.
You report Quote: | I don't see it applying the "kernel-4.1.0-rc3.patch". | Which absolutely means the patch is not being attempted, to help verifying, that the full text after: Quote: | emerge -1 ati-drivers
Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Running pre-merge checks for x11-drivers/ati-drivers-15.1
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/4.0.5-gentoo/build
* Found sources for kernel version:
* 4.0.5-gentoo
* Checking for suitable kernel configuration options... [ ok ]
* Checking for suitable kernel configuration options... [ ok ]
>>> Emerging (1 of 1) x11-drivers/ati-drivers-15.1::gentoo
* fglrx-installer_15.200.orig.tar.gz 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.0.5-gentoo/build
* Found sources for kernel version:
* 4.0.5-gentoo
*
* 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 fglrx-installer_15.200.orig.tar.gz to /var/tmp/portage/x11-drivers/ati-drivers-15.1/work
>>> Unpacking xvba-sdk-0.74-404001.tar.gz to /var/tmp/portage/x11-drivers/ati-drivers-15.1/work/xvba_sdk
>>> Source unpacked in /var/tmp/portage/x11-drivers/ati-drivers-15.1/work
/var/tmp/portage/x11-drivers/ati-drivers-15.1/work /var/tmp/portage/x11-drivers/ati-drivers-15.1/work/extra
* Applying user patches from /etc/portage/patches//x11-drivers/ati-drivers ...
* kernel-4.1.0-rc3.patch ... [ ok ]
* Done with patching
/var/tmp/portage/x11-drivers/ati-drivers-15.1/work/extra
>>> Preparing source in /var/tmp/portage/x11-drivers/ati-drivers-15.1/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. |
_________________ Defund the FCC. |
|
Back to top |
|
|
mimosinnet l33t
Joined: 10 Aug 2006 Posts: 713 Location: Barcelona, Spain
|
Posted: Sun Jun 28, 2015 11:15 am Post subject: |
|
|
DONAHUE wrote: | Code: | mkdir -p /etc/portage/patches/x11-drivers/ati-drivers/
wget -O /etc/portage/patches/x11-drivers/ati-drivers/kernel-4.1.0-rc3.patch \
https://548118.bugs.gentoo.org/attachment.cgi?id=403430
emerge -1 =x11-drivers/ati-drivers-15.1 |
|
Thanks a lot! It has worked for me after Enabling /etc/portage/patches for all ebuilds by getting the suggested code in /etc/portage/bashrc:
Code: | pre_src_prepare() {
if ! type epatch_user > /dev/null 2>&1; then
local names="epatch_user epatch evar_push evar_push_set evar_pop estack_push estack_pop"
source <(awk "/^# @FUNCTION: / { p = 0 } /^# @FUNCTION: (${names// /|})\$/ { p = 1; } p { print }" /usr/portage/eclass/eutils.eclass)
fi
epatch_user
for name in $names; do
unset $name
done
} |
Cheers!
Edit: just to confirm that Machredsch patch also works. See bug. _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved.
Take care of the community answering unanswered posts. |
|
Back to top |
|
|
deltamalloc Apprentice
Joined: 18 Jan 2013 Posts: 279
|
Posted: Sun Jun 28, 2015 6:35 pm Post subject: |
|
|
DONAHUE wrote: | are you logged in as root?
Check your permissions, owner,group, file size match; date/time reasonable, no typos?
ls -l /etc/portage/patches/x11-drivers/ati-drivers
total 24
-rw-r--r-- 1 root root 5884 Jun 26 16:18 kernel-4.1.0-rc3.patch
Just retried Code: | emerge -1 =x11-drivers/ati-drivers-14.12-r3 | which did apply the patch, but the patch failed. The patch has lost backward compatibility. Stick with ati-drivers-15.1.
You report Quote: | I don't see it applying the "kernel-4.1.0-rc3.patch". | Which absolutely means the patch is not being attempted, to help verifying, that the full text after: Quote: | emerge -1 ati-drivers
Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Running pre-merge checks for x11-drivers/ati-drivers-15.1
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/4.0.5-gentoo/build
* Found sources for kernel version:
* 4.0.5-gentoo
* Checking for suitable kernel configuration options... [ ok ]
* Checking for suitable kernel configuration options... [ ok ]
>>> Emerging (1 of 1) x11-drivers/ati-drivers-15.1::gentoo
* fglrx-installer_15.200.orig.tar.gz 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.0.5-gentoo/build
* Found sources for kernel version:
* 4.0.5-gentoo
*
* 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 fglrx-installer_15.200.orig.tar.gz to /var/tmp/portage/x11-drivers/ati-drivers-15.1/work
>>> Unpacking xvba-sdk-0.74-404001.tar.gz to /var/tmp/portage/x11-drivers/ati-drivers-15.1/work/xvba_sdk
>>> Source unpacked in /var/tmp/portage/x11-drivers/ati-drivers-15.1/work
/var/tmp/portage/x11-drivers/ati-drivers-15.1/work /var/tmp/portage/x11-drivers/ati-drivers-15.1/work/extra
* Applying user patches from /etc/portage/patches//x11-drivers/ati-drivers ...
* kernel-4.1.0-rc3.patch ... [ ok ]
* Done with patching
/var/tmp/portage/x11-drivers/ati-drivers-15.1/work/extra
>>> Preparing source in /var/tmp/portage/x11-drivers/ati-drivers-15.1/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. |
|
I am logged in as root.
Checked permissions, they are the same as yours.
Code: |
# ls -l /etc/portage/patches/x11-drivers/ati-drivers/
total 8
-rw-r--r-- 1 root root 5884 Jun 27 04:54 kernel-4.1.0-rc3.patch
|
This is the full output when attempting to emerge ati-drivers-15.1:
Code: |
Calculating dependencies .... done!
>>> Verifying ebuild manifests
>>> Running pre-merge checks for x11-drivers/ati-drivers-15.1
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/4.0.5-gentoo/build
* Found sources for kernel version:
* 4.0.5-gentoo
* Checking for suitable kernel configuration options...
* CONFIG_DRM must be disabled or compiled as a module and not loaded for direct
* rendering to work.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.
* Checking for suitable kernel configuration options...
* CONFIG_DRM must be disabled or compiled as a module and not loaded for direct
* rendering to work.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.
>>> Emerging (1 of 1) x11-drivers/ati-drivers-15.1::gentoo
* fglrx-installer_15.200.orig.tar.gz 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.0.5-gentoo/build
* Found sources for kernel version:
* 4.0.5-gentoo
*
* 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 fglrx-installer_15.200.orig.tar.gz to /var/tmp/portage/x11-drivers/ati-drivers-15.1/work
>>> Unpacking xvba-sdk-0.74-404001.tar.gz to /var/tmp/portage/x11-drivers/ati-drivers-15.1/work/xvba_sdk
>>> Source unpacked in /var/tmp/portage/x11-drivers/ati-drivers-15.1/work
>>> Preparing source in /var/tmp/portage/x11-drivers/ati-drivers-15.1/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.1/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-drivers/ati-drivers-15.1/work ...
* Preparing fglrx module
make -j8 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' GCC_VER_MAJ=4 KVER=4.0.5-gentoo KDIR=/lib/modules/4.0.5-gentoo/build 'CFLAGS_MODULE+=-DMODULE -DATI -DFGL' CFLAGS_MODULE+=-DCOMPAT_ALLOC_USER_SPACE=arch_compat_alloc_user_space kmod_build
make -C /lib/modules/4.0.5-gentoo/build SUBDIRS=/var/tmp/portage/x11-drivers/ati-drivers-15.1/work/common/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory '/usr/src/linux-4.0.5-gentoo'
CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o
CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_agp.o
CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_debug.o
CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.o
CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_io.o
CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_pci.o
CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_str.o
CC [M] /var/tmp/portage/x11-drivers/ati-drivers-15.1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_iommu.o
/var/tmp/portage/x11-drivers/ati-drivers-15.1/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.1/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.1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_str.o' failed
make[2]: *** [/var/tmp/portage/x11-drivers/ati-drivers-15.1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_str.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/tmp/portage/x11-drivers/ati-drivers-15.1/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,
^
/var/tmp/portage/x11-drivers/ati-drivers-15.1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_iommu.c: In function 'KCL_IOMMU_RestoreCBs':
/var/tmp/portage/x11-drivers/ati-drivers-15.1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_iommu.c:230:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/var/tmp/portage/x11-drivers/ati-drivers-15.1/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.1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4501:9: error: implicit declaration of function 'read_cr4' [-Werror=implicit-function-declaration]
cr4 = read_cr4();
^
/var/tmp/portage/x11-drivers/ati-drivers-15.1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4502: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.1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: At top level:
/var/tmp/portage/x11-drivers/ati-drivers-15.1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:6426:12: warning: 'KCL_fpu_save_init' defined but not used [-Wunused-function]
static int KCL_fpu_save_init(struct task_struct *tsk)
^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/var/tmp/portage/x11-drivers/ati-drivers-15.1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o' failed
make[2]: *** [/var/tmp/portage/x11-drivers/ati-drivers-15.1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1
Makefile:1390: recipe for target '_module_/var/tmp/portage/x11-drivers/ati-drivers-15.1/work/common/lib/modules/fglrx/build_mod/2.6.x' failed
make[1]: *** [_module_/var/tmp/portage/x11-drivers/ati-drivers-15.1/work/common/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory '/usr/src/linux-4.0.5-gentoo'
Makefile:88: recipe for target 'kmod_build' failed
make: *** [kmod_build] Error 2
* ERROR: x11-drivers/ati-drivers-15.1::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=x11-drivers/ati-drivers-15.1::gentoo'`,
* the complete build log and the output of `emerge -pqv '=x11-drivers/ati-drivers-15.1::gentoo'`.
* The complete build log is located at '/var/tmp/portage/x11-drivers/ati-drivers-15.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/ati-drivers-15.1/temp/environment'.
* Working directory: '/var/tmp/portage/x11-drivers/ati-drivers-15.1/work/common/lib/modules/fglrx/build_mod/2.6.x'
* S: '/var/tmp/portage/x11-drivers/ati-drivers-15.1/work'
>>> Failed to emerge x11-drivers/ati-drivers-15.1, Log file:
>>> '/var/tmp/portage/x11-drivers/ati-drivers-15.1/temp/build.log'
* Messages for package x11-drivers/ati-drivers-15.1:
* CONFIG_DRM must be disabled or compiled as a module and not loaded for direct
* rendering to work.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.
* CONFIG_DRM must be disabled or compiled as a module and not loaded for direct
* rendering to work.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.
* Messages for package x11-drivers/ati-drivers-15.1:
*
* 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
* ERROR: x11-drivers/ati-drivers-15.1::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=x11-drivers/ati-drivers-15.1::gentoo'`,
* the complete build log and the output of `emerge -pqv '=x11-drivers/ati-drivers-15.1::gentoo'`.
* The complete build log is located at '/var/tmp/portage/x11-drivers/ati-drivers-15.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/ati-drivers-15.1/temp/environment'.
* Working directory: '/var/tmp/portage/x11-drivers/ati-drivers-15.1/work/common/lib/modules/fglrx/build_mod/2.6.x'
* S: '/var/tmp/portage/x11-drivers/ati-drivers-15.1/work'
|
I also attempted:
Code: |
emerge -1 =x11-drivers/ati-drivers-14.12-r3
|
But this does not apply the patch either. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sun Jun 28, 2015 7:08 pm Post subject: |
|
|
The emerge output includes: Quote: | * Checking for suitable kernel configuration options...
* CONFIG_DRM must be disabled or compiled as a module and not loaded for direct
* rendering to work.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.
* Checking for suitable kernel configuration options...
* CONFIG_DRM must be disabled or compiled as a module and not loaded for direct
* rendering to work.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems. | Apparently your kernel's menuconfig contains Quote: | Device Drivers --->
Graphics support --->
Direct Rendering Manager --->
<*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support | As the emerge output above states you should have Quote: | < > Direct Rendering Manager (XFree86 4.1.0 and higher DRI support | or Quote: | <M> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support | If DRM is configured as a module, the module must not be loaded.
my complete menuconfig _________________ Defund the FCC. |
|
Back to top |
|
|
deltamalloc Apprentice
Joined: 18 Jan 2013 Posts: 279
|
Posted: Sun Jun 28, 2015 10:40 pm Post subject: |
|
|
DONAHUE wrote: | The emerge output includes: Quote: | * Checking for suitable kernel configuration options...
* CONFIG_DRM must be disabled or compiled as a module and not loaded for direct
* rendering to work.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.
* Checking for suitable kernel configuration options...
* CONFIG_DRM must be disabled or compiled as a module and not loaded for direct
* rendering to work.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems. | Apparently your kernel's menuconfig contains Quote: | Device Drivers --->
Graphics support --->
Direct Rendering Manager --->
<*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support | As the emerge output above states you should have Quote: | < > Direct Rendering Manager (XFree86 4.1.0 and higher DRI support | or Quote: | <M> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support | If DRM is configured as a module, the module must not be loaded.
my complete menuconfig |
Actually I believe this is just a bug in the script.
I don't have it compiled in directly. I do have:
Code: |
<M> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
|
I can also verify it like this:
Code: |
# grep CONFIG_DRM .config
CONFIG_DRM=m
# CONFIG_DRM_TDFX is not set
# CONFIG_DRM_R128 is not set
# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_NOUVEAU is not set
# CONFIG_DRM_I915 is not set
# CONFIG_DRM_MGA is not set
# CONFIG_DRM_SIS is not set
# CONFIG_DRM_VIA is not set
# CONFIG_DRM_SAVAGE is not set
# CONFIG_DRM_VMWGFX is not set
# CONFIG_DRM_GMA500 is not set
# CONFIG_DRM_UDL is not set
# CONFIG_DRM_AST is not set
# CONFIG_DRM_MGAG200 is not set
# CONFIG_DRM_CIRRUS_QEMU is not set
# CONFIG_DRM_QXL is not set
# CONFIG_DRM_BOCHS is not set
|
I've had this error pretty much every time I've emerged the ati-drivers, yet before it would always succeed. I highly doubt it is related to this new issue. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Mon Jun 29, 2015 1:51 am Post subject: |
|
|
History is probably not relevant unless you have previously successfully emerged ati-drivers against a kernel 4.0.0 or later.
Suggest change to Quote: | < > Direct Rendering Manager (XFree86 4.1.0 and higher DRI support | and recompile kernel followed by Code: | emerge =sys-kernel/ati-drivers-15.1 |
If a drm module is available it may be loaded. _________________ Defund the FCC. |
|
Back to top |
|
|
deltamalloc Apprentice
Joined: 18 Jan 2013 Posts: 279
|
Posted: Mon Jun 29, 2015 3:11 am Post subject: |
|
|
DONAHUE wrote: | History is probably not relevant unless you have previously successfully emerged ati-drivers against a kernel 4.0.0 or later.
Suggest change to Quote: | < > Direct Rendering Manager (XFree86 4.1.0 and higher DRI support | and recompile kernel followed by Code: | emerge =sys-kernel/ati-drivers-15.1 |
If a drm module is available it may be loaded. |
I tried your suggestion.
Recompiled the kernel with:
Code: |
$ grep CONFIG_DRM .config
# CONFIG_DRM is not set
|
Did:
Code: |
emerge =ati-drivers-15.1
|
Same result as before. It doesn't even try to apply the patch.
I do have /etc/portage/patches/x11-drivers/ati-drivers/kernel-4.1.0-rc3.patch on my system, it contains the correct contents. I am root. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Mon Jun 29, 2015 1:33 pm Post subject: |
|
|
reference: https://wiki.gentoo.org/wiki//etc/portage/patches
Does running Code: | ls -l /etc/portage/bashrc | show that you have the file? and with appropriate owner, group, and permissions? My /etc/portage file contains: Quote: | #!/usr/bin/env bash
# /etc/portage/bashrc
# Dan Douglas <ormaaj@gmail.com>
post_src_unpack() {
if [[ $(type -t epatch_user) == function ]]; then
if pushd -- "$S" 2>&3; then
epatch_user
popd 2>&3
else
epatch_user
fi 3>/dev/null
fi
} | The reference includes an alternate. Sorry, I did not include creating the bashrc file in the 'step by step'. _________________ Defund the FCC. |
|
Back to top |
|
|
deltamalloc Apprentice
Joined: 18 Jan 2013 Posts: 279
|
Posted: Mon Jun 29, 2015 10:29 pm Post subject: |
|
|
DONAHUE wrote: | reference: https://wiki.gentoo.org/wiki//etc/portage/patches
Does running Code: | ls -l /etc/portage/bashrc | show that you have the file? and with appropriate owner, group, and permissions? My /etc/portage file contains: Quote: | #!/usr/bin/env bash
# /etc/portage/bashrc
# Dan Douglas <ormaaj@gmail.com>
post_src_unpack() {
if [[ $(type -t epatch_user) == function ]]; then
if pushd -- "$S" 2>&3; then
epatch_user
popd 2>&3
else
epatch_user
fi 3>/dev/null
fi
} | The reference includes an alternate. Sorry, I did not include creating the bashrc file in the 'step by step'. |
It worked with this additional step, thank you. |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3131
|
Posted: Fri Aug 14, 2015 8:16 pm Post subject: |
|
|
Time for a necro-bump.
I have exactly the same problem. The same kernel, the same ati-drivers, the same patch, and then build failure (even though the patch was applied)
Any idea what have I missed?
Quote: | Quad ~ # emerge -1 x11-drivers/ati-drivers
Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Running pre-merge checks for x11-drivers/ati-drivers-14.12-r3
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/4.0.5-gentoo/build
* Found sources for kernel version:
* 4.0.5-gentoo
* Checking for suitable kernel configuration options...
* CONFIG_DRM must be disabled or compiled as a module and not loaded for direct
* rendering to work.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.
* Checking for suitable kernel configuration options...
* CONFIG_DRM must be disabled or compiled as a module and not loaded for direct
* rendering to work.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.
>>> Emerging (1 of 1) x11-drivers/ati-drivers-14.12-r3::gentoo
>>> Failed to emerge x11-drivers/ati-drivers-14.12-r3, Log file:
>>> '/tmp/portage/x11-drivers/ati-drivers-14.12-r3/temp/build.log'
>>> Jobs: 0 of 1 complete, 1 failed Load avg: 0.86, 0.62, 0.69
* Package: x11-drivers/ati-drivers-14.12-r3
* Repository: gentoo
* Maintainer: x11@gentoo.org jekarlson@gmail.com,proxy-maint@gentoo.org
* USE: abi_x86_32 abi_x86_64 amd64 elibc_glibc kernel_linux modules qt4 userland_GNU
* FEATURES: preserve-libs sandbox userpriv usersandbox
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/4.0.5-gentoo/build
* Found sources for kernel version:
* 4.0.5-gentoo
*
* 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-catalyst-omega-14.12-linux-run-installers.zip to /tmp/portage/x11-drivers/ati-drivers-14.12-r3/work
Warning: target directory exists /tmp/portage/x11-drivers/ati-drivers-14.12-r3/work
>>> Unpacking xvba-sdk-0.74-404001.tar.gz to /tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/xvba_sdk
>>> Source unpacked in /tmp/portage/x11-drivers/ati-drivers-14.12-r3/work
/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work /tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/extra
* Applying user patches from /etc/portage/patches//x11-drivers/ati-drivers ...
* kernel-4.1.0-rc3.patch ...
[ ok ]
* Done with patching
/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/extra
>>> Preparing source in /tmp/portage/x11-drivers/ati-drivers-14.12-r3/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 fix-the-linux-3.17-no_hotplug-error.patch ...
[ ok ]
* Applying use-kernel_fpu_begin.patch ...
[ ok ]
>>> Source prepared.
>>> Configuring source in /tmp/portage/x11-drivers/ati-drivers-14.12-r3/work ...
>>> Source configured.
>>> Compiling source in /tmp/portage/x11-drivers/ati-drivers-14.12-r3/work ...
* Preparing fglrx module
make -j5 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' GCC_VER_MAJ=4 KVER=4.0.5-gentoo KDIR=/lib/modules/4.0.5-gentoo/build 'CFLAGS_MODULE+=-DMODULE -DATI -DFGL' CFLAGS_MODULE+=-DCOMPAT_ALLOC_USER_SPACE=arch_compat_alloc_user_space kmod_build
make -C /lib/modules/4.0.5-gentoo/build SUBDIRS=/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory '/usr/src/linux-4.0.5-gentoo'
CC [M] /tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
CC [M] /tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_debug.o
CC [M] /tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o
CC [M] /tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_agp.o
CC [M] /tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.o
CC [M] /tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_io.o
CC [M] /tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_pci.o
CC [M] /tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_str.o
/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c: In function 'KCL_ACPI_No_Hotplug':
/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:863:81: error: 'KCL_ACPI_Slot_No_Hotplug' undeclared (first use in this function)
acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_HANDLE(pdev->bus->bridge), 1, KCL_ACPI_Slot_No_Hotplug, NULL, pdev , NULL);
^
/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:863:81: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:258: recipe for target '/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o' failed
make[2]: *** [/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'kasSetExecutionLevel':
/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4848:5: error: implicit declaration of function '__get_cpu_var' [-Werror=implicit-function-declaration]
orig_level = __get_cpu_var(kasExecutionLevel);
^
/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4849:38: error: lvalue required as left operand of assignment
__get_cpu_var(kasExecutionLevel) = level;
^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o' failed
make[2]: *** [/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1
Makefile:1390: recipe for target '_module_/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x' failed
make[1]: *** [_module_/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory '/usr/src/linux-4.0.5-gentoo'
Makefile:88: recipe for target 'kmod_build' failed
make: *** [kmod_build] Error 2
* ERROR: x11-drivers/ati-drivers-14.12-r3::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=x11-drivers/ati-drivers-14.12-r3::gentoo'`,
* the complete build log and the output of `emerge -pqv '=x11-drivers/ati-drivers-14.12-r3::gentoo'`.
* The complete build log is located at '/tmp/portage/x11-drivers/ati-drivers-14.12-r3/temp/build.log'.
* The ebuild environment file is located at '/tmp/portage/x11-drivers/ati-drivers-14.12-r3/temp/environment'.
* Working directory: '/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x'
* S: '/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work'
* !!! User patches were applied to this build!
* Messages for package x11-drivers/ati-drivers-14.12-r3:
* CONFIG_DRM must be disabled or compiled as a module and not loaded for direct
* rendering to work.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.
* CONFIG_DRM must be disabled or compiled as a module and not loaded for direct
* rendering to work.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.
* Messages for package x11-drivers/ati-drivers-14.12-r3:
*
* 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
* ERROR: x11-drivers/ati-drivers-14.12-r3::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=x11-drivers/ati-drivers-14.12-r3::gentoo'`,
* the complete build log and the output of `emerge -pqv '=x11-drivers/ati-drivers-14.12-r3::gentoo'`.
* The complete build log is located at '/tmp/portage/x11-drivers/ati-drivers-14.12-r3/temp/build.log'.
* The ebuild environment file is located at '/tmp/portage/x11-drivers/ati-drivers-14.12-r3/temp/environment'.
* Working directory: '/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/common/lib/modules/fglrx/build_mod/2.6.x'
* S: '/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work'
* !!! User patches were applied to this build!
Quad ~ # |
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Fri Aug 14, 2015 9:00 pm Post subject: |
|
|
suggest adding Quote: | x11-drivers/ati-drivers ~amd64 | to /etc/portage/package.keywords so you can use ati-drivers-15.7 _________________ Defund the FCC. |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3131
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sat Aug 15, 2015 12:44 am Post subject: |
|
|
OOOPS. Sorry. User patch kernel-4.1.0-rc3.patch is overtaken by events. New kernel source, new ati-driver source. See https://bugs.gentoo.org/show_bug.cgi?id=548118 comment 62, if you wish to continue using user patch. Code: | rm /etc/portage/patches/x11-drivers/ati-drivers/kernel-4.1.0-rc3.patch | The 15.7-r1 patch replaces it vice supplementing.
Quote: | * Checking for suitable kernel configuration options...
* CONFIG_DRM must be disabled or compiled as a module and not loaded for direct
* rendering to work.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.
* Checking for suitable kernel configuration options...
* CONFIG_DRM must be disabled or compiled as a module and not loaded for direct
* rendering to work.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems. | suggests that the kernel configuration is problematic. What does Code: | grep -i drm /usr/src/linux/.config | produce? Does the machine have more than one graphics card?
I built a 4.1.5 kernel yesterday and emerged ati-drivers against it. However I am currently using the techniques described in https://bugs.gentoo.org/show_bug.cgi?id=554590. This involves removing all ati-drivers user patches, establishing a local overlay, adding an ati-drivers-15.7-r2 ebuild to it, making a couple of edits to kernel source code, recompiling the kernel, rebooting, emerging ati-drivers. _________________ Defund the FCC. |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3131
|
Posted: Sat Aug 15, 2015 10:00 am Post subject: |
|
|
It's quite funny that patch suddenly stopped working even though versions are the same. Anyway, thank you for update on this matter, I'll deffinitely check it out.
This message on the other hand
Quote: | * Checking for suitable kernel configuration options...
* CONFIG_DRM must be disabled or compiled as a module and not loaded for direct
* rendering to work.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.
* Checking for suitable kernel configuration options...
* CONFIG_DRM must be disabled or compiled as a module and not loaded for direct
* rendering to work.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems. |
says nothing about my kernel configuration. I have seen a few ebuilds that print such warnings, but none of them actually checks what the config says. In my case DRM is built as module, just like it had "always" been. I've been using fglrx for years, just switched to radeon recently (after updating kernel to 4), partialy due to fglrx failing to build, but now I wanted to play some game and it crashed immidiatelly.
I used to keep both drivers available and just switch between them copying suitable xorg.conf, changing eselect opengl and blacklisting one or the other in modprobe.d depending on which one I wanted to use at the moment.
Anyway, I'll check options from your last post and if it fails try disabling DRM completly. Even though according to the warning, missconfiguring it might cause runtime errors rather than build errors. Build error is something consistent enough it hardly is "unexpected"
Edit: new patch has done the trick. So, this:
https://bugs.gentoo.org/attachment.cgi?id=406958
and
sed -i 's/EXPORT_SYMBOL_GPL(cpu_tlbstate)/EXPORT_SYMBOL(cpu_tlbstate)/g' /usr/src/linux/arch/x86/mm/init.c
sed -i 's/EXPORT_SYMBOL_GPL(pci_ignore_hotplug)/EXPORT_SYMBOL(pci_ignore_hotplug)/g' /usr/src/linux/drivers/pci/pci.c
got fglrx =x11-drivers/ati-drivers-15.7 to buiid against kernel 4.0.5-gentoo. And it even appears to work.
Quote: | glxinfo | grep render
direct rendering: Yes
OpenGL renderer string: AMD Radeon HD 6550D |
Thank you for your help |
|
Back to top |
|
|
deltamalloc Apprentice
Joined: 18 Jan 2013 Posts: 279
|
Posted: Sun Aug 23, 2015 4:01 am Post subject: |
|
|
szatox wrote: | It's quite funny that patch suddenly stopped working even though versions are the same. Anyway, thank you for update on this matter, I'll deffinitely check it out.
This message on the other hand
Quote: | * Checking for suitable kernel configuration options...
* CONFIG_DRM must be disabled or compiled as a module and not loaded for direct
* rendering to work.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.
* Checking for suitable kernel configuration options...
* CONFIG_DRM must be disabled or compiled as a module and not loaded for direct
* rendering to work.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems. |
says nothing about my kernel configuration. I have seen a few ebuilds that print such warnings, but none of them actually checks what the config says. In my case DRM is built as module, just like it had "always" been. I've been using fglrx for years, just switched to radeon recently (after updating kernel to 4), partialy due to fglrx failing to build, but now I wanted to play some game and it crashed immidiatelly.
I used to keep both drivers available and just switch between them copying suitable xorg.conf, changing eselect opengl and blacklisting one or the other in modprobe.d depending on which one I wanted to use at the moment.
Anyway, I'll check options from your last post and if it fails try disabling DRM completly. Even though according to the warning, missconfiguring it might cause runtime errors rather than build errors. Build error is something consistent enough it hardly is "unexpected"
Edit: new patch has done the trick. So, this:
https://bugs.gentoo.org/attachment.cgi?id=406958
and
sed -i 's/EXPORT_SYMBOL_GPL(cpu_tlbstate)/EXPORT_SYMBOL(cpu_tlbstate)/g' /usr/src/linux/arch/x86/mm/init.c
sed -i 's/EXPORT_SYMBOL_GPL(pci_ignore_hotplug)/EXPORT_SYMBOL(pci_ignore_hotplug)/g' /usr/src/linux/drivers/pci/pci.c
got fglrx =x11-drivers/ati-drivers-15.7 to buiid against kernel 4.0.5-gentoo. And it even appears to work.
Quote: | glxinfo | grep render
direct rendering: Yes
OpenGL renderer string: AMD Radeon HD 6550D |
Thank you for your help |
Does not work for me.
New patch, and issued the sed commands.
I get:
Code: |
FATAL: modpost: GPL-incompatible module fglrx.ko uses GPL-only symbol 'cpu_tlbstate'
scripts/Makefile.modpost:90: recipe for target '__modpost' failed
make[2]: *** [__modpost] Error 1
Makefile:1393: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory '/usr/src/linux-4.0.5-gentoo'
Makefile:88: recipe for target 'kmod_build' failed
make: *** [kmod_build] Error 2
* ERROR: x11-drivers/ati-drivers-15.7::gentoo failed (compile phase):
* emake failed
|
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sun Aug 23, 2015 1:53 pm Post subject: |
|
|
Quote: | FATAL: modpost: GPL-incompatible module fglrx.ko uses GPL-only symbol 'cpu_tlbstate' |
Did you recompile the kernel after the sed commands? Easy to forget.
Check sed worked: Code: | grep -i cpu_tlbstate /usr/src/linux/arch/x86/mm/init.c | looking for Quote: | DEFINE_PER_CPU_SHARED_ALIGNED(struct tlb_state, cpu_tlbstate) = {
EXPORT_SYMBOL(cpu_tlbstate); | and Code: | grep -i pci_ignore_hotplug /usr/src/linux/drivers/pci/pci.c | looking for Quote: | void pci_ignore_hotplug(struct pci_dev *dev)
EXPORT_SYMBOL(pci_ignore_hotplug); |
_________________ Defund the FCC. |
|
Back to top |
|
|
deltamalloc Apprentice
Joined: 18 Jan 2013 Posts: 279
|
Posted: Sun Aug 23, 2015 3:44 pm Post subject: |
|
|
DONAHUE wrote: | Quote: | FATAL: modpost: GPL-incompatible module fglrx.ko uses GPL-only symbol 'cpu_tlbstate' |
Did you recompile the kernel after the sed commands? Easy to forget.
Check sed worked: Code: | grep -i cpu_tlbstate /usr/src/linux/arch/x86/mm/init.c | looking for Quote: | DEFINE_PER_CPU_SHARED_ALIGNED(struct tlb_state, cpu_tlbstate) = {
EXPORT_SYMBOL(cpu_tlbstate); | and Code: | grep -i pci_ignore_hotplug /usr/src/linux/drivers/pci/pci.c | looking for Quote: | void pci_ignore_hotplug(struct pci_dev *dev)
EXPORT_SYMBOL(pci_ignore_hotplug); |
|
How embarrassing. Yes I forgot. The last statement doesn't show anything, there is no "pci_ignore_hotplug" in that file, I was prepared to start editing it manually (by changing other instances of EXPORT_SYMBOL_GPL to EXPORT_SYMBOL) but it appears to have worked without having to do that. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sun Aug 23, 2015 5:35 pm Post subject: |
|
|
pci_ignore_hotplug will appear a few kernels later _________________ Defund the FCC. |
|
Back to top |
|
|
|