Zulip Chat Archive
Stream: lean4
Topic: lake exe checkdecls on Windows
Floris van Doorn (Aug 15 2024 at 10:40):
I get an error when building lake exe checkdecls on Windows, with errors very similar to the previous errors with lake exe mk_all
found here.
The error is when compiling checkdecls
:
Floris@Dell-E MINGW64 ~/projects/carleson (master)
$ lake exe checkdecls
✖ [4/4] Building checkdecls
trace: .> c:\Users\Floris\.elan\toolchains\leanprover--lean4---v4.11.0-rc2\bin\leanc.exe -o .\.\.lake/packages\checkdecls\.lake\build\bin\checkdecls.exe .\.\.lake/packages\checkdecls\.lake\build\ir\Main.c.o.export -leanshared
info: stderr:
ld.lld: error: undefined symbol: l_Lake_findInstall_x3f
>>> referenced by .\.\.lake/packages\checkdecls\.lake\build\ir\Main.c.o.export:(l_main___lambda__1)
ld.lld: error: undefined symbol: l_Lake_LakeOptions_mkLoadConfig
>>> referenced by .\.\.lake/packages\checkdecls\.lake\build\ir\Main.c.o.export:(l_main___lambda__1)
>>> referenced by .\.\.lake/packages\checkdecls\.lake\build\ir\Main.c.o.export:(l_main___lambda__1)
ld.lld: error: undefined symbol: l_Lake_CliError_toString
>>> referenced by .\.\.lake/packages\checkdecls\.lake\build\ir\Main.c.o.export:(l_main___lambda__1)
>>> referenced by .\.\.lake/packages\checkdecls\.lake\build\ir\Main.c.o.export:(l_main___lambda__1)
>>> referenced by .\.\.lake/packages\checkdecls\.lake\build\ir\Main.c.o.export:(l_main___lambda__1)
ld.lld: error: undefined symbol: l_Lake_loadWorkspace
>>> referenced by .\.\.lake/packages\checkdecls\.lake\build\ir\Main.c.o.export:(l_main___lambda__1)
>>> referenced by .\.\.lake/packages\checkdecls\.lake\build\ir\Main.c.o.export:(l_main___lambda__1)
ld.lld: error: undefined symbol: l_Array_foldlMUnsafe_fold___at_Lake_serve___spec__1
>>> referenced by .\.\.lake/packages\checkdecls\.lake\build\ir\Main.c.o.export:(l_main___lambda__1)
>>> referenced by .\.\.lake/packages\checkdecls\.lake\build\ir\Main.c.o.export:(l_main___lambda__1)
ld.lld: error: undefined symbol: initialize_Lake_CLI_Main
>>> referenced by .\.\.lake/packages\checkdecls\.lake\build\ir\Main.c.o.export:(initialize_Main)
ld.lld: error: undefined symbol: l_Lake_defaultConfigFile
>>> referenced by .\.\.lake/packages\checkdecls\.lake\build\ir\Main.c.o.export:(.refptr.l_Lake_defaultConfigFile)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: external command 'c:\Users\Floris\.elan\toolchains\leanprover--lean4---v4.11.0-rc2\bin\leanc.exe' exited with code 1
Some required builds logged failures:
- checkdecls
error: build failed
(pinging @Utensil Song and @Sebastian Ullrich since found/fixed the issue last time)
Sebastian Ullrich (Aug 15 2024 at 10:46):
Does the fix at https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/automatically.20generate.20ProjectName.2Elean/near/444253802 apply?
Sebastian Ullrich (Aug 15 2024 at 10:48):
This hasn't been addressed upstream yet, no
Floris van Doorn (Aug 15 2024 at 10:54):
Oh, I expected that there was a fix in Lean, not in mk_all
. I'll check.
Sebastian Ullrich (Aug 15 2024 at 10:58):
I filed #5050 to keep track of it
Floris van Doorn (Aug 15 2024 at 11:00):
Yes, adding the weakLinkArgs := #["-lLake"]
to the lean_exe
options fixes this.
Floris van Doorn (Aug 15 2024 at 11:00):
Sebastian Ullrich (Aug 15 2024 at 11:00):
Argh, I will never remember what prefix to use on what Zulip...
Yaël Dillies (Aug 15 2024 at 11:02):
Maybe we should have user-specific rules for linkifiers :grinning_face_with_smiling_eyes:
Sebastian Ullrich (Aug 15 2024 at 11:03):
I don't want to imagine what kind of edge cases that would introduce on e.g. quoting someone :) ...
Floris van Doorn (Aug 15 2024 at 11:04):
https://github.com/PatrickMassot/checkdecls/pull/3 @Patrick Massot
Patrick Massot (Aug 15 2024 at 15:07):
Did you check this doesn’t break the library on user-friendly OSs?
Floris van Doorn (Aug 16 2024 at 00:04):
No, that is not easy for me atm
Yaël Dillies (Aug 16 2024 at 07:00):
You can check by opening the PR in gitpod
Yaël Dillies (Aug 16 2024 at 07:01):
... although I'm not sure how to point to a non-master version of leanblueprint?
Floris van Doorn (Aug 16 2024 at 13:00):
I just checked that it still works in Github codespaces
Last updated: May 02 2025 at 03:31 UTC