pg_probackup icon indicating copy to clipboard operation
pg_probackup copied to clipboard

Build from source for RHEL9

Open artemsafiyulin opened this issue 2 years ago • 2 comments

I trying build pg_probackup-15 from source code for AlmaLinux 9. When start make, get next error: lto1: fatal error: bytecode stream in file ‘/usr/pgsql-15/lib/libpgcommon.a’ generated with LTO version 11.2 instead of the expected 11.3

artemsafiyulin avatar Jul 26 '23 08:07 artemsafiyulin

I tried docker image "almalinux/9-base" and I see postgresql 13 and gcc 11.3.1. So I assume you have used a RPM from older release or another system which was built using a different compiler version (11.2).

Try to find a newer or native to almalinux 9 build of pg15. Another option is to downgrade your compiler.

fukanchik avatar Jul 26 '23 09:07 fukanchik

@artemsafiyulin Packages for RHEL9-like systems are available now so you may try to use them instead of building from source. Check the installation instructions for assistance.

asavchkov avatar Nov 27 '23 02:11 asavchkov