Skip to content

link flags for gfortran under macports #62

Closed
fabianp opened this Issue Sep 7, 2011 · 3 comments

2 participants

@fabianp
fabianp commented Sep 7, 2011

Hi!

Trying to use bento to build scipy I get the following error. I'm running gfortran from macports.

(p26)~/dev/scipy(master) BENTOMAKER_DEBUG=1 ../bento/bentomaker configure
Checking for 'gcc' (c compiler)          : /opt/local/bin/gcc 
Checking for program python              : ['/Users/fabian/envs/p26/bin/python'] 
python executable '['/Users/fabian/envs/p26/bin/python']' different from sys.executable '/Users/fabian/envs/p26/bin/python'
Checking for python version              : (2, 6, 6, 'final', 0) 
Checking for library python2.6 in LIBPATH_PYEMBED : yes 
Checking for program python2.6-config,python-config-2.6,python2.6m-config : /opt/local/bin/python2.6-config 
Checking for header Python.h                                              : yes 
Checking for 'g++' (c++ compiler)                                         : /opt/local/bin/g++ 
Checking for 'gfortran' (fortran compiler)                                : /opt/local/bin/gfortran 
Checking for program f2py                                                 : /Users/fabian/envs/p26/bin/f2py 
fortran link verbose flag                                                 : failure 
  File "/Users/fabian/dev/bento/bentomakerlib/bentomaker.py", line 473, in noexc_main
    ret = main(argv)
  File "/Users/fabian/dev/bento/bentomakerlib/bentomaker.py", line 236, in main
    return _wrapped_main(popts, run_node, top_node, build_node)
  File "/Users/fabian/dev/bento/bentomakerlib/bentomaker.py", line 276, in _wrapped_main
    return _main(popts, run_node, top_node, build_node)
  File "/Users/fabian/dev/bento/bentomakerlib/bentomaker.py", line 348, in _main
    run_cmd(cmd_name, cmd_opts, run_node, top_node, build_node)
  File "/Users/fabian/dev/bento/bentomakerlib/bentomaker.py", line 420, in run_cmd
    run_cmd_in_context(cmd_klass, cmd_name, cmd_opts, ctx_klass, run_node, top_node, pkg)
  File "/Users/fabian/dev/bento/bentomakerlib/bentomaker.py", line 450, in run_cmd_in_context
    _run_hooks(get_pre_hooks(cmd_name))
  File "/Users/fabian/dev/bento/bentomakerlib/bentomaker.py", line 446, in _run_hooks
    hook(ctx)
  File "/Users/fabian/dev/scipy/bscript", line 136, in pre_configure
    conf.check_fortran_verbose_flag()
  File "/Users/fabian/src/waf-1.6.7/waflib/Configure.py", line 391, in fun
    raise e
bentomaker: Error: bentomaker crashed (uncaught exception <class 'waflib.Errors.ConfigurationError'>: Could not obtain the fortran link verbose flag (see config.log)
(complete log in /Users/fabian/dev/scipy/build/config.log)).
Please report this on bento issue tracker:
    http://github.com/cournape/bento/issues

The complete log can be found here: http://pastebin.com/TeA6fS7X

@cournape
Owner
cournape commented Sep 8, 2011

Currently, compiler options are hardcoded in the bscript files, so it is expected for gfortran from macport not to work out of the box. Until I will fix arch compiler detection, you may want to remove the addition of the -arch flags in the top bscript file.

@cournape
Owner

This is more of a numpy issue, so I created a bug here to track this: http://projects.scipy.org/numpy/ticket/1986

@cournape cournape closed this Nov 22, 2011
@fabianp
fabianp commented Jan 5, 2012

@cournape It would be great if you could give me some comments in scipy/scipy#126 . Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.