Re: meta-riscv: building curl, "undefined reference to '__atomic_exchange_1'


Khem Raj
 

On Thu, Jul 7, 2022 at 6:14 AM Robert P. J. Day <rpjday@...> wrote:

On Thu, 7 Jul 2022, Robert P. J. Day wrote:


on admittedly unsupported ubuntu 22.04 platform but it's clear this
is a known issue as it's pretty much identical to what one reads here:

https://github.com/advancedtelematic/aktualizr/issues/1427

the explanation being that, "not every atomic operation is currently
supported by GCC on RISC-V."

oddly, building a riscv64 core-image-minimal once upon a time on
fedora worked just fine, so i'm assuming a difference in gcc versions
is what is causing this.

what is the recommended workaround for this?
another data point, matches exactly what i'm referring to:

https://github.com/curl/curl/issues/9055
does backporting

https://github.com/curl/curl/commit/50efb0822aa0e0ab165158dd0a26e65a2290e6d2

to curl help ?


rday


Join yocto@lists.yoctoproject.org to automatically receive all group messages.