• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

FAILED: src/CMakeFiles/canary_lib.dir/Unity/unity_4_cxx.cxx.o

Stylez

New Member
Joined
Oct 14, 2008
Messages
32
Reaction score
0
Hi,

Does anyone have any idea how to resolve this, compiling Canary and to linux and it gets to the last few /33 and fails here

Building CXX object src/CMakeFiles/canary_lib.dir/Unity/unity_4_cxx.cxx.o
FAILED: src/CMakeFiles/canary_lib.dir/Unity/unity_4_cxx.cxx.o
/usr/bin/c++ -DCURL_STATICLIB -DNDEBUG -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -DUSE_PRECOMPILED_HEADERS -I/home/bc/canary/src -I/home/bc/canary/build/linux-release/vcpkg_installed/x64-linux/include/luajit-2.1 -I/home/bc/canary/build/linux-release/src/protobuf -isystem /home/bc/canary/build/linux-release/vcpkg_installed/x64-linux/include/mysql -isystem /home/bc/canary/build/linux-release/vcpkg_installed/x64-linux/include -march=x86-64 -mtune=generic -mno-avx -mno-sse4 -O2 -g -DNDEBUG -std=gnu++23 -flto=auto -fno-fat-lto-objects -fPIC -Wno-unused-parameter -Wno-sign-compare -Wno-switch -Wno-implicit-fallthrough -Wno-extra -Wno-deprecated-declarations -flto=auto -O3 -march=native -fopenmp -Winvalid-pch -include /home/bc/canary/build/linux-release/src/CMakeFiles/canary_lib.dir/cmake_pch.hxx -MD -MT src/CMakeFiles/canary_lib.dir/Unity/unity_4_cxx.cxx.o -MF src/CMakeFiles/canary_lib.dir/Unity/unity_4_cxx.cxx.o.d -o src/CMakeFiles/canary_lib.dir/Unity/unity_4_cxx.cxx.o -c /home/bc/canary/build/linux-release/src/CMakeFiles/canary_lib.dir/Unity/unity_4_cxx.cxx
In file included from /home/bc/canary/build/linux-release/src/CMakeFiles/canary_lib.dir/Unity/unity_4_cxx.cxx:10:
/home/bc/canary/src/database/database.cpp: In member function ‘void Database::createDatabaseBackup(bool) const’:
/home/bc/canary/src/database/database.cpp:145:89: error: ‘clock_cast’ is not a member of ‘std::chrono’
145 | auto fileTimeSystemClock = std::chrono::clock_cast<std::chrono::system_clock>(fileTime);
| ^~~~~~~~~~
/home/bc/canary/src/database/database.cpp:145:125: error: expected primary-expression before ‘>’ token
145 | auto fileTimeSystemClock = std::chrono::clock_cast<std::chrono::system_clock>(fileTime);
| ^
ninja: build stopped: subcommand failed.
 
Does anyone have any idea how to resolve this, compiling Canary and to linux
What Linux version? What instruction of compilation do you use?

EDIT:
I ran this docker on newest canary (docker build --progress=plain -f docker/Dockerfile.x86 . in main Canary folder):
and it compiled server without error. So instruction for Ubuntu 24.04 from this Dockerfile works.
 
Last edited:
Back
Top