Bootstrap error when compiling julia master

I compiled Julia days ago, and now after git checkout master and git pull it doesn’t work.

I tried make, then make clean, then make cleanall:

combinatorics.jl
error during bootstrap:
LoadError("sysimg.jl", 3, LoadError("Base.jl", 339, LoadError("combinatorics.jl", 1, ErrorException("syntax: \"<<\" is not a unary operator"))))
jl_f_throw at /home/pharaldsson_sym/myjulia/julia/src/builtins.c:466
_jl_invoke at /home/pharaldsson_sym/myjulia/julia/src/gf.c:2191 [inlined]
jl_apply_generic at /home/pharaldsson_sym/myjulia/julia/src/gf.c:2373
jl_apply at /home/pharaldsson_sym/myjulia/julia/src/julia.h:1690 [inlined]
do_call at /home/pharaldsson_sym/myjulia/julia/src/interpreter.c:115
eval_value at /home/pharaldsson_sym/myjulia/julia/src/interpreter.c:204
eval_stmt_value at /home/pharaldsson_sym/myjulia/julia/src/interpreter.c:155 [inlined]
eval_body at /home/pharaldsson_sym/myjulia/julia/src/interpreter.c:575
jl_interpret_toplevel_thunk at /home/pharaldsson_sym/myjulia/julia/src/interpreter.c:669
top-level scope at combinatorics.jl:1
jl_toplevel_eval_flex at /home/pharaldsson_sym/myjulia/julia/src/toplevel.c:879
jl_eval_errorf at /home/pharaldsson_sym/myjulia/julia/src/toplevel.c:614
jl_toplevel_eval_flex at /home/pharaldsson_sym/myjulia/julia/src/toplevel.c:836
jl_parse_eval_all at /home/pharaldsson_sym/myjulia/julia/src/toplevel.c:996
jl_load_ at /home/pharaldsson_sym/myjulia/julia/src/toplevel.c:1043
include at ./boot.jl:358 [inlined]
include at ./Base.jl:299
include at ./Base.jl:17
_jl_invoke at /home/pharaldsson_sym/myjulia/julia/src/gf.c:2191 [inlined]
jl_apply_generic at /home/pharaldsson_sym/myjulia/julia/src/gf.c:2373
jl_apply at /home/pharaldsson_sym/myjulia/julia/src/julia.h:1690 [inlined]
do_call at /home/pharaldsson_sym/myjulia/julia/src/interpreter.c:115
eval_value at /home/pharaldsson_sym/myjulia/julia/src/interpreter.c:204
eval_stmt_value at /home/pharaldsson_sym/myjulia/julia/src/interpreter.c:155 [inlined]
eval_body at /home/pharaldsson_sym/myjulia/julia/src/interpreter.c:575
jl_interpret_toplevel_thunk at /home/pharaldsson_sym/myjulia/julia/src/interpreter.c:669
top-level scope at Base.jl:339
jl_toplevel_eval_flex at /home/pharaldsson_sym/myjulia/julia/src/toplevel.c:879
jl_eval_module_expr at /home/pharaldsson_sym/myjulia/julia/src/toplevel.c:197 [inlined]
jl_toplevel_eval_flex at /home/pharaldsson_sym/myjulia/julia/src/toplevel.c:670
jl_parse_eval_all at /home/pharaldsson_sym/myjulia/julia/src/toplevel.c:996
jl_load_ at /home/pharaldsson_sym/myjulia/julia/src/toplevel.c:1043
include at ./boot.jl:358
_jl_invoke at /home/pharaldsson_sym/myjulia/julia/src/gf.c:2191 [inlined]
jl_apply_generic at /home/pharaldsson_sym/myjulia/julia/src/gf.c:2373
jl_apply at /home/pharaldsson_sym/myjulia/julia/src/julia.h:1690 [inlined]
do_call at /home/pharaldsson_sym/myjulia/julia/src/interpreter.c:115
eval_value at /home/pharaldsson_sym/myjulia/julia/src/interpreter.c:204
eval_stmt_value at /home/pharaldsson_sym/myjulia/julia/src/interpreter.c:155 [inlined]
eval_body at /home/pharaldsson_sym/myjulia/julia/src/interpreter.c:575
jl_interpret_toplevel_thunk at /home/pharaldsson_sym/myjulia/julia/src/interpreter.c:669
top-level scope at sysimg.jl:3
jl_toplevel_eval_flex at /home/pharaldsson_sym/myjulia/julia/src/toplevel.c:879
jl_parse_eval_all at /home/pharaldsson_sym/myjulia/julia/src/toplevel.c:996
jl_load_ at /home/pharaldsson_sym/myjulia/julia/src/toplevel.c:1043
jl_load at /home/pharaldsson_sym/myjulia/julia/src/toplevel.c:1056
exec_program at /home/pharaldsson_sym/myjulia/julia/src/jlapi.c:492
true_main at /home/pharaldsson_sym/myjulia/julia/src/jlapi.c:565
repl_entrypoint at /home/pharaldsson_sym/myjulia/julia/src/jlapi.c:672
main at /home/pharaldsson_sym/myjulia/julia/cli/loader_exe.c:46
__libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
_start at /home/pharaldsson_sym/myjulia/julia/usr/bin/julia (unknown line)

*** This error might be fixed by running `make clean`. If the error persists, try `make cleanall`. ***
sysimage.mk:67: recipe for target '/home/pharaldsson_sym/myjulia/julia/usr/lib/julia/sys.ji' failed
make[1]: *** [/home/pharaldsson_sym/myjulia/julia/usr/lib/julia/sys.ji] Error 1
Makefile:81: recipe for target 'julia-sysimg-ji' failed
make: *** [julia-sysimg-ji] Error 2

I can try once more, I doubt this matters, after:

$ git pull
remote: Enumerating objects: 113, done.
remote: Counting objects: 100% (113/113), done.
remote: Compressing objects: 100% (65/65), done.
remote: Total 113 (delta 20), reused 113 (delta 20), pack-reused 0
Receiving objects: 100% (113/113), 10.52 KiB | 2.63 MiB/s, done.
Resolving deltas: 100% (20/20), completed with 8 local objects.
From https://github.com/JuliaLang/julia
 + c03604067b...9563180d66 vc/llvm11  -> origin/vc/llvm11  (forced update)
Already up to date.

what’s your git status. The error "syntax: \"<<\" is not a unary operator" strongly suggests that you have unresolved conflicts.

2 Likes
$ git status
On branch master
Your branch is ahead of 'origin/master' by 9 commits.
  (use "git push" to publish your local commits)

Untracked files:

I’ll look into it. At least if could be a hint a a bug I had regarding to my PR… In the meantime I took a backup, git cloned JuliaLang, and compiled and it worked.

Should I git clone it directly or my github fork of it?

Well, since you are ahead of master, you have local changes and the error you see simply means that the change you made has error. What you should do depend on what you want to do. If you just want to disgard all change then you should just reset to the master. If you want to figure out what’s wrong you should read the error message and look at what is on that line.

1 Like

And if the master branch on your fork is something to go with, yes you have a merge conflict that you need to resolve in base/combinatorics.jl https://github.com/JuliaLang/julia/compare/JuliaLang:f9ee161...PallHaraldsson:b9ea112#diff-b2612cdc2d66227fde2483b57ff9472206c73d39d6b814456624cf3ea0cb3eacR1

1 Like