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

Temporarily fix build failure by patching libutp-rs's libutp-sys dependency #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cowlicks
Copy link

@cowlicks cowlicks commented Apr 3, 2024

This bug was causing hyperswarm-rs to fail to build:

$ cargo check

   Compiling libutp-sys v0.1.4
The following warnings were emitted during compilation:

...

error: failed to run custom build command for `libutp-sys v0.1.4`

Caused by:
  process didn't exit successfully: `/home/xxxxx/git/hyperswarm-rs/target/debug/build/libutp-sys-48273596246665...

...

  --- stderr
  thread 'main' panicked at /home/blake/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.55.1/src/ir/
context.rs:838:9:
  "__atomic_wide_counter_struct_(unnamed_at_/usr/include/bits/atomic_wide_counter_h_28_3)" is not a valid Ident
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

This change fixes that temporarily. This code can be removed once this PR is merged.

Or this change could be incorporated into @Frando fork of libutp-rs.

Or EVEN BETTER, get this PR merged with a bump to it's libutp-sys dependency.

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 this pull request may close these issues.

1 participant