[Numpy-discussion] Problems building numpy

Timothy Hochberg tim.hochberg at ieee.org
Fri Jul 13 11:43:44 EDT 2007


FWIW, I'm fairly certain that the binaries for win32 are compiled using
mingw, so I'm pretty certain that it's possible. I use MSVCC myself, so I
can't be of much help though.


On 7/13/07, numpy-discussion at robince.ftml.net <
numpy-discussion at robince.ftml.net> wrote:
>
> 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
>
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>



-- 
.  __
.   |-\
.
.  tim.hochberg at ieee.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20070713/b38250e2/attachment.html>


More information about the NumPy-Discussion mailing list