LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 10-07-2010, 01:49 PM   #1
spudgunner
Member
 
Registered: Dec 2009
Distribution: Slackware
Posts: 229

Rep: Reputation: 20
avr-libc LaTeX documents won't compile in Slackware 13.1


I'm attempting in install the necessary libraries and programs to work with AVR chips. I got 13.1 slackbuilds for avr-gcc and avr-binutils but I could only find a 13.0 slackbuild for avr-libc. I attempted to compile it but it fails with warnings and errors about LaTeX not being proper and not being able to find a .tex file. I tried finding a way to turn off compiling the documentation but I've been unsuccessful.

Any suggestions?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 10-07-2010, 03:12 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
Any suggestions?
Suggest 'texlive' http://slackbuilds.org/repository/13.1/office/texlive/

QUOTE : "Note that this package is intended to completely replace
(and then some) the tetex packages in Slackware, so you'll need
to remove tetex and tetex-doc before installing TeXLive."
..
 
Old 10-07-2010, 03:42 PM   #3
hemp4fuel
Member
 
Registered: Jun 2003
Location: Topeka, KS
Distribution: Slackware
Posts: 193

Rep: Reputation: 45
The slackbuild has
Code:
--enable-doc \
which creates the tex dependency, the package builds fine without it, and even creates documentation, just not fancy documentation. I thought it was a strange to enable it in first place, so I removed that line from the slackbuild.
 
2 members found this post helpful.
Old 10-07-2010, 05:23 PM   #4
spudgunner
Member
 
Registered: Dec 2009
Distribution: Slackware
Posts: 229

Original Poster
Rep: Reputation: 20
Gaaa how did I miss that? Oh well, thanks for your help. I'll be back if something still goes wrong, but it looked like the rest of the package built properly.
 
Old 10-07-2010, 07:06 PM   #5
spudgunner
Member
 
Registered: Dec 2009
Distribution: Slackware
Posts: 229

Original Poster
Rep: Reputation: 20
I tried taking the "--enable-doc" out of the Slackbuild but it still doesn't work, and this time its not telling me there's errors or anything. It ends with
Code:
test -z "/usr/bin" || /bin/mkdir -p "/tmp/SBo/package-avr-libc/usr/bin"
 /bin/ginstall -c 'avr-man' '/tmp/SBo/package-avr-libc/usr/bin/avr-man'
make[2]: Leaving directory `/tmp/SBo/avr-libc-1.6.7/scripts'
make[1]: Leaving directory `/tmp/SBo/avr-libc-1.6.7/scripts'
make[1]: Entering directory `/tmp/SBo/avr-libc-1.6.7'
make[2]: Entering directory `/tmp/SBo/avr-libc-1.6.7'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/tmp/SBo/avr-libc-1.6.7'
make[1]: Leaving directory `/tmp/SBo/avr-libc-1.6.7'
and just stops. What am I doing wrong?
 
Old 10-07-2010, 08:11 PM   #6
hemp4fuel
Member
 
Registered: Jun 2003
Location: Topeka, KS
Distribution: Slackware
Posts: 193

Rep: Reputation: 45
Here is the slackbuild I used on 13.1 with verstion 1.7.0, I changed a few other things as well. Hopefully it will work for you:

Code:
#!/bin/sh

# Slackware build script for avr-libc

PRGNAM=avr-libc
VERSION=${VERSION:-1.7.0}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-2}
TAG=${TAG:-_custom}

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
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" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --docdir=/usr/doc \
  --program-prefix="" \
  --program-suffix="" \
  --host=avr \
  --build=$ARCH-slackare-linux

make 
make install DESTDIR=$PKG 

find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
  | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

mkdir -p $PKG/usr/doc/
mv $PKG/usr/share/doc/$PRGNAM-$VERSION $PKG/usr/doc
rm -rf $PKG/usr/share
cp -a AUTHORS ChangeLog* INSTALL LICENSE NEWS README \
 $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG/usr/doc/$PRGNAM-$VERSION
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 {} \;

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

Last edited by hemp4fuel; 10-07-2010 at 08:20 PM.
 
Old 10-08-2010, 02:51 PM   #7
spudgunner
Member
 
Registered: Dec 2009
Distribution: Slackware
Posts: 229

Original Poster
Rep: Reputation: 20
It compiled! I will test it out soon and let you know if anything goes wrong.
 
Old 10-08-2010, 04:13 PM   #8
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by spudgunner View Post
... it fails with warnings and errors about LaTeX not being proper and not being able to find a .tex file ...
Suggestion: Don't translate the error message to something opaque. Just copy/paste the original error message.

I had no problem compiling the latex doc of avr-libc 1.7.0.
 
0 members found this post helpful.
Old 10-08-2010, 04:16 PM   #9
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by knudfl View Post
Suggest 'texlive' http://slackbuilds.org/repository/13.1/office/texlive/

QUOTE : "Note that this package is intended to completely replace
(and then some) the tetex packages in Slackware, so you'll need
to remove tetex and tetex-doc before installing TeXLive."
..
When I cannot compile something, I think it's a bad habit to first blame the compiler -- because I am not a guru.
 
0 members found this post helpful.
Old 10-08-2010, 10:53 PM   #10
XGizzmo
Member
 
Registered: Mar 2007
Distribution: Slackware
Posts: 264

Rep: Reputation: 69
90% of LaTeX errors are from using "su" instead of "su -". Anytime you are using SlackBuilds from SlackBuilds.org
you need to use "su -" and or "source /etc/profile" this helps ensure you have tex and other things in your $PATH.
If you use "su" tex is not in your $PATH.
 
Old 10-10-2010, 02:55 PM   #11
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
I just pushed a new avr-libc build into my git branch, so it will be part of the next public update. In the meantime, you can see it here: http://slackbuilds.org/gitweb/?p=sla...b1cd1395276d82
(note: that link will be broken after the update is pushed)
 
Old 10-14-2010, 01:38 PM   #12
spudgunner
Member
 
Registered: Dec 2009
Distribution: Slackware
Posts: 229

Original Poster
Rep: Reputation: 20
That script worked properly, and the Arduino board works. I'm gonna mark this as solved but I'm trying to figure out how to connect the board without having to change permissions on ttyUSB0 every time. So far I've added myself to groups uucp and tty as per instructions at http://www.arduino.cc/playground/Linux/Slackware and I've googled a bunch but can't quite get it figured out.
 
Old 10-14-2010, 01:50 PM   #13
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Quote:
Originally Posted by spudgunner View Post
That script worked properly, and the Arduino board works. I'm gonna mark this as solved but I'm trying to figure out how to connect the board without having to change permissions on ttyUSB0 every time. So far I've added myself to groups uucp and tty as per instructions at http://www.arduino.cc/playground/Linux/Slackware and I've googled a bunch but can't quite get it figured out.
Hint:
Code:
50-udev-default.rules:KERNEL=="tty[A-Z]*[0-9]|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*", GROUP="dialout"
:-)
 
1 members found this post helpful.
Old 10-14-2010, 04:56 PM   #14
spudgunner
Member
 
Registered: Dec 2009
Distribution: Slackware
Posts: 229

Original Poster
Rep: Reputation: 20
Thanks for the line of code. I noticed the "dialout" group section and figured adding myself to the "dialout" group might work, so I did it and it did.
 
  


Reply

Tags
avr, latex, slackware13



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
LaTeX, multiple documents from one file General Programming 5 08-23-2010 10:36 AM
libdvdcss compile errors has to do with LaTeX darkone66669 Linux - Software 5 04-09-2008 07:23 AM
compile with different libc for different distro nuttygraphics Programming 3 06-25-2007 10:38 AM
libc++ compile error knobby67 Programming 6 05-11-2007 03:19 PM
Trying to compile older make of libc, getting error Cecil Linux - Software 0 07-16-2003 02:10 AM

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

All times are GMT -5. The time now is 09:41 AM.

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