[Numpy-discussion] absoft and f2py

Sturla Molden sturla@molden...
Sat Aug 7 15:07:38 CDT 2010


After deleting compaq.py from
C:\Python26\lib\site-packages\numpy\distutils\fcompiler, and removing
compaq from _default_compilers in
C:\Python26\lib\site-packages\numpy\distutils\fcompiler\__init__.py, I get
this:



C:\Absoft11.0>f2py -c --help-fcompiler
Forcing DISTUTILS_USE_SDK=1
AbsoftFCompiler instance properties:
  archiver        = None
  compile_switch  = '-c'
  compiler_f77    = ['C:\\Absoft11.0\\BIN\\f77.exe', '-N22', '-N90', '-
                    N110', '-f', '-N15', '-O']
  compiler_f90    = ['C:\\Absoft11.0\\BIN\\f90.exe', '-YCFRL=1', '-
                    YCOM_NAMES=LCS', '-YCOM_PFX', '-YEXT_PFX', '-YCOM_SFX=_',
                    '-YEXT_SFX=_', '-YEXT_NAMES=LCS', '-YDEALLOC=ALL', '-O']
  compiler_fix    = ['C:\\Absoft11.0\\BIN\\f90.exe', '-YCFRL=1', '-
                    YCOM_NAMES=LCS', '-YCOM_PFX', '-YEXT_PFX', '-YCOM_SFX=_',
                    '-YEXT_SFX=_', '-YEXT_NAMES=LCS', '-f', 'fixed', '-
                    YCFRL=1', '-YCOM_NAMES=LCS', '-YCOM_PFX', '-YEXT_PFX', '-
                    YCOM_SFX=_', '-YEXT_SFX=_', '-YEXT_NAMES=LCS', '-
                    YDEALLOC=ALL', '-O']
  libraries       = ['af90math', 'afio', 'af77math', 'U77', 'COMDLG32']
  library_dirs    = ['C:\\Absoft11.0\\shlib64']
  linker_exe      = None
  linker_so       = ['C:\\Absoft11.0\\BIN\\f90.exe', '/dll']
  object_switch   = '-o '
  ranlib          = None
  version         = LooseVersion ('11.0')
  version_cmd     = ['C:\\Absoft11.0\\BIN\\f90.exe', '-V', '-c',
                    'c:\\users\\sturla\\appdata\\local\\temp\\tmp8su73c\\rxhgr
                    8.f', '-o',
                    'c:\\users\\sturla\\appdata\\local\\temp\\tmp8su73c\\rxhgr
                    8.o']
Fortran compilers found:
  --fcompiler=absoft  Absoft Corp Fortran Compiler (11.0)
Compilers available for this platform, but not found:
  --fcompiler=g95      G95 Fortran Compiler
  --fcompiler=gnu      GNU Fortran 77 compiler
  --fcompiler=gnu95    GNU Fortran 95 compiler
  --fcompiler=intelev  Intel Visual Fortran Compiler for Itanium apps
  --fcompiler=intelv   Intel Visual Fortran Compiler for 32-bit apps
Compilers not available on this platform:
  --fcompiler=hpux     HP Fortran 90 Compiler
  --fcompiler=ibm      IBM XL Fortran Compiler
  --fcompiler=intel    Intel Fortran Compiler for 32-bit apps
  --fcompiler=intele   Intel Fortran Compiler for Itanium apps
  --fcompiler=intelem  Intel Fortran Compiler for EM64T-based apps
  --fcompiler=lahey    Lahey/Fujitsu Fortran 95 Compiler
  --fcompiler=mips     MIPSpro Fortran Compiler
  --fcompiler=nag      NAGWare Fortran 95 Compiler
  --fcompiler=none     Fake Fortran compiler
  --fcompiler=pg       Portland Group Fortran Compiler
  --fcompiler=sun      Sun or Forte Fortran 95 Compiler
  --fcompiler=vast     Pacific-Sierra Research Fortran 90 Compiler
For compiler details, run 'config_fc --verbose' setup command.



So it seems there is a bug in compaq.py that causes f2py to crash. I am
running Enthought 6.2-2 on amd64. (Which means I have NumPy 1.4.0.)


Regards,

Sturla Molden







>
> I asked before, but did not get an answer. What is the problem with absoft
> and f2py?
>
> Sturla
>
>
>
> C:\Absoft11.0>f2py -c --help-fcompiler
> Forcing DISTUTILS_USE_SDK=1
> Unexpected ValueError in
> C:\Python26\lib\site-packages\numpy\distutils\fcompiler
> \compaq.py
> Traceback (most recent call last):
>   File "C:\Python26\Scripts\f2py-script.py", line 24, in <module>
>     main()
>   File "C:\Python26\lib\site-packages\numpy\f2py\f2py2e.py", line 557, in
> main
>     run_compile()
>   File "C:\Python26\lib\site-packages\numpy\f2py\f2py2e.py", line 543, in
> run_co
> mpile
>     setup(ext_modules = [ext])
>   File "C:\Python26\lib\site-packages\numpy\distutils\core.py", line 186,
> in set
> up
>     return old_setup(**new_attr)
>   File "C:\Python26\lib\distutils\core.py", line 138, in setup
>     ok = dist.parse_command_line()
>   File "C:\Python26\lib\distutils\dist.py", line 460, in
> parse_command_line
>     args = self._parse_command_opts(parser, args)
>   File "C:\Python26\lib\distutils\dist.py", line 574, in
> _parse_command_opts
>     func()
>   File
> "C:\Python26\lib\site-packages\numpy\distutils\command\config_compiler.py
> ", line 13, in show_fortran_compilers
>     show_fcompilers(dist)
>   File
> "C:\Python26\lib\site-packages\numpy\distutils\fcompiler\__init__.py",
> li
> ne 848, in show_fcompilers
>     load_all_fcompiler_classes()
>   File
> "C:\Python26\lib\site-packages\numpy\distutils\fcompiler\__init__.py",
> li
> ne 715, in load_all_fcompiler_classes
>     __import__ (module_name)
>   File
> "C:\Python26\lib\site-packages\numpy\distutils\fcompiler\compaq.py",
> line
>  55, in <module>
>     class CompaqVisualFCompiler(FCompiler):
>   File
> "C:\Python26\lib\site-packages\numpy\distutils\fcompiler\compaq.py",
> line
>  95, in CompaqVisualFCompiler
>     raise e
> ValueError: [u'path', u'lib']
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>




More information about the NumPy-Discussion mailing list