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

Darwin ARM: libfftw3 not defined #187

Closed
lukeburns opened this issue Mar 17, 2021 · 10 comments
Closed

Darwin ARM: libfftw3 not defined #187

lukeburns opened this issue Mar 17, 2021 · 10 comments

Comments

@lukeburns
Copy link

Running native Julia, version 1.7.0-DEV on Mac M1

julia> versioninfo()
Julia Version 1.7.0-DEV.720
Commit 5515893eac (2021-03-17 18:47 UTC)
Platform Info:
  OS: macOS (arm64-apple-darwin20.2.0)
  CPU: Apple M1
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, cyclone)

julia> using FFTW
[ Info: Precompiling FFTW [7a1cc6ca-52ef-59f5-83cd-3a7055c09341]
ERROR: LoadError: UndefVarError: libfftw3 not defined

I tried adding FFTW_jll with no dice

@giordano
Copy link
Member

Yes, all JLL packages won't work on aarch64 Darwin at the moment

@giordano
Copy link
Member

@lukeburns I've built FFTW for aarch64-apple-darwin, you can test it with

]add https://github.com/giordano/FFTW_jll.jl.git

NOTE: this is meant to be a test, the "official" build will come at some point in the future. Also, I'm not going to do this kind of builds for other libraries, but it'd be good to get some feedback on this one before the official rollout.

@lukeburns
Copy link
Author

Works for me!

@giordano
Copy link
Member

@lukeburns thanks for confirmation! To be clear, it's useless to go around to report the lack of aarch64-apple-darwin: all binaries are built in Yggdrasil and we already know well the situation. The problem is that the presence of binaries for the new platform implies requiring Julia v1.6+: we simply can't cut out all already released Julia versions for all binaries.

@lukeburns
Copy link
Author

@giordano Aha, I was just about to ask — just found Yggdrasil. So it's a matter of distribution, rather than a technical issue? Does this mean I should be able to manually build any JLL package locally?

@giordano
Copy link
Member

@giordano Aha, I was just about to ask — just found Yggdrasil. So it's a matter of distribution, rather than a technical issue?

Yes, exactly.

Does this mean I should be able to manually build any JLL package locally?

In principle yes, using BinaryBuilder

@giordano
Copy link
Member

giordano commented Apr 2, 2021

Meta issue about building JLL packages for the new platform: JuliaPackaging/Yggdrasil#2763.

@cadojo
Copy link

cadojo commented Jul 12, 2021

I noticed FFTW now requires Julia v1.6, and @giordano's experimental aarch64-apple-darwin fork seems to have been added to FFTW_jll. Is there a new status for apple-darwin support for FFTW? Definitely not trying to rush anyone, just curious on the status since the two "issues" listed on the FFTW line in JuliaPackaging/Yggdrasil#2763 seem to be implemented already.

@giordano
Copy link
Member

Fixed by JuliaPackaging/Yggdrasil#3585

@giordano
Copy link
Member

giordano commented Jul 2, 2023

Your problem is completely unrelated to the present issue, please open a new ticket.

Anyway the gist is that MKL isn't available for your processor, but why this is happening is a problem that we can't look at here.

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