Hi Laurent<br><br>I Have tried to compile the SlackBuild for Scilab <a href="http://repository.slacky.eu/slackware-12.2/scientific/scilab/5.1">http://repository.slacky.eu/slackware-12.2/scientific/scilab/5.1</a>  from Slacky e.u. for x64 arch under Slackware;<br>
<br>I Have manually download the packages, to an USB disk because my Slackware machine does not have www connection, and I have changed the slackbuild to use the tarballs, instead of downloading them, as well as to build for x86_64 arch ( Slackware 12.2 is 32 bits );<br>
<br>Also made some changes as to use gfortran, and about the location of ant.<br><br>The external prerequirements are all set up : pvm, lapack, blas, umfpack, metis, jdk, ocaml, fftw3, ant. ( there are slackbulds for them too, either for SL 12.2, or for SL 13...) .<br>
<br>this is the Slackbuild as I changed it...:<br><br>#!/bin/sh<br># Heavily based on the Slackware 12.2 SlackBuild<br># <a href="http://www.scilab.org/">http://www.scilab.org/</a><br># Packager Vincenzi Loris - <a href="mailto:slacky@slacky.it">slacky@slacky.it</a><br>
<br>CWD=`pwd`<br>TMP=${TMP:-/tmp/tgz}<br>PKG=$TMP/package-scilab<br>NAME=scilab<br>VERSION=5.1<br>###################################<br>CHOST=x86_64<br>###################################<br>ARCH=${ARCH:-x86_64}<br>###################################<br>
BUILD=1sl<br>SOURCE=<a href="http://www.scilab.org/download/$VERSION/$NAME-$VERSION-src.tar.gz">http://www.scilab.org/download/$VERSION/$NAME-$VERSION-src.tar.gz</a><br>PREREQUIREMENTS=<a href="http://www.scilab.org/download/$VERSION/prerequirements-$NAME-$VERSION-src.tar.gz">http://www.scilab.org/download/$VERSION/prerequirements-$NAME-$VERSION-src.tar.gz</a><br>
# PVM=<a href="http://www.netlib.org/pvm3/pvm3.4.6.tgz">http://www.netlib.org/pvm3/pvm3.4.6.tgz</a><br><br><br>set -e<br>##################################################<br>#if [ ! -e prerequirements-$NAME-$VERSION-src.tar.gz ]; then<br>
#echo "Downloading prerequirements"<br>#wget -c $PREREQUIREMENTS<br>#fi<br><br># if [ ! -e pvm3.4.6.tgz ]; then<br># echo "Downloading PVM"<br># wget -c $PVM<br># fi<br><br>#if [ ! -e $NAME-$VERSION-src.tar.gz ]; then<br>
#echo "Downloading source"<br>#wget -c $SOURCE<br>#fi<br>###############################################<br>if [ "$ARCH" = "i386" ]; then<br>  SLKCFLAGS="-O2 -march=i386 -mcpu=i686"<br>
elif [ "$ARCH" = "i486" ]; then<br>  SLKCFLAGS="-O2 -march=i486 -mtune=i686"<br>elif [ "$ARCH" = "i686" ]; then<br>  SLKCFLAGS="-O2"<br>elif [ "$ARCH" = "s390" ]; then<br>
  SLKCFLAGS="-O2"<br>elif [ "$ARCH" = "x86_64" ]; then<br>  SLKCFLAGS="-O2"<br>fi<br><br>if [ ! -d $TMP ]; then<br> mkdir -p $TMP<br>fi<br>if [ ! -d $PKG ]; then<br> mkdir -p $PKG<br>
