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

cargo run --bin generator fails with "4X4_50" is not a valid Ident #153

Closed
mrao opened this issue Feb 26, 2024 · 4 comments
Closed

cargo run --bin generator fails with "4X4_50" is not a valid Ident #153

mrao opened this issue Feb 26, 2024 · 4 comments

Comments

@mrao
Copy link

mrao commented Feb 26, 2024

While regenerating the rust binding starting OpenXR SDK commit id 77a93e7e01854a6614c790f78bef87745562faae, script fails with above error in thread 'main' panicked at generator/src/main.rs:2145:5.

@Ralith
Copy link
Owner

Ralith commented Feb 26, 2024

Is that addressed by #147?

@mrao
Copy link
Author

mrao commented Feb 26, 2024

With PR#147, I'm able to run generator, but when I update the SDK to dc1e23937fe45eabcce80f6588cf47449edb29d1 (1.0.33), I get below errors. I'm on Ubuntu 22.04. May be I should create a different issue.

error[E0412]: cannot find type `size_t` in this scope
    --> sys/src/generated.rs:5172:22
     |
5172 |     pub struct_size: size_t,
     |                      ^^^^^^ not found in this scope
     |
help: consider importing this type alias
     |
9    + use libc::size_t;
     |

error[E0412]: cannot find type `size_t` in this scope
    --> sys/src/generated.rs:5184:22
     |
5184 |     pub struct_size: size_t,
     |                      ^^^^^^ not found in this scope
     |
help: consider importing this type alias
     |
9    + use libc::size_t;
     |

error[E0412]: cannot find type `size_t` in this scope
    --> sys/src/generated.rs:5196:22
     |
5196 |     pub struct_size: size_t,
     |                      ^^^^^^ not found in this scope
     |
help: consider importing this type alias
     |
9    + use libc::size_t;
     |

error[E0412]: cannot find type `size_t` in this scope
    --> sys/src/generated.rs:5207:22
     |
5207 |     pub struct_size: size_t,
     |                      ^^^^^^ not found in this scope
     |
help: consider importing this type alias
     |
9    + use libc::size_t;
     |

error[E0412]: cannot find type `size_t` in this scope
    --> sys/src/generated.rs:5219:22
     |
5219 |     pub struct_size: size_t,
     |                      ^^^^^^ not found in this scope
     |
help: consider importing this type alias
     |
9    + use libc::size_t;
     |

For more information about this error, try `rustc --explain E0412`.

@Ralith
Copy link
Owner

Ralith commented Feb 26, 2024

Looks like something that can be easily addressed in whatever PR pursues that update.

@Ralith Ralith closed this as not planned Won't fix, can't repro, duplicate, stale Feb 26, 2024
@mrao
Copy link
Author

mrao commented Feb 27, 2024

Thank you Ralith

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