-
Notifications
You must be signed in to change notification settings - Fork 407
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
Zig warning of "large atomic operation may incur significant performance penalty" on 32-bit arm #610
Comments
Current workaround is to exclude such configurations from the cross-compilation on GH Actions. |
/cc @plajjan |
I think it should be addressed on the zig side (with some low priority as there are not tier-1 targets). |
zig bundles clang as the C compiler, so these errors are from clang / llvm. zig does specify loads of flags to clang, so all the default flags clang has are different when it is used from zig. Have the GC been built on these targets before with clang without these errors? I really don't know much about the details of this so don't have a straight answer. Googling I found RIOT-OS/RIOT#12048 which has a similar error message.
zig sets lots of warning / error flags to avoid various errors, could it be that it is stricter than the defaults of other compilers? Is it correct, like do we actually want to align some atomic op here? Or maybe we need to turn of the warning? |
FYI, there are some tracking issues for real projects using zig
It could perhaps be of interest to put together such a page for issues we find that are hampering the use of zig for bdwgc. It could help garner attention from the zig community... |
Okay, there could be a workaround on bdwgc side (by using libatomic_ops instead of -D GC_BUILTIN_ATOMIC) but let's just leave this issue open. |
…t arm Issue #610 (bdwgc). Just comment out these configurations in zig-cross-compile.yml.
Related to #602 |
Also, related commit 2ccb138 |
Source: master ()
Build: https://github.com/ivmai/bdwgc/actions/runs/7492494323/job/20396121916
Zig version: 0.12.0-dev.2076+8fd15c6ca
Host: Linux/x86_64
How to reproduce:
zig build -Dtarget=armeb-linux-gnueabi -DBUILD_SHARED_LIBS=false -Denable_werror
Targets:
Output:
The text was updated successfully, but these errors were encountered: