Skip to content

Undefined reference when using atomics (LLVM-58) #3

@lexxvir

Description

@lexxvir

Hi,

I encountered into issue when try to use Rust compiler's AtomicBool.

Linker error: undefined reference to __sync_lock_test_and_set_1.
Quite same error for AtomicUsize: undefined reference to __sync_lock_test_and_set_4.

It seems that LLVM somehow should replace these symbols by real atomic instructions for xtensa target.

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