https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101996
Alpine User <bqq3z3afgj at bcco4 dot anonbox.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |WORKSFORME Status|UNCONFIRMED |RESOLVED --- Comment #7 from Alpine User <bqq3z3afgj at bcco4 dot anonbox.net> --- Sorry for not updating this. Yes, this is indeed a bug caused by the fact that Alpine's RISC-V GCC links against libatomic by default. See https://gitlab.alpinelinux.org/alpine/aports/-/issues/12948 for the downstream discussion. What seems to help is running the libatomic configure script as `gcc_no_link=yes ./configure`. I think this bug report can be closed in the meantime as this is not an upstream GCC bug.