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

Crate's build is broken on Fedora 38 with clang/LLVM 16 #3

Closed
e-kov opened this issue May 19, 2023 · 0 comments · Fixed by #4
Closed

Crate's build is broken on Fedora 38 with clang/LLVM 16 #3

e-kov opened this issue May 19, 2023 · 0 comments · Fixed by #4

Comments

@e-kov
Copy link
Contributor

e-kov commented May 19, 2023

Clang/LLVM versions:

$ clang -v
clang version 16.0.2 (Fedora 16.0.2-1.fc38)
Target: x86_64-redhat-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/13
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/13
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64

$ llvm-link --version
LLVM (http://llvm.org/):
  LLVM version 16.0.2
  Optimized build.

Build failure:

$ cargo build
    Updating crates.io index
   Compiling libc v0.2.144
   Compiling memchr v2.5.0
   Compiling glob v0.3.1
   Compiling version_check v0.9.4
   Compiling cfg-if v1.0.0
   Compiling log v0.4.17
   Compiling proc-macro2 v1.0.58
   Compiling quote v1.0.27
   Compiling nom v5.1.3
   Compiling clang-sys v1.6.1
   Compiling unicode-width v0.1.10
   Compiling regex-syntax v0.7.1
   Compiling unicode-ident v1.0.8
   Compiling aho-corasick v1.0.1
   Compiling textwrap v0.11.0
   Compiling atty v0.2.14
   Compiling libloading v0.7.4
   Compiling vec_map v0.8.2
   Compiling bitflags v1.3.2
   Compiling termcolor v1.2.0
   Compiling bindgen v0.58.1
   Compiling ansi_term v0.12.1
   Compiling strsim v0.8.0
   Compiling humantime v2.1.0
   Compiling regex v1.8.1
   Compiling cexpr v0.4.0
   Compiling clap v2.34.0
   Compiling env_logger v0.8.4
   Compiling which v3.1.1
   Compiling shlex v1.1.0
   Compiling lazycell v1.3.0
   Compiling lazy_static v1.4.0
   Compiling rustc-hash v1.1.0
   Compiling peeking_take_while v0.1.2
   Compiling blkid-sys v0.1.6 (/home/elastio/blkid-sys)
error: failed to run custom build command for `blkid-sys v0.1.6 (/home/elastio/blkid-sys)`

Caused by:
  process didn't exit successfully: `/home/elastio/blkid-sys/target/debug/build/blkid-sys-d8e9363a725a341b/build-script-build` (exit status: 101)
  --- stdout
  cargo:rustc-link-lib=blkid

  --- stderr
  thread 'main' panicked at '"__atomic_wide_counter_struct_(unnamed_at_/usr/include/bits/atomic_wide_counter_h_28_3)" is not a valid Ident', /home/elastio/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.58/src/fallback.rs:811:9
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

The cause of the problem is in the bindgen dependency which is fixed in version 0.65. See rust-lang/rust-bindgen#2488

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

Successfully merging a pull request may close this issue.

1 participant