BeamMP / BeamMP-Server

Server for the multiplayer mod BeamMP for BeamNG.drive
https://beammp.com
GNU Affero General Public License v3.0
131 stars 54 forks source link

[Bug] fatal error: filesystem: No such file or directory #166

Closed Ratchet-master closed 1 year ago

Ratchet-master commented 1 year ago

Fill out general information OS (windows, Linux, ...): Linux - Centos - 3.10.0-1160.53.1.el7.x86_64 BeamMP-Server Version: 3.1.1

Describe the bug unable to build from source

To Reproduce Steps to reproduce the behaviour: follow the steps from README.MD

Expected behaviour Builds without issue

Logs ` /servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory

include

`

Additional context Manually installed boost v1.73 from source

lionkor commented 1 year ago

You need a compiler capable of C++17, such as gcc 8.

Ratchet-master commented 1 year ago

I'm using gcc 8:

cmake3 --version cmake3 version 3.17.5

gcc --version gcc (GCC) 8.3.1 20190311 (Red Hat 8.3.1-3) Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

g++ --version g++ (GCC) 8.3.1 20190311 (Red Hat 8.3.1-3) Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

lionkor commented 1 year ago

Could you please do a fully clean build of the server, and send a log of both cmake and the compiler output?

Ratchet-master commented 1 year ago

Please be aware that I custom-installed the latest cmake version, (3.25.1), and manually installed it and symlink'd it to /bin/cmake325

# cmake325 --version
cmake version 3.25.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).
[root@serverhostname:/servers/beamng/tmp]# git clone https://github.com/BeamMP/BeamMP-Server
Cloning into 'BeamMP-Server'...
remote: Enumerating objects: 7547, done.
remote: Counting objects: 100% (46/46), done.
remote: Compressing objects: 100% (31/31), done.
remote: Total 7547 (delta 19), reused 30 (delta 15), pack-reused 7501
Receiving objects: 100% (7547/7547), 9.41 MiB | 0 bytes/s, done.
Resolving deltas: 100% (5473/5473), done.
[root@serverhostname:/servers/beamng/tmp]# cd BeamMP-Server/
[root@serverhostname:/servers/beamng/tmp/BeamMP-Server]# git checkout tags/v3.1.1
Note: checking out 'tags/v3.1.1'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

HEAD is now at 47e64a7... merge release candidate v3.1.1 (#142)
[root@serverhostname:/servers/beamng/tmp/BeamMP-Server]# cmake325 . -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=/usr/bin/g++ -DCMAKE_C_COMPILER=/usr/bin/gcc
-- You can find build instructions and a list of dependencies in the README at https://github.com/BeamMP/BeamMP-Server
-- The CXX compiler identification is GNU 4.8.5
-- The C compiler identification is GNU 4.8.5
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Git: /bin/git (found version "1.8.3.1")
-- Submodule update
Submodule 'deps/asio' (https://github.com/chriskohlhoff/asio) registered for path 'deps/asio'
Submodule 'deps/commandline' (https://github.com/lionkor/commandline) registered for path 'deps/commandline'
Submodule 'deps/cpp-httplib' (https://github.com/yhirose/cpp-httplib) registered for path 'deps/cpp-httplib'
Submodule 'deps/doctest' (https://github.com/doctest/doctest) registered for path 'deps/doctest'
Submodule 'deps/fmt' (https://github.com/fmtlib/fmt) registered for path 'deps/fmt'
Submodule 'deps/json' (https://github.com/nlohmann/json) registered for path 'deps/json'
Submodule 'deps/libzip' (https://github.com/nih-at/libzip) registered for path 'deps/libzip'
Submodule 'deps/rapidjson' (https://github.com/Tencent/rapidjson) registered for path 'deps/rapidjson'
Submodule 'deps/sentry-native' (https://github.com/getsentry/sentry-native) registered for path 'deps/sentry-native'
Submodule 'deps/sol2' (https://github.com/ThePhD/sol2) registered for path 'deps/sol2'
Submodule 'deps/toml11' (https://github.com/ToruNiina/toml11) registered for path 'deps/toml11'
Cloning into 'deps/asio'...
Submodule path 'deps/asio': checked out '4915cfd8a1653c157a1480162ae5601318553eb8'
Cloning into 'deps/commandline'...
Submodule path 'deps/commandline': checked out '470cf2df4a6c94847b3a22868139095ae51902e6'
Cloning into 'deps/cpp-httplib'...
Submodule path 'deps/cpp-httplib': checked out 'd92c31446687cfa336a6332b1015b4fe289fbdec'
Cloning into 'deps/doctest'...
Submodule path 'deps/doctest': checked out 'b7c21ec5ceeadb4951b00396fc1e4642dd347e5f'
Cloning into 'deps/fmt'...
Submodule path 'deps/fmt': checked out 'c4ee726532178e556d923372f29163bd206d7732'
Cloning into 'deps/json'...
Submodule path 'deps/json': checked out '69d744867f8847c91a126fa25e9a6a3d67b3be41'
Cloning into 'deps/libzip'...
Submodule path 'deps/libzip': checked out '5532f9baa0c44cc5435ad135686a4ea009075b9a'
Cloning into 'deps/rapidjson'...
Submodule path 'deps/rapidjson': checked out '00dbcf2c6e03c47d6c399338b6de060c71356464'
Submodule 'thirdparty/gtest' (https://github.com/google/googletest.git) registered for path 'thirdparty/gtest'
Cloning into 'thirdparty/gtest'...
Submodule path 'deps/rapidjson/thirdparty/gtest': checked out 'ba96d0b1161f540656efdaed035b3c062b60e006'
Cloning into 'deps/sentry-native'...
Submodule path 'deps/sentry-native': checked out '28be51f5e3acb01327b1164206d3145464577670'
Submodule 'external/breakpad' (https://github.com/getsentry/breakpad.git) registered for path 'external/breakpad'
Submodule 'external/crashpad' (https://github.com/getsentry/crashpad.git) registered for path 'external/crashpad'
Submodule 'external/libunwindstack-ndk' (https://github.com/getsentry/libunwindstack-ndk) registered for path 'external/libunwindstack-ndk'
Submodule 'external/third_party/lss' (https://chromium.googlesource.com/linux-syscall-support) registered for path 'external/third_party/lss'
Cloning into 'external/breakpad'...
Submodule path 'deps/sentry-native/external/breakpad': checked out 'e406f0bcaa5139dc9e997e239e964177610bd483'
Cloning into 'external/crashpad'...
Submodule path 'deps/sentry-native/external/crashpad': checked out 'a42e2494531c055c0de429d735beb11a3a662369'
Submodule 'third_party/lss/lss' (https://chromium.googlesource.com/linux-syscall-support) registered for path 'third_party/lss/lss'
Submodule 'third_party/mini_chromium/mini_chromium' (https://chromium.googlesource.com/chromium/mini_chromium) registered for path 'third_party/mini_chromium/mini_chromium'
Submodule 'third_party/zlib/zlib' (https://chromium.googlesource.com/chromium/src/third_party/zlib) registered for path 'third_party/zlib/zlib'
Cloning into 'third_party/lss/lss'...
Submodule path 'deps/sentry-native/external/crashpad/third_party/lss/lss': checked out 'e1e7b0ad8ee99a875b272c8e33e308472e897660'
Cloning into 'third_party/mini_chromium/mini_chromium'...
Submodule path 'deps/sentry-native/external/crashpad/third_party/mini_chromium/mini_chromium': checked out '4332ddb6963750e1106efdcece6d6e2de6dc6430'
Cloning into 'third_party/zlib/zlib'...
Submodule path 'deps/sentry-native/external/crashpad/third_party/zlib/zlib': checked out '13dc246a58e4b72104d35f9b1809af95221ebda7'
Cloning into 'external/libunwindstack-ndk'...
Submodule path 'deps/sentry-native/external/libunwindstack-ndk': checked out '5a3cf38dbaa9603dc0943fa0fb1ad69d52799af0'
Cloning into 'external/third_party/lss'...
Submodule path 'deps/sentry-native/external/third_party/lss': checked out '171a36a8e0d1e456f63d342a09f811f9273a64af'
Cloning into 'deps/sol2'...
Submodule path 'deps/sol2': checked out 'eba86625b707e3c8c99bbfc4624e51f42dc9e561'
Cloning into 'deps/toml11'...
Submodule path 'deps/toml11': checked out 'c7627ff6a1eb6f34fbd98369990a9442e2836c25'
-- Checking for Sentry URL
CMake Warning at CMakeLists.txt:72 (message):
  No sentry URL configured.  Sentry logging is disabled for this build.  This
  is not an error, and if you're building the BeamMP-Server yourself, this is
  expected and can be ignored.

-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/gcc
CMake Warning (dev) at deps/sentry-native/CMakeLists.txt:49 (option):
  Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
  --help-policy CMP0077" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, option is clearing the
  normal variable 'SENTRY_BUILD_SHARED_LIBS'.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- SENTRY_TRANSPORT=curl
-- SENTRY_BACKEND=none
-- SENTRY_LIBRARY_TYPE=STATIC
-- SENTRY_SDK_NAME=
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of long
-- Check size of long - done
-- Found CURL: /usr/lib64/libcurl.so (found version "7.29.0")
-- Adding local source dependencies
-- Module support is disabled.
-- Version: 9.0.0
-- Build type: Release
-- CXX_STANDARD: 17
-- Performing Test has_std_17_flag
-- Performing Test has_std_17_flag - Failed
-- Performing Test has_std_1z_flag
-- Performing Test has_std_1z_flag - Failed
-- Required features: cxx_variadic_templates
-- Found Lua: /usr/lib64/liblua-5.3.so;/usr/lib64/libm.so (found version "5.3.0")
-- Found OpenSSL: /usr/lib64/libcrypto.so (found version "1.0.2k")
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.7")
-- Found Boost: /usr/include (found suitable version "1.73.0", minimum required is "1.70") found components: system
-- Configuring done
-- Generating done
-- Build files have been written to: /servers/beamng/tmp/BeamMP-Server
[root@serverhostname:/servers/beamng/tmp/BeamMP-Server]# make -j
[  1%] Building CXX object deps/commandline/CMakeFiles/commandline.dir/commandline.cpp.o
[  2%] Building CXX object deps/fmt/CMakeFiles/fmt.dir/src/os.cc.o
[  3%] Building CXX object deps/fmt/CMakeFiles/fmt.dir/src/format.cc.o
[  4%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/sentry_alloc.c.o
[  5%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/vendor/mpack.c.o
[  6%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/sentry_backend.c.o
[  8%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/sentry_core.c.o
[  9%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/sentry_database.c.o
[ 10%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/sentry_envelope.c.o
[ 11%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/sentry_info.c.o
[ 12%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/sentry_json.c.o
[ 13%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/sentry_logger.c.o
[ 14%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/sentry_options.c.o
[ 16%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/sentry_os.c.o
[ 17%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/sentry_random.c.o
[ 18%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/sentry_scope.c.o
[ 19%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/sentry_ratelimiter.c.o
[ 20%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/sentry_session.c.o
[ 21%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/sentry_slice.c.o
[ 22%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/sentry_string.c.o
[ 24%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/sentry_sync.c.o
[ 25%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/sentry_transport.c.o
[ 26%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/sentry_utils.c.o
[ 27%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/sentry_uuid.c.o
[ 28%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/sentry_value.c.o
[ 29%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/sentry_tracing.c.o
[ 31%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/path/sentry_path.c.o
[ 32%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/transports/sentry_disk_transport.c.o
[ 33%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/transports/sentry_function_transport.c.o
[ 34%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/unwinder/sentry_unwinder.c.o
[ 35%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/sentry_unix_pageallocator.c.o
[ 36%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/path/sentry_path_unix.c.o
[ 37%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/symbolizer/sentry_symbolizer_unix.c.o
[ 39%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/modulefinder/sentry_modulefinder_linux.c.o
[ 40%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/transports/sentry_transport_curl.c.o
/servers/beamng/tmp/BeamMP-Server/deps/sentry-native/src/path/sentry_path_unix.c: In function ‘sentry__path_remove’:
/servers/beamng/tmp/BeamMP-Server/deps/sentry-native/src/path/sentry_path_unix.c:300:15: warning: the comparison will always evaluate as ‘true’ for the address of ‘status’ will never be NULL [-Waddress]
         if (Y != 0) {                                                          \
               ^
/servers/beamng/tmp/BeamMP-Server/deps/sentry-native/src/path/sentry_path_unix.c:310:9: note: in expansion of macro ‘EINTR_RETRY’
         EINTR_RETRY(unlink(path->path), &status);
         ^
/servers/beamng/tmp/BeamMP-Server/deps/sentry-native/src/path/sentry_path_unix.c:300:15: warning: the comparison will always evaluate as ‘true’ for the address of ‘status’ will never be NULL [-Waddress]
         if (Y != 0) {                                                          \
               ^
/servers/beamng/tmp/BeamMP-Server/deps/sentry-native/src/path/sentry_path_unix.c:315:9: note: in expansion of macro ‘EINTR_RETRY’
         EINTR_RETRY(rmdir(path->path), &status);
         ^
[ 41%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/backends/sentry_backend_none.c.o
[ 42%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/src/unwinder/sentry_unwinder_libbacktrace.c.o
[ 43%] Building C object deps/sentry-native/CMakeFiles/sentry.dir/vendor/stb_sprintf.c.o
In file included from /servers/beamng/tmp/BeamMP-Server/deps/sentry-native/vendor/stb_sprintf.c:2:0:
/servers/beamng/tmp/BeamMP-Server/deps/sentry-native/vendor/stb_sprintf.h: In function ‘stbsp_vsprintfcb’:
/servers/beamng/tmp/BeamMP-Server/deps/sentry-native/vendor/stb_sprintf.h:1077:19: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
                   *(stbsp__uint16 *)s = *(stbsp__uint16 *)&stbsp__digitpair.pair[(n % 100) * 2];
                   ^
/servers/beamng/tmp/BeamMP-Server/deps/sentry-native/vendor/stb_sprintf.h: In function ‘stbsp__real_to_str’:
/servers/beamng/tmp/BeamMP-Server/deps/sentry-native/vendor/stb_sprintf.h:1797:10: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
          *(stbsp__uint16 *)out = *(stbsp__uint16 *)&stbsp__digitpair.pair[(n % 100) * 2];
          ^
/servers/beamng/tmp/BeamMP-Server/deps/sentry-native/src/path/sentry_path_unix.c: At top level:
cc1: warning: unrecognized command line option "-Wno-gnu-include-next" [enabled by default]
[ 44%] Linking CXX static library libcommandline.a
[ 44%] Built target commandline
[ 45%] Building CXX object deps/commandline/CMakeFiles/test.dir/main.cpp.o
/servers/beamng/tmp/BeamMP-Server/deps/commandline/main.cpp:17:83: warning: unused parameter ‘com’ [-Wunused-parameter]
     com.on_autocomplete = [](Commandline& com, std::string stub, int pos) -> std::vector<std::string> {
                                                                                   ^
/servers/beamng/tmp/BeamMP-Server/deps/commandline/main.cpp:17:83: warning: unused parameter ‘pos’ [-Wunused-parameter]
/servers/beamng/tmp/BeamMP-Server/deps/commandline/main.cpp:17:83: warning: unused parameter ‘com’ [-Wunused-parameter]
/servers/beamng/tmp/BeamMP-Server/deps/commandline/main.cpp:17:83: warning: unused parameter ‘pos’ [-Wunused-parameter]
[ 47%] Linking CXX executable test
[ 47%] Built target test
/servers/beamng/tmp/BeamMP-Server/deps/sentry-native/vendor/stb_sprintf.c: At top level:
cc1: warning: unrecognized command line option "-Wno-gnu-include-next" [enabled by default]
[ 48%] Linking C static library libsentry.a
[ 48%] Built target sentry
[ 49%] Linking CXX static library libfmt.a
[ 49%] Built target fmt
[ 50%] Building CXX object CMakeFiles/BeamMP-Server.dir/src/main.cpp.o
[ 51%] Building CXX object CMakeFiles/BeamMP-Server.dir/src/TServer.cpp.o
[ 52%] Building CXX object CMakeFiles/BeamMP-Server-tests.dir/src/TConsole.cpp.o
[ 54%] Building CXX object CMakeFiles/BeamMP-Server.dir/src/TConsole.cpp.o
[ 55%] Building CXX object CMakeFiles/BeamMP-Server-tests.dir/test/test_main.cpp.o
[ 56%] Building CXX object CMakeFiles/BeamMP-Server.dir/src/Compat.cpp.o
[ 57%] Building CXX object CMakeFiles/BeamMP-Server-tests.dir/src/TServer.cpp.o
[ 58%] Building CXX object CMakeFiles/BeamMP-Server.dir/src/Common.cpp.o
[ 59%] Building CXX object CMakeFiles/BeamMP-Server-tests.dir/src/VehicleData.cpp.o
[ 63%] Building CXX object CMakeFiles/BeamMP-Server-tests.dir/src/Compat.cpp.o
[ 63%] Building CXX object CMakeFiles/BeamMP-Server-tests.dir/src/Client.cpp.o
[ 64%] Building CXX object CMakeFiles/BeamMP-Server-tests.dir/src/TConfig.cpp.o
[ 64%] Building CXX object CMakeFiles/BeamMP-Server-tests.dir/src/Common.cpp.o
[ 65%] Building CXX object CMakeFiles/BeamMP-Server.dir/src/Client.cpp.o
[ 66%] Building CXX object CMakeFiles/BeamMP-Server-tests.dir/src/TLuaEngine.cpp.o
[ 67%] Building CXX object CMakeFiles/BeamMP-Server.dir/src/VehicleData.cpp.o
[ 68%] Building CXX object CMakeFiles/BeamMP-Server.dir/src/TConfig.cpp.o
[ 70%] Building CXX object CMakeFiles/BeamMP-Server-tests.dir/src/TLuaPlugin.cpp.o
In file included from /servers/beamng/tmp/BeamMP-Server/src/main.cpp:3:0:
/servers/beamng/tmp/BeamMP-Server/include/ArgsParser.h:4:20: fatal error: optional: No such file or directory
 #include <optional>
                    ^
compilation terminated.
[ 71%] Building CXX object CMakeFiles/BeamMP-Server.dir/src/TLuaEngine.cpp.o
In file included from /servers/beamng/tmp/BeamMP-Server/src/TConsole.cpp:2:0:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
[ 72%] Building CXX object CMakeFiles/BeamMP-Server.dir/src/TLuaPlugin.cpp.o
[ 73%] Building CXX object CMakeFiles/BeamMP-Server.dir/src/TResourceManager.cpp.o
[ 74%] Building CXX object CMakeFiles/BeamMP-Server.dir/src/THeartbeatThread.cpp.o
In file included from /servers/beamng/tmp/BeamMP-Server/src/Common.cpp:1:0:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
[ 75%] Building CXX object CMakeFiles/BeamMP-Server.dir/src/Http.cpp.o
In file included from /servers/beamng/tmp/BeamMP-Server/src/TConsole.cpp:2:0:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
In file included from /servers/beamng/tmp/BeamMP-Server/include/TServer.h:4:0,
                 from /servers/beamng/tmp/BeamMP-Server/src/TServer.cpp:1:
/servers/beamng/tmp/BeamMP-Server/include/RWMutex.h:9:24: fatal error: shared_mutex: No such file or directory
 #include <shared_mutex>
                        ^
compilation terminated.
In file included from /servers/beamng/tmp/BeamMP-Server/include/TServer.h:4:0,
                 from /servers/beamng/tmp/BeamMP-Server/src/TServer.cpp:1:
/servers/beamng/tmp/BeamMP-Server/include/RWMutex.h:9:24: fatal error: shared_mutex: No such file or directory
 #include <shared_mutex>
                        ^
compilation terminated.
[ 77%] Building CXX object CMakeFiles/BeamMP-Server.dir/src/TSentry.cpp.o
In file included from /servers/beamng/tmp/BeamMP-Server/src/Client.cpp:1:0:
/servers/beamng/tmp/BeamMP-Server/include/Client.h:5:20: fatal error: optional: No such file or directory
 #include <optional>
                    ^
compilation terminated.
In file included from /servers/beamng/tmp/BeamMP-Server/src/VehicleData.cpp:3:0:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
In file included from /servers/beamng/tmp/BeamMP-Server/src/TConfig.cpp:1:0:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
[ 78%] Building CXX object CMakeFiles/BeamMP-Server-tests.dir/src/TResourceManager.cpp.o
[ 79%] Building CXX object CMakeFiles/BeamMP-Server.dir/src/TPPSMonitor.cpp.o
[ 81%] Building CXX object CMakeFiles/BeamMP-Server-tests.dir/src/THeartbeatThread.cpp.o
[ 81%] Building CXX object CMakeFiles/BeamMP-Server.dir/src/TNetwork.cpp.o
In file included from /servers/beamng/tmp/BeamMP-Server/src/Common.cpp:1:0:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
[ 82%] Building CXX object CMakeFiles/BeamMP-Server-tests.dir/src/Http.cpp.o
[ 83%] Building CXX object CMakeFiles/BeamMP-Server.dir/src/LuaAPI.cpp.o
In file included from /servers/beamng/tmp/BeamMP-Server/src/Client.cpp:1:0:
/servers/beamng/tmp/BeamMP-Server/include/Client.h:5:20: fatal error: optional: No such file or directory
 #include <optional>
                    ^
compilation terminated.
In file included from /servers/beamng/tmp/BeamMP-Server/src/TConfig.cpp:1:0:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
In file included from /servers/beamng/tmp/BeamMP-Server/src/VehicleData.cpp:3:0:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
In file included from /servers/beamng/tmp/BeamMP-Server/test/test_main.cpp:4:0:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
In file included from /servers/beamng/tmp/BeamMP-Server/include/TResourceManager.h:3:0,
                 from /servers/beamng/tmp/BeamMP-Server/src/TResourceManager.cpp:1:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
In file included from /servers/beamng/tmp/BeamMP-Server/include/THeartbeatThread.h:3:0,
                 from /servers/beamng/tmp/BeamMP-Server/src/THeartbeatThread.cpp:1:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
[ 85%] Building CXX object CMakeFiles/BeamMP-Server-tests.dir/src/TSentry.cpp.o
[ 86%] Building CXX object CMakeFiles/BeamMP-Server.dir/src/TScopedTimer.cpp.o
[ 88%] Building CXX object CMakeFiles/BeamMP-Server.dir/src/SignalHandling.cpp.o
[ 88%] Building CXX object CMakeFiles/BeamMP-Server-tests.dir/src/TPPSMonitor.cpp.o
In file included from /servers/beamng/tmp/BeamMP-Server/include/Http.h:3:0,
                 from /servers/beamng/tmp/BeamMP-Server/src/Http.cpp:1:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
In file included from /servers/beamng/tmp/BeamMP-Server/src/TSentry.cpp:2:0:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
In file included from /servers/beamng/tmp/BeamMP-Server/include/TResourceManager.h:3:0,
                 from /servers/beamng/tmp/BeamMP-Server/src/TResourceManager.cpp:1:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
[ 90%] Building CXX object CMakeFiles/BeamMP-Server.dir/src/ArgsParser.cpp.o
[ 89%] Building CXX object CMakeFiles/BeamMP-Server-tests.dir/src/TNetwork.cpp.o
In file included from /servers/beamng/tmp/BeamMP-Server/include/TPPSMonitor.h:3:0,
                 from /servers/beamng/tmp/BeamMP-Server/src/TPPSMonitor.cpp:1:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
[ 91%] Building CXX object CMakeFiles/BeamMP-Server.dir/src/TPluginMonitor.cpp.o
[ 93%] Building CXX object CMakeFiles/BeamMP-Server-tests.dir/src/LuaAPI.cpp.o
In file included from /servers/beamng/tmp/BeamMP-Server/include/Http.h:3:0,
                 from /servers/beamng/tmp/BeamMP-Server/src/Http.cpp:1:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
In file included from /servers/beamng/tmp/BeamMP-Server/src/ArgsParser.cpp:1:0:
/servers/beamng/tmp/BeamMP-Server/include/ArgsParser.h:4:20: fatal error: optional: No such file or directory
 #include <optional>
                    ^
compilation terminated.
In file included from /servers/beamng/tmp/BeamMP-Server/include/THeartbeatThread.h:3:0,
                 from /servers/beamng/tmp/BeamMP-Server/src/THeartbeatThread.cpp:1:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
[ 94%] Building CXX object CMakeFiles/BeamMP-Server-tests.dir/src/TScopedTimer.cpp.o
[ 95%] Building CXX object CMakeFiles/BeamMP-Server-tests.dir/src/SignalHandling.cpp.o
In file included from /servers/beamng/tmp/BeamMP-Server/src/TScopedTimer.cpp:2:0:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
In file included from /servers/beamng/tmp/BeamMP-Server/src/TSentry.cpp:2:0:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
[ 96%] Building CXX object CMakeFiles/BeamMP-Server-tests.dir/src/ArgsParser.cpp.o
make[2]: *** [CMakeFiles/BeamMP-Server.dir/src/main.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /servers/beamng/tmp/BeamMP-Server/include/TPPSMonitor.h:3:0,
                 from /servers/beamng/tmp/BeamMP-Server/src/TPPSMonitor.cpp:1:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
[ 97%] Building CXX object CMakeFiles/BeamMP-Server-tests.dir/src/TPluginMonitor.cpp.o
In file included from /servers/beamng/tmp/BeamMP-Server/src/SignalHandling.cpp:2:0:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
make[2]: *** [CMakeFiles/BeamMP-Server.dir/src/ArgsParser.cpp.o] Error 1
In file included from /servers/beamng/tmp/BeamMP-Server/include/TPluginMonitor.h:3:0,
                 from /servers/beamng/tmp/BeamMP-Server/src/TPluginMonitor.cpp:1:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
In file included from /servers/beamng/tmp/BeamMP-Server/src/ArgsParser.cpp:1:0:
/servers/beamng/tmp/BeamMP-Server/include/ArgsParser.h:4:20: fatal error: optional: No such file or directory
 #include <optional>
                    ^
compilation terminated.
In file included from /servers/beamng/tmp/BeamMP-Server/src/TScopedTimer.cpp:2:0:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
make[2]: *** [CMakeFiles/BeamMP-Server.dir/src/Common.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server.dir/src/TServer.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server-tests.dir/src/TServer.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /servers/beamng/tmp/BeamMP-Server/src/SignalHandling.cpp:2:0:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
make[2]: *** [CMakeFiles/BeamMP-Server.dir/src/Client.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server-tests.dir/src/Client.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server.dir/src/VehicleData.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server.dir/src/TConfig.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server-tests.dir/src/VehicleData.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server-tests.dir/src/ArgsParser.cpp.o] Error 1
In file included from /servers/beamng/tmp/BeamMP-Server/include/TPluginMonitor.h:3:0,
                 from /servers/beamng/tmp/BeamMP-Server/src/TPluginMonitor.cpp:1:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
make[2]: *** [CMakeFiles/BeamMP-Server.dir/src/THeartbeatThread.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server.dir/src/TConsole.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server.dir/src/TResourceManager.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server-tests.dir/src/TConsole.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server-tests.dir/src/Common.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server-tests.dir/src/TConfig.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server.dir/src/TSentry.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server.dir/src/TPPSMonitor.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server-tests.dir/src/Http.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server-tests.dir/src/THeartbeatThread.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server.dir/src/TScopedTimer.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server-tests.dir/src/TResourceManager.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server.dir/src/Http.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server-tests.dir/src/TPPSMonitor.cpp.o] Error 1
make[2]: make[2]: *** [CMakeFiles/BeamMP-Server.dir/src/TPluginMonitor.cpp.o] Error 1*** [CMakeFiles/BeamMP-Server-tests.dir/src/TScopedTimer.cpp.o] Error 1

make[2]: *** [CMakeFiles/BeamMP-Server-tests.dir/src/TSentry.cpp.o] Error 1
In file included from /servers/beamng/tmp/BeamMP-Server/include/TResourceManager.h:3:0,
                 from /servers/beamng/tmp/BeamMP-Server/include/TNetwork.h:5,
                 from /servers/beamng/tmp/BeamMP-Server/include/TLuaEngine.h:3,
                 from /servers/beamng/tmp/BeamMP-Server/include/TLuaPlugin.h:1,
                 from /servers/beamng/tmp/BeamMP-Server/src/TLuaPlugin.cpp:1:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
make[2]: *** [CMakeFiles/BeamMP-Server-tests.dir/src/TPluginMonitor.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server-tests.dir/test/test_main.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server-tests.dir/src/SignalHandling.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server.dir/src/SignalHandling.cpp.o] Error 1
In file included from /servers/beamng/tmp/BeamMP-Server/include/TResourceManager.h:3:0,
                 from /servers/beamng/tmp/BeamMP-Server/include/TNetwork.h:5,
                 from /servers/beamng/tmp/BeamMP-Server/include/TLuaEngine.h:3,
                 from /servers/beamng/tmp/BeamMP-Server/src/TLuaEngine.cpp:1:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
In file included from /servers/beamng/tmp/BeamMP-Server/include/TResourceManager.h:3:0,
                 from /servers/beamng/tmp/BeamMP-Server/include/TNetwork.h:5,
                 from /servers/beamng/tmp/BeamMP-Server/include/TLuaEngine.h:3,
                 from /servers/beamng/tmp/BeamMP-Server/src/TLuaEngine.cpp:1:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
In file included from /servers/beamng/tmp/BeamMP-Server/include/TResourceManager.h:3:0,
                 from /servers/beamng/tmp/BeamMP-Server/include/TNetwork.h:5,
                 from /servers/beamng/tmp/BeamMP-Server/include/TLuaEngine.h:3,
                 from /servers/beamng/tmp/BeamMP-Server/include/TLuaPlugin.h:1,
                 from /servers/beamng/tmp/BeamMP-Server/src/TLuaPlugin.cpp:1:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
In file included from /servers/beamng/tmp/BeamMP-Server/include/TResourceManager.h:3:0,
                 from /servers/beamng/tmp/BeamMP-Server/include/TNetwork.h:5,
                 from /servers/beamng/tmp/BeamMP-Server/src/TNetwork.cpp:1:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
In file included from /servers/beamng/tmp/BeamMP-Server/include/TResourceManager.h:3:0,
                 from /servers/beamng/tmp/BeamMP-Server/include/TNetwork.h:5,
                 from /servers/beamng/tmp/BeamMP-Server/src/TNetwork.cpp:1:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
In file included from /servers/beamng/tmp/BeamMP-Server/include/TResourceManager.h:3:0,
                 from /servers/beamng/tmp/BeamMP-Server/include/TNetwork.h:5,
                 from /servers/beamng/tmp/BeamMP-Server/include/TLuaEngine.h:3,
                 from /servers/beamng/tmp/BeamMP-Server/include/LuaAPI.h:3,
                 from /servers/beamng/tmp/BeamMP-Server/src/LuaAPI.cpp:1:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
In file included from /servers/beamng/tmp/BeamMP-Server/include/TResourceManager.h:3:0,
                 from /servers/beamng/tmp/BeamMP-Server/include/TNetwork.h:5,
                 from /servers/beamng/tmp/BeamMP-Server/include/TLuaEngine.h:3,
                 from /servers/beamng/tmp/BeamMP-Server/include/LuaAPI.h:3,
                 from /servers/beamng/tmp/BeamMP-Server/src/LuaAPI.cpp:1:
/servers/beamng/tmp/BeamMP-Server/include/Common.h:10:22: fatal error: filesystem: No such file or directory
 #include <filesystem>
                      ^
compilation terminated.
make[2]: *** [CMakeFiles/BeamMP-Server-tests.dir/src/TNetwork.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server.dir/src/TLuaEngine.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server-tests.dir/src/TLuaEngine.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server.dir/src/TLuaPlugin.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server.dir/src/TNetwork.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server-tests.dir/src/TLuaPlugin.cpp.o] Error 1
make[2]: *** [CMakeFiles/BeamMP-Server.dir/src/LuaAPI.cpp.o] Error 1
make[1]: *** [CMakeFiles/BeamMP-Server.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/BeamMP-Server-tests.dir/src/LuaAPI.cpp.o] Error 1
make[1]: *** [CMakeFiles/BeamMP-Server-tests.dir/all] Error 2
make: *** [all] Error 2
lionkor commented 1 year ago

It shows The CXX compiler identification is GNU 4.8.5 which means it's using gcc 4.8.5 (ancient). Maybe try finding where the gcc 8 is installed, because it's not /usr/bin/gcc, as far as I can tell :/

For example for me it says:

-- The CXX compiler identification is GNU 12.2.0
-- The C compiler identification is GNU 12.2.0

and

$ gcc --version
gcc (GCC) 12.2.0
...