tomhrr / dale

Lisp-flavoured C
BSD 3-Clause "New" or "Revised" License
1.03k stars 48 forks source link

msys2 build error #230

Open rgkirch opened 5 months ago

rgkirch commented 5 months ago

running make gives make[2]: *** No rule to make target '/c/Users/me/notMyCode/tomhrr/dale/src/dale/Arch/Arch.cpp', needed by 'CMakeFiles/dale.dir/src/dale/Arch/Arch.cpp.o'. Stop. This is with the https://gitforwindows.org/ "Git for Windows SDK" after installing cmake with winget winget install -e --id Kitware.CMake and make with choco choco install make

me@Yoga MSYS ~/notMyCode/tomhrr/dale.build.git-sdk-64 (main)
$ cmake ../dale -DLLVM_CONFIG="/c/git-sdk-64/mingw64/opt/llvm-14/bin/llvm-config.exe"
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /usr/bin/cc.exe
-- Check for working C compiler: /usr/bin/cc.exe - works
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: /usr/bin/c++.exe
-- Check for working CXX compiler: /usr/bin/c++.exe - works
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- LLVM version: 14.0.6
-- LLVM version major: 14
-- LLVM version minor: 0
-- System name: MSYS
-- System processor: x86_64
-- System version: 3.4.10-87d57229.x86_64
-- Found PkgConfig: /usr/bin/pkg-config.exe (found version "1.7.4")
-- Checking for one of the modules 'libffi'
-- Build type: RELEASE
-- Configuring done (4.2s)
-- Generating done (0.6s)
-- Build files have been written to: /c/Users/me/notMyCode/tomhrr/dale.build.git-sdk-64

me@Yoga MSYS ~/notMyCode/tomhrr/dale.build.git-sdk-64 (main)
$ make
make[2]: *** No rule to make target '/c/Users/me/notMyCode/tomhrr/dale/src/dale/Arch/Arch.cpp', needed by 'CMakeFiles/dale.dir/src/dale/Arch/Arch.cpp.o'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:175: CMakeFiles/dale.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

me@Yoga MSYS ~/notMyCode/tomhrr/dale.build.git-sdk-64 (main)
$ cd ../dale

$ git log --name-status HEAD^..HEAD
commit 46e6dfca5137266b388fc1bfea5d5f6f27889dce (HEAD -> master, origin/master)
Author: Tom Harrison <tomhrr@tomhrr.org>
Date:   Mon Apr 15 17:02:26 2024 +1000

    [master] Add cstdint headers to (potentially) help with Windows builds.

M       src/dale/Serialise/Serialise.h
M       src/dale/Type/Type.h
M       src/dale/llvmUtils/llvmUtils.h
tomhrr commented 5 months ago

Similarly to #228, the problem is not apparent from the log, and in the absence of a machine for testing, there's not much I can do here, sorry.