[Mint 17.3] Unable to install fglrx - help!

Screen resolution, 3D Acceleration, nVidia, ATI
Forum rules
Before you post please read this
Post Reply
freezoid
Level 1
Level 1
Posts: 9
Joined: Mon Oct 16, 2017 7:22 pm

[Mint 17.3] Unable to install fglrx - help!

Post by freezoid » Sun Jan 28, 2018 1:10 pm

Hi!
Whenever I try to install fglrx I'm getting this error (drivers from amd website AND ppa)

Terminal:
sudo dpkg -i fglrx*.deb
(Reading database ... 242701 files and directories currently installed.)
Preparing to unpack fglrx_15.201-0ubuntu1_amd64_UB_14.01.deb ...
Unpacking fglrx (2:15.201-0ubuntu1) over (2:15.201-0ubuntu1) ...
Preparing to unpack fglrx-amdcccle_15.201-0ubuntu1_amd64_UB_14.01.deb ...
Unpacking fglrx-amdcccle (2:15.201-0ubuntu1) over (2:15.201-0ubuntu1) ...
Preparing to unpack fglrx-core_15.201-0ubuntu1_amd64_UB_14.01.deb ...
Removing all DKMS Modules
Done.
Unpacking fglrx-core (2:15.201-0ubuntu1) over (2:15.201-0ubuntu1) ...
Preparing to unpack fglrx-dev_15.201-0ubuntu1_amd64_UB_14.01.deb ...
Unpacking fglrx-dev (2:15.201-0ubuntu1) over (2:15.201-0ubuntu1) ...
Setting up fglrx-core (2:15.201-0ubuntu1) ...
Loading new fglrx-core-15.201 DKMS files...
Building for 3.19.0-32-generic and 4.4.0-111-generic
Building for architecture amd64
Building initial module for 3.19.0-32-generic
Done.

fglrx:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/3.19.0-32-generic/kernel/drivers/char/drm/

depmod....

