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

Compile bug: undefined reference to std::filesystem #10978

Open
Clauszy opened this issue Dec 26, 2024 · 0 comments
Open

Compile bug: undefined reference to std::filesystem #10978

Clauszy opened this issue Dec 26, 2024 · 0 comments

Comments

@Clauszy
Copy link

Clauszy commented Dec 26, 2024

Git commit

9ba399d

Operating systems

Linux

GGML backends

CPU

Problem description & steps to reproduce

When compiling with gcc8 in Linux, a linking error occurred.
undefined reference to std::filesystem

First Bad Commit

No response

Relevant log output

/usr/bin/ld: ../../ggml/src/libggml.so: undefined reference to `vtable for std::filesystem::__cxx11::filesystem_error'
/usr/bin/ld: ../../ggml/src/libggml.so: undefined reference to `std::filesystem::__cxx11::directory_iterator::operator*() const'
/usr/bin/ld: ../../ggml/src/libggml.so: undefined reference to `typeinfo for std::filesystem::__cxx11::filesystem_error'
/usr/bin/ld: ../../ggml/src/libggml.so: undefined reference to `std::filesystem::__cxx11::path::_M_find_extension() const'
/usr/bin/ld: ../../ggml/src/libggml.so: undefined reference to `std::filesystem::__cxx11::filesystem_error::~filesystem_error()'
/usr/bin/ld: ../../ggml/src/libggml.so: undefined reference to `std::filesystem::status(std::filesystem::__cxx11::path const&)'
/usr/bin/ld: ../../ggml/src/libggml.so: undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: ../../ggml/src/libggml.so: undefined reference to `std::filesystem::__cxx11::directory_iterator::operator++()'
/usr/bin/ld: ../../ggml/src/libggml.so: undefined reference to `std::filesystem::__cxx11::directory_iterator::directory_iterator(std::filesystem::__cxx11::path const&, std::filesystem::directory_options, std::error_code*)'
/usr/bin/ld: ../../ggml/src/libggml.so: undefined reference to `std::filesystem::__cxx11::filesystem_error::_M_gen_what()'
Clauszy added a commit to Clauszy/llama.cpp that referenced this issue Dec 26, 2024
Clauszy added a commit to Clauszy/llama.cpp that referenced this issue Dec 26, 2024
Clauszy added a commit to Clauszy/llama.cpp that referenced this issue Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant