Hi Gianfranco, Benjamin,

On Thu, Nov 24, 2022 at 9:21 AM Gianfranco Costamagna
<locutusofb...@debian.org> wrote:
> ifneq (,$(filter $(DEB_HOST_ARCH), armel mips mipsel powerpc))
>    export DEB_LDFLAGS_MAINT_APPEND = -Wl,--no-as-needed -latomic 
> -Wl,--as-needed
> endif
>
> I didn't check but maybe adding some port architectures to this list is 
> sufficient to fix this issue.
 I see that grpc 1.30.2 needs to link with atomic on riscv64. Please
note, soon I will ask for the transition of grpc to the 1.51.0
version. It will _not_ build on this architecture. Reason is, abseil
which is a build dependency fails to build on it. Seems the build gets
confused and thinks riscv64 is an Intel/AMD clone. Failing snippet
from absl/debugging/symbolize_test.cc:
#if defined(__i386__)
 __asm__ __volatile__ [...]
#elif defined(__x86_64__)
 __asm__ __volatile__ [...] <-- failing here
#endif

If you have time, please look into this. Sure, grpc 1.51.0 may still
need to link with atomic, but first we need to get abseil work on
riscv64.

Regards,
Laszlo/GCS

Reply via email to