DKMS: install completed.
Building initial module for 4.4.0-111-generic
Error! Bad return status for module build on kernel: 4.4.0-111-generic (amd64)
Consult /var/lib/dkms/fglrx-core/15.201/build/make.log for more information.
update-initramfs: deferring update (trigger activated)
Setting up fglrx-dev (2:15.201-0ubuntu1) ...
Setting up fglrx (2:15.201-0ubuntu1) ...
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/fglrx/ld.so.conf, because link group x86_64-linux-gnu_gl_conf is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/fglrx/ld.so.conf, because link group x86_64-linux-gnu_gl_conf is broken
Processing triggers for ureadahead (0.100.0-16)...
Processing triggers for desktop-file-utils (0.22-1ubuntu1)...
Setting up fglrx-amdcccle (2:15.201-0ubuntu1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2)...
Processing triggers for mime-support (3.54ubuntu1.1)...
Processing triggers for initramfs-tools (0.103ubuntu4.7)...
update-initramfs: Generating /boot/initrd.img-4.4.0-111-generic
Processing triggers for libc-bin (2.19-0ubuntu6.14)…
fglrx-core make.log
DKMS make.log for fglrx-core-15.201 for kernel 4.4.0-111-generic (amd64)
sun, 28 jan 2018, 15:52:14 GMT
/usr/sbin/dkms: line 73: cd: /var/lib/dkms/fglrx/15.201/build: No such file or directory
AMD kernel module generator version 2.1
doing Makefile based build for kernel 2.6.x and higher
rm -rf *.c *.h *.o *.ko *.a .??* *.symvers
make -C /lib/modules/4.4.0-111-generic/build SUBDIRS=/var/lib/dkms/fglrx-core/15.201/build/2.6.x modules
make[1]: Entering directory `/usr/src/linux-headers-4.4.0-111-generic'
CC [M] /var/lib/dkms/fglrx-core/15.201/build/2.6.x/firegl_public.o
/var/lib/dkms/fglrx-core/15.201/build/2.6.x/firegl_public.c:194:22: fatal error: asm/i387.h: No such file or directory
#include "asm/i387.h"
^
compilation terminated.
make[2]: *** [/var/lib/dkms/fglrx-core/15.201/build/2.6.x/firegl_public.o] Error 1
make[1]: *** [_module_/var/lib/dkms/fglrx-core/15.201/build/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-4.4.0-111-generic'
make: *** [kmod_build] Error 2
build failed with return value 2
I tried to replace original fglrx because of really bad gpu performence and I ended up with no fglrx at all...
Looking forward for help. I've been struggling with fglrx for months! :roll:


Mint 17.3
Mobility Radeon 5870

Hoser Rob
Level 10
Level 10
Posts: 3205
Joined: Sat Dec 15, 2012 8:57 am

Re: [Mint 17.3] Unable to install fglrx - help!

Post by Hoser Rob » Mon Jan 29, 2018 8:34 am

That's an old AMD card, not far from legacy. If you're running Cinnamon, which I suspect from looking at other posts, you aren't going to get good performance from Cinnamon. There aren't any magic drivers there.

Purge the fglrx you have and reinstall the recommended one from Driver Manager.

And if you're running Cinnamon .... post the text output of inxi -Fxz while you're at it ... do a backup and clean reinstall of a liighter DE version. Don't just install another DE, that is a very common noob mistake and an excellent way to break your OS.

I'd dl both the Mate and Xfce editions and try them before reinstalling.

freezoid
Level 1
Level 1
Posts: 9
Joined: Mon Oct 16, 2017 7:22 pm

Re: [Mint 17.3] Unable to install fglrx - help!

Post by freezoid » Tue Jan 30, 2018 6:35 am

Thanks for posting

inxi -Fxz

Code: Select all

System:  Host: bartek-G73Jh Kernel: 4.4.0-111-generic x86_64 (64 bit gcc: 4.8.4)
      Desktop: Cinnamon 2.8.8 (Gtk 3.10.8) Distro: Linux Mint 17.3 Rosa
Machine:  Mobo: ASUSTeK model: G73Jh v: 1.0
      Bios: American Megatrends v: G73Jh.213 date: 01/27/2011
CPU:    Quad core Intel Core i7 Q 720 (-HT-MCP-) cache: 6144 KB
      flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 12768
      clock speeds: max: 1600 MHz 1: 933 MHz 2: 933 MHz 3: 1066 MHz
      4: 1333 MHz 5: 933 MHz 6: 1066 MHz 7: 1066 MHz 8: 1066 MHz
Graphics: Card: Advanced Micro Devices [AMD/ATI] Broadway XT [Mobility Radeon HD 5870]
      bus-ID: 01:00.0
      Display Server: X.Org 1.15.1 drivers: ati,radeon
      Resolution: 1600x900@60.1hz
      GLX Renderer: Gallium 0.4 on AMD JUNIPER
      GLX Version: 3.0 Mesa 10.1.3 Direct Rendering: Yes
Audio:   Card-1 Intel 5 Series/3400 Series High Definition Audio
      driver: snd_hda_intel bus-ID: 00:1b.0
      Card-2 Advanced Micro Devices [AMD/ATI] Juniper HDMI Audio [Radeon HD 5700 Series]
      driver: snd_hda_intel bus-ID: 01:00.1
      Sound: Advanced Linux Sound Architecture v: k4.4.0-111-generic
Network:  Card-1: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express)
      driver: ath9k bus-ID: 03:00.0
      IF: wlan0 state: up mac: <filter>
      Card-2: Qualcomm Atheros AR8131 Gigabit Ethernet
      driver: atl1c v: 1.0.1.1-NAPI port: a000 bus-ID: 04:00.0
      IF: eth0 state: down mac: <filter>
Drives:  HDD Total Size: 1000.2GB (19.2% used)
      ID-1: /dev/sda model: WDC_WD10JFCX size: 1000.2GB
Partition: ID-1: / size: 909G used: 172G (20%) fs: ext4 dev: /dev/sda1
      ID-2: swap-1 size: 8.51GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
RAID:   No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:  System Temperatures: cpu: 44.0C mobo: N/A gpu: 58.0
      Fan Speeds (in rpm): cpu: N/A
Info:   Processes: 233 Uptime: 34 min 
      Memory: 1547.2/7908.0MB
      Init: Upstart runlevel: 2 Gcc sys: 4.8.4
      Client: Shell (bash 4.3.111) inxi: 2.2.28 
I decided to give another DE a try so I reinstalled Mint but with XFCE this time
I switched to preinstalled fglrx and here is what I've been getting when I tried to check it in terminal

Code: Select all

X Error of failed request:  BadRequest (invalid request code or no such operation)
  Major opcode of failed request:  138 (ATIFGLEXTENSION)
  Minor opcode of failed request:  66 ()
  Serial number of failed request:  13
  Current serial number in output stream:  13
I purged fglrx and installed the one from amd website
and again:

Code: Select all

First Installation: checking all kernels...
Building only for 4.4.0-111-generic
Building for architecture amd64
Building initial module for 4.4.0-111-generic
Error! Bad return status for module build on kernel: 4.4.0-111-generic (amd64)
Consult /var/lib/dkms/fglrx-core/15.201/build/make.log for more information.
should I downgrade kernel...? any suggestions? :roll:

Edit:
also as you can see on this list here http://wiki.cchtml.com/index.php/Hardwa ... _Source.29
my GPU is still officially supported by Catalyst/fglrx so it's suppose to work :roll:

freezoid
Level 1
Level 1
Posts: 9
Joined: Mon Oct 16, 2017 7:22 pm

Re: [Mint 17.3] Unable to install fglrx - help!

Post by freezoid » Tue Jan 30, 2018 5:44 pm

Update

Someone found out that "Kernel ABI. i387.h now moved to fpu/api.h and fpu-internal.h moved to fpu/internal.h" (https://community.amd.com/thread/196514)
so after fixing that I got even more errors

Code: Select all

DKMS make.log for fglrx-core-15.201 for kernel 4.4.0-111-generic (amd64)
Tue Jan 30 21:34:06 GMT 2018
/usr/sbin/dkms: line 73: cd: /var/lib/dkms/fglrx/15.201/build: No such file or directory
AMD kernel module generator version 2.1
doing Makefile based build for kernel 2.6.x and higher
rm -rf *.c *.h *.o *.ko *.a .??* *.symvers
make -C /lib/modules/4.4.0-111-generic/build SUBDIRS=/var/lib/dkms/fglrx-core/15.201/build/2.6.x modules
make[1]: Entering directory `/usr/src/linux-headers-4.4.0-111-generic'
  CC [M]  /var/lib/dkms/fglrx-core/15.201/build/2.6.x/firegl_public.o
/var/lib/dkms/fglrx-core/15.201/build/2.6.x/firegl_public.c: In function ‘firegl_major_proc_read’:
/var/lib/dkms/fglrx-core/15.201/build/2.6.x/firegl_public.c:626:9: error: void value not ignored as it ought to be
     len = seq_printf(m, "%d\n", major);
         ^
/var/lib/dkms/fglrx-core/15.201/build/2.6.x/firegl_public.c: In function ‘kcl__cmpxchg’:
/var/lib/dkms/fglrx-core/15.201/build/2.6.x/firegl_public.c:1745:5: error: implicit declaration of function ‘__fgl_cmpxchg’ [-Werror=implicit-function-declaration]
     return __fgl_cmpxchg(ptr,old,new,size);
     ^
/var/lib/dkms/fglrx-core/15.201/build/2.6.x/firegl_public.c: In function ‘KCL_InstallInterruptHandler’:
/var/lib/dkms/fglrx-core/15.201/build/2.6.x/firegl_public.c:3509:22: error: ‘IRQF_DISABLED’ undeclared (first use in this function)
         ((useMSI) ? (IRQF_DISABLED) : (IRQF_SHARED)),    
                      ^
/var/lib/dkms/fglrx-core/15.201/build/2.6.x/firegl_public.c:3509:22: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/fglrx-core/15.201/build/2.6.x/firegl_public.c: In function ‘KCL_fpu_save_init’:
/var/lib/dkms/fglrx-core/15.201/build/2.6.x/firegl_public.c:6439:7: error: implicit declaration of function ‘fpu_xsave’ [-Werror=implicit-function-declaration]
       fpu_xsave(fpu);
       ^
/var/lib/dkms/fglrx-core/15.201/build/2.6.x/firegl_public.c:6440:23: error: invalid type argument of ‘->’ (have ‘union fpregs_state’)
       if (!(fpu->state->xsave.xsave_hdr.xstate_bv & XSTATE_FP))
                       ^
/var/lib/dkms/fglrx-core/15.201/build/2.6.x/firegl_public.c:6440:53: error: ‘XSTATE_FP’ undeclared (first use in this function)
       if (!(fpu->state->xsave.xsave_hdr.xstate_bv & XSTATE_FP))
                                                     ^
/var/lib/dkms/fglrx-core/15.201/build/2.6.x/firegl_public.c:6443:3: error: implicit declaration of function ‘fpu_fxsave’ [-Werror=implicit-function-declaration]
   fpu_fxsave(fpu);
   ^
/var/lib/dkms/fglrx-core/15.201/build/2.6.x/firegl_public.c:6446:42: error: invalid type argument of ‘->’ (have ‘union fpregs_state’)
                   : [fx] "=m" (fpu->state->fsave));
                                          ^
