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
Build fails without -latomic
on Clang 8.0
#5865
Comments
Is The right thing to do is to make a CheckAtomic function, similar to https://github.com/llvm-mirror/llvm/blob/master/cmake/modules/CheckAtomic.cmake |
No, it's just |
atomic<winsize> requires linking libatomic on some platforms which is annoying. Remove the one use. Fixes fish-shell#5865
This is still an issue as of 8bf9f52, though only on armv7l:
(gold's error messages are much less useful than GNU ld) |
I can confirm that it's not an issue on ARMv8; I spun up an armv8 instance on AWS and it's not an issue there (mainly because I missed the v7 part of your post):
What's your armv7 test platform, @zanchey? |
Linux titan 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/Linux (Raspbian GNU/Linux 10) Probably this is a 32-bit issue. |
The test for this still isn't right - libatomic is not available on RHEL 6/7, but the test fails there. |
Looks like this is finally working in 45633f4 |
master
doesn't compile under Clang 8.0 (Ubuntu 18.04.1 LTS) due to missing__atomic_*
symbols such as__atomic_load
and__atomic_store
, which are provided by the GCC libatomic.The following hack fixes the build:
I'm not sure what the correct way of testing for
-latomic
and using it is with CMake.Build logs:
CMakeError.log
CMakeOutput.log
The text was updated successfully, but these errors were encountered: