-
Notifications
You must be signed in to change notification settings - Fork 151
Cannot build with libbpf-sys 1.1.0 #303
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
Comments
Build is failing because the time crate now requires a minimum rust version of 1.60 |
That is a very unfortunate semver violation, it appears. It seems to have been caused by libbpf/libbpf-sys@aa4a577#diff-c030113407a164cbd1ad3500c613f59abd4346ba13ee5b653c56f393c937b0a8L317 @alexforster can you please clarify whether |
@krallin I think you should be able to pin But yeah, we probably want a new release or a yank of the latest libbpf-sys release. I will wait for @alexforster to get back to us first, though, to get his take. |
Yeah, we already worked around the issue, that’s fine, just reporting it so
it can get fixed :)
…On Mon, 9 Jan 2023 at 20:50, danielocfb ***@***.***> wrote:
@krallin <https://github.com/krallin> I think you should be able to pin
libbpf-sys from your code base as a work around.
But yeah, we probably want a new release or a yank of the latest
libbpf-sys release. I will wait for @alexforster
<https://github.com/alexforster> to get back to us first, though, to get
his take.
—
Reply to this email directly, view it on GitHub
<#303 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANIHVWWFFNY5NPFAN2M2MLWRRTXXANCNFSM6AAAAAATVIIENE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Yes, at least insofar as libbpf itself does. I'll yank this version of |
Looks like they changed a default behavior in rust-lang/rust-bindgen#2278. Fortunately, it looks like there's an escape hatch to revert to previous behavior. |
Published |
This reverts the changes commited to compile against libbpf-sys 1.1.0 and updates libbpf-rs and libbpf-cargo to use libbpf-sys 1.1.1 |
libbpf-sys aims to adhere to semantic versioning rules and indicate incompatible changes by bumping major version numbers. However, it is sometimes hard to identify breaking changes in advance and so breakage may happen unintentionally. Detecting of such breaking changes also becomes harder with auto-generated code and libbpf-sys has a bunch of that, owing due to it binding to a C library. For example, in libbpf-rs [0] we have encountered a case where we were relying on a bindgen generated type exported by libbpf-sys that got removed because bindgen changed its behavior. To aid with the detection such unintended incompatibilities, this change adds a CI step that builds the most recent version of libbpf-rs with the current libbpf-sys. [0] libbpf/libbpf-rs#303
libbpf-sys aims to adhere to semantic versioning rules and indicate incompatible changes by bumping major version numbers. However, it is sometimes hard to identify breaking changes in advance and so breakage may happen unintentionally. Detecting of such breaking changes also becomes harder with auto-generated code, and libbpf-sys has a bunch of that, owing due to it binding to a C library. For example, in libbpf-rs [0] we have encountered a case where we were relying on a bindgen generated type exported by libbpf-sys that got removed because bindgen changed its behavior, which effectively is a semver violation. To aid with the detection such unintended incompatibilities, this change adds a CI step that builds the most recent published version of libbpf-rs with the current libbpf-sys snapshot, to flag accidental breakage. [0] libbpf/libbpf-rs#303 Closes: libbpf#53
libbpf-sys aims to adhere to semantic versioning rules and indicate incompatible changes by bumping major version numbers. However, it is sometimes hard to identify breaking changes in advance and so breakage may happen unintentionally. Detecting of such breaking changes also becomes harder with auto-generated code, and libbpf-sys has a bunch of that, owing due to it binding to a C library. For example, in libbpf-rs [0] we have encountered a case where we were relying on a bindgen generated type exported by libbpf-sys that got removed because bindgen changed its behavior, which effectively is a semver violation. To aid with the detection such unintended incompatibilities, this change adds a CI step that builds the most recent published version of libbpf-rs with the current libbpf-sys snapshot, to flag accidental breakage. [0] libbpf/libbpf-rs#303 Closes: libbpf#53 Signed-off-by: Daniel Müller <[email protected]>
I think we can close this issue, as the breakage has been addressed. I've proposed the addition of a CI step to detect and flag such breakages early on the |
libbpf-sys aims to adhere to semantic versioning rules and indicate incompatible changes by bumping major version numbers. However, it is sometimes hard to identify breaking changes in advance and so breakage may happen unintentionally. Detecting of such breaking changes also becomes harder with auto-generated code, and libbpf-sys has a bunch of that, owing due to it binding to a C library. For example, in libbpf-rs [0] we have encountered a case where we were relying on a bindgen generated type exported by libbpf-sys that got removed because bindgen changed its behavior, which effectively is a semver violation. To aid with the detection such unintended incompatibilities, this change adds a CI step that builds the most recent published version of libbpf-rs with the current libbpf-sys snapshot, to flag accidental breakage. [0] libbpf/libbpf-rs#303 Closes: #53 Signed-off-by: Daniel Müller <[email protected]>
Like it says in the title. A new version of libbpf-sys 1.1.0 was released and breaks this crate:
I'm guessing a new release of this crate is forthcoming considering they're maintained by the same organization, but until then perhaps this one can be pinned to the version of libbpf-sys it requires?
The text was updated successfully, but these errors were encountered: