Re: [Hampshire] Setting up ATI Mobility Radeon HD 4200 in De…

Top Page
Author: Robin Wilson
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Setting up ATI Mobility Radeon HD 4200 in Debian

Reply to this message
Hi all,

It turns out that build-essentials doesn't bring in debhelper, but installing it by itself fixed that error. The only problem is that now I have another error:

Generating package: Debian/unstable
cp: cannot stat `/root/Downloads/fglrx-install.r1t4YG/x710_64a/*': No such file or directory
Package build failed!
Package build utility output:
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): 
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): 
dpkg-buildpackage: source package fglrx-installer
dpkg-buildpackage: source version 8.841-1
dpkg-buildpackage: source changed by ATI Technologies Inc. <http://ati.amd.com/support/driver.html>
 dpkg-source --before-build fglrx.LBvpNl
dpkg-buildpackage: host architecture amd64
 debian/rules build
dh_testdir
# move licenses away from binary dir
if [ ! -d usr/share/doc/fglrx ]; then \
      mkdir -p usr/share/doc/fglrx; \
      mv usr/X11R6/bin/LICENSE.* usr/share/doc/fglrx; \
    fi
# set executable on user apps
find usr/X11R6/bin -type f | xargs chmod a+x
# remove exec bit from files that don't deserve it
find usr/X11R6/include \
         usr/X11R6/lib \
         usr/X11R6/lib64 \
         usr/share usr/src     -type f | xargs chmod -x
find: `usr/X11R6/include': No such file or directory
find lib -not -name "*.sh" -type f | xargs chmod -x
find lib      -name "*.sh" -type f | xargs chmod +x
# set proper permissions on /etc files
if [ -d etc/ati ]; then            \
        chmod 755 etc/ati ;            \
        chmod 644 etc/ati/* ;        \
        chmod a+x etc/ati/*.sh ;    \
    fi
if [ -f debian/fglrx.default ]; then \
      mv -v debian/fglrx.default debian/fglrx; \
    fi
`debian/fglrx.default' -> `debian/fglrx'
# remove exec bit from 64-bit libs too
find usr/X11R6/lib64       -type f | xargs chmod -x
 debian/rules binary
dh_testdir
# move licenses away from binary dir
if [ ! -d usr/share/doc/fglrx ]; then \
      mkdir -p usr/share/doc/fglrx; \
      mv usr/X11R6/bin/LICENSE.* usr/share/doc/fglrx; \
    fi
# set executable on user apps
find usr/X11R6/bin -type f | xargs chmod a+x
# remove exec bit from files that don't deserve it
find usr/X11R6/include \
         usr/X11R6/lib \
         usr/X11R6/lib64 \
         usr/share usr/src     -type f | xargs chmod -x
find: `usr/X11R6/include': No such file or directory
find lib -not -name "*.sh" -type f | xargs chmod -x
find lib      -name "*.sh" -type f | xargs chmod +x
# set proper permissions on /etc files
if [ -d etc/ati ]; then            \
        chmod 755 etc/ati ;            \
        chmod 644 etc/ati/* ;        \
        chmod a+x etc/ati/*.sh ;    \
    fi
if [ -f debian/fglrx.default ]; then \
      mv -v debian/fglrx.default debian/fglrx; \
    fi
# remove exec bit from 64-bit libs too
find usr/X11R6/lib64       -type f | xargs chmod -x
dh_testdir
dh_testroot
dh_clean -k
dh_clean: dh_clean -k is deprecated; use dh_prep instead
dh_clean: Compatibility levels before 5 are deprecated.
dh_installdirs
dh_installdirs: Compatibility levels before 5 are deprecated.
# Create the directories to install into
dh_installdirs -pfglrx-driver \
        usr \
        usr/lib/xorg \
        usr/lib/xorg/modules \
        usr/lib/dri \
        usr/bin \
        usr/sbin \
        etc/acpi \
        etc/acpi/events \
        etc/default \
        etc/X11/Xsession.d
dh_installdirs: Compatibility levels before 5 are deprecated.
# the amd64 package includes 32bit compatibility libraries
dh_installdirs -pfglrx-driver \
        emul/ia32-linux/usr/lib \
        emul/ia32-linux/usr/lib/xorg \
        emul/ia32-linux/usr/lib/xorg/modules \
        emul/ia32-linux/usr/lib/dri
dh_installdirs: Compatibility levels before 5 are deprecated.
dh_installdirs -pfglrx-driver-dev \
        usr \
        usr/include \
        usr/lib
dh_installdirs: Compatibility levels before 5 are deprecated.
dh_installdirs -pfglrx-kernel-src \
        usr/src/modules/fglrx \
        usr/src/modules/fglrx/debian
dh_installdirs: Compatibility levels before 5 are deprecated.
dh_installdirs -A -pfglrx-amdcccle \
        usr \
        usr/bin \
        usr/share \
        usr/share/applnk \
        usr/share/applications \
        usr/share/icons \
        usr/share/pixmaps
dh_installdirs: Compatibility levels before 5 are deprecated.
dh_installdirs -p \
        usr/src
dh_installdirs: Compatibility levels before 5 are deprecated.
dh_install
dh_install: Compatibility levels before 5 are deprecated.
ldconfig -n usr/X11R6/lib/
dh_install -pfglrx-driver "usr/X11R6/bin/fgl*"      "usr/bin"
dh_install: Compatibility levels before 5 are deprecated.
dh_install -pfglrx-driver "usr/X11R6/bin/aticonfig" "usr/bin"
dh_install: Compatibility levels before 5 are deprecated.
dh_install -pfglrx-driver "usr/sbin/atieventsd"     "usr/sbin"
dh_install: Compatibility levels before 5 are deprecated.
dh_installman -pfglrx-driver "usr/share/man/man8/atieventsd.8"
dh_installman: Compatibility levels before 5 are deprecated.
# amd64 needs some library redirection
dh_install -pfglrx-driver "usr/X11R6/lib64/*.so*"           "usr/lib"
dh_install: Compatibility levels before 5 are deprecated.
dh_install -pfglrx-driver "usr/X11R6/lib64/modules/dri"     "usr/lib"
dh_install: Compatibility levels before 5 are deprecated.
dh_install -pfglrx-driver "usr/X11R6/lib64/modules/linux"   "usr/lib/xorg/modules"
dh_install: Compatibility levels before 5 are deprecated.
cp: cannot stat `./usr/X11R6/lib64/modules/linux': No such file or directory
dh_install: cp -a ./usr/X11R6/lib64/modules/linux debian/fglrx-driver/usr/lib/xorg/modules/ returned exit code 1
make: *** [binary] Error 2
dpkg-buildpackage: error: debian/rules binary gave error exit status 2
Removing temporary directory: fglrx-install.r1t4YG


(Sorry for the long copy-paste - I thought that quite a few bits of it might be important)

I have a suspicion this might be because I'm choosing the wrong version of Debian to create the package for. I'm running Debian 6.0 (known as Squeeze I think?), but the options the ATI tool gives me are:

Debian Packages:
    Debian/sid
    Debian/unstable
    Debian/etch
    Debian/stable
    Debian/lenny
    Debian/testing
    Debian/experimental


Any ideas what's best to choose?

Robin

On 6 May 2011, at 21:37, Daniel Llewellyn wrote:

>
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x5810f100.hantslug.org.uk.2421': Permission denied
gpg: keyblock resource '/var/lib/lurker/pubring.gpg': Permission denied
gpg: invalid clearsig header
gpg: no valid OpenPGP data found.
gpg: block_filter: 1st length byte missing
gpg: cleartext signature without data
gpg: no signature found
gpg: the signature could not be verified.
Please remember that the signature file (.sig or .asc)
should be the first file given on the command line.
> On 06/05/2011 21:28, Benjie Gillam wrote:
>> You may need to install extra software too, but we can figure that out step by step if you can't find a list somewhere.
>
> the meta package "build-essential" is pretty useful for pulling the
> usual suspect dependencies such as make, gcc, binutils, etc. I am unsure
> whether that brings in debhelper tho.
>
>
> --
> Please post to: Hampshire@???
> Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
> LUG URL: http://www.hantslug.org.uk
> --------------------------------------------------------------