Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
04-02-2014, 06:21 AM
|
#16
|
Member
Registered: Jun 2013
Location: Germany
Distribution: Slackware
Posts: 174
Original Poster
Rep:
|
Quote:
Originally Posted by TobiSGD
Sorry for the delay, but now it seriously backfires that I have not taken notes the last time I did this
...
Surprisingly, I only could compile glproto, when I tried to compile xorg-xserver it complained about a missing library (gl > 9.2), which I could not find at all, not even on my system where xorg-xserver 1.15 is already installed an running fine. So, it would be nice if anyone can enlighten me on what I am doing wrong here.
|
*smiles* thats quite interesting tobi. i didnt expact that one.
well that without dri3 i think it is.. isnt it?
ill think i leave this unsolved for now.
|
|
|
04-03-2014, 01:26 PM
|
#17
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Quote:
Originally Posted by Stuferus
*smiles* thats quite interesting tobi. i didnt expact that one.
well that without dri3 i think it is.. isnt it?
ill think i leave this unsolved for now.
|
I have compiled it with DRI3, so I don't think that that is the problem. I will have to do some research on this, but time is scarce here and will be for some time, so I appreciate any help.
@moisespedro: How did you set it up, which hardware are you using and what exactly is slow (3D/2D/video acceleration, ...).
|
|
|
04-03-2014, 07:24 PM
|
#18
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Rep:
|
My mesa.SlackBuild, I have a FX6300 and a radeon 6670 I don't know if it is related to it or not but I am not exactly happy with Slackware performance since I started to tinker it.
Code:
#!/bin/sh
# Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2013 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PKGNAM=mesa
VERSION=10.1.0
DEMOVERS=8.1.0
BUILD=${BUILD:-1}
# Be sure this list is up-to-date:
DRI_DRIVERS="i915,i965,radeon,swrast"
NUMJOBS=${NUMJOBS:--j8}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) export ARCH=i486 ;;
arm*) export ARCH=arm ;;
*) export ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-mesa
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP
rm -rf Mesa-${VERSION}
tar xvf $CWD/MesaLib-${VERSION}.tar.?z* || exit 1
cd Mesa-$VERSION
# Let's kill the warning about operating on a dangling symlink:
rm -f src/gallium/state_trackers/d3d1x/w32api
# Make sure ownerships and permissions are sane:
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
# Apply patches from git (and maybe elsewhere):
# Patches obtained by:
# git checkout origin/8.0
# git format-patch 3d657b14b4cab98a2945904823e78cd8950944f4.. # 8.0.3 release
if /bin/ls $CWD/patches/*.patch 1> /dev/null 2> /dev/null ; then
for patch in $CWD/patches/*.patch ; do
patch -p1 < $patch || exit 1 ;
done
fi
if [ ! -r configure ]; then
autoreconf || exit 1
fi
# Running autogen to avoid problems if our autotools don't match upstream's:
./autogen.sh
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
--docdir=/usr/doc/mesa-$VERSION \
--with-dri-driverdir=/usr/lib${LIBDIRSUFFIX}/xorg/modules/dri \
--with-dri-drivers="$DRI_DRIVERS" \
--with-egl-platforms="drm,x11" \
--with-gallium-drivers="r300,r600" \
--enable-gles1 \
--enable-gles2 \
--enable-openvg \
--enable-gbm \
--enable-gallium-egl \
--enable-gallium-gbm \
--enable-xorg \
--enable-glx-tls \
--enable-vdpau \
--enable-texture-float \
--enable-shared-glapi \
--enable-xa \
--enable-osmesa \
--build=$ARCH-slackware-linux
# r300 requires llvm
# Other gallium drivers:
# galahad,i915,identity,llvmpipe,noop,nv50,nvc0,nvfx,rbug,softpipe,svga,trace
make $NUMJOBS || make || exit 1
make install DESTDIR=$PKG || exit 1
# Now install the demos
( cd $TMP
rm -rf mesa-demos-$DEMOVERS
tar xvf $CWD/mesa-demos-$DEMOVERS.tar.?z* || exit 1
cd mesa-demos-$DEMOVERS
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--build=$ARCH-slackware-linux
# Build and install gears and glinfo, as well as a few other demos
make -C src/demos gears glinfo
make -C src/xdemos \
glthreads glxcontexts glxdemo glxgears glxgears_fbconfig \
glxheads glxinfo glxpbdemo glxpixmap
mkdir -p $PKG/usr/bin
cp -a src/demos/{gears,glinfo} $PKG/usr/bin
for i in glthreads glxcontexts glxdemo glxgears glxgears_fbconfig \
glxheads glxinfo glxpbdemo glxpixmap ; do
cp -a src/xdemos/$i $PKG/usr/bin ;
done
)
# Strip binaries:
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
# Compress info files, if any:
if [ -d $PKG/usr/info ]; then
rm -f $PKG/usr/info/dir
gzip -9 $PKG/usr/info/*
fi
mkdir -p $PKG/usr/doc/Mesa-$VERSION/html
cp -a \
docs/COPYING* docs/relnotes-${VERSION}*.html docs/README* docs/GL* \
$PKG/usr/doc/Mesa-$VERSION
cp -a docs/*.html $PKG/usr/doc/Mesa-$VERSION/html
rm -f $PKG/usr/doc/Mesa-$VERSION/html/relnotes*.html
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $TMP/${PKGNAM}-$VERSION-$ARCH-$BUILD.txz
|
|
|
04-03-2014, 08:11 PM
|
#19
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Have you tried to use a more stripped down version of Mesa to see if one of the options is causing the slow down? Also, what exactly is slow?
|
|
|
04-04-2014, 04:02 AM
|
#20
|
Member
Registered: Feb 2014
Posts: 344
Rep:
|
I am unable to compile mesa without --disable-dri3. It keeps complaining about xshmfence and I can't seem to find a slackbuild for libxshmfence or make one myself that works.
EDIT: Nevermind, I found PhantomX's slackbuild and that did the trick.
BTW this is how my Mesa slackbuild looks like. I have not yet tested any of iet, since I am in the process of rebuilding my slackware install.
I also have llvm-3.4 and updated all available libs.
Code:
PKGNAM=mesa
VERSION=10.1.0
DEMOVERS=8.1.0
BUILD=${BUILD:-1}
NUMJOBS=${NUMJOBS:--j8}
# Be sure this list is up-to-date:
DRI_DRIVERS="radeon,swrast"
GALLIUM_DRIVERS="r600,swrast"
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) export ARCH=i486 ;;
arm*) export ARCH=arm ;;
*) export ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-mesa
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP
rm -rf Mesa-${VERSION}
tar xvf $CWD/MesaLib-${VERSION}.tar.?z* || exit 1
cd Mesa-$VERSION
# Let's kill the warning about operating on a dangling symlink:
rm -f src/gallium/state_trackers/d3d1x/w32api
# Make sure ownerships and permissions are sane:
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
# Apply patches from git (and maybe elsewhere):
# Patches obtained by:
# git checkout origin/8.0
# git format-patch 3d657b14b4cab98a2945904823e78cd8950944f4.. # 8.0.3 release
if /bin/ls $CWD/patches/*.patch 1> /dev/null 2> /dev/null ; then
for patch in $CWD/patches/*.patch ; do
patch -p1 < $patch || exit 1 ;
done
fi
if [ ! -r configure ]; then
NOCONFIGURE=1
autoreconf || exit 1
fi
# Running autogen to avoid problems if our autotools don't match upstream's:
NOCONFIGURE=1 \
./autogen.sh
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
--docdir=/usr/doc/mesa-$VERSION \
--with-dri-driverdir=/usr/lib${LIBDIRSUFFIX}/xorg/modules/dri \
--with-dri-drivers="$DRI_DRIVERS" \
--with-gallium-drivers=nouveau,r300,r600,svga \
--enable-gallium-llvm \
--enable-shared-glapi \
--enable-xa \
--enable-osmesa \
--enable-texture-float \
--enable-vdpau \
--build=$ARCH-slackware-linux
# r300 requires llvm
# Other gallium drivers:
# galahad,i915,identity,llvmpipe,noop,nv50,nvc0,nvfx,rbug,softpipe,svga,trace
make $NUMJOBS || make || exit 1
make install DESTDIR=$PKG || exit 1
# Now install the demos
( cd $TMP
rm -rf mesa-demos-$DEMOVERS
tar xvf $CWD/mesa-demos-$DEMOVERS.tar.?z* || exit 1
cd mesa-demos-$DEMOVERS
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--build=$ARCH-slackware-linux
# Build and install gears and glinfo, as well as a few other demos
make -C src/demos gears glinfo
make -C src/xdemos \
glthreads glxcontexts glxdemo glxgears glxgears_fbconfig \
glxheads glxinfo glxpbdemo glxpixmap
mkdir -p $PKG/usr/bin
cp -a src/demos/{gears,glinfo} $PKG/usr/bin
for i in glthreads glxcontexts glxdemo glxgears glxgears_fbconfig \
glxheads glxinfo glxpbdemo glxpixmap ; do
cp -a src/xdemos/$i $PKG/usr/bin ;
done
)
# Strip binaries:
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
# Compress info files, if any:
if [ -d $PKG/usr/info ]; then
rm -f $PKG/usr/info/dir
gzip -9 $PKG/usr/info/*
fi
mkdir -p $PKG/usr/doc/Mesa-$VERSION/html
cp -a \
docs/COPYING* docs/relnotes-${VERSION}*.html docs/README* docs/GL* \
$PKG/usr/doc/Mesa-$VERSION
cp -a docs/*.html $PKG/usr/doc/Mesa-$VERSION/html
rm -f $PKG/usr/doc/Mesa-$VERSION/html/relnotes*.html
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $TMP/${PKGNAM}-$VERSION-$ARCH-$BUILD.txz
Last edited by hendrickxm; 04-04-2014 at 04:35 AM.
|
|
|
04-04-2014, 04:32 AM
|
#21
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Rep:
|
Quote:
Originally Posted by TobiSGD
Have you tried to use a more stripped down version of Mesa to see if one of the options is causing the slow down? Also, what exactly is slow?
|
Often I am with just Firefox and Skype open and the system hangs with simple tasks like opening a link, switching tabs, reading a new skype message, things like that. I have no idea if it is related to mesa.
|
|
|
04-04-2014, 10:30 AM
|
#22
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Rep:
|
Well, I tried modifying my script and I even tried yours but then I get the missing libelf thing error. I give up for now, will leave it this way.
|
|
|
04-04-2014, 01:10 PM
|
#23
|
Member
Registered: Jun 2013
Location: Germany
Distribution: Slackware
Posts: 174
Original Poster
Rep:
|
Quote:
Originally Posted by hendrickxm
EDIT: Nevermind, I found PhantomX's slackbuild and that did the trick.
|
link please? for easy finding and documentation.
|
|
|
04-04-2014, 02:49 PM
|
#24
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Rep:
|
I seriously don't know what to do anymore, I am considering a reinstall :/ I broke something I think
|
|
|
04-04-2014, 03:18 PM
|
#25
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Rep:
|
Tobi, there is something wrong with your package/script. All the files get installed under /usr/local/lib.
|
|
|
04-04-2014, 03:33 PM
|
#26
|
LQ Newbie
Registered: Jun 2006
Posts: 25
Rep:
|
the libelf problem can be fixed by adding
CPPFLAGS="-I/usr/include/libelf" \
before
CFLAGS="$SLKCFLAGS" \
I'm not sure but I think that dri3 is not used by radeon and only intel supports it.
|
|
|
04-05-2014, 07:20 AM
|
#27
|
Member
Registered: Jun 2013
Location: Germany
Distribution: Slackware
Posts: 174
Original Poster
Rep:
|
you are right hadack.. i googled it and only intel supports dri3.. so we could make --disable-dri3 a standard. atleast if no intel user want it but i think/hope in this thread are as of now only nvidia/radeon users.
maybe if we do a nice job, pat can take this for the next version.
|
|
|
04-06-2014, 05:48 AM
|
#28
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Quote:
Originally Posted by hendrickxm
I am unable to compile mesa without --disable-dri3. It keeps complaining about xshmfence and I can't seem to find a slackbuild for libxshmfence or make one myself that works.
|
libxshmfence is part of the X11 tree and can be build with the standard x11 Slackbuild:
Code:
x11.Slackbuild lib libxshmfence
Quote:
Originally Posted by moisespedro
Tobi, there is something wrong with your package/script. All the files get installed under /usr/local/lib.
|
Which of them?
|
|
|
04-06-2014, 07:37 AM
|
#29
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Rep:
|
The one for mesa
|
|
|
04-07-2014, 05:06 AM
|
#30
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Quote:
Originally Posted by moisespedro
The one for mesa
|
You are correct, I somehow missed that. This could also explain why building the Xserver package fails with missing libraries, since they aren't where they should be. Only thing is: The prefix is specified correctly, so I have no clue why this is happening. For now I have removed the packages, but let the sources/scripts in place, so that people can experiment with this.
Time is still scarce here, so it will take some time for me to come up with a solution, any help is still welcome.
|
|
|
All times are GMT -5. The time now is 04:16 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|