Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on CentOS 7 #11

Closed
rhc54 opened this issue Feb 14, 2018 · 2 comments
Closed

Build fails on CentOS 7 #11

rhc54 opened this issue Feb 14, 2018 · 2 comments

Comments

@rhc54
Copy link

rhc54 commented Feb 14, 2018

I'm trying to build on CentOS 7, which is viewed as the same as RHEL 7 by most build systems. I found that I had to make one change just to get past the initial check:

diff --git a/update_opa_spec.sh b/update_opa_spec.sh
index 00a7007..b48fd5c 100755
--- a/update_opa_spec.sh
+++ b/update_opa_spec.sh
@@ -50,7 +50,7 @@ fi
 
 source ./OpenIb_Host/ff_filegroups.sh
 
-if [ "$id" = "rhel" ]
+if [ "$id" = "rhel" -o "$id" = "centos" ]
 then
        GE_7_4=$(echo "$versionid >= 7.4" | bc)
        if [ $GE_7_4 = 1 ]

With that, the rpm builds (though with lots of warnings about misleading indentation) until it hits an error towards the very end:

+ /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /home/rhc/rpmbuild/BUILD/opa-10.6.0.0
extracting debug info from /home/rhc/rpmbuild/BUILDROOT/opa-10.6.0.0-131.el7.centos.x86_64/usr/bin/opa_osd_dump
*** ERROR: No build ID note found in /home/rhc/rpmbuild/BUILDROOT/opa-10.6.0.0-131.el7.centos.x86_64/usr/bin/opa_osd_dump
error: Bad exit status from /var/tmp/rpm-tmp.gvtQDj (%install)

Any suggestions on how to get past this problem?

@sjb017
Copy link
Contributor

sjb017 commented Feb 14, 2018 via email

@rhc54
Copy link
Author

rhc54 commented Feb 14, 2018

Thanks - that worked fine!

@rhc54 rhc54 closed this as completed Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants