-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Compilation error: Undefined reference to __atomic_fetch_add_8 #22843
Comments
I'm also facing this issue:
|
seems like you need to add |
I wanna ask which CML should target_link_libraries(tgt PRIVATE atomic) added into ? |
Propably as a public lib in https://github.com/microsoft/vcpkg-tool/blob/f95f306ecdd7f9228aa8ea22ccae53f09e22c630/CMakeLists.txt#L145 so that vcpkg-tool gets it, too. |
Is there a workaround? Editing the file locally doesn't work as the bootstrap overwrites it again. |
* Added template constructor to StringView Compilation on Raspberry Pi OS with gcc 8.3 was failing because the StringView class did not have constructor defined for ZStringView. Addresses microsoft/vcpkg#21142 * Added atomic library to link list Addresses microsoft/vcpkg#22843 Related to microsoft/vcpkg#21142 * Added expression filter for atomic * Corrected filter expression * Detect libatomic * fix it the strega way! * Adjust atomic test code * strega nits Co-authored-by: Robert Schumacher <[email protected]> Co-authored-by: nicole mazzuca <[email protected]> Co-authored-by: nicole mazzuca <[email protected]>
@mineas312, @sandeepmistry, @hifiberry - a fix was committed to the rep on 3/25 which addresses the linker issue. The fix to vcpkg-tool was tested with Raspberry Pi OS 10, gcc 8.3, and a 32-bit board (3 B+). This plus another fix for #21142 has unblocked RPi compilation of vcpkg (as best I can tell). If you are still having issues, might be worth updating this issue with new info. |
This issue has been fixed. |
Describe the bug
Compilation error.
Environment
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Compiles.
Failure logs
I do not know where full error log is located.
There are other errors like this and I think it basically does not link a library related with this functions.
The text was updated successfully, but these errors were encountered: