postgrespro / pg_probackup

Backup and recovery manager for PostgreSQL
https://postgrespro.github.io/pg_probackup/
Other
703 stars 86 forks source link

Build from source for RHEL9 #605

Open artemsafiyulin opened 1 year ago

artemsafiyulin commented 1 year ago

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

fukanchik commented 1 year ago

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.

asavchkov commented 9 months ago

@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.