binsoftware / rovr

A VR headset library for Rust programs targeting the Oculus Rift.
MIT License
9 stars 3 forks source link

Fails to build (wayland-client errors) #8

Open fcourchesne opened 8 years ago

fcourchesne commented 8 years ago

I cannot get a build to complete.

~/Coding/rust/rovr(branch:master) » rustc --version && cargo build fc@FC-Spectre rustc 1.8.0-beta.2 (2879d940a 2016-03-22) Compiling wayland-client v0.1.8 Compiling gl_generator v0.0.26 Compiling tempdir v0.3.4 Compiling shared_library v0.1.4 /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/ffi/abi.rs:45:1: 45:11 error: attribute should be applied to struct or enum [E0517] /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/ffi/abi.rs:45 #[repr(C)] pub type wl_dispatcher_func_t = extern fn(const c_void, ^~~~~~ /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/ffi/abi.rs:45:1: 45:11 help: run rustc --explain E0517 to see a detailed explanation /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/ffi/abi.rs:51:1: 51:11 error: attribute should be applied to struct or enum [E0517] /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/ffi/abi.rs:51 #[repr(C)] pub type wl_log_funct = extern fn(: const c_char, ...); ^~~~~~ /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/ffi/abi.rs:51:1: 51:11 help: run rustc --explain E0517 to see a detailed explanation /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/ffi/abi.rs:53:1: 53:11 error: attribute should be applied to struct or enum [E0517] /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/ffi/abi.rs:53 #[repr(C)] pub type wl_fixed_t = int32_t; ^~~~~~ /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/ffi/abi.rs:53:1: 53:11 help: run rustc --explain E0517 to see a detailed explanation Compiling mmap v0.1.1 /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/core/mod.rs:57:5: 57:39 error: the trait core::marker::Sized is not implemented for the type Self [E0277] /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/core/mod.rs:57 fn from(other: T) -> Option; ^~~~~~~~~~ /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/core/mod.rs:57:5: 57:39 help: run rustc --explain E0277 to see a detailed explanation /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/core/mod.rs:57:5: 57:39 note: Self does not have a constant size known at compile-time /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/core/mod.rs:57:5: 57:39 note: required by core::option::Option error: aborting due to previous error Build failed, waiting for other jobs to finish... /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/glgenerator-0.0.26/registry.rs:322:45: 322:51 error: no method named events found for type `core::cell::RefMut<', registry::xml::reader::EventReader>in the current scope /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/gl_generator-0.0.26/registry.rs:322 for event in self.port.borrow_mut().events() { ^~~~~~ /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/gl_generator-0.0.26/registry.rs:328:17: 328:37 error: no associated item namedErrorfound for typeregistry::xml::reader::events::XmlEventin the current scope /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/gl_generator-0.0.26/registry.rs:328 XmlEvent::Error(err) => panic!("XML error: {:?}", err), ^~~~~~~~~~~~~~~~~~~~ /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:56:9: 56:27 warning: lint raw_pointer_derive has been removed: using derive with raw pointers is ok /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:56 #[allow(raw_pointer_derive)] ^~~~~~~~~~~~~~~~~~ /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:56:9: 56:27 warning: lint raw_pointer_derive has been removed: using derive with raw pointers is ok /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:56 #[allow(raw_pointer_derive)] ^~~~~~~~~~~~~~~~~~ /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:57:16: 57:21 note: in this expansion of #[derive_Clone] (defined in /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs) /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:56:9: 56:27 warning: lint raw_pointer_derive has been removed: using derive with raw pointers is ok /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:56 #[allow(raw_pointer_derive)] ^~~~~~~~~~~~~~~~~~ /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:57:10: 57:14 note: in this expansion of #[derive_Copy] (defined in /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs) /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:69:9: 69:27 warning: lint raw_pointer_derive has been removed: using derive with raw pointers is ok /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:69 #[allow(raw_pointer_derive)] ^~~~~~~~~~~~~~~~~~ /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:69:9: 69:27 warning: lint raw_pointer_derive has been removed: using derive with raw pointers is ok /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:69 #[allow(raw_pointer_derive)] ^~~~~~~~~~~~~~~~~~ /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:70:16: 70:21 note: in this expansion of #[derive_Clone] (defined in /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs) /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:69:9: 69:27 warning: lint raw_pointer_derive has been removed: using derive with raw pointers is ok /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:69 #[allow(raw_pointer_derive)] ^~~~~~~~~~~~~~~~~~ /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:70:10: 70:14 note: in this expansion of #[derive_Copy] (defined in /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs) error: aborting due to 2 previous errors Could not compilewayland-client`.

I get the same errors for stable/beta/nightly under Linux x86_64.

LuisAyuso commented 8 years ago

any progress or workaround here?