Description
Attempting to follow the "Getting Started: Windows" instructions with Mingw, but running into the following issues:
pacman -S base-devel mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-toolchain
This above command gives the impression that it would install three packages automatically. Instead it brings up a menu of 19 separate installs! (I install them all to be on the safe side)
curl -LO https://github.com/modula3/cm3/releases/download/d5.11.4/cm3-dist-AMD64_LINUX-d5.11.4.tar.xz
This (above) command results in a certificate error. "Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate." However, even when telling curl to ignore certs, it still fails.
No matter I suppose, so I manually download and unzip cm3-dist-AMD64_NT-d5.11.4 then create and cd to directory build. I ensure that msys2 and CMake are already installed.
../cm3/scripts/concierge.py install --prefix /c/cm3
(I assume that's a type-o and should be "python3 ../cm3/scripts/concierge.py install --prefix /c/cm3"). Anyway, here is the error after that command churns for a bit:
CMake Error at bootstrap.cmake:17 (find_library):
Could not find COMCTL32 using the following names: comctl32
Call Stack (most recent call first):
CMakeLists.txt:7 (include)
_Traceback (most recent call last):
File "c:\Modula\cm3\scripts\concierge.py", line 1816, in
Concierge().main()
File "c:\Modula\cm3\scripts\concierge.py", line 1750, in main
command.execute()
File "c:\Modula\cm3\scripts\concierge.py", line 1490, in execute
self.bootstrap()
File "c:\Modula\cm3\scripts\concierge.py", line 1515, in bootstrap
self._build_with_cmake(bootstrap_dir, build_dir=os.getcwd())
File "c:\Modula\cm3\scripts\concierge.py", line 1559, in build_with_cmake
proc.check_returncode()
File "C:\Python310\lib\subprocess.py", line 456, in check_returncode
raise CalledProcessError(self.returncode, self.args, self.stdout,
subprocess.CalledProcessError: Command '['cmake', '-S', 'C:\Modula\cm3\bootstrap', '-B', 'c:\Modula\build', '-DCMAKE_INSTALL_PREFIX=C:\c\cm3', '-A', 'x64']' returned non-zero exit status 1.
Here are excerpts from the CMakeError file:
Microsoft (R) C/C++ Optimizing Compiler Version 19.32.31332 for x64
src.c
C:\Modula\build\CMakeFiles\CMakeTmp\src.c(1,10): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [C:\Modula\build\CMakeFiles\CMakeTmp\cmTC_85e5e.vcxproj]_
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: C:/Modula/build/CMakeFiles/CMakeTmp
Any tips?