[SciPy-dev] Re: scipy_distutils under cygwin using DF

Berthold Höllmann hoel at gl-group.com
Thu Mar 25 07:41:52 CST 2004

Pearu Peterson <pearu at scipy.org> writes:

> On Wed, 24 Mar 2004, [ISO-8859-15] Berthold Höllmann wrote:
>> Hello,
>> I try to compile some python extension libraries under
>> WinXP/cygwin. The fortran codes need DF, no chance for g77. But I get:
>> changing "compile_switch" in fcompiler.py from '/compile_only ' to
>> '/compile_only'  solves this problem, but now I get:
> Ok, thanks for this information. This is now also in CVS.

You are welcome.
>> DF:f77: lib\numfort\NB.F
>> DF /f77rtl /fixed /nologo /MD /WX /iface=(cref,nomixed_str_len_arg) /names:lowercase /assume:undersc
>> ore /Ox /fast /optimize:5 /unroll:0 /math_library:fast /threads -Ilib\numfort -c /compile_only lib\n
>> umfort\NB.F /object:build\temp.win32-2.3\lib\numfort\NB.o
>> Visual
>> lib\numfort\NB.F
>> f90: Severe: No such file or directory
>> ... file is 'Visual'
>> error: Command "DF /f77rtl /fixed /nologo /MD /WX /iface=(cref,nomixed_str_len_arg) /names:lowercase
>>  /assume:underscore /Ox /fast /optimize:5 /unroll:0 /math_library:fast /threads -Ilib\numfort -c /co
>> mpile_only lib\numfort\NB.F /object:build\temp.win32-2.3\lib\numfort\NB.o" failed with exit status 1
>> make: *** [build] Error 1
>> I have no idea where the "Visual" is coming from. Is there anyone who
>> can help me?
> Yes, the current scipy_distutils.exec_command had issues on Windows when a 
> the full path of an executable (like of DF) contains spaces. This is now 
> fixed in CVS.

Thanks a lot, the fortran compilation works now, but! I can't compile
C source files anymore:

version_cmd     = ['DF', '/what']
compiler_fix    = ['DF', '/fixed', '/nologo', '/MD', '/WX', '/iface=(cref,nomixed_str_len_arg)', '/names:lowercase', '/assume:underscore', '/Ox', '/fast', '/optimize:5', '/unroll:0', '/math_library:fast', '/threads']
ranlib          = None
archiver        = ['C:\\Programme\\Microsoft Visual Studio\\VC98\\BIN\\lib.exe', '/OUT:']
compiler_f77    = ['DF', '/f77rtl', '/fixed', '/nologo', '/MD', '/WX', '/iface=(cref,nomixed_str_len_arg)', '/names:lowercase', '/assume:underscore', '/Ox', '/fast', '/optimize:5', '/unroll:0', '/math_library:fast', '/threads']
linker_so       = ['DF']
compiler_f90    = ['DF', '/nologo', '/MD', '/WX', '/iface=(cref,nomixed_str_len_arg)', '/names:lowercase', '/assume:underscore', '/Ox', '/fast', '/optimize:5', '/unroll:0', '/math_library:fast', '/threads']
version         = LooseVersion ('6.1')
libraries       = []
library_dirs    = ['c:\\Python23\\libs', 'c:\\Python23\\PCBuild', 'build\\temp.win32-2.3']
object_switch   = '/object:'
compile_switch  = '/compile_only'
include_dirs    = ['c:\\Python23\\include', 'c:\\Python23\\PC']
building 'SXFPyBase' extension
compling C sources
C:\Programme\Microsoft Visual Studio\VC98\BIN\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -DDEBUG -DVISUAL_CPLUSPLUS -Ilib\SXFPyBase -I"f:\DATA\FBE\ESC\Devel\include" -Ibuild\src -Ic:\Python23\include-Ic:\Python23\PC /Tcbuild\src\lib\SXFPyBase\SXFPyBasemodule.c /Fobuild\temp.win32-2.3\Release\build\src\lib\SXFPyBase\SXFPyBasemodule.obj
Could not locate executable "C:\Programme\Microsoft Visual Studio\VC98\BIN\cl.exe"
Executable "C:\Programme\Microsoft Visual Studio\VC98\BIN\cl.exe" does not exist
"C:\Programme\Microsoft Visual Studio\VC98\BIN\cl.exe" /c /nologo /Ox /MD /W3 /GX /DNDEBUG -DDEBUG -DVISUAL_CPLUSPLUS -Ilib\SXFPyBase -I"f:\DATA\FBE\ESC\Devel\include" -Ibuild\src -Ic:\Python23\include -Ic:\Python23\PC /Tcbuild\src\lib\SXFPyBase\SXFPyBasemodule.c /Fobuild\temp.win32-2.3\Release\build\src\lib\SXFPyBase\SXFPyBasemodule.obj

error: Command ""C:\Programme\Microsoft Visual Studio\VC98\BIN\cl.exe" /c /nologo /Ox /MD /W3 /GX /DNDEBUG -DDEBUG -DVISUAL_CPLUSPLUS -Ilib\SXFPyBase -I"f:\DATA\FBE\ESC\Devel\include" -Ibuild\src -Ic:\Python23\include -Ic:\Python23\PC /Tcbuild\src\lib\SXFPyBase\SXFPyBasemodule.c /Fobuild\temp.win32-2.3\Release\build\src\lib\SXFPyBase\SXFPyBasemodule.obj" failed with exit status 1

Is this a related problem, than can be solved equally fast?

Kind regards

Berthold Höllmann
Germanischer Lloyd AG
CAE Development
Vorsetzen 35
20459 Hamburg
Phone: +49(0)40 36149-7374
Fax: +49(0)40 36149-7320
e-mail: hoel at gl-group.com
Internet: http://www.gl-group.com 
This e-mail contains confidential information for the exclusive attention of the intended addressee. Any access of third parties to this e-mail is unauthorised. Any use of this e-mail by unintended recipients such as copying, distribution, disclosure etc. is prohibited and may be unlawful. When addressed to our clients the content of this e-mail is subject to the General Terms and Conditions of GL's Group of Companies applicable at the date of this e-mail.  
GL's Group of Companies does not warrant and/or guarantee that this message at the moment of receipt is authentic, correct and its communication free of errors, interruption etc.  

More information about the Scipy-dev mailing list