You are not logged in.
if anyone has the time and will I'd very much appreciate if someone will create scilab package for Arch...
currently I'm working on the downloaded binaries from the scilab site and they are working fine...
But having it packeged will be much more friendlier...
thank you in advance,
Grey
Offline
if you give a url that may help (unless of course it is on FM)
AKA uknowme
I am not your friend
Offline
pkgname=scilab
pkgver=2.7
pkgrel=1
pkgdesc="Scilab is a scientific software package for numerical computations"
url="http://scilabsoft.inria.fr"
depends=('tk' 'xaw3d' 'tcl' 'f2c')
makedepends=()
source=(ftp://ftp.inria.fr/INRIA/Scilab/distributions/$pkgname-$pkgver.src.tar.gz)
md5sums=('e8aa1ede5efa20eeced284963d08bebb')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make all || return 1
make prefix=$startdir/pkg/usr install
}
This is all I have so far.. It's not working yet but I hope this can lead someone else in the right direction. :?
Offline
why it is not working? what is the key problem?
The impossible missions are the only ones which succeed.
Offline
why it is not working? what is the key problem?
Well, it has a weird build...
And I'm getting some errors:
-fwritable-strings is deprecated
I keep getting this error...
:?
Offline
hey !
try with this configure option : --without-pvm
f2c is required only for compiling no ? If true, we have to put f2c in makedepend
pkgname=scilab
pkgver=2.7
pkgrel=1
pkgdesc="Scilab is a scientific software package for numerical computations"
url="http://scilabsoft.inria.fr"
depends=('tk' 'xaw3d' 'tcl')
makedepends=(f2c)
source=(ftp://ftp.inria.fr/INRIA/Scilab/distributions/$pkgname-$pkgver.src.tar.gz)
md5sums=('e8aa1ede5efa20eeced284963d08bebb')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --without-pvm --prefix=/usr
make all || return 1
make prefix=$startdir/pkg/usr install
}
Does it work now ?
Offline
Offline
xt+0xa71): In function `ReturnParam':
: undefined reference to `vstk'
/home/damir/cvsARCH/extra/science/scilab/src/scilab-2.7/libs/tksci.a(C-LAB_Interf.o)(.text+0xaa1): In function `ReturnParam':
: undefined reference to `stack'
/home/damir/cvsARCH/extra/science/scilab/src/scilab-2.7/libs/tksci.a(C-LAB_Interf.o)(.text+0xace): In function `ReturnParam':
: undefined reference to `vstk'
/home/damir/cvsARCH/extra/science/scilab/src/scilab-2.7/libs/tksci.a(C-LAB_Interf.o)(.text+0xb00): In function `InterfDone':
: undefined reference to `vstk'
/usr/lib/libf2c.a(main.o)(.text+0x180): In function `main':
: undefined reference to `MAIN__'
collect2: ld returned 1 exit status
make: *** [bin/scilex] Error 1
==> ERROR: Build Failed. Aborting...
The impossible missions are the only ones which succeed.
Offline
xt+0xa71): In function `ReturnParam': : undefined reference to `vstk' /home/damir/cvsARCH/extra/science/scilab/src/scilab-2.7/libs/tksci.a(C-LAB_Interf.o)(.text+0xaa1): In function `ReturnParam': : undefined reference to `stack' /home/damir/cvsARCH/extra/science/scilab/src/scilab-2.7/libs/tksci.a(C-LAB_Interf.o)(.text+0xace): In function `ReturnParam': : undefined reference to `vstk' /home/damir/cvsARCH/extra/science/scilab/src/scilab-2.7/libs/tksci.a(C-LAB_Interf.o)(.text+0xb00): In function `InterfDone': : undefined reference to `vstk' /usr/lib/libf2c.a(main.o)(.text+0x180): In function `main': : undefined reference to `MAIN__' collect2: ld returned 1 exit status make: *** [bin/scilex] Error 1 ==> ERROR: Build Failed. Aborting...
That's the same thing I'm getting.. I don't know what the problem is. :
Offline
it as shame that scilab didn't compile
maybe it does now? [3.0 is out]
Offline
scilab 3.0 has the same linking problem...
Offline
scilab 3.0 has the same linking problem...
these people don't know about gcc 3.4?
is this a gcc 3.4 strictness right? I like this.
fortunately we have octave & TeXmacs & Maxima eventhough TeXmacs doesn't support latest Maxima
Offline
kpiche wrote:scilab 3.0 has the same linking problem...
these people don't know about gcc 3.4?
is this a gcc 3.4 strictness right? I like this.fortunately we have octave & TeXmacs & Maxima eventhough TeXmacs doesn't support latest Maxima
... and unfortunately texmacs also do not support the latest R (R is now 2.0.0 and the texmacs people are sleeping on this - the r-plugin in texmacs is made for R=1.7.1)
however, if someone finds a nice way to fix these 2 incompatibilities (or even hack scilab to build), feel free to let us know
The impossible missions are the only ones which succeed.
Offline
It's probably not a gcc3.4 thing because it's linking errors - not syntactical, unless it's some optimization problem. During the compile I got a lot of sed errors so I suspect that f2c has problems with this code. All the missing symbols are in FORTRAN code, except that my FORTRAN is a little rusty...
common /blah1/blah2,blah3
Can someone tell me what this means? Is this a shared memory thing or subroutine definition?
Offline
It's probably not a gcc3.4 thing because it's linking errors - not syntactical, unless it's some optimization problem. During the compile I got a lot of sed errors so I suspect that f2c has problems with this code. All the missing symbols are in FORTRAN code, except that my FORTRAN is a little rusty...
common /blah1/blah2,blah3
Can someone tell me what this means? Is this a shared memory thing or subroutine definition?
it is by a lot of people recomendend NOT to use f2c but to use f77 or even f90 (from gcc), but as we are not having it in arch (and it is not easy to make a standalone pkg that works easy (best: gcc-f77 that depends on gcc)), this can be the problem (f2c is old and now a dead project)
The impossible missions are the only ones which succeed.
Offline
common /blah1/blah2,blah3
Can someone tell me what this means? Is this a shared memory thing or subroutine definition?
The common statement is used to define global variables.
it is by a lot of people recomendend NOT to use f2c but to use f77 or even f90 (from gcc), but as we are not having it in arch (and it is not easy to make a standalone pkg that works easy (best: gcc-f77 that depends on gcc)), this can be the problem (f2c is old and now a dead project)
There is also the Intel f90compiler which can compile f77 code. There are some PKGBUILD on the forum.
Offline
dp wrote:it is by a lot of people recomendend NOT to use f2c but to use f77 or even f90 (from gcc), but as we are not having it in arch (and it is not easy to make a standalone pkg that works easy (best: gcc-f77 that depends on gcc)), this can be the problem (f2c is old and now a dead project)
There is also the Intel f90compiler which can compile f77 code. There are some PKGBUILD on the forum.
i know ... but it is not detected by the ./configure of scilab and therefore also not used for it ... besides, it is a _huge_ pkg
The impossible missions are the only ones which succeed.
Offline
latest TeXmacs [now also in AL] works with Maxima latest version nicely!
also python is there too! [new feature]
Dont have R cannot test it {i'm guessing it should work}
TeXmacs rules
Offline
latest TeXmacs [now also in AL] works with Maxima latest version nicely!
also python is there too! [new feature]
Dont have R cannot test it {i'm guessing it should work}TeXmacs rules
yes, i moved texmacs from staging to extra and also realized that they fixed the maxima support *juppie*
however, the R-support is still broken (because outdated)
The impossible missions are the only ones which succeed.
Offline
R-support is still broken (because outdated)
Well did you try to find news in their mailing list or something like it. I really like TeXmacs [more than EMACS of course], and support R 2.0 should be too hard [afterall they had support for R<2]
Thanks for moving this pkg to extra
what is interesting for TeXmacs, is that it doesn't allow me to type Greek [my native lang] {it doesn't have it in the menus}. Do you know a way to give UTF8 to it and make it work this way?
Thanks
Offline
I got scilab to compile. I used the Intel fortran compiler to compile the *.f files instead of their f77-linux script wich used f2c. I replaced f77-linux by a link to the fortran compiler. It seems that f2c has trouble converting some fortan source files. Maybe g77 can work as well.
There is still some problem with make install. The Makefile need more tweaking. I will work on it this week and will post the PKGBUILD (and upload the pkg to incoming for those who don't have the fortran compiler.)
EDIT: I just realised that the link method above wasn't working. the right way is to define the F77 variable:
F77=/opt/intel/fc_80/bin/ifort
./configure --prefix=/usr
Offline
Well... I got a working pkg. However, there is one problem. Using the Intel Fortran compiler to compile the fortran code introduced a running dependency on the Intel C compiler even if the C code was compiled with gcc. Maybe if the GNU fortran compiler is used, that dependency will be replace by gcc. Someone with g77 should check if it's the case. I also haven't upload the pkg to incoming because of that dependency.
To make pkg for the Intel compilers:
http://bbs.archlinux.org/viewtopic.php?t=2217
my PKGBUILD:
# Contributor: Eric Belanger <belanger@astro.umontreal.ca>
pkgname=scilab
pkgver=3.0
pkgrel=1
pkgdesc="Scilab is a scientific software package for numerical computations"
url="http://scilabsoft.inria.fr/"
license=""
depends=('xaw3d' 'tk' 'icc8')
makedepends=('sed' 'ifc8')
source=(http://scilabsoft.inria.fr/download/stable/$pkgname-$pkgver.src.tar.gz)
md5sums=('d6fc5fe12519f99ccdd492c4ba96935a')
build() {
cd $startdir/src/$pkgname-$pkgver
F77=/opt/intel/fc_80/bin/ifort
./configure --prefix=/usr
make all || return 1
mkdir -p $startdir/pkg/usr/lib
mkdir -p $startdir/pkg/usr/bin
sed -i -e "s=LIBPREFIX = /usr/lib=LIBPREFIX = $startdir/pkg/usr/lib=" Makefile
sed -i -e "s=/usr/bin=$startdir/pkg/usr/bin=" Makefile
make prefix=$startdir/pkg/usr install
rm $startdir/pkg/usr/bin/*
ln -fs /usr/lib/scilab-3.0/bin/scilab $startdir/pkg/usr/bin/scilab
ln -fs /usr/lib/scilab-3.0/bin/intersci $startdir/pkg/usr/bin/intersci
ln -fs /usr/lib/scilab-3.0/bin/intersci-n $startdir/pkg/usr/bin/intersci-n
}
Offline
I got scilab to compile with the GNU fortran compiler. It adds a dependency on g77 but it is much smaller than the intel one. I uploaded the packages in incoming: g77-3.4.2.package.tar and scilab-3.0.package.tar
Here's the PKGBUILDs:
# Contributor: Eric Belanger <belanger@astro.umontreal.ca>
pkgname=g77
pkgver=3.4.2
pkgrel=1
pkgdesc="The GNU Fortran Compiler"
url="http://gcc.gnu.org"
depends=('glibc')
source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-$pkgver/gcc-$pkgver.tar.bz2)
md5sums=('2fada3a3effd2fd791df09df1f1534b3')
build() {
cd $startdir/src/gcc-$pkgver
mkdir ../gcc-build
cd ../gcc-build
../gcc-$pkgver/configure --prefix=/usr --enable-shared
--enable-languages=f77 --enable-threads=posix --enable-__cxa_atexit
make bootstrap || return 1
make DESTDIR=$startdir/pkg install || return 1
mkdir -p $startdir/pkg/lib
# get rid of the references to my build dir
chmod 644 $startdir/pkg/usr/lib/*.la
# removing files provided by gcc
rm -r $startdir/pkg/usr/lib/libgcc_s.so* $startdir/pkg/usr/lib/libiberty.a
cd $startdir/pkg/usr/lib/gcc/i686-pc-linux-gnu/3.4.2
rm *.o *.a specs
cd include
rm README emmintrin.h float.h iso646.h limits.h mmintrin.h obstack.h
rm pmmintrin.h rpc/xdr.h s* unwind.h varargs.h xmmintrin.h
rm $startdir/pkg/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/install-tools/*
rm -r $startdir/pkg/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/install-tools/include/*
rm -r $startdir/pkg/usr/share/locale/be/LC_MESSAGES/*
rm -r $startdir/pkg/usr/share/locale/ca/LC_MESSAGES/*
rm -r $startdir/pkg/usr/share/locale/da/LC_MESSAGES/*
rm -r $startdir/pkg/usr/share/locale/de/LC_MESSAGES/*
rm -r $startdir/pkg/usr/share/locale/el/LC_MESSAGES/*
rm -r $startdir/pkg/usr/share/locale/es/LC_MESSAGES/*
rm -r $startdir/pkg/usr/share/locale/fr/LC_MESSAGES/*
rm -r $startdir/pkg/usr/share/locale/ja/LC_MESSAGES/*
rm -r $startdir/pkg/usr/share/locale/nl/LC_MESSAGES/*
rm -r $startdir/pkg/usr/share/locale/sv/LC_MESSAGES/*
rm -r $startdir/pkg/usr/share/locale/tr/LC_MESSAGES/*
rm -r $startdir/pkg/usr/libexec/gcc/i686-pc-linux-gnu/3.4.2/install-tools/*
rm -r $startdir/pkg/usr/libexec/gcc/i686-pc-linux-gnu/3.4.2/c*
cd $startdir/pkg/usr/bin
rm cpp gcc gccbug gcov i686*
cd $startdir/pkg/usr/man
rm -r man1/gc* man1/cpp.1 man7/*
}
# Contributor: Eric Belanger <belanger@astro.umontreal.ca>
pkgname=scilab
pkgver=3.0
pkgrel=1
pkgdesc="Scilab is a scientific software package for numerical computations"
url="http://scilabsoft.inria.fr/"
license=""
depends=('xaw3d' 'tk' 'g77')
makedepends=('sed' 'g77')
source=(http://scilabsoft.inria.fr/download/stable/$pkgname-$pkgver.src.tar.gz)
md5sums=('d6fc5fe12519f99ccdd492c4ba96935a')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make all || return 1
mkdir -p $startdir/pkg/usr/lib
mkdir -p $startdir/pkg/usr/bin
sed -i -e "s=LIBPREFIX = /usr/lib=LIBPREFIX = $startdir/pkg/usr/lib=" Makefile
sed -i -e "s=/usr/bin=$startdir/pkg/usr/bin=" Makefile
make prefix=$startdir/pkg/usr install
rm $startdir/pkg/usr/bin/*
ln -fs /usr/lib/scilab-3.0/bin/scilab $startdir/pkg/usr/bin/scilab
ln -fs /usr/lib/scilab-3.0/bin/intersci $startdir/pkg/usr/bin/intersci
ln -fs /usr/lib/scilab-3.0/bin/intersci-n $startdir/pkg/usr/bin/intersci-n
}
Offline
snowman, thank you for the gcc-g77 PKGBUILD! great job!
i did some small optimizations:
# $Id: PKGBUILD,v 1.10 2004/08/13 15:06:02 damir Exp $
# Maintainer: damir <damir@archlinux.org>
# Contributor: Eric Belanger <belanger@astro.umontreal.ca>
pkgname=gcc-g77
pkgver=3.4.2
pkgrel=1
pkgdesc="The GNU Fortran Compiler"
url="http://gcc.gnu.org"
depends=('glibc' 'gcc=3.4.2')
source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-$pkgver/gcc-$pkgver.tar.bz2)
md5sums=('2fada3a3effd2fd791df09df1f1534b3')
build() {
cd $startdir/src/gcc-$pkgver
mkdir ../gcc-build
cd ../gcc-build
../gcc-$pkgver/configure --prefix=/usr
--enable-shared
--enable-languages=f77
--enable-threads=posix
--enable-__cxa_atexit
make bootstrap || return 1
make DESTDIR=$startdir/pkg install || return 1
mkdir -p $startdir/pkg/lib
# get rid of the references to my build dir
chmod 644 $startdir/pkg/usr/lib/*.la
# removing files provided by gcc
rm -r $startdir/pkg/usr/lib/libgcc_s.so* $startdir/pkg/usr/lib/libiberty.a
cd $startdir/pkg/usr/lib/gcc/i686-pc-linux-gnu/3.4.2
rm *.o *.a specs
cd include
rm README emmintrin.h float.h iso646.h limits.h mmintrin.h obstack.h
rm pmmintrin.h rpc/xdr.h s* unwind.h varargs.h xmmintrin.h
rm $startdir/pkg/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/install-tools/*
rm -r $startdir/pkg/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/install-tools/include/*
rm -r $startdir/pkg/usr/share/locale/{be,ca,da,de,el,es,fr,ja,nl,sv,tr}/LC_MESSAGES/*
rm -r $startdir/pkg/usr/libexec/gcc/i686-pc-linux-gnu/3.4.2/install-tools/*
rm -r $startdir/pkg/usr/libexec/gcc/i686-pc-linux-gnu/3.4.2/c*
cd $startdir/pkg/usr/bin
rm cpp gcc gccbug gcov i686*
cd $startdir/pkg/usr/man
rm -r man1/gc* man1/cpp.1 man7/*
}
scilab i didn't yet compile (cpu busy on other project), but as soon both work fine, they will go to extra
The impossible missions are the only ones which succeed.
Offline
Here's a PKGBUILD for g77 3.4.3. I also did a patch (sed line) to allow larger file unit numbers. I added gcc-g77 and scilab in my repo until they get included in extra.
# $Id: PKGBUILD,v 1.10 2004/08/13 15:06:02 damir Exp $
# Maintainer: damir <damir@archlinux.org>
# Contributor: Eric Belanger <belanger@astro.umontreal.ca>
pkgname=gcc-g77
pkgver=3.4.3
pkgrel=1
pkgdesc="The GNU Fortran Compiler"
url="http://gcc.gnu.org"
depends=('glibc' 'gcc=3.4.3')
makedepends=('sed')
source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-$pkgver/gcc-$pkgver.tar.bz2)
md5sums=('e744b30c834360fccac41eb7269a3011')
build() {
cd $startdir/src/gcc-$pkgver
# changing maximum number of file unit
sed -i 's/#define MXUNIT 100/#define MXUNIT 1000/' libf2c/libI77/fio.h
mkdir ../gcc-build
cd ../gcc-build
../gcc-$pkgver/configure --prefix=/usr
--enable-shared
--enable-languages=f77
--enable-threads=posix
--enable-__cxa_atexit
make bootstrap || return 1
make DESTDIR=$startdir/pkg install || return 1
mkdir -p $startdir/pkg/lib
# get rid of the references to my build dir
chmod 644 $startdir/pkg/usr/lib/*.la
# removing files provided by gcc
rm -r $startdir/pkg/usr/lib/libgcc_s.so* $startdir/pkg/usr/lib/libiberty.a
cd $startdir/pkg/usr/lib/gcc/i686-pc-linux-gnu/$pkgver
rm *.o *.a specs
cd include
rm README emmintrin.h float.h iso646.h limits.h mmintrin.h obstack.h
rm pmmintrin.h rpc/xdr.h s* unwind.h varargs.h xmmintrin.h
rm $startdir/pkg/usr/lib/gcc/i686-pc-linux-gnu/$pkgver/install-tools/*
rm -r $startdir/pkg/usr/lib/gcc/i686-pc-linux-gnu/$pkgver/install-tools/include/*
rm -r $startdir/pkg/usr/share/locale/{be,ca,da,de,el,es,fr,ja,nl,sv,tr}/LC_MESSAGES/*
rm -r $startdir/pkg/usr/libexec/gcc/i686-pc-linux-gnu/$pkgver/install-tools/*
rm -r $startdir/pkg/usr/libexec/gcc/i686-pc-linux-gnu/$pkgver/c*
cd $startdir/pkg/usr/bin
rm cpp gcc gccbug gcov i686*
cd $startdir/pkg/usr/man
rm -r man1/gc* man1/cpp.1 man7/*
}
Offline