Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

master cargo build failing #2508

Closed
mtbitcoin opened this issue Oct 7, 2016 · 9 comments
Closed

master cargo build failing #2508

mtbitcoin opened this issue Oct 7, 2016 · 9 comments

Comments

@mtbitcoin
Copy link

Compiling ethcore-io v1.4.0 (https://github.com/ethcore/parity.git#0c7a2877)
Users\xx.cargo\git\checkouts\parity-6ba620efeffb2216\master\util\io\src\worker.rs:32:2: 32:16 error: no rules expected the token #
Users\xxx.cargo\git\checkouts\parity-6ba620efeffb2216\master\util\io\src\worker.rs:32 /// Stack size
^~~~~~~~~~~~~~
Build failed, waiting for other jobs to finish...
error: failed to compile parity v1.4.0 (https://github.com/ethcore/parity.git#0c7a2877), intermediate artifacts can be found at C:\Users\Matthew\AppData\Local\Temp\cargo-install.UNAyHw9rkDCb

@arkpar
Copy link
Collaborator

arkpar commented Oct 7, 2016

Parity requires rustc 1.12 now. See https://github.com/ethcore/parity/wiki/FAQ#im-getting-build-errors

@arkpar arkpar closed this as completed Oct 7, 2016
@mtbitcoin
Copy link
Author

@arkpar I upgraded to 1.12 but now running into the following issue (this is on Windows)

C:>rustc -V

rustc 1.12.0 (3191fbae9 2016-09-23)

...

Compiling parity v1.4.0 (https://github.com/ethcore/parity.git#533af433)
EH pad must be jumped to via an unwind edge
%cleanuppad8 = cleanuppad within none []
br i1 %1245, label %bb110, label %bb113_cleanup_trampoline_bb110
LLVM ERROR: Broken function found, compilation aborted!
error: failed to compile parity v1.4.0 (https://github.com/ethcore/parity.git#533af433), intermediate artifacts can be found at C:\Users\Matthew\AppData\Local\Temp\cargo-install.jfSIZUT95AIc

@tomusdrw
Copy link
Collaborator

tomusdrw commented Oct 7, 2016

I guess it's that issue: rust-lang/rust#36924

You may try compiling with RUSTFLAGS=-Zorbit=off

@mtbitcoin
Copy link
Author

mtbitcoin commented Oct 7, 2016

yes, was just.... about to post that. looks like an issue with rustc 1.12 on windows

@mtbitcoin
Copy link
Author

@tomusdrw where does the "RUSTFLAGS=-Zorbit=off" go?

@rphmeier
Copy link
Contributor

rphmeier commented Oct 7, 2016

@mtbitcoin It should be set as an environment variable while compiling. I think on Windows this is done with set RUSTFLAGS=-Zorbit=off && cargo build --release but I'm not completely sure.

@mtbitcoin
Copy link
Author

@rphmeier thanks, but is the 'cargo build --release' necessary?

I am currently compiling with
cargo install --no-default-features --git https://github.com/ethcore/parity.git parity --force

@rphmeier
Copy link
Contributor

rphmeier commented Oct 7, 2016

@mtbitcoin AFAIK cargo install from a git repository will build it in release mode under the hood.

@mtbitcoin
Copy link
Author

@rphmeier thanks! that did it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants