-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
Hi,
When I run the following,
cargo init my_path
cd my_path
cargo add xgboost-sys
cargo build --releaseI get the following error
Compiling xgboost-sys v0.1.2
error: expected one of `!`, `(`, `)`, `+`, `,`, `::`, or `<`, found `/`
--> /home/sander/software/bruker/my_path/target/release/build/xgboost-sys-ee19b0364b0821b0/out/bindings.rs:3:9874
|
3 | ...) ] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t_union_(unnamed_at_/usr/include/x86_64-linux-gnu/bits/types/__mbstate...
| ----------- while parsing this struct ^ expected one of 7 possible tokens
error: expected `where` or `{` after union name, found `(`
--> /home/sander/software/bruker/my_path/target/release/build/xgboost-sys-ee19b0364b0821b0/out/bindings.rs:3:10014
|
3 | ... ) ] # [ derive ( Copy , Clone ) ] pub union __mbstate_t_union_(unnamed_at_/usr/include/x86_64-linux-gnu/bits/types/__mbstate_t_h_16_3) { pub __wch : :: std :: os :: ra...
| ^ expected `where` or `{` after union name
error[E0412]: cannot find type `__builtin_va_list` in this scope
--> /home/sander/software/bruker/my_path/target/release/build/xgboost-sys-ee19b0364b0821b0/out/bindings.rs:3:5805
|
3 | ... const WINT_MAX : u32 = 4294967295 ; pub type __gnuc_va_list = __builtin_va_list ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: o...
| ^^^^^^^^^^^^^^^^^ not found in this scope
For more information about this error, try `rustc --explain E0412`.
error: could not compile `xgboost-sys` (lib) due to 3 previous errors
I have the following setup:
xgboost --version
XGBoost: 2.0.3clang --version
Ubuntu clang version 18.1.3 (1ubuntu1)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/binbindgen --version
bindgen 0.71.1rustc --version
rustc 1.85.0 (4d91de4e4 2025-02-17)cargo --version
cargo 1.85.0 (d73d2caf9 2024-12-31)Any assistance would be much apreciated,
Best,
Sander
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels