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 #26

Closed
robertdebock opened this issue May 24, 2018 · 6 comments
Closed

Build fails on CentOS 7 #26

robertdebock opened this issue May 24, 2018 · 6 comments

Comments

@robertdebock
Copy link
Contributor

Building on CentOS 7 (with EPEL (Extra Packages for Enterprise Linux) enabled) fails:

   Compiling sudo_plugin-sys v1.1.0 (file:///builddir/build/BUILD/sudo_pair-sudo_pair-v0.9.2/sudo_plugin-sys)
error: failed to run custom build command for `sudo_plugin-sys v1.1.0 (file:///builddir/build/BUILD/sudo_pair-sudo_pair-v0.9.2/sudo_plugin-sys)`
process didn't exit successfully: `/builddir/build/BUILD/sudo_pair-sudo_pair-v0.9.2/target/release/build/sudo_plugin-sys-202e6ab914395c29/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'function not loaded: clang_Type_getNumTemplateArguments', /builddir/.cargo/registry/src/github.com-1ecc6299db9ec823/clang-sys-0.22.0/src/lib.rs:1470:1
note: Run with `RUST_BACKTRACE=1` for a backtrace.

error: Bad exit status from /var/tmp/rpm-tmp.LXCDyF (%build)

A complete build log for debugging.

I'm not sure how difficult it is to make the build work on CentOS 7, but do think it's worth offering sudo-pair to CentOS-7.

Please let me know if more details are required.

@stouset
Copy link
Collaborator

stouset commented May 24, 2018

RHEL7 and CentOS 7 have an absolutely ancient version of clang that's not supported by bindgen, one of this project's dependencies. I've already reported this regression upstream, but until I have a chance to fix it upstream this will remain the case.

For reference, clang 6.0 is out, and to get it to build on CentOS 7, you need to install at least clang 3.9.

@robertdebock
Copy link
Contributor Author

Okay, understood.

@stouset stouset reopened this May 24, 2018
@stouset
Copy link
Collaborator

stouset commented May 24, 2018

Leaving open since it's something I'd eventually like to fix.

@stouset
Copy link
Collaborator

stouset commented May 29, 2018

Fixed upstream in rust-lang/rust-bindgen#1321. When that gets merged and a new release is cut, this should build cleanly on CentOS 7.

@stouset
Copy link
Collaborator

stouset commented May 29, 2018

Merged upstream.

@stouset
Copy link
Collaborator

stouset commented Jul 6, 2018

This should work now, rust-bindgen has been released. Please let me know!

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

No branches or pull requests

2 participants