Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup.py: fortran doesn't compile properly when multiple fortran compilers are available #40

Closed
anna-wang opened this issue Aug 11, 2016 · 1 comment
Assignees
Milestone

Comments

@anna-wang
Copy link
Contributor

In Ubuntu

python setup.py build_ext --inplace

gives the following error when both gcc/gfortran and an Intel Fortran compiler are installed:

RuntimeError: module compiled against API version 9 but this version of numpy is 6
/n/home08/annawang/temp/holopy/holopy/scattering/theory/__init__.py:43: UserWarning: 
Could not import scattering.  You will not be able to do scattering
calculations, but the rest of holopy sould remain usable.

This is probably due to your not having properly compiled versions holopy's
fortran bits.  
  fortran bits.  """)
/n/sw/python-2.7.1/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'package'
  warnings.warn(msg)

[tonnes more lines...]

Found executable /usr/bin/g77
gnu: no Fortran 90 compiler found
gnu: no Fortran 90 compiler found
customize GnuFCompiler
gnu: no Fortran 90 compiler found
gnu: no Fortran 90 compiler found
customize GnuFCompiler using build_ext
running scons

Removing either gcc or the Intel compiler results in the code compiling properly

@barkls barkls added this to the 3.0 milestone Aug 19, 2016
@tdimiduk tdimiduk added wontfix and removed wontfix labels Dec 5, 2016
@tdimiduk
Copy link
Member

tdimiduk commented Dec 5, 2016

The new odyssey module system will not let you have both gcc and intel compilers loaded at the same time, which both makes this issue difficult to fix and probably not relevant any more.

I am closing this because it probably won't come up any more, but feel free to reopen if it does.

@tdimiduk tdimiduk closed this as completed Dec 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants