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

Fall back to really old version when LLVM.jl not available #475

Open
ViralBShah opened this issue Mar 8, 2024 · 3 comments
Open

Fall back to really old version when LLVM.jl not available #475

ViralBShah opened this issue Mar 8, 2024 · 3 comments

Comments

@ViralBShah
Copy link
Contributor

ViralBShah commented Mar 8, 2024

I tried to install on 1.12-dev, and got this. I believe that this is because LLVM.jl is not available, and somehow this leads to fall back to really old version of Clang.jl, which used BinaryProvider.

Is it possible to prevent this from happening?

(@v1.12) pkg> up
    Updating registry at `~/.julia/registries/General.toml`
  No Changes to `~/.julia/environments/v1.12/Project.toml`
  No Changes to `~/.julia/environments/v1.12/Manifest.toml`
Precompiling project...
           ✗ BinaryProvider
           ✗ Clang
  0 dependencies successfully precompiled in 1 seconds. 8 already precompiled.
  2 dependencies errored.
  For a report of the errors see `julia> err`. To retry use `pkg> precompile`


(@v1.12) pkg> st
Status `~/.julia/environments/v1.12/Project.toml`
⌃ [40e3b903] Clang v0.9.2
Info Packages marked with ⌃ have new versions available and may be upgradable.

@Gnimuc
Copy link
Member

Gnimuc commented Mar 9, 2024

I think we need to change https://github.com/JuliaRegistries/General/blob/313a1d3d845ec30060f01ee3209b2955df70889b/C/Clang/Compat.toml#L1-L8

not sure whether there is a caveat of doing this.

cc @giordano

@giordano
Copy link
Contributor

giordano commented Mar 9, 2024

Fixing compat bounds because things are broken is fine with me. I presume you specifically want to https://github.com/JuliaRegistries/General/blob/313a1d3d845ec30060f01ee3209b2955df70889b/C/Clang/Compat.toml#L2 not to allow installing an old version of Clang.jl with incompatible versions of Julia, right?

@Gnimuc
Copy link
Member

Gnimuc commented Mar 9, 2024

Yes. Those entries below may also need to be changed.

https://github.com/JuliaRegistries/General/blob/313a1d3d845ec30060f01ee3209b2955df70889b/C/Clang/Compat.toml#L55

I think we can safely cap those versions below Clang-v0.10 to be compatible with Julia up to v1.2.

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