Skip to content
This repository

link flags for gfortran under macports #62

Closed
fabianp opened this Issue · 3 comments

2 participants

Fabian Pedregosa David Cournapeau
Fabian Pedregosa

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

David Cournapeau
Owner

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.

David Cournapeau
Owner

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

David Cournapeau cournape closed this
Fabian Pedregosa

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

numpy-gitbot numpy-gitbot referenced this issue in thouis/numpy-trac-migration
Closed

Fix bento build with macport gfortran (Trac #1986) #5784

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.