LandSandBoat / server

:sailboat: LandSandBoat - a server emulator for Final Fantasy XI
https://landsandboat.github.io/server/
GNU General Public License v3.0
291 stars 579 forks source link

🐛 Can't compile on Windows server 2016 #6016

Closed whasf closed 2 months ago

whasf commented 2 months ago

I affirm:

OS / platform the server is running (if known)

Windows Server 2016 Std

Branch affected by issue

base 06d50bb220ab379beef4903fff857e6bb71436e6

Steps to reproduce

Git pull latest (06d50bb220ab379beef4903fff857e6bb71436e6) Open VS 2022 Community Edition 17.10.4 Attempt to rebuild Get errors (I tried Release and Debug)

x64-Debug and x64-Release:

Severity Code Description Project File Line Suppression State Details Error C3861 'timegm': identifier not found C:\VSProjects\landsandboat\build\x64-Debug\landsandboat C:\VSProjects\landsandboat\src\common\vana_time.cpp 194
Error C1083 Cannot open include file: 'sys/time.h': No such file or directory C:\VSProjects\landsandboat\build\x64-Debug\landsandboat C:\VSProjects\landsandboat\src\common\timer.cpp 16

I tried a "clean" along with the "rebuild"

It seems someone added in Linux-specific items and VS doesn't like that

Expected behavior

I expected it to rebuild successfully

github-actions[bot] commented 2 months ago

✨ Thanks for the report! ✨

This is a friendly automated reminder that the maintainers won't look at your report until you've properly completed all of the checkboxes in the pre-filled template.

WinterSolstice8 commented 2 months ago

https://github.com/LandSandBoat/server/blob/06d50bb220ab379beef4903fff857e6bb71436e6/src/common/timer.cpp#L10

Your assumption is incorrect. Quite odd that WIN32 wouldn't be defined, try rebuilding cmake cache and if it still fails post the cmake build log

whasf commented 2 months ago

Here is the log:

