-
Notifications
You must be signed in to change notification settings - Fork 94
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
Lean4Example error: build failed and Fail to use "suggest_tactics" #137
Comments
We meet the same error,and I still don't solve it. |
I updated LeanCopilot to support recent versions of Lean. Could you please re-try and see if the error still persists? |
I have re-try,but the error still persists. ✖ [556/557] Building Lean4Example
trace: .> LEAN_PATH=././.lake/packages/batteries/.lake/build/lib:././.lake/packages/aesop/.lake/build/lib:././.lake/packages/LeanCopilot/.lake/build/lib
:././.lake/build/lib LD_LIBRARY_PATH=././.lake/packages/LeanCopilot/.lake/build/lib:././.lake/packages/batteries/.lake/build/lib:././.lake/packages/aeso
p/.lake/build/lib:././.lake/packages/LeanCopilot/.lake/build/lib /root/.elan/toolchains/leanprover--lean4---v4.14.0/bin/lean ././././Lean4Example.lean -
R ./././. -o ././.lake/build/lib/Lean4Example.olean -i ././.lake/build/lib/Lean4Example.ilean -c ././.lake/build/ir/Lean4Example.c --load-dynlib=././.la
ke/packages/LeanCopilot/.lake/build/lib/libleanffi.so --load-dynlib=././.lake/packages/LeanCopilot/.lake/build/lib/libModelCheckpointManager-Url-1.so --
load-dynlib=././.lake/packages/LeanCopilot/.lake/build/lib/libModelCheckpointManager-Download-1.so --load-dynlib=././.lake/packages/LeanCopilot/.lake/bu
ild/lib/libModelCheckpointManager-1.so --load-dynlib=././.lake/packages/LeanCopilot/.lake/build/lib/libLeanCopilot-Models-Native-1.so --load-dynlib=././
.lake/packages/LeanCopilot/.lake/build/lib/libLeanCopilot-Models-ByT5-1.so --load-dynlib=././.lake/packages/LeanCopilot/.lake/build/lib/libLeanCopilot-M
odels-Builtin-1.so --load-dynlib=././.lake/packages/LeanCopilot/.lake/build/lib/libLeanCopilot-Models-Interface-1.so --load-dynlib=././.lake/packages/Le
anCopilot/.lake/build/lib/libLeanCopilot-Models-External-1.so --load-dynlib=././.lake/packages/LeanCopilot/.lake/build/lib/libLeanCopilot-Models-Generic
-1.so --load-dynlib=././.lake/packages/LeanCopilot/.lake/build/lib/libLeanCopilot-Models-FFI-1.so --load-dynlib=././.lake/packages/batteries/.lake/build
/lib/libBatteries-Data-List-Init-Lemmas-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-CodeAction-Attr-1.so --load-dynlib=
././.lake/packages/batteries/.lake/build/lib/libBatteries-CodeAction-Basic-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-
CodeAction-Deprecated-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Tactic-Alias-1.so --load-dynlib=././.lake/packages/ba
tteries/.lake/build/lib/libBatteries-Data-List-Basic-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Data-AssocList-1.so --
load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Data-Nat-Basic-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/lib
Batteries-Lean-EStateM-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Lean-Except-1.so --load-dynlib=././.lake/packages/ba
tteries/.lake/build/lib/libBatteries-Tactic-Lint-Basic-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Tactic-Lint-Misc-1.s
o --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Tactic-OpenPrivate-1.so --load-dynlib=././.lake/packages/batteries/.lake/build
/lib/libBatteries-Util-LibraryNote-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Tactic-Lint-Simp-1.so --load-dynlib=././
.lake/packages/batteries/.lake/build/lib/libBatteries-Tactic-Lint-TypeClass-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries
-Tactic-Lint-Frontend-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Tactic-Lint-1.so --load-dynlib=././.lake/packages/bat
teries/.lake/build/lib/libBatteries-Classes-SatisfiesM-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Data-Array-Monadic-1
.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Data-HashMap-Basic-1.so --load-dynlib=././.lake/packages/batteries/.lake/bui
ld/lib/libBatteries-Data-HashMap-Lemmas-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Tactic-SeqFocus-1.so --load-dynlib=
././.lake/packages/batteries/.lake/build/lib/libBatteries-Data-Nat-Lemmas-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-C
ontrol-ForInStep-Basic-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Control-ForInStep-Lemmas-1.so --load-dynlib=././.lak
e/packages/batteries/.lake/build/lib/libBatteries-Tactic-Init-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Data-List-Lem
mas-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Data-HashMap-WF-1.so --load-dynlib=././.lake/packages/batteries/.lake/b
uild/lib/libBatteries-Data-HashMap-1.so --load-dynlib=././.lake/packages/LeanCopilot/.lake/build/lib/libLeanCopilot-Models-Registry-1.so --load-dynlib=.
/./.lake/packages/LeanCopilot/.lake/build/lib/libLeanCopilot-Models-1.so --load-dynlib=././.lake/packages/LeanCopilot/.lake/build/lib/libLeanCopilot-Opt
ions-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Data-MLList-Basic-1.so --load-dynlib=././.lake/packages/batteries/.lak
e/build/lib/libBatteries-Control-Nondet-Basic-1.so --load-dynlib=././.lake/packages/LeanCopilot/.lake/build/lib/libLeanCopilot-Frontend-1.so --load-dynl
ib=././.lake/packages/aesop/.lake/build/lib/libAesop-Nanos-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Data-Array-Merge
-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Util-UnorderedArraySet-1.so --load-dynlib=././.lake/packages/batteries/.lake/build
/lib/libBatteries-Lean-Expr-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Data-String-Basic-1.so --load-dynlib=././.lake/
packages/aesop/.lake/build/lib/libAesop-Util-Basic-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Data-Array-Match-1.so --
load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Data-String-Matcher-1.so --load-dynlib=././.lake/packages/LeanCopilot/.lake/build/
lib/libLeanCopilot-Tactics-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Check-1.so --load-dynlib=././.lake/packages/aesop/.lake/
build/lib/libAesop-Options-Public-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Options-Internal-1.so --load-dynlib=././.lake/pac
kages/aesop/.lake/build/lib/libAesop-Options-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Rule-Name-1.so --load-dynlib=././.lake
/packages/batteries/.lake/build/lib/libBatteries-Data-Array-Init-Lemmas-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Dat
a-Array-Basic-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Tracing-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/l
ibAesop-RulePattern-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Index-Basic-1.so --load-dynlib=././.lake/packages/aesop/.lake/b
uild/lib/libAesop-Percent-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-RuleTac-FVarIdSubst-1.so --load-dynlib=././.lake/packages
/aesop/.lake/build/lib/libAesop-RuleTac-GoalDiff-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Script-CtorNames-1.so --load-dynli
b=././.lake/packages/batteries/.lake/build/lib/libBatteries-Lean-Meta-Basic-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Util-Eq
ualUpToIds-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Script-Tactic-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/li
b/libAesop-Script-GoalWithMVars-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Script-TacticState-1.so --load-dynlib=././.lake/pac
kages/batteries/.lake/build/lib/libBatteries-Lean-MonadBacktrack-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Lean-Meta-
SavedState-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Script-Util-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/
lib/libBatteries-Tactic-PermuteGoals-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Script-Step-1.so --load-dynlib=././.lake/packa
ges/aesop/.lake/build/lib/libAesop-RuleTac-Basic-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Rule-Basic-1.so --load-dynlib=././
.lake/packages/batteries/.lake/build/lib/libBatteries-Lean-Meta-InstantiateMVars-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatt
eries-Lean-PersistentHashSet-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Lean-Meta-Expr-1.so --load-dynlib=././.lake/pa
ckages/batteries/.lake/build/lib/libBatteries-Lean-PersistentHashMap-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Lean-M
eta-DiscrTree-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Index-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/lib
Aesop-RuleSet-Name-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-RuleSet-Filter-1.so --load-dynlib=././.lake/packages/aesop/.lake
/build/lib/libAesop-Rule-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-RuleSet-Member-1.so --load-dynlib=././.lake/packages/aesop
/.lake/build/lib/libAesop-RuleSet-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Script-UScript-1.so --load-dynlib=././.lake/packa
ges/aesop/.lake/build/lib/libAesop-Script-Check-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Script-SScript-1.so --load-dynlib=.
/./.lake/packages/aesop/.lake/build/lib/libAesop-Script-UScriptToSScript-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Script-Str
uctureDynamic-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Script-StructureStatic-1.so --load-dynlib=././.lake/packages/aesop/.l
ake/build/lib/libAesop-Script-OptimizeSyntax-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Stats-Basic-1.so --load-dynlib=././.la
ke/packages/aesop/.lake/build/lib/libAesop-Script-Main-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-ElabM-1.so --load-dynlib=./.
/.lake/packages/aesop/.lake/build/lib/libAesop-RuleTac-ElabRuleTerm-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Util-Tactic-1.s
o --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Util-Tactic-Ext-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-U
til-Tactic-Unfold-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Script-ScriptM-1.so --load-dynlib=././.lake/packages/batteries/.l
ake/build/lib/libBatteries-Lean-Meta-Inaccessible-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Script-SpecificTactics-1.so --loa
d-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-RuleTac-Apply-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-RuleTac-Ca
ses-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Lean-Meta-UnusedNames-1.so --load-dynlib=././.lake/packages/aesop/.lake
/build/lib/libAesop-RuleTac-Forward-Basic-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-RuleTac-Forward-1.so --load-dynlib=././.l
ake/packages/aesop/.lake/build/lib/libAesop-RuleTac-Preprocess-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-RuleTac-Tactic-1.so
--load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-RuleTac-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Search-Expa
nsion-Basic-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Search-Expansion-Simp-1.so --load-dynlib=././.lake/packages/aesop/.lake
/build/lib/libAesop-Constants-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Tree-UnsafeQueue-1.so --load-dynlib=././.lake/package
s/aesop/.lake/build/lib/libAesop-Tree-Data-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Tree-RunMetaM-1.so --load-dynlib=././.la
ke/packages/aesop/.lake/build/lib/libAesop-Search-Queue-Class-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Tree-TreeM-1.so --loa
d-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Search-SearchM-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Search-Ru
leSelection-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Tree-Traversal-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/
lib/libAesop-Tree-State-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Lean-HashSet-1.so --load-dynlib=././.lake/packages/
aesop/.lake/build/lib/libAesop-Search-Expansion-Norm-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Util-UnionFind-1.so --load-dyn
lib=././.lake/packages/aesop/.lake/build/lib/libAesop-Tree-AddRapp-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Search-Expansion
-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Exception-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Sea
rch-ExpandSafePrefix-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Tree-Check-1.so --load-dynlib=././.lake/packages/aesop/.lake/b
uild/lib/libAesop-Tree-ExtractProof-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Tree-ExtractScript-1.so --load-dynlib=././.lake
/packages/aesop/.lake/build/lib/libAesop-Tree-Free-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Tree-Tracing-1.so --load-dynlib=
././.lake/packages/aesop/.lake/build/lib/libAesop-Tree-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Classes-Order-1.so -
-load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Data-BinomialHeap-Basic-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/l
ib/libAesop-Search-Queue-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Frontend-Extension-Init-1.so --load-dynlib=././.lake/packa
ges/aesop/.lake/build/lib/libAesop-Frontend-Extension-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Search-Main-1.so --load-dynli
b=././.lake/packages/aesop/.lake/build/lib/libAesop-Builder-Basic-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Builder-Cases-1.s
o --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Builder-Constructors-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAe
sop-Builder-NormSimp-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Builder-Tactic-1.so --load-dynlib=././.lake/packages/aesop/.la
ke/build/lib/libAesop-Builder-Apply-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Builder-Default-1.so --load-dynlib=././.lake/pa
ckages/aesop/.lake/build/lib/libAesop-Builder-Forward-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Builder-Unfold-1.so --load-dy
nlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Frontend-RuleExpr-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Ta
ctic-Unreachable-1.so --load-dynlib=././.lake/packages/batteries/.lake/build/lib/libBatteries-Linter-UnreachableTactic-1.so --load-dynlib=././.lake/pack
ages/aesop/.lake/build/lib/libAesop-Frontend-Tactic-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Stats-Extension-1.so --load-dyn
lib=././.lake/packages/aesop/.lake/build/lib/libAesop-Main-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Frontend-Basic-1.so --lo
ad-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Stats-Report-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Frontend-C
ommand-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Saturate-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAeso
p-Frontend-Saturate-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-Frontend-Attribute-1.so --load-dynlib=././.lake/packages/aesop/
.lake/build/lib/libAesop-BuiltinRules-Assumption-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-BuiltinRules-ApplyHyps-1.so --load
-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-BuiltinRules-DestructProducts-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libA
esop-BuiltinRules-Ext-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-BuiltinRules-Intros-1.so --load-dynlib=././.lake/packages/aes
op/.lake/build/lib/libAesop-BuiltinRules-Rfl-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-BuiltinRules-Split-1.so --load-dynlib=
././.lake/packages/aesop/.lake/build/lib/libAesop-BuiltinRules-Subst-1.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-BuiltinRules-1
.so --load-dynlib=././.lake/packages/aesop/.lake/build/lib/libAesop-1.so --load-dynlib=././.lake/packages/LeanCopilot/.lake/build/lib/libLeanCopilot-Llm
Aesop-1.so --load-dynlib=././.lake/packages/LeanCopilot/.lake/build/lib/libLeanCopilot-1.so --json
error: Lean exited with code 132
Some required builds logged failures:
- Lean4Example
error: build failed |
Can you try it with Ubuntu22.04 Linux? I think it's a way to reproduce bugs. |
0x01 Error messages
I followed your tutorial and deployed the lean-dojo/LeanCopilot and the LeanCopilot-demo branch of lean4-example on my server.There is still a compilation error, please help me to solve this problem. I find that a lot of people have this problem.Now I will explain my experimental environment and operation steps to you clearly.
0x02 Operating System environment
0x03 clone lean4-example
0x04 lean-toolchain and lakefile.lean
1.lean-toolchain
root@manjingliu-virtual-machine:~/demo/lean4-example# cat lean-toolchain leanprover/lean4:v4.11.0
2.lakefile.lean
0x05
lake update LeanCopilot
0x06
lake exe LeanCopilot/download
0x07
lake build
0x08 final error message
Part 8 is the error message at the end of Part 7
The text was updated successfully, but these errors were encountered: