ears icon indicating copy to clipboard operation
ears copied to clipboard

Compiling fails (v0.3.0)

Open hanckmann opened this issue 10 years ago • 4 comments
trafficstars

Compiling fails with:

$ cargo build [17:05:34] Compiling ears v0.3.0 (file:///tmp/ears) src/internal.rs:36:100: 36:101 error: macros that expand to items must either be surrounded with braces or followed by a semicolon src/internal.rs:36 thread_local!(static AL_CONTEXT: RefCell<Box<OpenAlData>> = RefCell::new(box OpenAlData::default())) ^ src/internal.rs:192:1: 192:2 error: macros that expand to items must either be surrounded with braces or followed by a semicolon src/internal.rs:192 ) ^ src/init.rs:104:15: 104:19 error: proc is a reserved keyword src/init.rs:104 spawn(proc() { ^~~~ Could not compile ears.

To learn more, run the command again with --verbose.

$ cargo build --verbose [17:05:40] Compiling ears v0.3.0 (file:///tmp/ears) Running rustc src/ears.rs --crate-name ears --crate-type dylib --crate-type rlib -g --out-dir /tmp/ears/target/debug --emit=dep-info,link -L dependency=/tmp/ears/target/debug -L dependency=/tmp/ears/target/debug/deps src/internal.rs:36:100: 36:101 error: macros that expand to items must either be surrounded with braces or followed by a semicolon src/internal.rs:36 thread_local!(static AL_CONTEXT: RefCell<Box<OpenAlData>> = RefCell::new(box OpenAlData::default())) ^ src/internal.rs:192:1: 192:2 error: macros that expand to items must either be surrounded with braces or followed by a semicolon src/internal.rs:192 ) ^ src/init.rs:104:15: 104:19 error: proc is a reserved keyword src/init.rs:104 spawn(proc() { ^~~~ Could not compile ears.

Caused by: Process didn't exit successfully: rustc src/ears.rs --crate-name ears --crate-type dylib --crate-type rlib -g --out-dir /tmp/ears/target/debug --emit=dep-info,link -L dependency=/tmp/ears/target/debug -L dependency=/tmp/ears/target/debug/deps (exit code: 101)

hanckmann avatar Jun 29 '15 15:06 hanckmann

Hi, Sorry but the last update should be before rust1.0, this will need some time to make it work again. I will do it as soon as I have some time.

jeremyletang avatar Jun 29 '15 15:06 jeremyletang

Hello, am at process of fixing your ears lib according Rust 1.0 standart. I already fixed all compilation errors (there was hundreds of that) and now at process of fixing runtime problems. I can do "pull request" after I finished or now at process of fixing as you wish.

rjdgtn avatar Jul 03 '15 19:07 rjdgtn

Fixed version of ears you can find at fork https://github.com/rjdgtn/ears

rjdgtn avatar Jul 10 '15 08:07 rjdgtn

I've fixed some bugs and set up CI for ears: https://github.com/jhasse/ears

@jeremyletang Hope it's okay I've also added ears to crates.io. Do you want to continue working on ears atm? If not, would you be willing to deprecate this repro and point to mine?

jhasse avatar Feb 03 '16 23:02 jhasse