-
Notifications
You must be signed in to change notification settings - Fork 835
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
Building v1.1.0 results in a filename collision #1548
Comments
I'm having the same problem by compiling for znver3 |
Thanks for the report! It's just a warning and can be ignored. More info here: #1154 (comment) Closing in favor of #1154. Please feel free to respond there. |
As I noted on #1154, I'll try to fix this by the next release. For now, please just ignore the warning. Apologies! |
Oh, I didn't see the version mismatch error. Yes, that's a hard error. Did you read the release notes? 😉 You'll need to re-visit our installation instructions as they have changed. |
Thanks for the reply. The only difference I see here https://wiki.polkadot.network/docs/maintain-guides-how-to-validate-polkadot is building with the production flag instead of release flag. Is that our issue? |
Which section there are you following? I tried to update every section but maybe I missed one. The issue is there are now some extra binaries that you have to build as well. The easiest way to do it is And yeah, I'd recommend building with the production profile, unless you have a good reason not to. :) |
In the #optional-building-the-polkadot-binaries-from-sources section it still says to |
Good catch! ⭐️ The page was updated after new binaries were introduced, but then not after the monorepo migration. I'm on it. For now, You'll have to run |
Ah ha! Got it! Thanks for the help! 🚀 |
I'm having a similar issue, trying to build |
@bernardoaraujor Some more info would help. How are you building/installing? If the worker binary is out of date, then failing to start a validator node is expected behavior. |
my build steps are:
as a result I get:
and when I try to spawn a network via zombienet:
|
Did you try |
@bernardoaraujor Did you really start with a fresh git clone? Both workers pull in the same |
yes, just reproduced again with a fresh git clone |
FWIW I did the same from a fresh clone and got different results (which is extremelly strange):
EDIT: after a
|
I was able to reproduce. 👀 |
On the v1.1.0 tag we are still getting the version from an env var instead of a constant: So I see two issues here:
|
The pr was created after 1.1.0 was released or was in the process of getting released. The idea was never to have it in this release. |
Looks like we get the version part from So I guess this is some bug in cargo? So we just need to get a fix into 1.1.0 or do a fix + patch bump to 1.1.1. |
What does it mean that it gets the wrong version? What version does it return? |
It sometimes returns the old version |
Has someone tried v1.2.0 and is the issue fixed there? |
@mrcnski Just tried v1.2.0 and the results can be seen below: ➜ polkadot-sdk git:(polkadot-v1.2.0) ./target/release/polkadot --version
polkadot 1.2.0-72c45356393
➜ polkadot-sdk git:(polkadot-v1.2.0) ./target/release/polkadot-prepare-worker --version
1.2.0
➜ polkadot-sdk git:(polkadot-v1.2.0) ./target/release/polkadot-execute-worker --version
1.2.0 |
Going to close as it should be fixed on v1.2.0. Please re-open if not! |
Building v1.1.0 via
RUSTFLAGS="-C target-cpu=native" ~/.cargo/bin/cargo build --release
results in a filename collision (below) which results in "this error" when running:
polkadot --chain polkadot --validator
"this error" ->
Error: 0: ESC[91mVersion of worker binary (1.0.0-f60318f6868) is different from node version (1.1.0-f60318f6868), worker_path: ~/polkadot-sdk/target/release/polkadot-prepare-worker. If you ran with `cargo run`, please run `cargo build` first, otherwise try to `cargo clean`. TESTING ONLY: this check can be disabled with --disable-worker-version-checkESC[0m
filename collision...
The text was updated successfully, but these errors were encountered: