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

Scipy build failures with PREFIX on include / library path #76

Closed
matthew-brett opened this issue Nov 10, 2017 · 4 comments
Closed

Scipy build failures with PREFIX on include / library path #76

matthew-brett opened this issue Nov 10, 2017 · 4 comments

Comments

@matthew-brett
Copy link
Collaborator

Trying to fix #58 in a general way, we put the build PREFIX into CPPFLAGS and the LDFLAGS - see https://github.com/matthew-brett/multibuild/pull/67/files . However this causes a scipy build failure - see scipy/scipy#8136 and https://travis-ci.org/scipy/scipy/jobs/299202869 .

The error was:

ld: warning: directory not found for option '-Lgfortran: warning: x86_64 conflicts with i386 (arch flags ignored)
/usr/local/Cellar/gcc/6.2.0/lib/gcc/6/gcc/x86_64-apple-darwin15.6.0/6.2.0'
Undefined symbols for architecture x86_64:
  "_PyArg_ParseTupleAndKeywords", referenced from:
      _f2py_rout__fftpack_zfft in _fftpackmodule.o
      _f2py_rout__fftpack_drfft in _fftpackmodule.o
      _f2py_rout__fftpack_zrfft in _fftpackmodule.o
      _f2py_rout__fftpack_zfftnd in _fftpackmodule.o
      _f2py_rout__fftpack_destroy_zfft_cache in _fftpackmodule.o
      _f2py_rout__fftpack_destroy_zfftnd_cache in _fftpackmodule.o
      _f2py_rout__fftpack_destroy_drfft_cache in _fftpackmodule.o
      ...
  "_PyBytes_FromString", referenced from:
      _PyInit__fftpack in _fftpackmodule.o
...

@xoviat kindly reverted the PREFIX changes in #71, #74.

This seems to be a problem with our gfortran install no longer finding the Python includes - time to investigate ...

@matthew-brett
Copy link
Collaborator Author

Hmm - the install is rather invasive for my poor laptop, involving:

brew install gcc ccache libmpc

I think this is not urgent, and I hope to have a beastly Mac Pro on my desk in a week or so, so I propose to wait until then to track this down. @xoviat @radarhere - is it OK to wait to debug this until the end of next week?

@ghost
Copy link

ghost commented Nov 10, 2017

Sounds ok to me.

@radarhere
Copy link
Collaborator

Sure, that's fine - thanks for looking into it

@isuruf
Copy link
Collaborator

isuruf commented Nov 15, 2017

Isn't this the old numpy.distutils "feature" where LDFLAGS env variable is used when set instead of appending the values of that variable?

numpy/numpy#7427

This issue was closed.
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