The Internet is full of this kind of issues, like the guys from ATI wouldn't even bother to test their installers. I am trying to get the latest driver because Skyrim (with Wine) freezes so badly that I have to un-plug/reset the computer. I am trying to see if the latest driver would fix that because the error is related to fglrx. By the way, the log is:
kernel: [ 72.180644] fglrx_pci 0000:01:00.0: irq 48 for MSI/MSI-X
kernel: [ 72.181039] <6>[fglrx] Firegl kernel thread PID: 1942
kernel: [ 72.181101] <6>[fglrx] Firegl kernel thread PID: 1943
kernel: [ 72.181163] <6>[fglrx] Firegl kernel thread PID: 1944
kernel: [ 72.181230] <6>[fglrx] IRQ 48 Enabled
kernel: [ 72.226636] <6>[fglrx] Reserved FB block: Shared offset:0, size:1000000
kernel: [ 72.226638] <6>[fglrx] Reserved FB block: Unshared offset:f878000, size:4000
kernel: [ 72.226639] <6>[fglrx] Reserved FB block: Unshared offset:f87c000, size:484000
kernel: [ 72.226640] <6>[fglrx] Reserved FB block: Unshared offset:7fff4000, size:c000
anacron[1960]: Anacron 2.3 started on 2014-06-24
anacron[1960]: Normal exit (0 jobs run)
So, here I go. I download the archive from ATI (linux-amd-catalyst-14.6-beta-v1.0-may23.zip) and extract the files.
Now I uninstall the existing fglrx driver by doing this:
sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*
sudo dpkg-reconfigure xserver-xorg
The first one works fine and I can see that fglrx is removed. The second one, obviously, throws me this sh*t:
Package 'xserver-xorg' is not installed and no info is available.
Anyway, I start the new driver's installer after going to its location:
sudo ./amd-driver-installer-14.20-x86.x86_64.run
The first error is this:
./lokixml.sh: 143: ./lokixml.sh: [[: not found
The ugly setup window shows up and after I click Continue/I Agree/Continue I get a pop-up window (even uglier) telling me to go fu*k myself and check errors log.
I decide to take them one by one so, in order to fix the first error I have to extract the .run file:
./amd-driver-installer-14.20-x86.x86_64.run --extract
then open the file lokixml.sh from the folder, where I must comment out lines 143 to 145. After that I run the install script:
sudo ./ati-installer.sh 14.20 --install
The lokixml.sh error is gone but I still get the ugly pop-up so I go to the log file and find this:
./packages/Ubuntu/ati-packager.sh: 294: ./packages/Ubuntu/ati-packager.sh: debclean: not found dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2 dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-functions -Wl,-z,relro dpkg-buildpackage: source package fglrx-installer dpkg-buildpackage: source version 2:14.200-0ubuntu1 dpkg-buildpackage: source changed by AMD: Advanced Micro Devices. <http://ati.amd.com/support/driver.html> dpkg-source --before-build fglrx.hM3zeH dpkg-buildpackage: host architecture amd64 debian/rules build Can't exec "debian/rules": Permission denied at /usr/bin/dpkg-buildpackage line 529. dpkg-buildpackage: error: debian/rules build failed with unknown exit code -1 [Error] Generate Package - error generating package : Ubuntu/precise
In this page I find out that I have to mount some temporary directory and then start the installer, so I do:
mkdir ~/tmptmp sudo mount --bind ~/tmptmp /var/tmp sudo ./ati-installer.sh 14.20 --install sudo checkinstall make install sudo umount /var/tmp
but I get the same pop-up and errors in the log file, so here is where I am stuck, with the previous driver uninstalled and the new one unable to be installed. My ATI card is a HD 7670 M, on a HP Pavillion G6 2306-sq
I found another HowTo here but now, when I do:
sudo sh ati-installer.sh 14.100/14.20 --buildpkg
I get an error saying:parsechangelog/debian: warning: debian/changelog(l0): found eof where expected first heading parsechangelog/debian: error: fatal error occurred while parsing input dpkg-buildpackage: error: changelog parser /usr/lib/dpkg/parsechangelog/debian gave error exit status 255
This is never ending
After trying other solutions I have managed to mess it up completely. Black screen and no way to recover my files. So, I´m going back to Windows.
Error! Bad return status for module build on kernel: 3.16.0-9-generic (x86_64)
/var/lib/dkms/fglrx/14.200/build/make.log containsIn function 'KCL_GetEffectiveUid': /var/lib/dkms/fglrx/14.200/build/2.6.x/firegl_public.c:1787:5: error: incompatible types when returning type 'kuid_t' but 'KCL_TYPE_Uid' was expected return current_euid();
Makefile:88: recipe for target 'kmod_build' failed
build failed with return value 2
– Marcos Aug 19 '14 at 20:59