[Numpy-discussion] Problems building numpy

numpy-discussion at robince.ftml.net numpy-discussion at robince.ftml.net
Fri Jul 13 10:12:42 EDT 2007


Hi,

By making replacing line 807 in fcompiler/__init__.py (return None)
with:
        from numpy.distutils.fcompiler.none import NoneFCompiler
        compiler = NoneFCompiler()
        return compiler

I have been able to get a little bit further with my problems. I'm not
sure if this is the correct way to do the import since I'm quite new to
Python.

It seems to build OK now, but there is a linking error: I'm not sure why
-lmsvcr71 is included in the linker flags, since I should be using
cygwin (setup.py build --compiler=mingw32). I think this is because it
is not finding the fortran libraries needed. These should come with
cygwin, but I'm not sure how to point to them. Also it still reports not
finding a fortran compiler, although g77 is installed in cygwin. Looking
through the code I'm wondering if there is some confusion between use of
os.name (which is 'nt') and sys.platform (which is 'win32') - I thought
perhaps that's why its reporting not Fortran compilers supported for
'nt'. Not too sure though. Again any help greatfully received.

... lots of similar undefinied references ...
C:\/libf77blas.a(xerbla.o):xerbla.f:(.text+0xe): undefined reference to
`_s_wsfe'
C:\/libf77blas.a(xerbla.o):xerbla.f:(.text+0x29): undefined reference to
`_do_fio'
C:\/libf77blas.a(xerbla.o):xerbla.f:(.text+0x44): undefined reference to
`_do_fio'
C:\/libf77blas.a(xerbla.o):xerbla.f:(.text+0x49): undefined reference to
`_e_wsfe'
C:\/libf77blas.a(xerbla.o):xerbla.f:(.text+0x5d): undefined reference to
`_s_stop'
collect2: ld returned 1 exit status
error: Command "g++ -mno-cygwin -shared
build\temp.win32-2.5\Release\numpy\linal
g\lapack_litemodule.o -LC:\ -Lc:\Python25\libs -Lc:\Python25\PCBuild
-llapack -l
f77blas -lcblas -latlas -lpython25 -lmsvcr71 -o
build\lib.win32-2.5\numpy\linalg
\lapack_lite.pyd" failed with exit status 1

Thanks,

Robin




More information about the NumPy-Discussion mailing list