[SciPy-user] [Numpy-discussion] Compiling numpy with 64 bits support under Solaris
Fri Sep 14 04:56:27 CDT 2007
> -----Message d'origine-----
> De : email@example.com
> [mailto:firstname.lastname@example.org] De la part de
> David Cournapeau
> Envoyé : vendredi 14 septembre 2007 09:27
> À : Discussion of Numerical Python
> Objet : Re: [Numpy-discussion] Compiling numpy with 64 bits
> support under Solaris
> Langella Raphael wrote:
> > Hi,
> > I'm trying to compile numpy with 64 bits support under
> > 8. I've already compiled Python 2.5.1 with 64 bits. I've set up my
> > environnement with :
> > export CC="gcc -mcpu=v9 -m64 -D_LARGEFILE64_SOURCE=1"
> > export CXX="g++ -mcpu=v9 -m64 -D_LARGEFILE64_SOURCE=1"
> > export LDFLAGS='-mcpu=v9 -m64'
> > export LDDFLAGS='-mcpu=v9 -m64 -G'
> I am afraid this won't work really well, because it
> overwrites LDFLAGS.
> Unfortunately, AFAIK, there is no easy way to change flags
> used for compilation and linking. I don't think this is
> linked to 32 vs 64 bits problem (though I may be wrong; I
> don't know much about solaris).
> > I also compiled blas and lapack in 64 bits. I know I don't
> need them
> > for numpy, but I will soon when I'll compile scipy.
> > I've tried to set up my site.cfg, tu use libfblas and
> libflapack and
> > it didn't work. I tried libsunperf and got the same result :
> (the problem being about the sun compilers, I think this
> applies to sparc as well).
Thanks, I haven't noticed my old thread as been revived. I would post in it, but I only recently subscribed, so I've got no mail to answer to.
Last time, I gave up trying to link with libsunperf. I linked numpy and scipy against standard blas and lapack and it worked well.
But this time, with 64 bits, even standard blas and lapack gives me errors. I've been able to compile numpy with the integrated blas, but for scipy, I really need it, and I still run into linking problem. The fortran code gets compiled in 32 bits. How to pass flags to g77 ?
Lucas, I'm very interested in your custom sunccompiler.py (damn distutils!), as I'll probably need linker flags. Could you post it, please?
More information about the SciPy-user