Topic: Avoiding GRPC bug centos7

Due to https://github.com/grpc/grpc/issues/31772 we need to move back to grpc-1.49.x

I attempted to use the SRPM and build from there, but I ran into some issues because it
required devtools-6, which I couldn't track down for centos7.  I changed the dependency
to devtools-7 and was able to build it, but we are now getting segfaults in phpunit
during shutdown. 

I have now been trying to build it from source, but running into issues where grpc requires
std=c++14, and centos7 gcc (4.8.5) is too old to support c++14.

I'm curious how y'all were able to build grpc-1.49.0 for centos7 at all.  At this point I'm
going to try upgrading gcc on my build box and go from there, but if there's a better path
I'd love to hear it.

Thanks,
Tim

Re: Avoiding GRPC bug centos7

Hi,

Best is to use same GCC version that the one used for PHP (devtoolset-6 is only the default version, latest PHP use devtoolset-10)

Ex (using PHP >= 8)

$ php -i | grep Compiler
Compiler => gcc (GCC) 12.2.1 20221121 (Red Hat 12.2.1-4)

Btw, if 1.49 was working, you can download the old packages from my online archive
See: http://rpms.remirepo.net/store/php/pecl/grpc/


P.S. also notice than CentOS 7 is now terribly old and close to its end of life
(so you should really plan an upgrade in the next months to EL-8 or EL-9)

Laptop:  Fedora 40 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: AlmaLinux 8 with EPEL, rpmfusion, remi

Re: Avoiding GRPC bug centos7

Reading the upstream issue, it is not clear what are the affected versions (0.50 and 0.51 ?)

For memory

- version 0.52.1 is in the stable repository for 2 days
https://twitter.com/RemiRepository/stat … 2089588736

- version 0.53.0RC1 is in the testing repository for a few minutes
https://twitter.com/RemiRepository/stat … 3991659520

Laptop:  Fedora 40 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: AlmaLinux 8 with EPEL, rpmfusion, remi