Skip to content

bindgen breaks build with ftrace_branch_data_union_... (LLVM >= 16) #1013

Closed

Description

@ojeda

Reported by Aakash Sen Sharma (@Shinyzenith) at https://rust-for-linux.zulipchat.com/#narrow/stream/291565-Help/topic/Build.20errors/near/364313442.

Requires LLVM >= 16 to reproduce. bindgen 0.62.0 fixes it: rust-lang/rust-bindgen#2488, rust-lang/rust-bindgen#2319 (thanks @cuviper for the pointer!).

❯ make rustdoc LLVM=1 CLIPPY=1 -j$(nproc)
  DESCEND objtool
  CALL    scripts/checksyscalls.sh
  INSTALL libsubcmd_headers
  RUSTC L rust/core.o
  BINDGEN rust/bindings/bindings_generated.rs
  BINDGEN rust/bindings/bindings_helpers_generated.rs
  BINDGEN rust/uapi/uapi_generated.rs
thread 'main' panicked at '"ftrace_branch_data_union_(anonymous_at__/_/include/linux/compiler_types_h_146_2)" is not a valid Ident', /home/aakash/.local/share/cargo/registry/src/gh.grcyy1.kdns.fr-1ecc6299db9ec823/proc-macro2-1.0.24/src/fallback.rs:693:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
make[1]: *** [rust/Makefile:316: rust/uapi/uapi_generated.rs] Error 1
make[1]: *** Deleting file 'rust/uapi/uapi_generated.rs'
make[1]: *** Waiting for unfinished jobs....
thread 'main' panicked at '"ftrace_branch_data_union_(anonymous_at__/_/include/linux/compiler_types_h_146_2)" is not a valid Ident', /home/aakash/.local/share/cargo/registry/src/gh.grcyy1.kdns.fr-1ecc6299db9ec823/proc-macro2-1.0.24/src/fallback.rs:693:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
make[1]: *** [rust/Makefile:310: rust/bindings/bindings_generated.rs] Error 1
make[1]: *** Deleting file 'rust/bindings/bindings_generated.rs'
make: *** [Makefile:1293: prepare] Error 2

Activity

  1. added
    • toolchainRelated to `rustc`, `bindgen`, `rustdoc`, LLVM, Clippy...
    on Jun 9, 2023
  2. Shinyzenith commented on Jun 10, 2023

    @Shinyzenith
  3. Shinyzenith commented on Jun 12, 2023

    @Shinyzenith
  4. added a commit that references this issue on Jun 12, 2023
  5. added a commit that references this issue on Jun 12, 2023
  6. added a commit that references this issue on Jun 26, 2023
  7. added a commit that references this issue on Jun 30, 2023
  8. added a commit that references this issue on Jul 24, 2023
  9. added a commit that references this issue on Jul 26, 2023
  10. added a commit that references this issue on Jul 31, 2023
  11. Shinyzenith commented on Aug 9, 2023

    @Shinyzenith

    @fbq Has the patch been merged upstream?

  12. ojeda commented on Aug 9, 2023

    @ojeda
    MemberAuthor

    If you mean Linus' tree, no, he will merge our PR (which includes the upgrade) during the merge window, in 2-4 weeks.

  13. 29 remaining items

  14. added a commit that references this issue on Sep 29, 2023
  15. added a commit that references this issue on Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    • toolchainRelated to `rustc`, `bindgen`, `rustdoc`, LLVM, Clippy...

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions