You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When linking a Cilksan program that uses functions std::abs and fstat64, the following errors appear:
/usr/bin/ld: CMakeFiles/src-lib.dir/lib/Naive.cpp.o: in function `operator()':
/home/luka/clion/adaptive-hermite-refinement/cpp/lib/Naive.cpp:279: undefined reference to `__csan_cabs'
/usr/bin/ld: _deps/spdlog-build/libspdlog.a(spdlog.cpp.o): in function `spdlog::details::os::filesize(_IO_FILE*)':
/home/luka/clion/adaptive-hermite-refinement/cpp/cmake-build-release-cilksan/_deps/spdlog-src/include/spdlog/details/os-inl.h:229: undefined reference to `__csan_fstat64'
clang-14: error: linker command failed with exit code 1 (use -v to see invocation)
Expected behavior
I expected linking to succeed.
OpenCilk version
Release version: 2.0
Distribution method: .sh archive
System information
OS: WSL 2.0: Ubuntu 22.04
CPU: 11th Gen Intel(R) Core(TM) i9-11900H @ 2.50GHz
Describe the bug
When linking a Cilksan program that uses functions
std::abs
andfstat64
, the following errors appear:Expected behavior
I expected linking to succeed.
OpenCilk version
System information
Steps to reproduce (include relevant output)
cilksan-bug.cpp
-fopencilk -fsanitize=cilk
Other notes
I'll try this on 2.1 tomorrow
The text was updated successfully, but these errors were encountered: