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

Build failed #956

Open
zixi01chen opened this issue Sep 10, 2024 · 1 comment
Open

Build failed #956

zixi01chen opened this issue Sep 10, 2024 · 1 comment

Comments

@zixi01chen
Copy link

/bin/ld: CMakeFiles/test-backend-ops.dir/test-backend-ops.cpp.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/bin/ld: /usr/lib/x86_64-linux-gnu//libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [tests/CMakeFiles/test-backend-ops.dir/build.make:85: bin/test-backend-ops] Error 1
make[1]: *** [CMakeFiles/Makefile2:233: tests/CMakeFiles/test-backend-ops.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

@mk-zhou
Copy link

mk-zhou commented Oct 28, 2024

Modify line 427 of CMakeLists.txt under the test directory to target_link_libraries(${TEST_TARGET} PRIVATE ggml -lpthread -lm).

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