PBR

Support fortran compiler

Bug #1832657 reported by YHVH
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PBR
New
Undecided
Unassigned

Bug Description

Tried to build extension module which is fortran code, fails. I tried a few variations on the compiler name.

[extension=libforbdf]
sources = libforbdf.f95

[global]
compilers = gfortran

Traceback:

ERROR:root:Error parsing
Traceback (most recent call last):
  File "/home/yhvh/src/third/pybdf/.eggs/pbr-5.2.1-py2.7.egg/pbr/core.py", line 96, in pbr
    attrs = util.cfg_to_args(path, dist.script_args)
  File "/home/yhvh/src/third/pybdf/.eggs/pbr-5.2.1-py2.7.egg/pbr/util.py", line 267, in cfg_to_args
    register_custom_compilers(config)
  File "/home/yhvh/src/third/pybdf/.eggs/pbr-5.2.1-py2.7.egg/pbr/util.py", line 491, in register_custom_compilers
    compiler = resolve_name(compiler)
  File "/home/yhvh/src/third/pybdf/.eggs/pbr-5.2.1-py2.7.egg/pbr/util.py", line 189, in resolve_name
    ret = getattr(ret, part)
UnboundLocalError: local variable 'ret' referenced before assignment

Revision history for this message
YHVH (yhvh2000) wrote :

[global]
compilers = numpy.distutils.fcompiler.gnu.Gnu95FCompiler

This fails at build stage:
...
    error: unknown file type '.f95' (from 'libforbdf.f95')
...

Revision history for this message
YHVH (yhvh2000) wrote :

After this line:

https://github.com/openstack/pbr/blob/17f9439e9f9026dd3e8cae1e917a78e80195152c/pbr/util.py#L513

Module is added like:

distutils.numpy.distutils.fcompiler.gnu

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.