[Numpy-discussion] Failing to build numpy properly on Ubuntu Hardy
Thu Dec 11 01:13:15 CST 2008
> On Thu, Dec 11, 2008 at 06:10, Gael Varoquaux
> <email@example.com <mailto:firstname.lastname@example.org>>
> Hi all,
> Looks like I am following the long line of people failing to build
> :). I must admit I am clueless with building problems.
> Numpy builds alright, but I get:
> ImportError: /usr/lib/sse2/atlas/libblas.so.3gf: undefined symbol:
> On import.
> This used to work a while ago. I am not sure what I changed, but
> it sure
> does fail. I really don't understand where the gfortran comes in.
> I tried
> building numpy with or without gfortran. From what I gather it is the
> numpy is being built by a different compiler than the atlas libraries
> (hurray for ABI compatibility), but I don't really understand how
> this is
> How can I debug this?
> I have encountered with such problem before. My solution is recompile
> the problem package(maybe atlas in your case) with -ff2c option passed
> to gfortran.
This is a bad idea: it won't work with libraries which are not built
with this option, and the error won't always be easy to detect (one key
difference is that wo ff2c, complex variables are passed by value by
gfortran, whereas they are passed by reference with the ff2c option -
which means crash and/or corruption).
The only viable solution is to avoid mixing g77-built and gfortran-built
libraries (there is now a simple test which tries to detect those mix in
both numpy and scipy),
More information about the Numpy-discussion