Project

General

Profile

Actions

Bug #3233

closed

LLVM does not ship with stdatomic and libatomic

Added by mneumann over 4 years ago. Updated over 4 years 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).

Actions #1

Updated by mneumann over 4 years ago

  • Status changed from New to Resolved

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

Actions

Also available in: Atom PDF