-
Notifications
You must be signed in to change notification settings - Fork 763
Closed
Description
I tried to build Stylo on my Ubuntu 16.10 box. I get the following error:
0:30.51 error[E0412]: type name `root::JS::JSWhyMagic` is undefined or not in scope
0:30.51 --> /home/njn/moz/stylo/o64sty/toolkit/library/gtest/rust/./x86_64-unknown-linux-gnu/release/build/style-e7c956a890a30050/out/gecko/structs_release.rs:5896:48
0:30.51 |
0:30.51 5896 | pub why: root::__BindgenUnionField<root::JS::JSWhyMagic>,
0:30.51 | ^^^^^^^^^^^^^^^^^^^^ undefined or not in scope
0:30.51 |
0:30.51 = help: you can import it into scope: `use gecko_bindings::structs::root::JSWhyMagic;`.
0:30.51
0:32.79 libdom_media_webm.a.desc
0:34.31 error[E0204]: the trait `Copy` may not be implemented for this type
0:34.31 --> /home/njn/moz/stylo/o64sty/toolkit/library/gtest/rust/./x86_64-unknown-linux-gnu/release/build/style-e7c956a890a30050/out/gecko/structs_release.rs:5892:25
0:34.31 |
0:34.31 5892 | #[derive(Debug, Copy)]
0:34.32 | ^^^^ field `why` does not implement `Copy`
0:34.32
0:34.66 error: aborting due to previous error
@heycam looked at my generated structs_debug.rs file. He suspects the following problem: "If stylo tries to bindgen types that reference JSWhyMagic
, it can fail by generating the JSWhyMagic
under the root
mod, but trying to reference root::JS::JSWhyMagic
."
CC @emilio
Metadata
Metadata
Assignees
Labels
No labels