Re: [f2py] Difficulties working on 64 bit windows platform.
David Wainwright <[email protected]> Tue, 22 Nov 2011 13:39:56 +1000
| Newsgroups | gmane.comp.python.f2py.user |
|---|---|
| Message-ID | <3C4B2F4422717C46B84277733317B9D5043053951B@UQEXMB08.soe.uq.edu.au> |
From: f2py-users-bounces-Y4l6ocDipWCuvFJfX82//[email protected] [mailto:f2py-users-bounces-Y4l6ocDipWCuvFJfX82//[email protected]] On Behalf Of Pearu Peterson Sent: Thursday, 17 November 2011 7:21 AM To: For users of the f2py program Subject: Re: [f2py] Difficulties working on 64 bit windows platform. On Wed, Nov 16, 2011 at 5:10 AM, David Wainwright <[email protected]<mailto:[email protected]>> wrote: Hello, I'm having difficulty building an f2py extension. I have 64 bit Windows 7, running intel fortran (composerXE-2011) and am trying to create 64-bit modules to call from python. I've attached a trace of my input command and the results below It appears to be finding and using the fortran compiler correctly & building X64 modules, However, when it tries to link, I get a fatal error indicating that the module machine type 'x64' conflicts with the target machine 'x86'. It seems that the wrong linker may be being used, but I am unsure, there appears to be an alternative linker available in an /amd64 subdirectory. Try to define environment variable LDSHARED=<path to the linker in /amd64 subdirectory> and rerun the f2py.py script. Can anyone provide clues as to where I might look to fix this? The support for intelvem compiler is defined in C:\Python27\Lib\site-packages\numpy\distutils\fcompiler\intel.py See the end of this file, the last class definition might need an update.. HTH, Pearu Thanks for this, Unfortunately, changing this environment variable didn't invoke a different linker, and the same error was returned. Should I be looking to make changes to the class definition (IntelEM64VisualFCompiler) to invoke a different linker, or somewhere else in the code? I've tested this with intel compilers on Linux and it all works well. Cheers, David. _______________________________________________ f2py-users mailing list f2py-users-Y4l6ocDipWCuvFJfX82//[email protected] http://cens.ioc.ee/mailman/listinfo/f2py-users