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

Build fails with bindgen errors #121

Closed
connorcl opened this issue Jul 28, 2020 · 3 comments
Closed

Build fails with bindgen errors #121

connorcl opened this issue Jul 28, 2020 · 3 comments

Comments

@connorcl
Copy link

I've been trying to use this library in a no_std project, but the build of mbedtls-sys-auto always fails with a large number of Bindgen ERROR: unsupported type `CXTypeKind(119)` errors. I tried to make sure it wasn't the result of cross-compilation or a wrong selection of features by trying to include mbedtls as a dependency in an otherwise empty project (not no_std), but the build still fails with this same bindgen error.

@jethrogb
Copy link
Member

Duplicate of #5

@jethrogb jethrogb marked this as a duplicate of #5 Jul 28, 2020
@jethrogb jethrogb mentioned this issue Mar 11, 2021
1 task
@jethrogb
Copy link
Member

Final PR: #152

bors bot added a commit that referenced this issue Apr 6, 2021
152: Update bindgen r=raoulstrackx a=jethrogb

I took some time this week to make the necessary bindgen changes (rust-lang/rust-bindgen#2004 rust-lang/rust-bindgen#2006 rust-lang/rust-bindgen#2007). This PR updates the bindgen build to use that.

Breaking changes:
* unnamed types are renamed
* C-unions are now actual unions
  * [x] the field accessor functions that used to exist are easy enough to add back
* bitfields are done differently now
* some fn-ptrs are now unsafe
* some fns and fn-ptrs now take const pointers as arguments
* havege.c and timing.c are now not compiled on non-unix platforms, i.e. SGX (probably wasn't working properly anyway)

Fixes #5 #14 #61 #72 #88 #121

Co-authored-by: Jethro Beekman <jethro@fortanix.com>
@jethrogb
Copy link
Member

jethrogb commented Apr 6, 2021

Fixed in #152

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

2 participants