Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot compile ebuild ati-drivers-15.12-r1 / kernel 4.4.6
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
qu1j0t3
n00b
n00b


Joined: 02 Oct 2005
Posts: 24

PostPosted: Sat Jul 02, 2016 3:21 pm    Post subject: Cannot compile ebuild ati-drivers-15.12-r1 / kernel 4.4.6 Reply with quote

Hi,

It seems that the latest unmasked ati-drivers, ati-drivers-15.9-r1, cannot build against recent kernels, e.g. 4.4.6.

I notice that ati-drivers-15.12-r1 is intended to address this problem but it still doesn't build. So I'm reporting it here.

Code:

deepthought ati-drivers-15.9-r1 # emerge -av =ati-drivers-15.12-r1

 * IMPORTANT: 31 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

 * Last emerge --sync was 1y 6d 4h 40m 24s ago.

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ~] x11-drivers/ati-drivers-15.12-r1:1::gentoo [15.9-r1:1::gentoo] USE="modules qt4 -debug -gdm-hack -pax_kernel -static-libs" 181,047 KiB

Total: 1 package (1 upgrade), Size of downloads: 181,047 KiB

!!! The following installed packages are masked:
- dev-libs/glib-1.2.10-r6::gentoo (masked by: package.mask)
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.


Would you like to merge these packages? [Yes/No] y

>>> Verifying ebuild manifests
>>> Running pre-merge checks for x11-drivers/ati-drivers-15.12-r1
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/4.4.6-gentoo/build
 * Found sources for kernel version:
 *     4.4.6-gentoo
 * Checking for suitable kernel configuration options...                                                                                                         [ ok ]
 * Checking for suitable kernel configuration options...                                                                                                         [ ok ]

>>> Emerging (1 of 1) x11-drivers/ati-drivers-15.12-r1::gentoo
>>> Downloading 'http://gentoo.mirrors.tera-byte.com/distfiles/radeon-crimson-15.12-15.302-151217a-297685e.zip'
--2017-07-04 18:52:10--  http://gentoo.mirrors.tera-byte.com/distfiles/radeon-crimson-15.12-15.302-151217a-297685e.zip
Resolving gentoo.mirrors.tera-byte.com... 216.194.64.133
Connecting to gentoo.mirrors.tera-byte.com|216.194.64.133|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 185391473 (177M) [application/zip]
Saving to: ‘/usr/portage/distfiles/radeon-crimson-15.12-15.302-151217a-297685e.zip’

/usr/portage/distfi 100%[===================>] 176.80M   502KB/s    in 15m 56s

2017-07-04 19:08:07 (189 KB/s) - ‘/usr/portage/distfiles/radeon-crimson-15.12-15.302-151217a-297685e.zip’ saved [185391473/185391473]

 * radeon-crimson-15.12-15.302-151217a-297685e.zip SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                          [ ok ]
 * xvba-sdk-0.74-404001.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                              [ ok ]
>>> cfg-update-1.8.2-r1: Checksum index is up-to-date ...
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/4.4.6-gentoo/build
 * Found sources for kernel version:
 *     4.4.6-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:
 * https://www.gentoo.org/proj/en/desktop/x/x11/ati-migration-guide.xml
 *
>>> Unpacking source...
>>> Unpacking radeon-crimson-15.12-15.302-151217a-297685e.zip to /var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work
Warning: target directory exists /var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work
>>> Unpacking xvba-sdk-0.74-404001.tar.gz to /var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/xvba_sdk
>>> Source unpacked in /var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work
>>> Preparing source in /var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/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 15.9-preempt.patch ...                                                                                                                               [ ok ]
 * Applying 15.11-remove-gpl-symbols.patch ...                                                                                                                   [ ok ]
 * Applying 15.9-kcl_str.patch ...                                                                                                                               [ ok ]
 * Applying 15.9-sep_printf.patch ...                                                                                                                            [ ok ]
 * Applying 15.9-mtrr.patch ...                                                                                                                                  [ ok ]
 * Applying 15.12-xstate-fp.patch ...                                                                                                                            [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work ...
 * Preparing fglrx module
make -j4 HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= GCC_VER_MAJ=4 KVER=4.4.6-gentoo KDIR=/lib/modules/4.4.6-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.4.6-gentoo/build SUBDIRS=/var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-4.4.6-gentoo'
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_agp.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_debug.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_io.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_pci.o
/var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:839: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.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:262:0: warning: "__flush_tlb" redefined
 #define __flush_tlb() native_write_cr3(native_read_cr3())
 ^
In file included from ./arch/x86/include/asm/highmem.h:26:0,
                 from include/linux/highmem.h:34,
                 from /var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:123:
./arch/x86/include/asm/tlbflush.h:13:0: note: this is the location of the previous definition
 #define __flush_tlb() __native_flush_tlb()
 ^
/var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:264:20: error: redefinition of ‘__flush_tlb_all’
 static inline void __flush_tlb_all(void)
                    ^
In file included from ./arch/x86/include/asm/highmem.h:26:0,
                 from include/linux/highmem.h:34,
                 from /var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:123:
./arch/x86/include/asm/tlbflush.h:124:20: note: previous definition of ‘__flush_tlb_all’ was here
 static inline void __flush_tlb_all(void)
                    ^
/var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘__fgl_cmpxchg’:
/var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1751:30: error: implicit declaration of function ‘__xg’ [-Werror=implicit-function-declaration]
                              : "q"(new), "m"(*__xg(ptr)), "0"(old)
                              ^
/var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1751:46: error: invalid type argument of unary ‘*’ (have ‘int’)
                              : "q"(new), "m"(*__xg(ptr)), "0"(old)
                                              ^
/var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1757:46: error: invalid type argument of unary ‘*’ (have ‘int’)
                              : "q"(new), "m"(*__xg(ptr)), "0"(old)
                                              ^
/var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1763:46: error: invalid type argument of unary ‘*’ (have ‘int’)
                              : "q"(new), "m"(*__xg(ptr)), "0"(old)
                                              ^
/var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1749:9: error: memory input 2 is not directly addressable
         __asm__ __volatile__(LOCK_PREFIX "cmpxchgb %b1,%2"
         ^
/var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1755:9: error: memory input 2 is not directly addressable
         __asm__ __volatile__(LOCK_PREFIX "cmpxchgw %w1,%2"
         ^
/var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1761:9: error: memory input 2 is not directly addressable
         __asm__ __volatile__(LOCK_PREFIX "cmpxchgl %1,%2"
         ^
cc1: some warnings being treated as errors
make[2]: *** [/var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-4.4.6-gentoo'
make: *** [kmod_build] Error 2
 * ERROR: x11-drivers/ati-drivers-15.12-r1::gentoo failed (compile phase):
 *   emake failed


Any suggestions welcome.

I looked briefly at porting forward the unmasked ati-drivers ebuild but quickly got out of my depth in kernel changes between my 3.8.13 kernel and 4.4.6.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum