Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69241 - arpack-96.ebuild (new package)
Summary: arpack-96.ebuild (new package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo Science Related Packages
URL: http://www.caam.rice.edu/software/ARP...
Whiteboard:
Keywords: EBUILD, Inclusion
: 74423 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-28 01:59 UTC by David Grant
Modified: 2007-03-22 16:30 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
arpack-96.ebuild (arpack-96.ebuild,1.63 KB, text/plain)
2004-10-28 02:14 UTC, David Grant
Details
arpack-96.ebuild (arpack-96.ebuild,738 bytes, text/plain)
2006-01-16 06:47 UTC, Dirk-Jan Heijs
Details
arpack-gentoo.patch (arpack-gentoo.patch,922 bytes, patch)
2006-01-16 06:48 UTC, Dirk-Jan Heijs
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Grant 2004-10-28 01:59:12 UTC
ARPACK

ARPACK is a collection of Fortran77 subroutines designed to solve large scale eigenvalue problems.

http://www.caam.rice.edu/software/ARPACK
Comment 1 David Grant 2004-10-28 02:14:11 UTC
Created attachment 42755 [details]
arpack-96.ebuild

Can someone fix the sed stuff, or tell me how?	I was in a rush.

This ebuild works.  Haven't tested actual library yet.
Comment 2 Olivier Fisette (RETIRED) gentoo-dev 2005-10-12 13:53:08 UTC
*** Bug 74423 has been marked as a duplicate of this bug. ***
Comment 3 Dirk-Jan Heijs 2006-01-16 06:47:43 UTC
Created attachment 77259 [details]
arpack-96.ebuild
Comment 4 Dirk-Jan Heijs 2006-01-16 06:48:22 UTC
Created attachment 77260 [details, diff]
arpack-gentoo.patch

Instead of sed stuff
Comment 5 Dirk-Jan Heijs 2006-01-16 06:50:28 UTC
Cleaned David's ebuild a little, patch instead of horrible seds.
I am not sure if the ebuild should depend on blas, because blas is included in the package... Perhaps this can be done by triggering a use flag?
Comment 6 David Grant 2006-01-16 08:25:53 UTC
Yeah good call, I should have done a patch.
Comment 7 Sébastien Fabbro (RETIRED) gentoo-dev 2006-01-17 06:53:23 UTC
I put a reworked ebuild in the Gentoo Scientific overlay (http://gentoocience.org)
Includes:
- use of make options instead of patches or sed in src_compile
- USE=examples to install source code examples
- possible use of parpack with mpi flag (untested)
- cleaned
To emerge, you may want to add some FFLAGS. For example, for g77, you can simply use:
FFLAGS="-O3" emerge arpack
Comment 8 Peter Gustafson 2006-03-09 07:14:43 UTC
I've installed and am trying to link to arpack.  When I compile the error is:

g77 -Wall -O  -o ccx_1.5 ccx_1.5.o ccx_1.5.a  /usr/local/SPOOLES.2.2/spooles.a /usr/lib/libarpack.a /usr/lib/libblas.a -lm
/usr/lib/libarpack.a(dseupd.o): In function `dseupd_':
dseupd.f:(.text+0x11b0): undefined reference to `dgeqr2_'
dseupd.f:(.text+0x1252): undefined reference to `dorm2r_'
dseupd.f:(.text+0x1298): undefined reference to `dlacpy_'
dseupd.f:(.text+0x138b): undefined reference to `dorm2r_'
/usr/lib/libarpack.a(dgetv0.o): In function `dgetv0_':
dgetv0.f:(.text+0x134): undefined reference to `dlarnv_'
/usr/lib/libarpack.a(dsapps.o): In function `dsapps_':
dsapps.f:(.text+0xbc0): undefined reference to `dlacpy_'
collect2: ld returned 1 exit status
make: *** [ccx_1.5] Error 1

I believe this is related to FFLAGS, since it changes (more errors) with difference optimizations.  Any idea how to fix this problem?  Thanks,
Comment 9 Peter Gustafson 2006-03-09 07:30:38 UTC
Apologies to all, as I read directly in the ebuild file I was able to get the linking to be correct by adding LDFLAGS=-llarpack to my makefile.  Funny how you can spend hours debugging something and the minute you post you find your solution.

This was in the ebuild but doesn't print at the end of the build cycle for me.  I don't know why.
Comment 10 Sébastien Fabbro (RETIRED) gentoo-dev 2006-04-17 15:23:20 UTC
Hi 

I did an update in the overlay that allows to build arpack with libtool, such that we have both static and shared libraries. You may want to test and report here.
The parallell version (parpack, enabled with USE=mpi) should also work much better.

Sebastien
Comment 11 David Grant 2006-07-13 14:04:15 UTC
I get an error when compiling: http://www.rafb.net/paste/results/zTezQR79.html

I get the error whether or not I have the blas use flag enabled.
Comment 12 Sébastien Fabbro (RETIRED) gentoo-dev 2006-07-17 02:57:03 UTC
(In reply to comment #11)
> I get an error when compiling: http://www.rafb.net/paste/results/zTezQR79.html
> 

The link is wrong. Are you testing the arpack from the overlay?

Comment 13 David Grant 2006-08-15 09:39:19 UTC
The error I get looks something like this:

/bin/sh ./libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc  -march=prescott -O2 -pipe -fomit-frame-pointer   -o libarpack.la -rpath /usr/lib   BLAS/libarpackblas.la LAPACK/libarpacklapack.la SRC/libarpacksrc.la UTIL/libarpackutil.la
i686-pc-linux-gnu-gcc -shared  -Wl,--whole-archive BLAS/.libs/libarpackblas.a LAPACK/.libs/libarpacklapack.a SRC/.libs/libarpacksrc.a UTIL/.libs/libarpackutil.a -Wl,--no-whole-archive   -march=prescott -Wl,-soname -Wl,libarpack.so.0 -o .libs/libarpack.so.0.0.0
BLAS/.libs/libarpackblas.a(lt1-isamax.o): In function `isamax_':
/var/tmp/portage/arpack-96-r1/work/ARPACK/BLAS/isamax.f:1: multiple definition of `isamax_'
BLAS/.libs/libarpackblas.a(isamax.o):/var/tmp/portage/arpack-96-r1/work/ARPACK/BLAS/isamax.f:1: first defined here
BLAS/.libs/libarpackblas.a(lt2-sscal.o): In function `sscal_':
/var/tmp/portage/arpack-96-r1/work/ARPACK/BLAS/sscal.f:1: multiple definition of `sscal_'
BLAS/.libs/libarpackblas.a(sscal.o):/var/tmp/portage/arpack-96-r1/work/ARPACK/BLAS/sscal.f:1: first defined here
BLAS/.libs/libarpackblas.a(lt3-idamax.o): In function `idamax_':
/var/tmp/portage/arpack-96-r1/work/ARPACK/BLAS/idamax.f:1: multiple definition of `idamax_'
BLAS/.libs/libarpackblas.a(idamax.o):/var/tmp/portage/arpack-96-r1/work/ARPACK/BLAS/idamax.f:1: first defined here

It repeats with many more "multiple definition of... *"
Comment 14 David Grant 2006-08-15 09:40:52 UTC
Also, I am using the 0.96-r1 ebuild from the overlay.

0.96 compiles fine though.
Comment 15 Sébastien Fabbro (RETIRED) gentoo-dev 2006-09-13 11:21:40 UTC
(In reply to comment #13)
I could not reproduce your error. Is this still valid? Could you give the emerge --info stuff along with the blas you are using?
Comment 16 David Grant 2006-09-13 15:35:49 UTC
I don't see to get the error anymore on two of my computers..
Comment 17 Sébastien Fabbro (RETIRED) gentoo-dev 2007-03-22 16:30:17 UTC
now in main cvs tree. thanks!