In file included from include/uapi/linux/stddef.h:1:0,
                 from include/linux/stddef.h:4,
                 from ./include/uapi/linux/posix_types.h:4,
                 from include/uapi/linux/types.h:13,
                 from include/linux/types.h:5,
                 from include/linux/list.h:4,
                 from include/linux/module.h:9,
                 from /var/lib/dkms/fglrx-core/15.201/build/2.6.x/firegl_public.c:109:
/var/lib/dkms/fglrx-core/15.201/build/2.6.x/firegl_public.c:6450:27: error: invalid type argument of ‘->’ (have ‘union fpregs_state’)
    if (unlikely(fpu->state->fxsave.swd & X87_FSW_ES)) {
                           ^
include/linux/compiler.h:166:42: note: in definition of macro ‘unlikely’
 # define unlikely(x) __builtin_expect(!!(x), 0)
                                          ^
/var/lib/dkms/fglrx-core/15.201/build/2.6.x/firegl_public.c:6450:42: error: ‘X87_FSW_ES’ undeclared (first use in this function)
    if (unlikely(fpu->state->fxsave.swd & X87_FSW_ES)) {
                                          ^
include/linux/compiler.h:166:42: note: in definition of macro ‘unlikely’
 # define unlikely(x) __builtin_expect(!!(x), 0)
                                          ^
/var/lib/dkms/fglrx-core/15.201/build/2.6.x/firegl_public.c: At top level:
/var/lib/dkms/fglrx-core/15.201/build/2.6.x/firegl_public.c:6434:12: warning: ‘KCL_fpu_save_init’ defined but not used [-Wunused-function]
 static int KCL_fpu_save_init(struct task_struct *tsk)
            ^
/var/lib/dkms/fglrx-core/15.201/build/2.6.x/firegl_public.c: In function ‘KCL_InstallInterruptHandler’:
/var/lib/dkms/fglrx-core/15.201/build/2.6.x/firegl_public.c:3513:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
cc1: some warnings being treated as errors
make[2]: *** [/var/lib/dkms/fglrx-core/15.201/build/2.6.x/firegl_public.o] Error 1
make[1]: *** [_module_/var/lib/dkms/fglrx-core/15.201/build/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-4.4.0-111-generic'
make: *** [kmod_build] Error 2
build failed with return value 2
still looking for answer

Update:
looks like its a fglrx / kernel issue
when I boot older kernel (3.19.0-32) fglrx is installing and working without issues

now I guess It's a matter of finding newest working kernel with fglrx

Hoser Rob
Level 10
Level 10
Posts: 3205
Joined: Sat Dec 15, 2012 8:57 am

Re: [Mint 17.3] Unable to install fglrx - help!

Post by Hoser Rob » Fri Feb 02, 2018 9:02 am

freezoid wrote:... I purged fglrx and installed the one from amd website
and again:

Code: Select all

First Installation: checking all kernels...
Building only for 4.4.0-111-generic
Building for architecture amd64
Building initial module for 4.4.0-111-generic
Error! Bad return status for module build on kernel: 4.4.0-111-generic (amd64)
Consult /var/lib/dkms/fglrx-core/15.201/build/make.log for more information.
Did you happen to notice the bit that said "purge the fglrx you have and reinstall the recommended one from Driver Manager"??? You actually have to READ instructions in Linux, not sort of read them.

The Linux drivers from the mfr's sites rarely work. The one recommended in Driver Manager is usually the right one ...

... assuming there IS a working fglrx fro your machine. I'm not so sure it's not been moved into legacy, in which case NO fglrx will work, in ANY distro. Search for a current list of AMD legacy cards in Linux. I think it might be there ... i.e. cards older than the 6xxx series. It's been a while since I had an AMD card and I don't expect to have another one soon.

freezoid
Level 1
Level 1
Posts: 9
Joined: Mon Oct 16, 2017 7:22 pm

Re: [Mint 17.3] Unable to install fglrx - help!

Post by freezoid » Sat Feb 03, 2018 8:34 am

freezoid wrote: [...]
I switched to preinstalled fglrx and here is what I've been getting when I tried to check it in terminal

Code: Select all

X Error of failed request:  BadRequest (invalid request code or no such operation)
  Major opcode of failed request:  138 (ATIFGLEXTENSION)
  Minor opcode of failed request:  66 ()
  Serial number of failed request:  13
  Current serial number in output stream:  13
[...]
to be clear by preinstalled I mean the one that comes from driver manager

fglrx just wont work with any other kernel than 3.19.0-32
and I tried like 10 from all range of them

I gave up... it's not worth it
I installed Mint 18.3 and I'm using open source drivers

topic can be closed now

Post Reply

Return to “Graphic Cards & Monitors”