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

error compiling release-1.10 #51570

Open
gdkrmr opened this issue Oct 3, 2023 · 3 comments
Open

error compiling release-1.10 #51570

gdkrmr opened this issue Oct 3, 2023 · 3 comments
Labels
building Build system, or building Julia or its dependencies

Comments

@gdkrmr
Copy link
Contributor

gdkrmr commented Oct 3, 2023

On current release-1.10

commit 404750f8586d77a7d1832e0dfb1b1931fcf191ac (HEAD -> release-1.10, tag: v1.10.0-beta3, origin/release-1.10)
Author: Kristoffer Carlsson <[email protected]>
Date:   Tue Oct 3 14:53:42 2023 +0200

    release-1.10: set VERSION to 1.10.0-beta3 (#51542)

I get the following error during compilation:

InteractiveUtils  ─  0.721761 seconds
error during bootstrap:
LoadError("sysimg.jl", 18, LoadError("/home/gkraemer/progs/julia/julia-1.10/usr/share/julia/stdlib/v1.10/LibGit2/src/LibGit2.jl", 3, ArgumentError("Package LibGit2 does not have LibGit2_jll in its dependencies:\n- You may have a partially installed environment. Try `Pkg.instantiate()`\n  to ensure all packages in the environment are installed.\n- Or, if you have LibGit2 checked out for development and have\n  added LibGit2_jll as a dependency but haven't updated your primary\n  environment's manifest file, try `Pkg.resolve()`.\n- Otherwise you may need to report an issue with LibGit2")))
Full error

InteractiveUtils  ─  0.721761 seconds
error during bootstrap:
LoadError("sysimg.jl", 18, LoadError("/home/gkraemer/progs/julia/julia-1.10/usr/share/julia/stdlib/v1.10/LibGit2/src/LibGit2.jl", 3, ArgumentError("Package LibGit2 does not have LibGit2_jll in its dependencies:\n- You may have a partially installed environment. Try `Pkg.instantiate()`\n  to ensure all packages in the environment are installed.\n- Or, if you have LibGit2 checked out for development and have\n  added LibGit2_jll as a dependency but haven't updated your primary\n  environment's manifest file, try `Pkg.resolve()`.\n- Otherwise you may need to report an issue with LibGit2")))
macro expansion at ./loading.jl:1770 [inlined]
macro expansion at ./lock.jl:267 [inlined]
__require at ./loading.jl:1747
unknown function (ip: 0x7f2adc1a8219)
jl_apply at /home/gkraemer/progs/julia/julia-1.10/src/julia.h:1976 [inlined]
jl_f__call_latest at /home/gkraemer/progs/julia/julia-1.10/src/builtins.c:812
#invokelatest#2 at ./essentials.jl:887 [inlined]
invokelatest at ./essentials.jl:884 [inlined]
require at ./loading.jl:1742
unknown function (ip: 0x7f2adc14bdd9)
jl_apply at /home/gkraemer/progs/julia/julia-1.10/src/julia.h:1976 [inlined]
call_require at /home/gkraemer/progs/julia/julia-1.10/src/toplevel.c:481 [inlined]
eval_import_path at /home/gkraemer/progs/julia/julia-1.10/src/toplevel.c:518
jl_toplevel_eval_flex at /home/gkraemer/progs/julia/julia-1.10/src/toplevel.c:752
jl_eval_module_expr at /home/gkraemer/progs/julia/julia-1.10/src/toplevel.c:215 [inlined]
jl_toplevel_eval_flex at /home/gkraemer/progs/julia/julia-1.10/src/toplevel.c:736
jl_toplevel_eval_flex at /home/gkraemer/progs/julia/julia-1.10/src/toplevel.c:877
jl_toplevel_eval_flex at /home/gkraemer/progs/julia/julia-1.10/src/toplevel.c:877
ijl_toplevel_eval_in at /home/gkraemer/progs/julia/julia-1.10/src/toplevel.c:985
eval at ./boot.jl:383 [inlined]
include_string at ./loading.jl:2070
_include at ./loading.jl:2130
include at ./Base.jl:489
unknown function (ip: 0x7f2ae4974339)
_require at ./loading.jl:2008
__require_prelocked at ./loading.jl:1806
unknown function (ip: 0x7f2ad8067e19)
jl_apply at /home/gkraemer/progs/julia/julia-1.10/src/julia.h:1976 [inlined]
jl_f__call_latest at /home/gkraemer/progs/julia/julia-1.10/src/builtins.c:812
#invokelatest#2 at ./essentials.jl:887 [inlined]
invokelatest at ./essentials.jl:884 [inlined]
_require_prelocked at ./loading.jl:1799
unknown function (ip: 0x7f2adc1a9aa9)
macro expansion at ./loading.jl:1784 [inlined]
macro expansion at ./lock.jl:267 [inlined]
__require at ./loading.jl:1747
unknown function (ip: 0x7f2adc1a8219)
jl_apply at /home/gkraemer/progs/julia/julia-1.10/src/julia.h:1976 [inlined]
jl_f__call_latest at /home/gkraemer/progs/julia/julia-1.10/src/builtins.c:812
#invokelatest#2 at ./essentials.jl:887 [inlined]
invokelatest at ./essentials.jl:884 [inlined]
require at ./loading.jl:1742
unknown function (ip: 0x7f2adc14bdd9)
macro expansion at ./timing.jl:395 [inlined]
macro expansion at ./sysimg.jl:88 [inlined]
macro expansion at ./timing.jl:395 [inlined]
top-level scope at ./sysimg.jl:87
jl_toplevel_eval_flex at /home/gkraemer/progs/julia/julia-1.10/src/toplevel.c:925
jl_parse_eval_all at /home/gkraemer/progs/julia/julia-1.10/src/toplevel.c:1058
ijl_load_ at /home/gkraemer/progs/julia/julia-1.10/src/toplevel.c:1105
ijl_load at /home/gkraemer/progs/julia/julia-1.10/src/toplevel.c:1118
exec_program at /home/gkraemer/progs/julia/julia-1.10/src/jlapi.c:541
true_main at /home/gkraemer/progs/julia/julia-1.10/src/jlapi.c:594
jl_repl_entrypoint at /home/gkraemer/progs/julia/julia-1.10/src/jlapi.c:731
main at /home/gkraemer/progs/julia/julia-1.10/cli/loader_exe.c:58
unknown function (ip: 0x7f2afca27ccf)
__libc_start_main at /usr/lib/libc.so.6 (unknown line)
_start at /home/gkraemer/progs/julia/julia-1.10/usr/bin/julia (unknown line)

*** This error might be fixed by running `make clean`. If the error persists, try `make cleanall`. ***
make[1]: *** [sysimage.mk:67: /home/gkraemer/progs/julia/julia-1.10/usr/lib/julia/sys.ji] Error 1
make: *** [Makefile:97: julia-sysimg-ji] Error 2

I am on Manjaro Linux.

@vchuravy
Copy link
Member

vchuravy commented Oct 3, 2023

I think #51479 is intended to solve this.

@denius
Copy link

denius commented Oct 3, 2023

Workaround: rm ~/.julia/environments/v1.10/Manifest.toml.

@NHDaly
Copy link
Member

NHDaly commented Oct 5, 2023

Thank you @denius for the workaround!

As an aside, I wonder whether make cleanall should also rm your environment's manifest?
Since julia currently suggests that after the above error:

*** This error might be fixed by running `make clean`. If the error persists, try `make cleanall`. ***

It could at least suggest it as an option, like:

$ make cleanall
...
Would you like to clear your environment Manifest? This could help if you are seeing Pkg related issues: [y/n]
y
rm ~/.julia/environments/v1.10/Manifest.toml

EDIT: Filed #51604

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
building Build system, or building Julia or its dependencies
Projects
None yet
Development

No branches or pull requests

5 participants