Skip to content

precompiling dftk.jl fails #1104

@thomsen59

Description

@thomsen59

Precompiling project...
✗ DFTK
11 dependencies successfully precompiled in 23 seconds. 185 already precompiled.
1 dependency errored.
For a report of the errors see julia> err. To retry use pkg> precompile

julia> err
PkgPrecompileError: The following 1 direct dependency failed to precompile:

DFTK

Failed to precompile DFTK [acf6eb54-70d9-11e9-0013-234b7a5f5337] to "/Users/thomsen/.julia/compiled/v1.11/DFTK/jl_XjUslN".
ERROR: LoadError: ArgumentError: invalid macro usage for @timeit, use as @timeit [to] label codeblock
Stacktrace:
[1] timer_expr(::Module, ::Bool, ::TimerOutputs.TimerOutput, ::Expr)
@ TimerOutputs ~/.julia/packages/TimerOutputs/L5q5K/src/TimerOutput.jl:219
[2] var"@timing"(source::LineNumberNode, module::Module, args::Vararg{Any})
@ DFTK ~/.julia/packages/DFTK/NCxPt/src/common/timer.jl:16
[3] include(mod::Module, _path::String)
@ Base ./Base.jl:557
[4] include(x::String)
@ DFTK ~/.julia/packages/DFTK/NCxPt/src/DFTK.jl:1
[5] top-level scope
@ ~/.julia/packages/DFTK/NCxPt/src/DFTK.jl:29
[6] include
@ ./Base.jl:557 [inlined]
[7] 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:2881
[8] top-level scope
@ stdin:6
in expression starting at /Users/thomsen/.julia/packages/DFTK/NCxPt/src/common/ortho.jl:1
in expression starting at /Users/thomsen/.julia/packages/DFTK/NCxPt/src/common/ortho.jl:1
in expression starting at /Users/thomsen/.julia/packages/DFTK/NCxPt/src/DFTK.jl:1
in expression starting at stdin:

julia>

versioninfo()
Julia Version 1.11.5
Commit 760b2e5b739 (2025-04-14 06:53 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: macOS (arm64-apple-darwin24.0.0)
CPU: 8 × Apple M2
WORD_SIZE: 64
LLVM: libLLVM-16.0.6 (ORCJIT, apple-m2)
Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores)
Environment:
LD_LIBRARY_PATH = /opt/homebrew/Cellar/libxc/7.0.0/lib

Used to work fine, don't know what happened or how to fix it... (used to work fine till a little while ago)
macOS Sequoia Version 15.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions