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

issues compiling ethcore/parity with rust 1.15.1 #764

Closed
derhuerst opened this issue Feb 14, 2017 · 4 comments
Closed

issues compiling ethcore/parity with rust 1.15.1 #764

derhuerst opened this issue Feb 14, 2017 · 4 comments
Labels

Comments

@derhuerst
Copy link

I can't compile ethcore/parity at e9eed5206. Several dependencies use serde for procedural macros.

git checkout e9eed5206
cargo build --release --verbose
error: custom derive attribute panicked
 --> /Users/j/.cargo/registry/src/github.com-1ecc6299db9ec823/ethabi-1.0.0/src/spec/constructor.rs:6:35
  |
6 | #[derive(Debug, Clone, PartialEq, Deserialize)]
  |                                   ^^^^^^^^^^^
  |
  = help: message: assertion failed: !p.is_null()

Build failed, waiting for other jobs to finish...
error: custom derive attribute panicked
  --> /Users/j/.cargo/git/checkouts/jsonrpc-a2142c7cad1a1d60/86d7a89/core/src/types/error.rs:76:35
   |
76 | #[derive(Debug, PartialEq, Clone, Serialize, Deserialize)]
   |                                   ^^^^^^^^^
   |
   = help: message: assertion failed: !p.is_null()

Build failed, waiting for other jobs to finish...
error: Could not compile `ethabi`.

Caused by:
  process didn't exit successfully: `rustc --crate-name ethabi /Users/j/.cargo/registry/src/github.com-1ecc6299db9ec823/ethabi-1.0.0/src/lib.rs --crate-type lib -C opt-level=3 -C panic=abort -C metadata=2cc91b1e3fc35b26 -C extra-filename=-2cc91b1e3fc35b26 --out-dir /Users/j/ethcore/parity/target/release/deps --emit=dep-info,link -L dependency=/Users/j/ethcore/parity/target/release/deps --extern serde_json=/Users/j/ethcore/parity/target/release/deps/libserde_json-178f5e275514a67d.rlib --extern tiny_keccak=/Users/j/ethcore/parity/target/release/deps/libtiny_keccak-a6d005939a03f5c3.rlib --extern rustc_serialize=/Users/j/ethcore/parity/target/release/deps/librustc_serialize-bdbfbfcc0fc07f27.rlib --extern serde=/Users/j/ethcore/parity/target/release/deps/libserde-81a031b46cbba5db.rlib --extern serde_derive=/Users/j/ethcore/parity/target/release/deps/libserde_derive-dd5ebf1dd35ed3f1.dylib --cap-lints allow` (exit code: 101)

I'm not proficient in the build architecture of rust, but willing to help debug this further! Let me know if any information is missing.

serde.txt

@dtolnay
Copy link
Member

dtolnay commented Feb 14, 2017

I was not able to reproduce this with rustc 1.15.1 against ethcore/parity@e9eed5206 nor rust-ethereum/ethabi@ff7e598 nor paritytech/jsonrpc@86d7a89. All of those built successfully.

Does it still fail for you if you compile ethabi or jsonrpc directly?

@derhuerst
Copy link
Author

I should have mentioned that I use rustc 1.15.1 from Homebrew.

@derhuerst
Copy link
Author

Don't get any errors with rust 1.15.1 from rustup. Sorry for the noise!

@ilovezfs
Copy link

This should no longer be a problem in Homebrew due to Homebrew/homebrew-core#14490.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants