LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Ati driver "Unable to resolve execstack" ubuntu (http://www.linuxquestions.org/questions/linux-newbie-8/ati-driver-unable-to-resolve-execstack-ubuntu-788711/)

bowbalitic 02-12-2010 11:52 AM

Ati driver "Unable to resolve execstack" ubuntu
 
I have search for about an hour and I cant figure out how to fix this.
The proprietary drivers that came with my ubuntu 9.04 installation are not doing their job. My cpu is managing my graphics (compiz-fusion, and a 3d obj running in the background) and I alway have a core of my phenom processor close to 100. I have an ATI 4870 gpu with 2gb internal ram on the card. Also, recordmydesktop, electric sheep, and any other simple graphics all lag. 3d games on the other hand have no problem.

I decided I would try the driver I downloaded from AMD. I removed the proprietary driver, ran...

Code:

sudo sh ./ati-driver-installer-10-1-x86.x86_64.run --buildpkg Ubuntu/jaunty
and I get

Code:

Created directory fglrx-install.lPNHYh
Verifying archive integrity... All good.
Uncompressing ATI Proprietary Linux Driver-8.69................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
==================================================
 ATI Technologies Linux Driver Installer/Packager
==================================================
Generating package: Ubuntu/jaunty
Resolving build dependencies...
Unable to resolve  execstack.  Please manually install and try again.

Followed by
Code:

Package build failed!
Package build utility output:
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package fglrx-installer
dpkg-buildpackage: source version 2:8.690-0ubuntu1
dpkg-buildpackage: source changed by ATI Technologies Inc. <http://ati.amd.com/support/driver.html>
 debian/rules build
dpkg-buildpackage: host architecture amd64
test -x debian/rules
mkdir -p "."
#Create important strings
for i in 10fglrx \
                        dkms.conf \
                        xorg-driver-fglrx.install \
                        xorg-driver-fglrx-dev.install \
                        fglrx-kernel-source.install \
                        fglrx-amdcccle.install \
                        libamdxvba1.install \
                        overrides/fglrx-kernel-source; do \
                sed -e "s|#XMODDIR#|usr/lib/xorg/modules|"    \
                        -e "s|#XMODDIR32#||" \
                        -e "s|#DRIDIR32#|usr/lib32|"  \
                        -e "s|#LIBDIR#|lib64|"      \
                        -e "s|#DRIDIR#|usr/lib|"      \
                        -e "s|#CVERSION#|8.690|"  \
                        -e "s|#XARCH#|x740_64a|"  \
                        -e "s|#ARCH#|x86_64|"  \
                        debian/$i.in > debian/$i;      \
        done
# remove exec bit on everything
find arch \
                etc \
                lib \
                module \
                usr \
                x740_64a    -type f | xargs chmod -x
find: `module': No such file or directory
# set executable on user apps
find arch/x86_64/usr/sbin \
                arch/x86_64/usr/X11R6/bin \
                usr/sbin/ -type f | xargs chmod a+x
# set exec bit on scripts
find lib etc debian -name "*.sh" -type f | xargs chmod +x
# Generate modaliases
sh -e debian/modaliases/fglrx_supported \
                x740_64a/usr/X11R6/lib64/modules/drivers/fglrx_drv.so > \
                debian/modaliases/fglrx-modules.alias.override
 debian/rules binary
test -x debian/rules
dh_testroot
dh_clean -k
dh_installdirs -A
mkdir -p "."
#Create important strings
for i in 10fglrx \
                        dkms.conf \
                        xorg-driver-fglrx.install \
                        xorg-driver-fglrx-dev.install \
                        fglrx-kernel-source.install \
                        fglrx-amdcccle.install \
                        libamdxvba1.install \
                        overrides/fglrx-kernel-source; do \
                sed -e "s|#XMODDIR#|usr/lib/xorg/modules|"    \
                        -e "s|#XMODDIR32#||" \
                        -e "s|#DRIDIR32#|usr/lib32|"  \
                        -e "s|#LIBDIR#|lib64|"      \
                        -e "s|#DRIDIR#|usr/lib|"      \
                        -e "s|#CVERSION#|8.690|"  \
                        -e "s|#XARCH#|x740_64a|"  \
                        -e "s|#ARCH#|x86_64|"  \
                        debian/$i.in > debian/$i;      \
        done
# remove exec bit on everything
find arch \
                etc \
                lib \
                module \
                usr \
                x740_64a    -type f | xargs chmod -x
find: `module': No such file or directory
# set executable on user apps
find arch/x86_64/usr/sbin \
                arch/x86_64/usr/X11R6/bin \
                usr/sbin/ -type f | xargs chmod a+x
# set exec bit on scripts
find lib etc debian -name "*.sh" -type f | xargs chmod +x
# Generate modaliases
sh -e debian/modaliases/fglrx_supported \
                x740_64a/usr/X11R6/lib64/modules/drivers/fglrx_drv.so > \
                debian/modaliases/fglrx-modules.alias.override
dh_installdirs -pxorg-driver-fglrx
dh_installdirs -pxorg-driver-fglrx-dev
dh_installdirs -pfglrx-kernel-source
dh_installdirs -pfglrx-amdcccle
dh_installdirs -pfglrx-modaliases
dh_installdirs -plibamdxvba1
dh_installdocs -pxorg-driver-fglrx 
dh_installexamples -pxorg-driver-fglrx
dh_installman -pxorg-driver-fglrx 
dh_installinfo -pxorg-driver-fglrx 
dh_installmenu -pxorg-driver-fglrx
dh_installcron -pxorg-driver-fglrx
dh_installinit -pxorg-driver-fglrx 
dh_installdebconf -pxorg-driver-fglrx
dh_installemacsen -pxorg-driver-fglrx 
dh_installcatalogs -pxorg-driver-fglrx
dh_installpam -pxorg-driver-fglrx
dh_installlogrotate -pxorg-driver-fglrx
dh_installlogcheck -pxorg-driver-fglrx
dh_installchangelogs -pxorg-driver-fglrx 
dh_installudev -pxorg-driver-fglrx
dh_lintian -pxorg-driver-fglrx
dh_install -pxorg-driver-fglrx 
dh_link -pxorg-driver-fglrx 
dh_installmime -pxorg-driver-fglrx
#driver package
dh_install -XlibAMD -pxorg-driver-fglrx "arch/x86/usr/X11R6/lib/*.so*"          "usr/lib32"
dh_install -pxorg-driver-fglrx "arch/x86/usr/X11R6/lib/modules/dri"    "usr/lib32"
dh_install -pxorg-driver-fglrx "arch/x86/usr/lib/*"                    "usr/lib32"
dh_installdirs -pxorg-driver-fglrx "usr/lib32/fglrx"
for i in \
                        debian/xorg-driver-fglrx/usr/lib32/dri/fglrx_dri.so \
                        debian/xorg-driver-fglrx/usr/lib32/libGL.so.* \
                        ; do execstack -q $i; execstack -c $i; done
/bin/sh: execstack: not found
/bin/sh: execstack: not found
/bin/sh: execstack: not found
/bin/sh: execstack: not found
make: *** [binary-install/xorg-driver-fglrx] Error 127
dpkg-buildpackage: failure: debian/rules binary gave error exit status 2
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package fglrx-installer
dpkg-buildpackage: source version 2:8.690-0ubuntu1
dpkg-buildpackage: source changed by ATI Technologies Inc. <http://ati.amd.com/support/driver.html>
 debian/rules build
dpkg-buildpackage: host architecture amd64
test -x debian/rules
mkdir -p "."
#Create important strings
for i in 10fglrx \
                        dkms.conf \
                        xorg-driver-fglrx.install \
                        xorg-driver-fglrx-dev.install \
                        fglrx-kernel-source.install \
                        fglrx-amdcccle.install \
                        libamdxvba1.install \
                        overrides/fglrx-kernel-source; do \
                sed -e "s|#XMODDIR#|usr/lib/xorg/modules|"    \
                        -e "s|#XMODDIR32#||" \
                        -e "s|#DRIDIR32#|usr/lib32|"  \
                        -e "s|#LIBDIR#|lib64|"      \
                        -e "s|#DRIDIR#|usr/lib|"      \
                        -e "s|#CVERSION#|8.690|"  \
                        -e "s|#XARCH#|x740_64a|"  \
                        -e "s|#ARCH#|x86_64|"  \
                        debian/$i.in > debian/$i;      \
        done
# remove exec bit on everything
find arch \
                etc \
                lib \
                module \
                usr \
                x740_64a    -type f | xargs chmod -x
find: `module': No such file or directory
# set executable on user apps
find arch/x86_64/usr/sbin \
                arch/x86_64/usr/X11R6/bin \
                usr/sbin/ -type f | xargs chmod a+x
# set exec bit on scripts
find lib etc debian -name "*.sh" -type f | xargs chmod +x
# Generate modaliases
sh -e debian/modaliases/fglrx_supported \
                x740_64a/usr/X11R6/lib64/modules/drivers/fglrx_drv.so > \
                debian/modaliases/fglrx-modules.alias.override
 debian/rules binary
test -x debian/rules
dh_testroot
dh_clean -k
dh_installdirs -A
mkdir -p "."
#Create important strings
for i in 10fglrx \
                        dkms.conf \
                        xorg-driver-fglrx.install \
                        xorg-driver-fglrx-dev.install \
                        fglrx-kernel-source.install \
                        fglrx-amdcccle.install \
                        libamdxvba1.install \
                        overrides/fglrx-kernel-source; do \
                sed -e "s|#XMODDIR#|usr/lib/xorg/modules|"    \
                        -e "s|#XMODDIR32#||" \
                        -e "s|#DRIDIR32#|usr/lib32|"  \
                        -e "s|#LIBDIR#|lib64|"      \
                        -e "s|#DRIDIR#|usr/lib|"      \
                        -e "s|#CVERSION#|8.690|"  \
                        -e "s|#XARCH#|x740_64a|"  \
                        -e "s|#ARCH#|x86_64|"  \
                        debian/$i.in > debian/$i;      \
        done
# remove exec bit on everything
find arch \
                etc \
                lib \
                module \
                usr \
                x740_64a    -type f | xargs chmod -x
find: `module': No such file or directory
# set executable on user apps
find arch/x86_64/usr/sbin \
                arch/x86_64/usr/X11R6/bin \
                usr/sbin/ -type f | xargs chmod a+x
# set exec bit on scripts
find lib etc debian -name "*.sh" -type f | xargs chmod +x
# Generate modaliases
sh -e debian/modaliases/fglrx_supported \
                x740_64a/usr/X11R6/lib64/modules/drivers/fglrx_drv.so > \
                debian/modaliases/fglrx-modules.alias.override
dh_installdirs -pxorg-driver-fglrx
dh_installdirs -pxorg-driver-fglrx-dev
dh_installdirs -pfglrx-kernel-source
dh_installdirs -pfglrx-amdcccle
dh_installdirs -pfglrx-modaliases
dh_installdirs -plibamdxvba1
dh_installdocs -pxorg-driver-fglrx 
dh_installexamples -pxorg-driver-fglrx
dh_installman -pxorg-driver-fglrx 
dh_installinfo -pxorg-driver-fglrx 
dh_installmenu -pxorg-driver-fglrx
dh_installcron -pxorg-driver-fglrx
dh_installinit -pxorg-driver-fglrx 
dh_installdebconf -pxorg-driver-fglrx
dh_installemacsen -pxorg-driver-fglrx 
dh_installcatalogs -pxorg-driver-fglrx
dh_installpam -pxorg-driver-fglrx
dh_installlogrotate -pxorg-driver-fglrx
dh_installlogcheck -pxorg-driver-fglrx
dh_installchangelogs -pxorg-driver-fglrx 
dh_installudev -pxorg-driver-fglrx
dh_lintian -pxorg-driver-fglrx
dh_install -pxorg-driver-fglrx 
dh_link -pxorg-driver-fglrx 
dh_installmime -pxorg-driver-fglrx
#driver package
dh_install -XlibAMD -pxorg-driver-fglrx "arch/x86/usr/X11R6/lib/*.so*"          "usr/lib32"
dh_install -pxorg-driver-fglrx "arch/x86/usr/X11R6/lib/modules/dri"    "usr/lib32"
dh_install -pxorg-driver-fglrx "arch/x86/usr/lib/*"                    "usr/lib32"
dh_installdirs -pxorg-driver-fglrx "usr/lib32/fglrx"
for i in \
                        debian/xorg-driver-fglrx/usr/lib32/dri/fglrx_dri.so \
                        debian/xorg-driver-fglrx/usr/lib32/libGL.so.* \
                        ; do execstack -q $i; execstack -c $i; done
/bin/sh: execstack: not found
/bin/sh: execstack: not found
/bin/sh: execstack: not found
/bin/sh: execstack: not found
make: *** [binary-install/xorg-driver-fglrx] Error 127
dpkg-buildpackage: failure: debian/rules binary gave error exit status 2
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package fglrx-installer
dpkg-buildpackage: source version 2:8.690-0ubuntu1
dpkg-buildpackage: source changed by ATI Technologies Inc. <http://ati.amd.com/support/driver.html>
 debian/rules build
dpkg-buildpackage: host architecture amd64
test -x debian/rules
mkdir -p "."
#Create important strings
for i in 10fglrx \
                        dkms.conf \
                        xorg-driver-fglrx.install \
                        xorg-driver-fglrx-dev.install \
                        fglrx-kernel-source.install \
                        fglrx-amdcccle.install \
                        libamdxvba1.install \
                        overrides/fglrx-kernel-source; do \
                sed -e "s|#XMODDIR#|usr/lib/xorg/modules|"    \
                        -e "s|#XMODDIR32#||" \
                        -e "s|#DRIDIR32#|usr/lib32|"  \
                        -e "s|#LIBDIR#|lib64|"      \
                        -e "s|#DRIDIR#|usr/lib|"      \
                        -e "s|#CVERSION#|8.690|"  \
                        -e "s|#XARCH#|x740_64a|"  \
                        -e "s|#ARCH#|x86_64|"  \
                        debian/$i.in > debian/$i;      \
        done
# remove exec bit on everything
find arch \
                etc \
                lib \
                module \
                usr \
                x740_64a    -type f | xargs chmod -x
find: `module': No such file or directory
# set executable on user apps
find arch/x86_64/usr/sbin \
                arch/x86_64/usr/X11R6/bin \
                usr/sbin/ -type f | xargs chmod a+x
# set exec bit on scripts
find lib etc debian -name "*.sh" -type f | xargs chmod +x
# Generate modaliases
sh -e debian/modaliases/fglrx_supported \
                x740_64a/usr/X11R6/lib64/modules/drivers/fglrx_drv.so > \
                debian/modaliases/fglrx-modules.alias.override
 debian/rules binary
test -x debian/rules
dh_testroot
dh_clean -k
dh_installdirs -A
mkdir -p "."
#Create important strings
for i in 10fglrx \
                        dkms.conf \
                        xorg-driver-fglrx.install \
                        xorg-driver-fglrx-dev.install \
                        fglrx-kernel-source.install \
                        fglrx-amdcccle.install \
                        libamdxvba1.install \
                        overrides/fglrx-kernel-source; do \
                sed -e "s|#XMODDIR#|usr/lib/xorg/modules|"    \
                        -e "s|#XMODDIR32#||" \
                        -e "s|#DRIDIR32#|usr/lib32|"  \
                        -e "s|#LIBDIR#|lib64|"      \
                        -e "s|#DRIDIR#|usr/lib|"      \
                        -e "s|#CVERSION#|8.690|"  \
                        -e "s|#XARCH#|x740_64a|"  \
                        -e "s|#ARCH#|x86_64|"  \
                        debian/$i.in > debian/$i;      \
        done
# remove exec bit on everything
find arch \
                etc \
                lib \
                module \
                usr \
                x740_64a    -type f | xargs chmod -x
find: `module': No such file or directory
# set executable on user apps
find arch/x86_64/usr/sbin \
                arch/x86_64/usr/X11R6/bin \
                usr/sbin/ -type f | xargs chmod a+x
# set exec bit on scripts
find lib etc debian -name "*.sh" -type f | xargs chmod +x
# Generate modaliases
sh -e debian/modaliases/fglrx_supported \
                x740_64a/usr/X11R6/lib64/modules/drivers/fglrx_drv.so > \
                debian/modaliases/fglrx-modules.alias.override
dh_installdirs -pxorg-driver-fglrx
dh_installdirs -pxorg-driver-fglrx-dev
dh_installdirs -pfglrx-kernel-source
dh_installdirs -pfglrx-amdcccle
dh_installdirs -pfglrx-modaliases
dh_installdirs -plibamdxvba1
dh_installdocs -pxorg-driver-fglrx 
dh_installexamples -pxorg-driver-fglrx
dh_installman -pxorg-driver-fglrx 
dh_installinfo -pxorg-driver-fglrx 
dh_installmenu -pxorg-driver-fglrx
dh_installcron -pxorg-driver-fglrx
dh_installinit -pxorg-driver-fglrx 
dh_installdebconf -pxorg-driver-fglrx
dh_installemacsen -pxorg-driver-fglrx 
dh_installcatalogs -pxorg-driver-fglrx
dh_installpam -pxorg-driver-fglrx
dh_installlogrotate -pxorg-driver-fglrx
dh_installlogcheck -pxorg-driver-fglrx
dh_installchangelogs -pxorg-driver-fglrx 
dh_installudev -pxorg-driver-fglrx
dh_lintian -pxorg-driver-fglrx
dh_install -pxorg-driver-fglrx 
dh_link -pxorg-driver-fglrx 
dh_installmime -pxorg-driver-fglrx
#driver package
dh_install -XlibAMD -pxorg-driver-fglrx "arch/x86/usr/X11R6/lib/*.so*"          "usr/lib32"
dh_install -pxorg-driver-fglrx "arch/x86/usr/X11R6/lib/modules/dri"    "usr/lib32"
dh_install -pxorg-driver-fglrx "arch/x86/usr/lib/*"                    "usr/lib32"
dh_installdirs -pxorg-driver-fglrx "usr/lib32/fglrx"
for i in \
                        debian/xorg-driver-fglrx/usr/lib32/dri/fglrx_dri.so \
                        debian/xorg-driver-fglrx/usr/lib32/libGL.so.* \
                        ; do execstack -q $i; execstack -c $i; done
/bin/sh: execstack: not found
/bin/sh: execstack: not found
/bin/sh: execstack: not found
/bin/sh: execstack: not found
make: *** [binary-install/xorg-driver-fglrx] Error 127
dpkg-buildpackage: failure: debian/rules binary gave error exit status 2
Removing temporary directory: fglrx-install.lPNHYh

How do I fix this? Like I said I googled for an hour, searched: LQ, AMD's website, and many other forums.

If anyone has any suggestions to make the proprietary driver work better I'm all for that to. Thanks in advanced for you help, I swear I'm cursed because I have problems like this almost every weekend (not kidding past 3 weeks I've had various problems)

bluewind 02-12-2010 12:06 PM

Hi bowbalitic,

I am not very sure this will help or not but you can try. I had rebooting problem and installation problem of ATI driver for ubuntu 9.04.

Basically this is what I did and I could install ATI driver:

sudo /usr/share/ati/fglrx-uninstall.sh # (if it exists)
sudo apt-get remove --purge fglrx*
sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon
sudo apt-get install xserver-xorg-video-ati
sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
sudo dpkg-reconfigure xserver-xorg


Then I deleted /etc/X11/xorg.conf, then rebooted my computer to make sure everything was cleaned up.

Then I run this command in terminal:
sudo sh ./ati-driver-installer-10-1-x86.x86_64.run

Then after installed these drivers but BEFORE I rebooted my system I typed the following into the terminal.

sudo aticonfig --initial -f
sudo aticonfig --acpi-services=off

This anticonfig solved my reboot problem. I not sure this is command applicable to you or not.

I referred to this forum:http://ubuntuforums.org/showthread.php?t=1315199

bowbalitic 02-12-2010 07:18 PM

Well it worked I guess... Thanks for your help bluewind, you gave me what I asked. Unfortunatly its worse now than before, now 2 of my four cores are always running at 100%, the fps dropped and all graphics jitter (if thats a word :P), and boot up takes twice as long. Serves me right for being nosy. So I think I'm going to remove all the things I installed, and go back to the proprietary driver. There isn't an opensource driver for the 4870 is there?? Because that would be optimal. Thanks again for the help bluewind.

bowbalitic 02-12-2010 07:32 PM

Ok, so I got the proprietary setup again, is there anyway to improve how the gpu/cpu handles graphics objects? My cpu is working to hard for the gpu to be in control of my graphics. I know that the biggest thing stressing my system is this massive moon with excellent detail (3d object) I have rotating in my background (kinda corny sounding I know but it looks sweet). This computer is capable of playing Crysis on high with no problems, its hard to imagine that this moon, electric sheep, and recordmydesktop are really straining my gpu.


All times are GMT -5. The time now is 01:15 PM.