Skip to content
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

main.cpp undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts() #1531

Open
toxmc opened this issue Jul 19, 2024 · 3 comments

Comments

@toxmc
Copy link

toxmc commented Jul 19, 2024

Build Log
What is the build error?

like this “main.cpp:(.text._ZNSt10filesystem7__cxx114path5clearEv[_ZNSt10filesystem7__cxx114path5clearEv]+0x1e): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'”

[  0%] Linking CXX executable darling-coredump
CMakeFiles/darling-coredump.dir/src/coredump/main.cpp.o: In function `std::filesystem::__cxx11::path::path<char [27], std::filesystem::__cxx11::path>(char const (&) [27], std::filesystem::__cxx11::path::format)':
main.cpp:(.text._ZNSt10filesystem7__cxx114pathC2IA27_cS1_EERKT_NS1_6formatE[_ZNSt10filesystem7__cxx114pathC2IA27_cS1_EERKT_NS1_6formatE]+0x5d): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
CMakeFiles/darling-coredump.dir/src/coredump/main.cpp.o: In function `std::filesystem::__cxx11::path::path<char const*, std::filesystem::__cxx11::path>(char const* const&, std::filesystem::__cxx11::path::format)':
main.cpp:(.text._ZNSt10filesystem7__cxx114pathC2IPKcS1_EERKT_NS1_6formatE[_ZNSt10filesystem7__cxx114pathC2IPKcS1_EERKT_NS1_6formatE]+0x63): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
CMakeFiles/darling-coredump.dir/src/coredump/main.cpp.o: In function `std::filesystem::__cxx11::path::operator/=(std::filesystem::__cxx11::path const&)':
main.cpp:(.text._ZNSt10filesystem7__cxx114pathdVERKS1_[_ZNSt10filesystem7__cxx114pathdVERKS1_]+0x45): undefined reference to `std::filesystem::__cxx11::path::has_filename() const'
main.cpp:(.text._ZNSt10filesystem7__cxx114pathdVERKS1_[_ZNSt10filesystem7__cxx114pathdVERKS1_]+0x87): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
CMakeFiles/darling-coredump.dir/src/coredump/main.cpp.o: In function `std::filesystem::__cxx11::path::is_absolute() const':
main.cpp:(.text._ZNKSt10filesystem7__cxx114path11is_absoluteEv[_ZNKSt10filesystem7__cxx114path11is_absoluteEv]+0x11): undefined reference to `std::filesystem::__cxx11::path::has_root_directory() const'
CMakeFiles/darling-coredump.dir/src/coredump/main.cpp.o: In function `std::filesystem::__cxx11::path::clear()':
main.cpp:(.text._ZNSt10filesystem7__cxx114path5clearEv[_ZNSt10filesystem7__cxx114path5clearEv]+0x1e): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/hosttools/CMakeFiles/darling-coredump.dir/build.make:97: src/hosttools/darling-coredump] Error 1
make[1]: *** [CMakeFiles/Makefile2:14161: src/hosttools/CMakeFiles/darling-coredump.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

System Information
What system are you building with?

Software Version
Clang clang version 12.0.1 (Red Hat 12.0.1-4.module_el8.5.0+1025+93159d6c)
CMake cmake version 3.20.2
Linux Kernel Linux 6027a6d4c0b2 5.4.225-1.el7.elrepo.x86_64 #1 SMP Fri Nov 25 11:40:22 EST 2022 x86_64 x86_64 x86_64 GNU/Linux
Darling 203af1f
@CuriousTommy
Copy link
Contributor

Are you using a recent or older distro?

@toxmc
Copy link
Author

toxmc commented Jul 22, 2024

master
image

@CuriousTommy
Copy link
Contributor

What distro are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants