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

Unable to install latest version of FFTW on Julia 1.6 #206

Closed
bgroenks96 opened this issue Jun 8, 2021 · 12 comments
Closed

Unable to install latest version of FFTW on Julia 1.6 #206

bgroenks96 opened this issue Jun 8, 2021 · 12 comments

Comments

@bgroenks96
Copy link

Error during precompilation:

ERROR: LoadError: AssertionError: precompile(Tuple{typeof(rfft_output_size), Tuple{Int, Int, Int}, D})
Stacktrace:
 [1] _precompile_()
   @ FFTW ~/.julia/packages/FFTW/Iu2GG/src/precompile.jl:8
 [2] top-level scope
   @ ~/.julia/packages/FFTW/Iu2GG/src/FFTW.jl:65
 [3] include
   @ ./Base.jl:386 [inlined]
 [4] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
   @ Base ./loading.jl:1213
 [5] top-level scope
   @ none:1
 [6] eval
   @ ./boot.jl:360 [inlined]
 [7] eval(x::Expr)
   @ Base.MainInclude ./client.jl:446
 [8] top-level scope

Version:

      Status `~/.julia/environments/v1.6/Project.toml`
  [7a1cc6ca] FFTW v1.4.1
@bgroenks96
Copy link
Author

The problem is resolved by downgrading to version 1.3.1:

   Resolving package versions...
    Updating `~/.julia/environments/v1.6/Project.toml`
  [7a1cc6ca] ↓ FFTW v1.4.1 ⇒ v1.3.1
    Updating `~/.julia/environments/v1.6/Manifest.toml`
  [d360d2e6] ↑ ChainRulesCore v0.9.45 ⇒ v0.10.2
  [31c24e10] ↑ Distributions v0.24.18 ⇒ v0.25.2
  [7a1cc6ca] ↓ FFTW v1.4.1 ⇒ v1.3.1
  [856f044c] ↓ MKL_jll v2021.1.1+1 ⇒ v2020.2.254+0

  Progress [========================================>]  2/2
2 dependencies successfully precompiled in 15 seconds (173 already precompiled)

@stevengj
Copy link
Member

stevengj commented Jun 8, 2021

It works for me with FFTW 1.4.1 on Julia 1.6.1 (macOS).

@timholy and @ararslan, these precompile statements were added in #181 (for FFTW v1.3.2), any idea what's going on?

@stevengj
Copy link
Member

stevengj commented Jun 8, 2021

@bgroenks96, what is your versioninfo() output?

@ararslan
Copy link
Member

ararslan commented Jun 8, 2021

No idea on my end why those assertions would be hit. Works fine for me with FFTW v1.4.1 on Linux with Julia v1.6.1.

@bgroenks96
Copy link
Author

@stevengj

Julia Version 1.6.0
Commit f9720dc2eb (2021-03-24 12:55 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Xeon(R) Gold 6154 CPU @ 3.00GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, skylake-avx512)
Environment:
  JULIA_EDITOR = "/home/pd/bgroenke/.vscode-server/bin/cfa2e218100323074ac1948c885448fdf4de2a7f/node"
  JULIA_NUM_THREADS = 12

@bgroenks96
Copy link
Author

The current version of FFTW works on my laptop, this problem seems to only occur on my institute's server. Perhaps they broke something...? If we could narrow down what possible system libraries could cause this, I can just yell at them to fix it :)

@giordano
Copy link
Member

giordano commented Jun 9, 2021

@bgroenks96 can you please try to start julia with

JULIA_PKG_SERVER="pkg.julialang.org" JULIA_DEPOT_PATH=$(mktemp -d) julia

and see if you still have the same problem precompiling FFTW.jl there?

@bgroenks96
Copy link
Author

@giordano Yes, that worked! Could you explain what that changed? I had already tried deleting the entire .julia directory and that didn't fix the issue.

@giordano
Copy link
Member

giordano commented Jun 9, 2021

Well, that's equivalent to deleting the .julia directory: JULIA_DEPOT_PATH selects a different depot, without wiping out your .julia, which is something I do not recommend in general.

@bgroenks96
Copy link
Author

That's weird. There must be something else I installed in my environment that broke the FFTW compilation.

@KristofferC
Copy link
Member

Ref #214

@KristofferC
Copy link
Member

Should be fixed via #214

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

5 participants