Skip to content

Ubuntu 23.10 build failed: "cpu_user_regs_union_xxxx" is not a valid Ident #57

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

Open
Wenzel opened this issue Dec 8, 2023 · 1 comment

Comments

@Wenzel
Copy link
Owner

Wenzel commented Dec 8, 2023

From #56: https://github.com/Wenzel/xenctrl/actions/runs/7139239177/job/19442221626?pr=56

    Compiling enum-primitive-derive v0.3.0
   Compiling xenvmevent-sys v0.1.3
The following warnings were emitted during compilation:

warning: couldn't execute `llvm-config --prefix` (error: No such file or directory (os error 2))
warning: set the LLVM_CONFIG_PATH environment variable to a valid `llvm-config` executable

error: failed to run custom build command for `xenvmevent-sys v0.1.3`

Caused by:
  process didn't exit successfully: `/__w/xenctrl/xenctrl/target/debug/build/xenvmevent-sys-6fcb983e477eb5d4/build-script-build` (exit status: 101)
  --- stdout
  cargo:warning=couldn't execute `llvm-config --prefix` (error: No such file or directory (os error 2))
  cargo:warning=set the LLVM_CONFIG_PATH environment variable to a valid `llvm-config` executable

  --- stderr
  thread 'main' panicked at /github/home/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.52.0/src/ir/context.rs:893:9:
  "cpu_user_regs_union_(anonymous_at_/usr/include/xen/arch-x86/xen-x86_64_h_163_5)" is not a valid Ident
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
Error: Process completed with exit code 101.

The build fails due to xenvmevent-sys build script.

Related:

@Wenzel
Copy link
Owner Author

Wenzel commented Dec 8, 2023

Possible fix:

  • downgrade Clang < 16
  • update bindgen >= v0.62.0

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

1 participant