Project

General

Profile

Bug #3233

LLVM does not ship with stdatomic and libatomic

Added by mneumann 5 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Low
Assignee:
-
Category:
Other
Target version:
-
Start date:
04/16/2020
Due date:
% Done:

0%

Estimated time:

Description

Compilation of

#include <stdatomic.h>
int main(int argc, char **argv) {}

fails when compiled with clang. Works on gcc. Note that LLVM/clang will also
link against -latomic is some cases (-mcx16 ?), despite using opcodes instead of
library calls to libatomic (e.g. __atomic_compare_exchange_16). So, having a libatomic.a
would help too (even an empty one).

History

#1

Updated by mneumann about 1 month ago

  • Status changed from New to Resolved

zrj on IRC recommends to use port `misc/cxx_atomics`.

Also available in: Atom PDF