Closed rgkirch closed 3 months ago
Hmm. On an ubuntu vm I got the same error as on wsl. That surprises me since there is a github workflow that builds the project on ubuntu. I just copied those instructions.
In WSL2, like this user here https://github.com/tomhrr/dale/issues/194 I removed module-to-markdown
from CMakeFiles/programs.dir/build.make
and I can make
without error.
make tests
fails though
Files=360, Tests=1412, 26 wallclock secs ( 0.98 usr 0.28 sys + 52.20 cusr 8.97 csys = 62.43 CPU)
Result: FAIL
Failed 95/360 test programs. 194/1412 subtests failed.
make[3]: *** [CMakeFiles/tests.dir/build.make:70: CMakeFiles/tests] Error 255
make[2]: *** [CMakeFiles/Makefile2:279: CMakeFiles/tests.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:286: CMakeFiles/tests.dir/rule] Error 2
make: *** [Makefile:208: tests] Error 2
In WSL2, like this user here #194 I removed
module-to-markdown
fromCMakeFiles/programs.dir/build.make
and I canmake
without error.make tests
fails though
Thanks for this. Could you send the full output from make tests
, or alternatively the output from running the tests that failed?
Hmm. On an ubuntu vm I got the same error as on wsl. That surprises me since there is a github workflow that builds the project on ubuntu. I just copied those instructions.
It's likely that the module-to-markdown issue is happening because of inconsistency between the versions of clang and LLVM that are being used, though if the instructions from the actions build are being copied as-is, it should be fine. Could you send the full build output for the instance where that is happening? Alternatively, you could try setting the CLANG
variable explicitly at build time. For example:
cmake -DLLVM_CONFIG=/usr/bin/llvm-config-14 -DCLANG=/usr/bin/clang-14 . && make && make tests
I'm on windows 10 and I'm getting this error. I tried in my msys2 terminal as well as in powershell and get the same error in both.
I've added more cstdint
includes to (hopefully) help with the Windows build, but I don't have a machine to test with, and there's every chance that other parts of the code are such that they won't work on Windows, so it may be more trouble than it's worth trying to get it to work there.
I also tried on macos and make succeeds but some tests fail with make tests.
Could you send the test output for this problem?
Ah... adding -DCLANG
make it work.
cmake ../dale -DLLVM_CONFIG=$(which llvm-config-14) -DCLANG=$(which clang-14); make -j$(nproc)
I'm going to close this issue because I've created other issues that target more specific issues with a smaller scope. https://github.com/tomhrr/dale/issues/231 about passing -DCLANG https://github.com/tomhrr/dale/issues/230 where I try to build on windows with msys2 https://github.com/tomhrr/dale/issues/229 where I have macos test failures https://github.com/tomhrr/dale/issues/228 where I try to build the visual studio solution https://github.com/tomhrr/dale/issues/226 I think I fixed this issue in a pr
Oh, also, all tests pass on ubuntu vm after adding -DCLANG I'm not sure what environment I had when I saw tests fail. I'm not going to try and recreate that. I'm just gonna move on.
I'm on windows 10 and I'm getting this error. I tried in my msys2 terminal as well as in powershell and get the same error in both.
git clone https://github.com/tomhrr/dale.git mkdir dale.build cd dale.build cmake ../dale -DLLVM_CONFIG="/c/git-sdk-64/mingw64/opt/llvm-14/bin/llvm-config.exe" make
running
make
givesI also tried in WSL1 and WSL2 and running
make
indale.build
givesI also tried on macos and
make
succeeds but some tests fail withmake tests
.