[scilab-Users] Compilation of Scilab under Slackware 64 13 fails... clock_gettime issue...

Alexandre Pereira iskandhar2000 at gmail.com
Wed Nov 25 14:13:13 CET 2009


Hi Laurent

I Have tried to compile the SlackBuild for Scilab
http://repository.slacky.eu/slackware-12.2/scientific/scilab/5.1  from
Slacky e.u. for x64 arch under Slackware;

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 );

Also made some changes as to use gfortran, and about the location of ant.

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...) .

this is the Slackbuild as I changed it...:

#!/bin/sh
# Heavily based on the Slackware 12.2 SlackBuild
# http://www.scilab.org/
# Packager Vincenzi Loris - slacky at slacky.it

CWD=`pwd`
TMP=${TMP:-/tmp/tgz}
PKG=$TMP/package-scilab
NAME=scilab
VERSION=5.1
###################################
CHOST=x86_64
###################################
ARCH=${ARCH:-x86_64}
###################################
BUILD=1sl
SOURCE=http://www.scilab.org/download/$VERSION/$NAME-$VERSION-src.tar.gz
PREREQUIREMENTS=
http://www.scilab.org/download/$VERSION/prerequirements-$NAME-$VERSION-src.tar.gz
# PVM=http://www.netlib.org/pvm3/pvm3.4.6.tgz


set -e
##################################################
#if [ ! -e prerequirements-$NAME-$VERSION-src.tar.gz ]; then
#echo "Downloading prerequirements"
#wget -c $PREREQUIREMENTS
#fi

# if [ ! -e pvm3.4.6.tgz ]; then
# echo "Downloading PVM"
# wget -c $PVM
# fi

#if [ ! -e $NAME-$VERSION-src.tar.gz ]; then
#echo "Downloading source"
#wget -c $SOURCE
#fi
###############################################
if [ "$ARCH" = "i386" ]; then
  SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
elif [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2"
elif [ "$ARCH" = "s390" ]; then
  SLKCFLAGS="-O2"
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2"
fi

if [ ! -d $TMP ]; then
 mkdir -p $TMP
fi
if [ ! -d $PKG ]; then
 mkdir -p $PKG
fi

cd $TMP
# tar xzf $CWD/pvm3.4.6.tgz
# export PVM_ROOT=$TMP/pvm3
# (
# echo "Building PVM"
# cd pvm3
# CFLOPTS="$SLKCFLAGS" \
# FFLOPTS="$SLKCFLAGS" \
# make
# make install
# )

echo "Unpacking Prerequirements (this can take several minutes)"
########################################################################
tar xzf $CWD/prerequirements-$NAME-$VERSION-x86_64-src.tar.gz
########################################################################
tar xzf $CWD/$NAME-$VERSION-src.tar.gz

echo
"+=============================================================================="
echo "| Building $NAME-$VERSION"
echo
"+=============================================================================="

cd $NAME-$VERSION
find . \( -perm 777 -o -perm 775 -o -perm 711 \) -exec chmod 755 {} \;
find . \( -perm 700 -o -perm 555 -o -perm 511 \) -exec chmod 755 {} \;
find . \( -perm 666 -o -perm 664 -o -perm 600 \) -exec chmod 644 {} \;
find . \( -perm 444 -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
chown -R root:root .
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
FFLABS="$SLKCFLAGS" \
./configure --prefix=/usr \
#############################################
--with-gfortran \
#############################################
--sysconfdir=/etc \
--without-ocaml \
--without-pvm \
--with-jdk=$TMP/$NAME-$VERSION/java/jdk \
--without-matio \
#############################################
--with-ant=/usr/bin \
#############################################
--with-x \
--enable-build-localization \
--enable-build-help \
--build=$CHOST-slackware-linux
make all
make doc
make install DESTDIR=$PKG

cd $PKG


mv $TMP/$NAME-$VERSION/thirdparty $PKG/usr/share/$NAME
cp $TMP/$NAME-$VERSION/bin/lib* $PKG/usr/lib/$NAME/

sed -i "s/\/tmp\/tgz\/$NAME-$VERSION/\$SCILAB/"
$PKG/usr/share/scilab/etc/classpath.xml

find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs
strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : |
xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs
strip -g 2> /dev/null
mkdir -p $PKG/usr/share/applications
cp $CWD/scilab.desktop $PKG/usr/share/applications
mkdir -p $PKG/usr/share/pixmaps
cp $CWD/scilab.png $PKG/usr/share/pixmaps

mkdir -p $PKG/usr/doc/$NAME-$VERSION
ln -s /usr/share/$NAME $PKG/usr/doc/$NAME-$VERSION
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/slack-desc > $PKG/usr/doc/$NAME-$VERSION/slack-desc
cat $CWD/$NAME.SlackBuild > $PKG/usr/doc/$NAME-$VERSION/$NAME.SlackBuild
requiredbuilder -v -y -s $CWD $PKG
makepkg -l y -c n $CWD/../$NAME-$VERSION-$ARCH-$BUILD.tgz


if [ "$1" = "--cleanup" ]; then
 rm -rf $TMP
fi

My changes are between comment lines....;

Anyway, the script, identifies the packages, untar them, and configures.

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...

I do not have the detailed log, I teft it at my home PC, but I will bring
this tomorrow...

Is This error reproducible...?

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...

The only things I changed were :

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

Do you think that any of these things may have contributed to Scilab not
properly building... ?

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....   ?   :-(

BRGDS

Alex


2009/11/24 Sylvestre Ledru <sylvestre.ledru at scilab.org>

>
> >
> > I will also try to use new tarballs for prerequirements and src as for
> > Scilab 5.1.1
> > so as to have a brand new source tree, I will post the results back
> > here tomorrow...  :-)
> OK, Thanks.
>
> > BTW one more question, Is there any net advantage in using the Intel
> > development toolchain to build Scilab, as compared to using
> > gcc/gfortran<current>...?
> Yep, the Intel compilers are producing a faster Scilab but first, if you
> are focusing on the performances, use Atlas or MKL instead of refblas.
>
> Sylvestre
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20091125/8f730a97/attachment.htm>


More information about the users mailing list