LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-02-2014, 06:21 AM   #16
Stuferus
Member
 
Registered: Jun 2013
Location: Germany
Distribution: Slackware
Posts: 174

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by TobiSGD View Post
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.
 
Old 04-03-2014, 01:26 PM   #17
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by Stuferus View Post
*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, ...).
 
Old 04-03-2014, 07:24 PM   #18
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
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
 
Old 04-03-2014, 08:11 PM   #19
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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?
 
Old 04-04-2014, 04:02 AM   #20
hendrickxm
Member
 
Registered: Feb 2014
Posts: 344

Rep: Reputation: Disabled
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.
 
Old 04-04-2014, 04:32 AM   #21
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
Quote:
Originally Posted by TobiSGD View Post
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.
 
Old 04-04-2014, 10:30 AM   #22
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
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.
 
Old 04-04-2014, 01:10 PM   #23
Stuferus
Member
 
Registered: Jun 2013
Location: Germany
Distribution: Slackware
Posts: 174

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hendrickxm View Post
EDIT: Nevermind, I found PhantomX's slackbuild and that did the trick.
link please? for easy finding and documentation.
 
Old 04-04-2014, 02:49 PM   #24
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
I seriously don't know what to do anymore, I am considering a reinstall :/ I broke something I think
 
Old 04-04-2014, 03:18 PM   #25
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
Tobi, there is something wrong with your package/script. All the files get installed under /usr/local/lib.
 
Old 04-04-2014, 03:33 PM   #26
hadack
LQ Newbie
 
Registered: Jun 2006
Posts: 25

Rep: Reputation: 8
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.
 
Old 04-05-2014, 07:20 AM   #27
Stuferus
Member
 
Registered: Jun 2013
Location: Germany
Distribution: Slackware
Posts: 174

Original Poster
Rep: Reputation: Disabled
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.
 
Old 04-06-2014, 05:48 AM   #28
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by hendrickxm View Post
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?
 
Old 04-06-2014, 07:37 AM   #29
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
The one for mesa
 
Old 04-07-2014, 05:06 AM   #30
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by moisespedro View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Firefox-3.5.2 Segfaults, but I don't care) & ATI video business_kid Slackware 10 05-21-2010 10:21 AM
LXer: Share your experiences with FLOSS in health care LXer Syndicated Linux News 0 03-16-2010 11:30 PM
ATI Customer Care Response... Keithjr Linux - General 2 11-16-2004 07:48 PM
compiling ATI 3.7.0 with 2.6.3 kernel Darktyco Slackware 2 03-21-2004 04:23 AM
compiling ATI Mach64GX driver rastavideo Linux - Newbie 2 01-29-2003 02:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration