*** This bug is a duplicate of bug 859101 ***
    https://bugs.launchpad.net/bugs/859101

Public bug reported:

Hope it helps someway. Maybe others can have more success
with these steps. I've had three different errors/cases
for the same overall problem of trying different
ways to install fglrx. Two are listed in the outline.

Reference To Steps taken:
http://askubuntu.com/questions/124292/what-is-the-correct-way-to-install-ati-catalyst-video-drivers-fglrx/286775#286775
https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel

Outline of Steps Taken
-----------------------
I. Prep
  A. Download: amd-driver-installer-catalyst-13.1-legacy-linux-x86.x86_64.zip
  B. $ cd ~/Download
  C. Unzip.
  D. $ sudo amd-driver-installer-catalyst-13.1-legacy-linux-x86.x86_64.run 
--buildpkg Ubuntu/raring

II. Test Install of FGLRX
  A. $ sudo dpkg -i *.deb
  B. It failed for me. Needed kernel source to compile dkms stuff. Module(s) 
not built.
  C. Purge all fglrx drivers: $ sudo apt-get remove --purge fglrx fglrx_* 
fglrx-amdcccle* fglrx-dev*

III. Install Kernel Source (Ubuntu way)
  A. $ sudo apt-get source linux-image-`uname -r`
  B. $ sudo apt-get build-dep linux-image-$(uname -r)
  C. $ cd /usr/src/
  D. Uncompress.
  E. cd linux-3.8.0
  F. $ fakeroot debian/rules clean
  G. $ fakeroot debian/rules binary-headers binary-generic
  H. cd ..
  I. $ sudo dpkg -i linux*.deb
  J. Reboot.

IV. Try Install of FGLRX Again
  A. $ cd ~/Download
  B. $ sudo dpkg -i *.deb
  C. It fails to compile modules.
  D. Try manual build of dkms: dkms build -m fglrx/8.970
  E. $ cat /var/lib/dkms/fglrx/8.970/build/make.log

----------


FYI: The link to download the patch from the provided site is dead from post:
( DNS doesn't resolve: 
http://catalyst.apocalypsus.net/files/arch-fglrx-3.7.patch )
---
Bug #859101: Jelle Foks (jellefoks) wrote on 2012-11-30: #5
---


$ dkms build -m fglrx/8.970
---
Kernel preparation unnecessary for this kernel.  Skipping...
Building module:
cleaning build area....
cd /var/lib/dkms/fglrx/8.970/build; sh make.sh --nohints 
--uname_r=3.8.0-25-generic --norootcheck....(bad exit status: 1)
Error! Bad return status for module build on kernel: 3.8.0-25-generic (x86_64)
Consult /var/lib/dkms/fglrx/8.970/build/make.log for more information.
---


$ cat /var/lib/dkms/fglrx/8.970/build/make.log
---
DKMS make.log for fglrx-8.970 for kernel 3.8.0-25-generic (x86_64)
Fri Jun 14 14:16:08 PDT 2013
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/3.8.0-25-generic/build 
SUBDIRS=/var/lib/dkms/fglrx/8.970/build/2.6.x modules
make[1]: Entering directory `/usr/src/linux-headers-3.8.0-25-generic'
  CC [M]  /var/lib/dkms/fglrx/8.970/build/2.6.x/firegl_public.o
In file included from 
/var/lib/dkms/fglrx/8.970/build/2.6.x/firegl_public.c:25:0:
include/linux/version.h:8:2: error: #endif without #if
/var/lib/dkms/fglrx/8.970/build/2.6.x/firegl_public.c:27:24: error: operator 
'<' has no left operand
/var/lib/dkms/fglrx/8.970/build/2.6.x/firegl_public.c:31:24: error: operator 
'>=' has no left operand
/var/lib/dkms/fglrx/8.970/build/2.6.x/firegl_public.c:34:28: fatal error: 
linux/autoconf.h: No such file or directory
compilation terminated.
make[2]: *** [/var/lib/dkms/fglrx/8.970/build/2.6.x/firegl_public.o] Error 1
make[1]: *** [_module_/var/lib/dkms/fglrx/8.970/build/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-25-generic'
make: *** [kmod_build] Error 2
build failed with return value 2
---


One of the other results from: dkms build -m fglrx/8.970
$ cat /var/lib/dkms/fglrx/8.970/build/make.log
---
DKMS make.log for fglrx-8.970 for kernel 3.8.0-23-generic (x86_64)
Thu Jun 13 16:27:01 PDT 2013
AMD kernel module generator version 2.1
kernel includes at /lib/modules/3.8.0-23-generic/build/include not found or 
incomplete
file: /lib/modules/3.8.0-23-generic/build/include/linux/version.h
---


Hardware: Dell Studio XPS 1645, AMD Radeon HD 4670
$ lspci | grep AMD
---
02:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI 
RV730/M96-XT [Mobility Radeon HD 4670]
02:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI RV710/730 HDMI Audio 
[Radeon HD 4000 series]
---

$ uname -a
---
Linux hostname 3.8.0-25-generic #37-Ubuntu SMP Thu Jun 6 20:47:07 UTC 2013 
x86_64 x86_64 x86_64 GNU/Linux
---

$ lsb_release -a
---
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 13.04
Release:        13.04
Codename:       raring
---

** Affects: fglrx-installer (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: dkms fglrx

** This bug has been marked a duplicate of bug 859101
   fglrx 2:8.881-0ubuntu2: fglrx kernel module failed to build (kernel includes 
at ... not found or incomplete)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to fglrx-installer in Ubuntu.
https://bugs.launchpad.net/bugs/1191169

Title:
  fglrx fails to build modules and fails to install

Status in “fglrx-installer” package in Ubuntu:
  New

Bug description:
  Hope it helps someway. Maybe others can have more success
  with these steps. I've had three different errors/cases
  for the same overall problem of trying different
  ways to install fglrx. Two are listed in the outline.

  Reference To Steps taken:
  
http://askubuntu.com/questions/124292/what-is-the-correct-way-to-install-ati-catalyst-video-drivers-fglrx/286775#286775
  https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel

  Outline of Steps Taken
  -----------------------
  I. Prep
    A. Download: amd-driver-installer-catalyst-13.1-legacy-linux-x86.x86_64.zip
    B. $ cd ~/Download
    C. Unzip.
    D. $ sudo amd-driver-installer-catalyst-13.1-legacy-linux-x86.x86_64.run 
--buildpkg Ubuntu/raring

  II. Test Install of FGLRX
    A. $ sudo dpkg -i *.deb
    B. It failed for me. Needed kernel source to compile dkms stuff. Module(s) 
not built.
    C. Purge all fglrx drivers: $ sudo apt-get remove --purge fglrx fglrx_* 
fglrx-amdcccle* fglrx-dev*

  III. Install Kernel Source (Ubuntu way)
    A. $ sudo apt-get source linux-image-`uname -r`
    B. $ sudo apt-get build-dep linux-image-$(uname -r)
    C. $ cd /usr/src/
    D. Uncompress.
    E. cd linux-3.8.0
    F. $ fakeroot debian/rules clean
    G. $ fakeroot debian/rules binary-headers binary-generic
    H. cd ..
    I. $ sudo dpkg -i linux*.deb
    J. Reboot.

  IV. Try Install of FGLRX Again
    A. $ cd ~/Download
    B. $ sudo dpkg -i *.deb
    C. It fails to compile modules.
    D. Try manual build of dkms: dkms build -m fglrx/8.970
    E. $ cat /var/lib/dkms/fglrx/8.970/build/make.log

  ----------

  
  FYI: The link to download the patch from the provided site is dead from post:
  ( DNS doesn't resolve: 
http://catalyst.apocalypsus.net/files/arch-fglrx-3.7.patch )
  ---
  Bug #859101: Jelle Foks (jellefoks) wrote on 2012-11-30: #5
  ---

  
  $ dkms build -m fglrx/8.970
  ---
  Kernel preparation unnecessary for this kernel.  Skipping...
  Building module:
  cleaning build area....
  cd /var/lib/dkms/fglrx/8.970/build; sh make.sh --nohints 
--uname_r=3.8.0-25-generic --norootcheck....(bad exit status: 1)
  Error! Bad return status for module build on kernel: 3.8.0-25-generic (x86_64)
  Consult /var/lib/dkms/fglrx/8.970/build/make.log for more information.
  ---

  
  $ cat /var/lib/dkms/fglrx/8.970/build/make.log
  ---
  DKMS make.log for fglrx-8.970 for kernel 3.8.0-25-generic (x86_64)
  Fri Jun 14 14:16:08 PDT 2013
  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/3.8.0-25-generic/build 
SUBDIRS=/var/lib/dkms/fglrx/8.970/build/2.6.x modules
  make[1]: Entering directory `/usr/src/linux-headers-3.8.0-25-generic'
    CC [M]  /var/lib/dkms/fglrx/8.970/build/2.6.x/firegl_public.o
  In file included from 
/var/lib/dkms/fglrx/8.970/build/2.6.x/firegl_public.c:25:0:
  include/linux/version.h:8:2: error: #endif without #if
  /var/lib/dkms/fglrx/8.970/build/2.6.x/firegl_public.c:27:24: error: operator 
'<' has no left operand
  /var/lib/dkms/fglrx/8.970/build/2.6.x/firegl_public.c:31:24: error: operator 
'>=' has no left operand
  /var/lib/dkms/fglrx/8.970/build/2.6.x/firegl_public.c:34:28: fatal error: 
linux/autoconf.h: No such file or directory
  compilation terminated.
  make[2]: *** [/var/lib/dkms/fglrx/8.970/build/2.6.x/firegl_public.o] Error 1
  make[1]: *** [_module_/var/lib/dkms/fglrx/8.970/build/2.6.x] Error 2
  make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-25-generic'
  make: *** [kmod_build] Error 2
  build failed with return value 2
  ---

  
  One of the other results from: dkms build -m fglrx/8.970
  $ cat /var/lib/dkms/fglrx/8.970/build/make.log
  ---
  DKMS make.log for fglrx-8.970 for kernel 3.8.0-23-generic (x86_64)
  Thu Jun 13 16:27:01 PDT 2013
  AMD kernel module generator version 2.1
  kernel includes at /lib/modules/3.8.0-23-generic/build/include not found or 
incomplete
  file: /lib/modules/3.8.0-23-generic/build/include/linux/version.h
  ---

  
  Hardware: Dell Studio XPS 1645, AMD Radeon HD 4670
  $ lspci | grep AMD
  ---
  02:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI 
RV730/M96-XT [Mobility Radeon HD 4670]
  02:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI RV710/730 HDMI 
Audio [Radeon HD 4000 series]
  ---

  $ uname -a
  ---
  Linux hostname 3.8.0-25-generic #37-Ubuntu SMP Thu Jun 6 20:47:07 UTC 2013 
x86_64 x86_64 x86_64 GNU/Linux
  ---

  $ lsb_release -a
  ---
  No LSB modules are available.
  Distributor ID:       Ubuntu
  Description:  Ubuntu 13.04
  Release:      13.04
  Codename:     raring
  ---

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/1191169/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to