[Numpy-discussion] Error building numpy (1.5.1 and 1.6.1rc3) with python2.7 debug

Sandro Tosi morph at debian.org
Sat Aug 6 18:43:41 EDT 2011


On Sat, Aug 6, 2011 at 06:25, Charles R Harris
<charlesr.harris at gmail.com> wrote:
> Yes, all the time ;)
>
> gcc version 4.6.0 20110603 (Red Hat 4.6.0-10) (GCC)

Great, in fact it turned out it was a debian tool that went nuts :) (I
was able to build _doblas by hand, so it's just a matter of
configuration)

The situation is this:

- until recently, we had this command in our makefile: 'unexport
LDFLAGS' that removes any presence of the variable LDFLAGS from the
environment.
- recently, a Debian-specific tool, started adding LDFLAGS (and other
build variables) to the env, in a way no more controllable by the
makefile
- with that variable set, gfortran misses a '-shared' option and it
generates the error I mentioned in the original email
- I'm following the path to ask for that tool to be made more
flexible, so to allow to "unset" those variables, but maybe I can
workaround it patching the code (I know, I hate to diverge from
upstream, but in extreme situations...), so I'd like to ask your
guidance in thise :) it's probably something
numpy/distutils/fcompiler/ but additional clues would be awesome :)

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi



More information about the NumPy-Discussion mailing list