Skip to content

undefined reference to '__csan_llvm_x86_sse2_pause' #21

@wheatman

Description

@wheatman

__csan_llvm_x86_sse2_pause seems to be missing for cilksan
I tried to add the compile flag

-mllvm -cilksan-bc-path=`find ~/opencilkv20/build/bin/clang++ -name "libcilksan.bc"

but that didn't fix it either

Adding the following to the code did work

#ifdef __cilksan__
#ifdef __cplusplus
extern "C" {
#endif
void __csan_default_libhook(uint64_t call_id, uint64_t func_id, unsigned count);
void __csan_llvm_x86_sse2_pause(uint64_t call_id, uint64_t func_id,
                                unsigned count) {
  __csan_default_libhook(call_id, func_id, count);
}
#ifdef __cplusplus
}
#endif
#endif

As requested reporting the missing symbol. Let me know if the source would be helpful

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions