building rpms from source / cent7

Hello, I am coming up across errors, which appear to be library / compiler incompatibilities. I am trying to build a github checkout of PS 5.7, following [URL]https://www.percona.com/blog/2017/01/20/how-to-manually-build-percona-server-rpm-packages/[/URL] and it fails on the second rpmbuild command with a general inability to find libs that it previously found and used (like -lpthread is now not found). I am using a docker centos 7 to build rpms. What are the exact versions of os / libs used to create the prebuilt rpms for cent7? I’ve used this general formula for making rpms before, and it is only now not working with this current centos and ps checkout.