[Buildroot] [PATCH v5 1/1] package/grpc: bump to version 1.25.0

Peter Korsgaard peter at korsgaard.com
Sun Jan 12 10:50:21 UTC 2020


>>>>> "aduskett" == aduskett  <aduskett at gmail.com> writes:

 > From: Adam Duskett <Aduskett at gmail.com>
 > Other changes:
 >   - Remove upstream patch 0004-Fix-gettid-naming-conflict.patch
 >   - Remove upstream patch 0005-Rename-gettid-functions.patch
 >   - Add a check for BR2_TOOLCHAIN_GCC_AT_LEAST_5 in grpc.mk. If the selected
 >     toolchain is not at least version 5 or higher, set the GRPC_CFLAGS and
 >     GRPC_CXXFLAGS optimizations to -O3. This check prevents the following error:
 >       error: failure memory model cannot be stronger than success memory
 >       model for '__atomic_compare_exchange'

..

 > +# Toolchains older than gcc5 will fail to compile with -0s due to:
 > +# error: failure memory model cannot be stronger than success memory model for
 > +# '__atomic_compare_exchange'
 > +ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_5):$(BR2_OPTIMIZE_S),:y)
 > +GRPC_CFLAGS += -O3
 > +GRPC_CXXFLAGS += -O3
 > +endif

This workaround is also needed for 1.23.0, so I've cherry picked this
hunk to 2019.11.x.

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list