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

ggml : fix undefined reference to std::filesystem(#10978) #10979

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Clauszy
Copy link

@Clauszy Clauszy commented Dec 26, 2024

add link library stdc++fs for ggml.

@github-actions github-actions bot added the ggml changes relating to the ggml tensor library for machine learning label Dec 26, 2024
Copy link
Collaborator

@max-krasnyansky max-krasnyansky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an issue with quite old GCC and Clang.
You should probably just upgrade at this point

@@ -225,7 +225,7 @@ add_library(ggml
target_link_libraries(ggml PUBLIC ggml-base)

if (CMAKE_SYSTEM_NAME MATCHES "Linux")
target_link_libraries(ggml PRIVATE dl)
target_link_libraries(ggml PRIVATE dl stdc++fs)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'd need to check for GCC vs Clang or more specifically libstdc++ vs libc++.

Copy link
Author

@Clauszy Clauszy Dec 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check if CMAKE_CXX-COMPILER_ID is GNU

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ggml changes relating to the ggml tensor library for machine learning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants