-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined reference to `std::filesystem::absolute(std::filesystem::__cxx11::path const&)' #6889
Comments
this is boost problem |
Why would it be an issue with Boost? We dont use boost::filesystem, we use std::filesystem |
This is an issue because of the standard library from your system, its outdated and does not have the C++17 filesystem headers |
update
about last 2 packets i dont sure dont use debian(read like shit) for years |
Thanks @Viste @Knindzagxg installed gcc-10 and that apparently solved the issue for him. I guess we can close this |
Yep the gcc package automatically depends on the standard lib that also includes those. |
Or just just add one line to fix the build on debian instead of installing an entire package which isn't even in debian stable (nor in backports): diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index 7a2997089..2db021ce5 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -62,6 +62,7 @@ target_link_libraries(common
openssl
threads
jemalloc
+ stdc++fs
fmt)
set_target_properties(common Since Honestly, ditch debian and install ArchLinux instead is a more sensible suggestion than to encourage users to break their stable debian system. Maybe the following helps to fix the build system:
and in particular |
* fix(CORE): Find std::filesystem across platforms Closes #6889 * Squeeze blank lines to make check-codestyle happy * Move find_package(Filesystem ...) to deps/stdfs * CMAKE_CXX_STANDARD gets already set in ConfigureBaseTargets.cmake
Current Behaviour
There are some weird issues while recompiling with Dashboard.
It was working fine, until i changed to clang 11.
For some unknown reason, during recompile, it wasn't able to find scripts in filesystems, even tho it's included in Updater.cpp
Except pastebin link bellow, i'm not sure what else to provide.
https://pastebin.com/df2r33ey
Expected Blizzlike Behaviour
Compile / Recompile should work.
Source
No response
Steps to reproduce the problem
Extra Notes
No response
AC rev. hash/commit
AzerothCore revision: 2e8a749+ 2021-07-10 17:18:23 +0200 (master branch)
Operating system
Debian 10 x64
Custom changes or Modules
No modules - Removed them.
Tried with clean build as well.
The text was updated successfully, but these errors were encountered: