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

Fails to compile on Apple silicon #4

Open
jneen opened this issue Jun 15, 2024 · 2 comments
Open

Fails to compile on Apple silicon #4

jneen opened this issue Jun 15, 2024 · 2 comments

Comments

@jneen
Copy link

jneen commented Jun 15, 2024

Maybe I'm doing something wrong, I'm happy to try some debugging steps.

I have fftw3 installed via brew install fftw. The directory /opt/homebrew/lib contains:

libfftw3.3.dylib@
libfftw3.a@
libfftw3.dylib@
libfftw3_mpi.3.dylib@
libfftw3_mpi.a@
libfftw3_mpi.dylib@
libfftw3_omp.3.dylib@
libfftw3_omp.a@
libfftw3_omp.dylib@
libfftw3_threads.3.dylib@
libfftw3_threads.a@
libfftw3_threads.dylib@
libfftw3f.3.dylib@
libfftw3f.a@
libfftw3f.dylib@
libfftw3f_mpi.3.dylib@
libfftw3f_mpi.a@
libfftw3f_mpi.dylib@
libfftw3f_omp.3.dylib@
libfftw3f_omp.a@
libfftw3f_omp.dylib@
libfftw3f_threads.3.dylib@
libfftw3f_threads.a@
libfftw3f_threads.dylib@
libfftw3l.3.dylib@
libfftw3l.a@
libfftw3l.dylib@
libfftw3l_mpi.3.dylib@
libfftw3l_mpi.a@
libfftw3l_mpi.dylib@
libfftw3l_omp.3.dylib@
libfftw3l_omp.a@
libfftw3l_omp.dylib@
libfftw3l_threads.3.dylib@
libfftw3l_threads.a@
libfftw3l_threads.dylib@

Unfortunately, gem install numo-fftw fails with the following error:

checking for fftw3.h... yes
checking for -lfftw3... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Full logs here:
mkmf.log
gem_make.out

I also tried manually symlinking fftw3* to libfftw3*, but that didn't seem to help. What's odd is that the mkmf.log reports /opt/homebrew/lib as being on DYLD_LIBRARY_PATH.

Happy to help with debugging, or even submitting a fix once we figure out what's wrong!

@jac241
Copy link

jac241 commented Jul 20, 2024

I was able to install from command line with gem install numo-fftw -- --with-fftw-include=/opt/homebrew/include --with-fftw-lib=/opt/homebrew/lib

@OriPekelman
Copy link

In the mileage may vary area.. I had to do something like: gem install numo-fftw -- --with-fftw-include=/usr/local/Cellar/fftw/3.3.10_1/include --with-fftw-lib=/usr/local/Cellar/fftw/3.3.10_1/lib

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