fi<br><br>cd $TMP<br># tar xzf $CWD/pvm3.4.6.tgz<br># export PVM_ROOT=$TMP/pvm3<br># (<br># echo "Building PVM"<br># cd pvm3<br># CFLOPTS="$SLKCFLAGS" \<br># FFLOPTS="$SLKCFLAGS" \<br># make<br>
# make install<br># )<br><br>echo "Unpacking Prerequirements (this can take several minutes)"<br>########################################################################<br>tar xzf $CWD/prerequirements-$NAME-$VERSION-x86_64-src.tar.gz<br>
########################################################################<br>tar xzf $CWD/$NAME-$VERSION-src.tar.gz<br><br>echo "+=============================================================================="<br>
echo "| Building $NAME-$VERSION"<br>echo "+=============================================================================="<br><br>cd $NAME-$VERSION<br>find . \( -perm 777 -o -perm 775 -o -perm 711 \) -exec chmod 755 {} \;<br>
find . \( -perm 700 -o -perm 555 -o -perm 511 \) -exec chmod 755 {} \;<br>find . \( -perm 666 -o -perm 664 -o -perm 600 \) -exec chmod 644 {} \;<br>find . \( -perm 444 -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;<br>
chown -R root:root .<br>CFLAGS="$SLKCFLAGS" \<br>CXXFLAGS="$SLKCFLAGS" \<br>FFLABS="$SLKCFLAGS" \<br>./configure --prefix=/usr \<br>#############################################<br>--with-gfortran \<br>
#############################################<br>--sysconfdir=/etc \<br>--without-ocaml \<br>--without-pvm \<br>--with-jdk=$TMP/$NAME-$VERSION/java/jdk \<br>--without-matio \<br>#############################################<br>
--with-ant=/usr/bin \<br>#############################################<br>--with-x \<br>--enable-build-localization \<br>--enable-build-help \<br>--build=$CHOST-slackware-linux<br>make all<br>make doc<br>make install DESTDIR=$PKG<br>
<br>cd $PKG<br><br><br>mv $TMP/$NAME-$VERSION/thirdparty $PKG/usr/share/$NAME<br>cp $TMP/$NAME-$VERSION/bin/lib* $PKG/usr/lib/$NAME/<br><br>sed -i "s/\/tmp\/tgz\/$NAME-$VERSION/\$SCILAB/" $PKG/usr/share/scilab/etc/classpath.xml<br>
<br>find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null<br>find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null<br>
find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs strip -g 2> /dev/null<br>mkdir -p $PKG/usr/share/applications<br>cp $CWD/scilab.desktop $PKG/usr/share/applications<br>mkdir -p $PKG/usr/share/pixmaps<br>
cp $CWD/scilab.png $PKG/usr/share/pixmaps<br><br>mkdir -p $PKG/usr/doc/$NAME-$VERSION<br>ln -s /usr/share/$NAME $PKG/usr/doc/$NAME-$VERSION<br>mkdir -p $PKG/install<br>cat $CWD/slack-desc > $PKG/install/slack-desc<br>cat $CWD/slack-desc > $PKG/usr/doc/$NAME-$VERSION/slack-desc<br>
cat $CWD/$NAME.SlackBuild > $PKG/usr/doc/$NAME-$VERSION/$NAME.SlackBuild<br>requiredbuilder -v -y -s $CWD $PKG<br>makepkg -l y -c n $CWD/../$NAME-$VERSION-$ARCH-$BUILD.tgz<br><br><br>if [ "$1" = "--cleanup" ]; then<br>
 rm -rf $TMP<br>fi<br><br>My changes are between comment lines....;<br><br>Anyway, the script, identifies the packages, untar them, and configures.<br><br>When it reaches the build phase, it complains in the same place, the ../libs/MALLOC thing, not finding some object to link with... and it is all about some mv -f something...<br>
<br>I do not have the detailed log, I teft it at my home PC, but I will bring this tomorrow...<br><br>Is This error reproducible...?<br><br>I will post this problem to the Slackware forum in LinuxQuestions, but one thing puzzles me though... this happened in a freshly untared source tree, in a fresh install of Slackware 64 13 with the default options...  <br>
<br>The only things I changed were :<br><br>The prerequirements ( as Slackbuilds ) to install GMSH, Paraview, Gnumeric, and Octave/QtOctave, ( all standard to SL 13 ) and I downgraded Python 2.6.2 to Python 2.5.2 using a Slackware 12.1 Slackbuild, to allow me to build Code Aster ( which calls for Python 2.5 ) And I upgraded Mesa to <current> to allow me to use BRL CAD with Raytracing features<br>
<br>Do you think that any of these things may have contributed to Scilab not properly building... ?<br><br>I mean... I can use src2pkg ( a Slackware build system ) to build cmake projects, as well as "configure make install" build systems... why does Scilab fails....   ?   :-(<br>
<br>BRGDS<br><br>Alex<br><br><br><div class="gmail_quote">2009/11/24 Sylvestre Ledru <span dir="ltr"><<a href="mailto:sylvestre.ledru@scilab.org">sylvestre.ledru@scilab.org</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
><br>
> I will also try to use new tarballs for prerequirements and src as for<br>
> Scilab 5.1.1<br>
> so as to have a brand new source tree, I will post the results back<br>
> here tomorrow...  :-)<br>
</div>OK, Thanks.<br>
<div class="im"><br>
> BTW one more question, Is there any net advantage in using the Intel<br>
> development toolchain to build Scilab, as compared to using<br>
> gcc/gfortran<current>...?<br>
</div>Yep, the Intel compilers are producing a faster Scilab but first, if you<br>
are focusing on the performances, use Atlas or MKL instead of refblas.<br>
<font color="#888888"><br>
Sylvestre<br>
<br>
<br>
<br>
</font></blockquote></div><br>