Skip to content

Fails to precompile on Julia nightly #112

@kshyatt

Description

@kshyatt

After ] dev-ing BFloat16s.jl:

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.13.0-DEV.1270 (2025-10-06)
 _/ |\__'_|_|_|\__'_|  |  Commit 38bed82b65f (0 days old master)
|__/                   |

(BFloat16s) pkg> precompile
    Updating registry at `~/.julia/registries/General`
┌ Info: The General registry is installed via git. Consider reinstalling it via
│ the newer faster direct from tarball format by running:
│   pkg> registry rm General; registry add General

    Updating git-repo `https://github.com/JuliaRegistries/General.git`
    Updating `~/.julia/dev/BFloat16s/Project.toml`
  [37e2e46d] ~ LinearAlgebra ⇒ v1.13.0
  [de0858da] ~ Printf ⇒ v1.11.0
  [9a3f8284] ~ Random ⇒ v1.11.0
    Updating `~/.julia/dev/BFloat16s/Manifest.toml`
  [56f22d72] + Artifacts v1.11.0
  [8f399da3] + Libdl v1.11.0
  [37e2e46d] ~ LinearAlgebra ⇒ v1.13.0
  [de0858da] ~ Printf ⇒ v1.11.0
  [9a3f8284] ~ Random ⇒ v1.11.0
  [ea8e919c] + SHA v0.7.0
  [4ec0a83e] + Unicode v1.11.0
  [e66e0078] + CompilerSupportLibraries_jll v1.3.0+1
  [4536629a] + OpenBLAS_jll v0.3.29+0
  [8e850b90] + libblastrampoline_jll v5.15.0+0
  ✗ BFloat16s
Precompiling packages finished.
  0 dependencies successfully precompiled in 3 seconds. 2 already precompiled.

ERROR: The following 1 direct dependency failed to precompile:

BFloat16s 

Failed to precompile BFloat16s [ab4f0b2a-ad5b-11e8-123f-65d77653426b] to "/home/kshyatt/.julia/compiled/v1.13/BFloat16s/jl_m2vFVB" (ProcessExited(1)).
WARNING: import of Core.BFloat16 into BFloat16s conflicts with an existing identifier; ignored.
ERROR: LoadError: UndefVarError: `BFloat16` not defined in `BFloat16s`
Suggestion: add an appropriate import or assignment. This global was declared but not assigned.
Stacktrace:
  [1] top-level scope
    @ ~/.julia/dev/BFloat16s/src/bfloat16.jl:53
  [2] include(mapexpr::Function, mod::Module, _path::String)
    @ Base ./Base.jl:310
  [3] top-level scope
    @ ~/.julia/dev/BFloat16s/src/BFloat16s.jl:5
  [4] include(mod::Module, _path::String)
    @ Base ./Base.jl:309
  [5] 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, UInt128}}, source::Nothing)
    @ Base ./loading.jl:3108
  [6] top-level scope
    @ stdin:5
  [7] eval(m::Module, e::Any)
    @ Core ./boot.jl:489
  [8] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
    @ Base ./loading.jl:2954
  [9] include_string
    @ ./loading.jl:2964 [inlined]
 [10] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:342
 [11] _start()
    @ Base ./client.jl:577

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions