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

Issue on Apple Silicon with native Julia Build #15

Open
tknopp opened this issue Mar 26, 2022 · 1 comment
Open

Issue on Apple Silicon with native Julia Build #15

tknopp opened this issue Mar 26, 2022 · 1 comment

Comments

@tknopp
Copy link

tknopp commented Mar 26, 2022

Hi,

I did not expect this to work but still report the error. On the native arm build of Julia we get the error below. Does the C library already compile on arm64e?

(jl_tAyv3V) pkg> add NFFT3
    Updating registry at `~/.julia/registries/General.toml`
   Resolving package versions...
    Updating `/private/var/folders/x7/crh034116fl_xp9hzmnqjtxr0000gn/T/jl_tAyv3V/Project.toml`
  [53104703] + NFFT3 v1.1.0
    Updating `/private/var/folders/x7/crh034116fl_xp9hzmnqjtxr0000gn/T/jl_tAyv3V/Manifest.toml`
  [53104703] + NFFT3 v1.1.0
Precompiling project...
  ✗ NFFT3
  0 dependencies successfully precompiled in 1 seconds
  1 dependency errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the package

julia> using NFFT3
[ Info: Precompiling NFFT3 [53104703-03e8-40a5-ab01-812303a44cae]
ERROR: LoadError: could not load library "/Users/knopp/.julia/packages/NFFT3/1hIEY/src/libnfftjulia.dylib"
dlopen(/Users/knopp/.julia/packages/NFFT3/1hIEY/src/libnfftjulia.dylib, 0x0001): tried: '/Users/knopp/.julia/packages/NFFT3/1hIEY/src/libnfftjulia.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/libnfftjulia.dylib' (no such file), '/usr/lib/libnfftjulia.dylib' (no such file)
Stacktrace:
@michaelquellmalz
Copy link
Member

The binaries we have are for x86, you need to compile the NFFT on ARM. In general, the NFFT should compile on ARM (I had it working once on ARM with Ubuntu/Android).

I have no experience on Mac, but you would need the FFTW lib and header to compile the NFFT (you can add them in the NFFT configure by setting both flags --with-fftw3-libdir=/path/to/fftw and --with-fftw3-includedir=/path/to/fftw, the FFTW might be available via homebrew. Furthermore, when running julia it needs to link also to the libfftw3 (this is included in the Windows releases of Julia, but it looks like it is not in the Mac ARM release).

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

2 participants