1> CMake generation started for configuration: 'x64-Release'.
1> Command line: "C:\Windows\system32\cmd.exe" /c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe"  -G "Ninja"  -DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo" -DCMAKE_INSTALL_PREFIX:PATH="C:\VSProjects\landsandboat\build\x64-Release" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe"   -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" "C:\VSProjects\landsandboat" 2>&1"
1> Working directory: C:\VSProjects\landsandboat\build\x64-Release
1> [CMake] -- CMAKE_SOURCE_DIR: C:/VSProjects/landsandboat
1> [CMake] -- CMAKE_SIZEOF_VOID_P == 8: 64-bit build
1> [CMake] -- CMAKE_INTERPROCEDURAL_OPTIMIZATION: ON (this implies /GL or -flto)
1> [CMake] -- ENABLE_FAST_MATH: ON
1> [CMake] -- ENABLE_VALGRIND: OFF
1> [CMake] -- GIT_SHA1: 06d50bb220-dirty
1> [CMake] -- GIT_BRANCH: base
1> [CMake] -- GIT_DATE: Tue Jul 16 05:15:44 2024
1> [CMake] -- GIT_COMMIT_SUBJECT: [cpp] Adds standback range mod for mobs (#6000)
1> [CMake] -- CMAKE_VERSION: 3.28.3-msvc11
1> [CMake] -- CMAKE_C_COMPILER: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe
1> [CMake] -- CMAKE_CXX_COMPILER: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe
1> [CMake] -- CMAKE_CXX_COMPILER_ID: MSVC
1> [CMake] -- CMAKE_CXX_COMPILER_VERSION: 19.40.33812.0
1> [CMake] -- CMAKE_CXX_STANDARD: 20
1> [CMake] -- CMAKE_GENERATOR: Ninja
1> [CMake] -- CMAKE_GENERATOR_PLATFORM: 
1> [CMake] -- CMAKE_BUILD_TYPE: RelWithDebInfo
1> [CMake] -- CMAKE_C_FLAGS: 
1> [CMake] -- CMAKE_CXX_FLAGS: /EHsc -D_CONSOLE -D_MBCS -DNOMINMAX -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE /Oy- /MP /bigobj /utf-8 /Oi /GL /Gy /TP
1> [CMake] -- CMAKE_CXX_FLAGS_RELWITHDEBINFO: 
1> [CMake] -- CMAKE_EXE_LINKER_FLAGS:  /INCREMENTAL:NO /LTCG /OPT:REF /OPT:ICF
1> [CMake] -- MARIADB_FOUND: TRUE
1> [CMake] -- MARIADB_LIBRARY: C:/VSProjects/landsandboat/ext/mariadb/lib64/libmariadb64.lib
1> [CMake] -- MARIADB_INCLUDE_DIR: C:/VSProjects/landsandboat/ext/mariadb/include/
1> [CMake] -- Looking for prebuilt MariaDB Connector/C++
1> [CMake] -- MARIADBCPP_FOUND: TRUE
1> [CMake] -- MARIADBCPP_LIBRARY: C:/VSProjects/landsandboat/ext/mariadbcpp/lib64/mariadbcpp.lib
1> [CMake] -- MARIADBCPP_INCLUDE_DIR: C:/VSProjects/landsandboat/ext/mariadbcpp/include/
1> [CMake] -- ZeroMQ_FOUND: TRUE
1> [CMake] -- ZeroMQ_LIBRARY: C:/VSProjects/landsandboat/ext/zmq/lib64/libzmq_64.lib
1> [CMake] -- ZeroMQ_INCLUDE_DIR: C:/VSProjects/landsandboat/ext/zmq/include/zmq/
1> [CMake] -- LuaJIT_FOUND: TRUE
1> [CMake] -- LuaJIT_LIBRARY: C:/VSProjects/landsandboat/ext/luajit/lib64/libluajit_64.lib
1> [CMake] -- LuaJIT_INCLUDE_DIR: C:/VSProjects/landsandboat/ext/luajit/include/
1> [CMake] -- OpenSSLlibcrypto_FOUND: TRUE
1> [CMake] -- OpenSSLlibcrypto_LIBRARY: C:/VSProjects/landsandboat/ext/openssl/lib64/libcrypto.lib
1> [CMake] -- OpenSSLlibcrypto_INCLUDE_DIR: C:/VSProjects/landsandboat/ext/openssl/include/
1> [CMake] -- OpenSSLlibssl_FOUND: TRUE
1> [CMake] -- OpenSSLlibssl_LIBRARY: C:/VSProjects/landsandboat/ext/openssl/lib64/libssl.lib
1> [CMake] -- OpenSSLlibssl_INCLUDE_DIR: C:/VSProjects/landsandboat/ext/openssl/include/
1> [CMake] -- TRACY_ENABLE: OFF
1> [CMake] -- CPM: adding package fmt@10.1.1 (10.1.1)
1> [CMake] -- Version: 10.1.0
1> [CMake] -- Build type: RelWithDebInfo
1> [CMake] -- CPM: adding package spdlog@1.12.0 (v1.12.0)
1> [CMake] -- Build spdlog: 1.12.0
1> [CMake] -- Build type: RelWithDebInfo
1> [CMake] -- CPM: adding package recastnavigation@0 (cd898904b72a300011fbb24d578620bafa08ef2c)
1> [CMake] -- CPM: adding package fast_obj@0 (85778da5fc320b7e52885f8e869edc079695cc79)
1> [CMake] -- CPM: adding package argparse@0 (f901d9edb47d45a287ca44d5bab48540c1fcdcce)
1> [CMake] -- CPM: adding package task_system@0 (241acb039152b646589fcbbcfb4d8d8e5bddc815)
1> [CMake] -- CPM: adding package efsw@0 (341934765471e4074e90bb5205ff4a65c16499c6)
1> [CMake] -- CPM: adding package jthread-lite@0 (5332bbd46dcba5f028a844795cc0931e9f2ffdf4)
1> [CMake] -- Project 'jthread_lite', package 'jthread-lite' version: '0.1.0'
1> [CMake] -- CPM: adding package expected-lite@0 (45a54fac224e5aae5f8e70bb1c2423181ae554da)
1> [CMake] -- Project 'expected_lite', package 'expected-lite' version: '0.6.3'
1> [CMake] -- CPM: adding package cpp-httplib@0.15.3 (v0.15.3)
1> [CMake] -- CPM: adding package json@0 (254395e5f7731b5595e7c11ac4b929c923582114)
1> [CMake] -- Using the multi-header code from C:/VSProjects/landsandboat/build/x64-Release/_deps/json-src/include/
1> [CMake] -- CPM: adding package pcg-cpp@0 (428802d1a5634f96bcd0705fab379ff0113bcf13)
1> [CMake] -- CPM: adding package asio@1.28.0 (asio-1-28-0)
1> [CMake] -- Set _WIN32_WINNET=0x0A00
1> [CMake] -- CPM: adding package bcrypt@0 (fb50b847ae760f16ab84a367452027b246df13e1)
1> [CMake] -- ENABLE_CLANG_TIDY: OFF
1> [CMake] -- ENABLE_CLANG_TIDY_AUTO_FIX: OFF
1> [CMake] -- Configuring src/common/version.cpp
1> [CMake] -- Setting output directory for xi_connect to C:/VSProjects/landsandboat
1> [CMake] -- Setting output directory for xi_map to C:/VSProjects/landsandboat
1> [CMake] -- Setting output directory for xi_search to C:/VSProjects/landsandboat
1> [CMake] -- Setting output directory for xi_world to C:/VSProjects/landsandboat
1> [CMake] -- Configuring done (25.1s)
1> [CMake] -- Generating done (1.4s)
1> [CMake] -- Build files have been written to: C:/VSProjects/landsandboat/build/x64-Release
1> Extracted CMake variables.
1> Extracted source files and headers.
1> Extracted code model.
1> Extracted toolchain configurations.
1> Extracted includes paths.
1> CMake generation finished.
whasf commented 2 months ago

Build log

>------ Rebuild All started: Project: landsandboat, Configuration: x64-Release ------
  [1/1] Cleaning all built files...
  Cleaning... 118 files.

  [1/494] Building C object ext\CMakeFiles\bcrypt.dir\__\_deps\bcrypt-src\src\crypt_blowfish.c.obj
  [2/494] Building C object ext\CMakeFiles\bcrypt.dir\__\_deps\bcrypt-src\src\crypt_gensalt.c.obj
  [3/494] Building C object ext\CMakeFiles\bcrypt.dir\__\_deps\bcrypt-src\src\wrapper.c.obj
  [4/494] Building CXX object _deps\recastnavigation-build\DebugUtils\CMakeFiles\DebugUtils.dir\Source\RecastDebugDraw.cpp.obj
  [5/494] Building CXX object _deps\recastnavigation-build\Detour\CMakeFiles\Detour.dir\Source\DetourAssert.cpp.obj
  [6/494] Building CXX object _deps\recastnavigation-build\DebugUtils\CMakeFiles\DebugUtils.dir\Source\DebugDraw.cpp.obj
  [7/494] Building CXX object _deps\recastnavigation-build\DebugUtils\CMakeFiles\DebugUtils.dir\Source\DetourDebugDraw.cpp.obj
  [8/494] Building CXX object _deps\recastnavigation-build\Detour\CMakeFiles\Detour.dir\Source\DetourAlloc.cpp.obj
  [9/494] Building CXX object _deps\recastnavigation-build\DebugUtils\CMakeFiles\DebugUtils.dir\Source\RecastDump.cpp.obj
  [10/494] Building CXX object _deps\recastnavigation-build\Detour\CMakeFiles\Detour.dir\Source\DetourCommon.cpp.obj
  [11/494] Building CXX object _deps\recastnavigation-build\Detour\CMakeFiles\Detour.dir\Source\DetourNavMeshBuilder.cpp.obj
  [12/494] Building CXX object _deps\recastnavigation-build\Detour\CMakeFiles\Detour.dir\Source\DetourNode.cpp.obj
  [13/494] Building CXX object _deps\recastnavigation-build\Detour\CMakeFiles\Detour.dir\Source\DetourNavMeshQuery.cpp.obj
  [14/494] Building CXX object _deps\recastnavigation-build\Detour\CMakeFiles\Detour.dir\Source\DetourNavMesh.cpp.obj
  [15/494] Building CXX object _deps\recastnavigation-build\DetourCrowd\CMakeFiles\DetourCrowd.dir\Source\DetourLocalBoundary.cpp.obj
  [16/494] Building C object ext\CMakeFiles\bcrypt.dir\__\_deps\bcrypt-src\src\bcrypt.c.obj
C:\VSProjects\landsandboat\build\x64-Release\_deps\bcrypt-src\include\bcrypt\bcrypt.h(17): warning C4005: 'BCRYPT_HASHSIZE': macro redefinition
  C:\VSProjects\landsandboat\build\x64-Release\_deps\bcrypt-src\src\bcrypt.c(32): note: see previous definition of 'BCRYPT_HASHSIZE'
C:\VSProjects\landsandboat\build\x64-Release\_deps\bcrypt-src\src\bcrypt.c(158): warning C4047: '=': 'char *' differs in levels of indirection from 'int'
C:\VSProjects\landsandboat\build\x64-Release\_deps\bcrypt-src\src\bcrypt.c(166): warning C4047: '=': 'char *' differs in levels of indirection from 'int'
  [17/494] Building CXX object _deps\recastnavigation-build\DetourCrowd\CMakeFiles\DetourCrowd.dir\Source\DetourPathQueue.cpp.obj
  [18/494] Building CXX object _deps\recastnavigation-build\DetourCrowd\CMakeFiles\DetourCrowd.dir\Source\DetourCrowd.cpp.obj
  [19/494] Building CXX object _deps\recastnavigation-build\DetourCrowd\CMakeFiles\DetourCrowd.dir\Source\DetourPathCorridor.cpp.obj
  [20/494] Building CXX object _deps\recastnavigation-build\DetourCrowd\CMakeFiles\DetourCrowd.dir\Source\DetourObstacleAvoidance.cpp.obj
  [21/494] Linking CXX static library _deps\recastnavigation-build\Detour\Detour.lib
  [22/494] Linking C static library ext\bcrypt.lib
  [23/494] Building CXX object _deps\recastnavigation-build\DetourCrowd\CMakeFiles\DetourCrowd.dir\Source\DetourProximityGrid.cpp.obj
  [24/494] Building CXX object _deps\recastnavigation-build\Recast\CMakeFiles\Recast.dir\Source\RecastAssert.cpp.obj
  [25/494] Building CXX object _deps\recastnavigation-build\DetourTileCache\CMakeFiles\DetourTileCache.dir\Source\DetourTileCacheBuilder.cpp.obj
  [26/494] Building CXX object _deps\recastnavigation-build\DetourTileCache\CMakeFiles\DetourTileCache.dir\Source\DetourTileCache.cpp.obj
  [27/494] Building CXX object _deps\recastnavigation-build\Recast\CMakeFiles\Recast.dir\Source\Recast.cpp.obj
  [28/494] Building CXX object _deps\recastnavigation-build\Recast\CMakeFiles\Recast.dir\Source\RecastArea.cpp.obj
  [29/494] Building CXX object _deps\recastnavigation-build\Recast\CMakeFiles\Recast.dir\Source\RecastAlloc.cpp.obj
  [30/494] Linking CXX static library _deps\recastnavigation-build\DetourCrowd\DetourCrowd.lib
  [31/494] Building CXX object _deps\recastnavigation-build\Recast\CMakeFiles\Recast.dir\Source\RecastFilter.cpp.obj
  [32/494] Building CXX object _deps\recastnavigation-build\Recast\CMakeFiles\Recast.dir\Source\RecastLayers.cpp.obj
  [33/494] Building CXX object _deps\recastnavigation-build\Recast\CMakeFiles\Recast.dir\Source\RecastContour.cpp.obj
  [34/494] Building CXX object _deps\recastnavigation-build\Recast\CMakeFiles\Recast.dir\Source\RecastRasterization.cpp.obj
  [35/494] Building CXX object _deps\recastnavigation-build\Recast\CMakeFiles\Recast.dir\Source\RecastMesh.cpp.obj
  [36/494] Building CXX object _deps\recastnavigation-build\Recast\CMakeFiles\Recast.dir\Source\RecastMeshDetail.cpp.obj
  [37/494] Building CXX object _deps\recastnavigation-build\Recast\CMakeFiles\Recast.dir\Source\RecastRegion.cpp.obj
  [38/494] Building C object _deps\fast_obj-build\CMakeFiles\fast_obj_lib.dir\fast_obj.c.obj
  [39/494] Linking CXX static library _deps\recastnavigation-build\Recast\Recast.lib
  [40/494] Linking C static library _deps\fast_obj-build\fast_obj_lib.lib
  [41/494] Linking CXX static library _deps\recastnavigation-build\DetourTileCache\DetourTileCache.lib
  [42/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw.dir\src\efsw\DirectorySnapshotDiff.cpp.obj
  [43/494] Building CXX object _deps\fmt-build\CMakeFiles\fmt.dir\src\os.cc.obj
  [44/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw.dir\src\efsw\DirectorySnapshot.cpp.obj
  [45/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw.dir\src\efsw\DirWatcherGeneric.cpp.obj
  [46/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw.dir\src\efsw\FileInfo.cpp.obj
  [47/494] Linking CXX static library _deps\recastnavigation-build\DebugUtils\DebugUtils.lib
  [48/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw.dir\src\efsw\Debug.cpp.obj
  [49/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw.dir\src\efsw\FileWatcherCWrapper.cpp.obj
  [50/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw.dir\src\efsw\FileWatcherGeneric.cpp.obj
  [51/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw.dir\src\efsw\FileSystem.cpp.obj
  [52/494] Building CXX object _deps\fmt-build\CMakeFiles\fmt.dir\src\format.cc.obj
  [53/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw.dir\src\efsw\Log.cpp.obj
C:\VSProjects\landsandboat\build\x64-Release\_deps\efsw-src\src\efsw\Log.cpp(45): warning C4834: discarding return value of function with [[nodiscard]] attribute
  [54/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw.dir\src\efsw\FileWatcher.cpp.obj
  [55/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw.dir\src\efsw\Watcher.cpp.obj
  [56/494] Linking CXX static library _deps\fmt-build\fmt.lib
  [57/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw.dir\src\efsw\FileWatcherImpl.cpp.obj
  [58/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw.dir\src\efsw\Mutex.cpp.obj
  [59/494] Building CXX object _deps\spdlog-build\CMakeFiles\spdlog.dir\cmake_pch.cxx.obj
  [60/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw.dir\src\efsw\String.cpp.obj
  [61/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw.dir\src\efsw\WatcherGeneric.cpp.obj
  [62/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw.dir\src\efsw\platform\win\MutexImpl.cpp.obj
  [63/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw.dir\src\efsw\Thread.cpp.obj
  [64/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw.dir\src\efsw\System.cpp.obj
  [65/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw.dir\src\efsw\platform\win\FileSystemImpl.cpp.obj
  [66/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw.dir\src\efsw\platform\win\SystemImpl.cpp.obj
  [67/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw.dir\src\efsw\platform\win\ThreadImpl.cpp.obj
  [68/494] Building CXX object _deps\spdlog-build\CMakeFiles\spdlog.dir\src\async.cpp.obj
  [69/494] Building CXX object _deps\spdlog-build\CMakeFiles\spdlog.dir\src\cfg.cpp.obj
  [70/494] Building CXX object _deps\spdlog-build\CMakeFiles\spdlog.dir\src\file_sinks.cpp.obj
  [71/494] Building CXX object _deps\spdlog-build\CMakeFiles\spdlog.dir\src\color_sinks.cpp.obj
  [72/494] Building CXX object _deps\spdlog-build\CMakeFiles\spdlog.dir\src\stdout_sinks.cpp.obj
  [73/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw-static.dir\src\efsw\DirectorySnapshotDiff.cpp.obj
  [74/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw-static.dir\src\efsw\DirectorySnapshot.cpp.obj
  [75/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw-static.dir\src\efsw\DirWatcherGeneric.cpp.obj
  [76/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw-static.dir\src\efsw\Debug.cpp.obj
  [77/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw-static.dir\src\efsw\FileInfo.cpp.obj
  [78/494] Building CXX object _deps\spdlog-build\CMakeFiles\spdlog.dir\src\spdlog.cpp.obj
  [79/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw-static.dir\src\efsw\FileWatcherCWrapper.cpp.obj
  [80/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw.dir\src\efsw\WatcherWin32.cpp.obj
  [81/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw.dir\src\efsw\FileWatcherWin32.cpp.obj
  [82/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw-static.dir\src\efsw\FileSystem.cpp.obj
  [83/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw-static.dir\src\efsw\FileWatcher.cpp.obj
  [84/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw-static.dir\src\efsw\Log.cpp.obj
C:\VSProjects\landsandboat\build\x64-Release\_deps\efsw-src\src\efsw\Log.cpp(45): warning C4834: discarding return value of function with [[nodiscard]] attribute
  [85/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw-static.dir\src\efsw\FileWatcherGeneric.cpp.obj
  [86/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw-static.dir\src\efsw\FileWatcherImpl.cpp.obj
  [87/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw-static.dir\src\efsw\Watcher.cpp.obj
  [88/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw-static.dir\src\efsw\Mutex.cpp.obj
  [89/494] Linking CXX static library _deps\spdlog-build\spdlog.lib
  [90/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw-static.dir\src\efsw\WatcherGeneric.cpp.obj
  [91/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw-static.dir\src\efsw\String.cpp.obj
  [92/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw-static.dir\src\efsw\System.cpp.obj
  [93/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw-static.dir\src\efsw\platform\win\MutexImpl.cpp.obj
  [94/494] Building C object ext\wepoll\CMakeFiles\wepoll.dir\wepoll.c.obj
  [95/494] Linking CXX static library _deps\efsw-build\efsw.lib
  [96/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw-static.dir\src\efsw\Thread.cpp.obj
  [97/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw-static.dir\src\efsw\platform\win\ThreadImpl.cpp.obj
  [98/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw-static.dir\src\efsw\platform\win\FileSystemImpl.cpp.obj
  [99/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw-static.dir\src\efsw\platform\win\SystemImpl.cpp.obj
  [100/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw-static.dir\src\efsw\FileWatcherWin32.cpp.obj
  [101/494] Linking C static library ext\wepoll\wepoll.lib
  [102/494] Building CXX object _deps\efsw-build\CMakeFiles\efsw-static.dir\src\efsw\WatcherWin32.cpp.obj
  [103/494] Building CXX object src\login\CMakeFiles\xi_connect.dir\__\common\debug_windows.cpp.obj
  [104/494] Building CXX object src\login\CMakeFiles\xi_connect.dir\__\common\blowfish.cpp.obj
  [105/494] Building CXX object src\login\CMakeFiles\xi_connect.dir\__\common\async.cpp.obj
  [106/494] Building CXX object src\login\CMakeFiles\xi_connect.dir\__\common\database.cpp.obj
  [107/494] Building CXX object src\login\CMakeFiles\xi_connect.dir\__\common\filewatcher.cpp.obj
  [108/494] Building CXX object src\login\CMakeFiles\xi_connect.dir\__\common\logging.cpp.obj
  [109/494] Building CXX object src\login\CMakeFiles\xi_connect.dir\__\common\md52.cpp.obj
  [110/494] Building CXX object src\login\CMakeFiles\xi_connect.dir\__\common\lua.cpp.obj
  [111/494] Building CXX object src\login\CMakeFiles\xi_connect.dir\__\common\console_service.cpp.obj
  [112/494] Linking CXX static library _deps\efsw-build\efsw-static.lib
  [113/494] Building CXX object src\login\CMakeFiles\xi_connect.dir\__\common\application.cpp.obj
  [114/494] Building CXX object src\login\CMakeFiles\xi_connect.dir\__\common\timer.cpp.obj
  FAILED: src/login/CMakeFiles/xi_connect.dir/__/common/timer.cpp.obj 
  C:\PROGRA~1\MICROS~2\2022\COMMUN~1\VC\Tools\MSVC\1440~1.338\bin\Hostx64\x64\cl.exe  /nologo /TP -DASIO_NO_DEPRECATED -DASIO_STANDALONE -DSOL_ALL_SAFETIES_ON=1 -DSOL_DEFAULT_PASS_ON_ERROR=1 -DSOL_NO_CHECK_NUMBER_PRECISION=1 -DSOL_PRINT_ERRORS=0 -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -D_WIN32_WINNT=0x0A00 -IC:\VSProjects\landsandboat -IC:\VSProjects\landsandboat\src -IC:\VSProjects\landsandboat\src\login -IC:\VSProjects\landsandboat\build\x64-Release\_deps\fmt-src\include -IC:\VSProjects\landsandboat\build\x64-Release\_deps\spdlog-src\include -IC:\VSProjects\landsandboat\build\x64-Release\_deps\recastnavigation-src\Recast\Include -IC:\VSProjects\landsandboat\build\x64-Release\_deps\recastnavigation-src\Detour\Include -IC:\VSProjects\landsandboat\build\x64-Release\_deps\fast_obj-src -IC:\VSProjects\landsandboat\build\x64-Release\_deps\argparse-src\include -IC:\VSProjects\landsandboat\build\x64-Release\_deps\efsw-src\include -IC:\VSProjects\landsandboat\build\x64-Release\_deps\efsw-src\src -IC:\VSProjects\landsandboat\build\x64-Release\_deps\jthread-lite-src\include -IC:\VSProjects\landsandboat\build\x64-Release\_deps\expected-lite-src\include -IC:\VSProjects\landsandboat\build\x64-Release\_deps\json-src\include -external:IC:\VSProjects\landsandboat\ext\zmq\include\zmq -external:IC:\VSProjects\landsandboat\ext\zmq\include\zmq\.. -external:IC:\VSProjects\landsandboat\ext\luajit\include -external:IC:\VSProjects\landsandboat\ext\luajit\include\.. -external:IC:\VSProjects\landsandboat\ext\openssl\include -external:IC:\VSProjects\landsandboat\ext\openssl\include\.. -external:IC:\VSProjects\landsandboat\ext\concurrentqueue\concurrentqueue -external:IC:\VSProjects\landsandboat\ext\mariadb\include -external:IC:\VSProjects\landsandboat\ext\mariadbcpp\include -external:IC:\VSProjects\landsandboat\ext\sol\include -external:IC:\VSProjects\landsandboat\build\x64-Release\_deps\task_system-src\include\task_system -external:IC:\VSProjects\landsandboat\build\x64-Release\_deps\cpp-httplib-src -external:IC:\VSProjects\landsandboat\build\x64-Release\_deps\pcg-cpp-src\include -external:IC:\VSProjects\landsandboat\build\x64-Release\_deps\asio-src\asio\include -external:IC:\VSProjects\landsandboat\build\x64-Release\_deps\bcrypt-src\include -external:IC:\VSProjects\landsandboat\ext\wepoll -external:W0 /EHsc -D_CONSOLE -D_MBCS -DNOMINMAX -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE /Oy- /MP /bigobj /utf-8 /Oi /GL /Gy /TP -std:c++20 -MD /GL /fp:fast /WX /W4 /wd4100 /wd4127 /wd4201 /wd4242 /wd4244 /wd4245 /wd4456 /wd4457 /wd4458 /wd4459 /wd5272 /wd4554 /w14254 /w14263 /w14265 /w14287 /we4289 /w14296 /w14311 /w14545 /w14546 /w14547 /w14549 /w14555 /w14619 /w14640 /w14905 /w14906 /w14928 /permissive- /showIncludes /Fosrc\login\CMakeFiles\xi_connect.dir\__\common\timer.cpp.obj /Fdsrc\login\CMakeFiles\xi_connect.dir\ /FS -c C:\VSProjects\landsandboat\src\common\timer.cpp
C:\VSProjects\landsandboat\src\common\timer.cpp(16): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
  [115/494] Building CXX object src\login\CMakeFiles\xi_connect.dir\__\common\taskmgr.cpp.obj
  [116/494] Building CXX object src\login\CMakeFiles\xi_connect.dir\__\common\version.cpp.obj
  [117/494] Building CXX object src\login\CMakeFiles\xi_connect.dir\__\common\vana_time.cpp.obj
  FAILED: src/login/CMakeFiles/xi_connect.dir/__/common/vana_time.cpp.obj 
  C:\PROGRA~1\MICROS~2\2022\COMMUN~1\VC\Tools\MSVC\1440~1.338\bin\Hostx64\x64\cl.exe  /nologo /TP -DASIO_NO_DEPRECATED -DASIO_STANDALONE -DSOL_ALL_SAFETIES_ON=1 -DSOL_DEFAULT_PASS_ON_ERROR=1 -DSOL_NO_CHECK_NUMBER_PRECISION=1 -DSOL_PRINT_ERRORS=0 -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -D_WIN32_WINNT=0x0A00 -IC:\VSProjects\landsandboat -IC:\VSProjects\landsandboat\src -IC:\VSProjects\landsandboat\src\login -IC:\VSProjects\landsandboat\build\x64-Release\_deps\fmt-src\include -IC:\VSProjects\landsandboat\build\x64-Release\_deps\spdlog-src\include -IC:\VSProjects\landsandboat\build\x64-Release\_deps\recastnavigation-src\Recast\Include -IC:\VSProjects\landsandboat\build\x64-Release\_deps\recastnavigation-src\Detour\Include -IC:\VSProjects\landsandboat\build\x64-Release\_deps\fast_obj-src -IC:\VSProjects\landsandboat\build\x64-Release\_deps\argparse-src\include -IC:\VSProjects\landsandboat\build\x64-Release\_deps\efsw-src\include -IC:\VSProjects\landsandboat\build\x64-Release\_deps\efsw-src\src -IC:\VSProjects\landsandboat\build\x64-Release\_deps\jthread-lite-src\include -IC:\VSProjects\landsandboat\build\x64-Release\_deps\expected-lite-src\include -IC:\VSProjects\landsandboat\build\x64-Release\_deps\json-src\include -external:IC:\VSProjects\landsandboat\ext\zmq\include\zmq -external:IC:\VSProjects\landsandboat\ext\zmq\include\zmq\.. -external:IC:\VSProjects\landsandboat\ext\luajit\include -external:IC:\VSProjects\landsandboat\ext\luajit\include\.. -external:IC:\VSProjects\landsandboat\ext\openssl\include -external:IC:\VSProjects\landsandboat\ext\openssl\include\.. -external:IC:\VSProjects\landsandboat\ext\concurrentqueue\concurrentqueue -external:IC:\VSProjects\landsandboat\ext\mariadb\include -external:IC:\VSProjects\landsandboat\ext\mariadbcpp\include -external:IC:\VSProjects\landsandboat\ext\sol\include -external:IC:\VSProjects\landsandboat\build\x64-Release\_deps\task_system-src\include\task_system -external:IC:\VSProjects\landsandboat\build\x64-Release\_deps\cpp-httplib-src -external:IC:\VSProjects\landsandboat\build\x64-Release\_deps\pcg-cpp-src\include -external:IC:\VSProjects\landsandboat\build\x64-Release\_deps\asio-src\asio\include -external:IC:\VSProjects\landsandboat\build\x64-Release\_deps\bcrypt-src\include -external:IC:\VSProjects\landsandboat\ext\wepoll -external:W0 /EHsc -D_CONSOLE -D_MBCS -DNOMINMAX -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE /Oy- /MP /bigobj /utf-8 /Oi /GL /Gy /TP -std:c++20 -MD /GL /fp:fast /WX /W4 /wd4100 /wd4127 /wd4201 /wd4242 /wd4244 /wd4245 /wd4456 /wd4457 /wd4458 /wd4459 /wd5272 /wd4554 /w14254 /w14263 /w14265 /w14287 /we4289 /w14296 /w14311 /w14545 /w14546 /w14547 /w14549 /w14555 /w14619 /w14640 /w14905 /w14906 /w14928 /permissive- /showIncludes /Fosrc\login\CMakeFiles\xi_connect.dir\__\common\vana_time.cpp.obj /Fdsrc\login\CMakeFiles\xi_connect.dir\ /FS -c C:\VSProjects\landsandboat\src\common\vana_time.cpp
C:\VSProjects\landsandboat\src\common\vana_time.cpp(194): error C3861: 'timegm': identifier not found
  [118/494] Building CXX object src\login\CMakeFiles\xi_connect.dir\__\common\sql.cpp.obj
  [119/494] Building CXX object src\login\CMakeFiles\xi_connect.dir\__\common\utils.cpp.obj
  [120/494] Building CXX object src\login\CMakeFiles\xi_connect.dir\__\common\watchdog.cpp.obj
  [121/494] Building CXX object src\login\CMakeFiles\xi_connect.dir\__\common\settings.cpp.obj
  [122/494] Building CXX object src\login\CMakeFiles\xi_connect.dir\__\common\zlib.cpp.obj
  [123/494] Building CXX object src\login\CMakeFiles\xi_connect.dir\__\common\WheatyExceptionReport.cpp.obj
  ninja: build stopped: subcommand failed.

Rebuild All failed.
WinterSolstice8 commented 2 months ago

Interesting. There's no /DWIN32 or /D_WINDOWS in your cmake commandline for cl.exe. These are also missing from cmake

image

https://cmake.org/cmake/help/latest/variable/WIN32.html cmake implies it should always be set if it detects windows.. hmm..

whasf commented 2 months ago

I didn't modify anything related to building the executables

WinterSolstice8 commented 2 months ago

what's the output of winver ? Looking for the build of windows server to try to replicate

whasf commented 2 months ago

I cloned a new copy and it compiled fine. This case can be closed. Thank you for the help!