Open Kreijstal opened 1 month ago
line 74 of stage1/stdlib.make
Lake:
# lake is in its own subdirectory, so must adjust relative paths...
+"/E/lean4/stage1/bin/leanmake" -C lake bin lib PKG=Lake BIN_NAME=lake.exe $(LEANMAKE_OPTS) LINK_OPTS=' -lstdc++ -lInit_shared -lleanshared' OUT="../E:/lean4/stage1/lib" LIB_OUT="../E:/lean4/stage1/lib/lean" OLEAN_OUT="../E:/lean4/stage1/lib/lean"
we can see it tries to find relative paths.. but fails miserably on windows lmao
@Kreijstal, could you say what you were expecting to see there?
If it's a problem in lake then @tydeu may be able to help.
@Kreijstal, could you say what you were expecting to see there?
my drive is E:\
So I dont expect E:\
to be in a relative path. Or ../E/my/path
The CMake build specifically looks for a relative path for LIB
(see here for Windows, so I am not sure were the absolute path is coming from. Maybe this is a by-product of running cmake -B
instead of configuring CMake and then running Make directly?
In windows there are sometimes where you can't have relative directories so when you have different drives, maybe it's better to use absolute, not relative? Or fall back
@Kreijstal Oh, are you building Lean from a different drive than the source and/or build results?
@Kreijstal Oh, are you building Lean from a different drive than the source and/or build results?
yeah I thougth I could, since one drive is faster than the other... but it seems it is not supported
@Kreijstal Such a case seems like a reasonable feature request we can consider supporting (or better documenting the lack of support for) in the future. Could you update the issue description and title to clarify this is/was the source of problem (e.g., "Lean fails to compile from a different drive")?
Prerequisites
Please put an X between the brackets as you perform the following steps:
Description
I failed to reproduce build on msys2
Building stage2: it gets stuck on
[ 0%] Built target make_stdlib
I followed the steps on the website, downloaded the git code, and successfully compiled state0, and stage1, but it gets stuck on stage2
Context
I have installed all dependencies from msys2 as written in the tutorial
Steps to Reproduce
Expected behavior: [I expect stage2 to compile]
Actual behavior: [stage2 does not compile]
Versions
git master branch 1382e9fbc4877820570d99f8a1226081a4a41750
Using windows 11 with msys2 mingw enviroment, also latest version
Additional Information