Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doesn't support atomic_store api #25

Open
yarshure opened this issue Jan 9, 2019 · 0 comments
Open

doesn't support atomic_store api #25

yarshure opened this issue Jan 9, 2019 · 0 comments

Comments

@yarshure
Copy link

yarshure commented Jan 9, 2019

`root@freebsd:~ # cat test_atomic.c
#include <stdatomic.h>

struct {
atomic_int a;
} foo;

struct {
atomic_int a;

} attribute((packed)) bar;

int main(void)
{
foo.a = 42;
bar.a = 42;
return 0;
}
root@freebsd:~ # cc test_atomic.c
/usr/bin/ld: error: undefined symbol: __atomic_store

referenced by test_atomic.c
/tmp/test_atomic-c67b0b.o:(main)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
root@freebsd:~ # uname -a
FreeBSD freebsd 12.0-RELEASE FreeBSD 12.0-RELEASE r341666 GENERIC amd64`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant