[SciPy-dev] scipy_distutils under cygwin using DF

Berthold Höllmann hoel at gl-group.com
Wed Mar 24 10:11:08 CST 2004


Hello,

I try to compile some python extension libraries under
WinXP/cygwin. The fortran codes need DF, no chance for g77. But I get:

>make test
PYTHONPATH="w:\\hoel\\work\\GLPy\\lib;w:\\hoel\\work\\GLPy\\build\\lib.win32-2.3;" python setup.py config_fc --fcompiler=compaqv build_src build_clib build_ext
...
customize CompaqVisualFCompiler
customize CompaqVisualFCompiler using build_clib
splitcmdline('DF /what')
********************************************************************************
scipy_distutils.compaqfcompiler.CompaqVisualFCompiler
version_cmd     = ['DF', '/what']
compiler_fix    = ['DF', '/fixed', '/nologo', '/MD', '/WX', '/iface=(cref,nomixed_str_len_arg)', '/n
ames:lowercase', '/assume:underscore', '/Ox', '/fast', '/optimize:5', '/unroll:0', '/math_library:fa
st', '/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:lower
case', '/assume:underscore', '/Ox', '/fast', '/optimize:5', '/unroll:0', '/math_library:fast', '/thr
eads']
version         = None
libraries       = []
library_dirs    = []
object_switch   = '/object:'
compile_switch  = '/compile_only '
include_dirs    = []
********************************************************************************
building 'fortmisc' library
compling Fortran sources
DF(f77) options: '/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'
DF(f90) options: '/nologo /MD /WX /iface=(cref,nomixed_str_len_arg) /names:lowercase /assume:underscore /Ox /fast /optimize:5 /unroll:0 /math_library:fast /threads'
DF(fix) options: '/fixed /nologo /MD /WX /iface=(cref,nomixed_str_len_arg) /names:lowercase /assume:underscore /Ox /fast /optimize:5 /unroll:0 /math_library:fast /threads'
compile options: '-Ilib\numfort -c'
DF:f77: lib\numfort\NB.F
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 "/compile_only " lib\numfort\NB.F /object:build\temp.win32-2.3\lib\numfort\NB.o
Microsoft: error: Unknown switch: '/compile_only '
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 "/compile_only " lib\numfort\NB.F /object:build\temp.win32-2.3\lib\numfort\NB.o" failed with exit status 1
make: *** [build] Error 1

changing "compile_switch" in fcompiler.py from '/compile_only ' to
'/compile_only'  solves this problem, but now I get:

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?

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