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

atomic X requires runtime support ... #28

Open
mdav2 opened this issue Jun 4, 2020 · 2 comments
Open

atomic X requires runtime support ... #28

mdav2 opened this issue Jun 4, 2020 · 2 comments

Comments

@mdav2
Copy link
Contributor

mdav2 commented Jun 4, 2020

I am trying to cross compile for macOS target, and I receive the following error:

/opt/x86_64-apple-darwin14/x86_64-apple-darwin14/sys-root/usr/include/c++/v1/atomic:926:17: error: 
      atomic load requires runtime support that is not available for this
      target
        {return __c11_atomic_load(&__a_, __m);}
                ^
src/internal/1m/reduce.cxx:47:31: note: in instantiation of member function
      'std::__1::__atomic_base<tblis::atomic_reducer_helper<std::__1::complex<double>
      >, false>::load' requested here
        result = local_result.load().first;
                              ^
2 errors generated.

However, when I compile natively on macOS El Capitan, everything works fine.

Does anyone have suggestions for resolving this issue? Cross posted to BinaryBuilder issues, which is the cross compilation environment.

@devinamatthews
Copy link
Owner

I had no idea it was possible to cross-compile for macOS... the atomic functions come from libatomic on linux and libSystem on macOS (or are builtins perhaps?), so maybe that is the issue.

@mdav2
Copy link
Contributor Author

mdav2 commented Jun 4, 2020

Okay, that makes sense. I'll do some more digging.

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

2 participants