Closed stappersg closed 2 years ago
From https://github.com/JuliaLang/julia/issues/42200 do I understand that this a LLVM issue.
I think that avoiding ran out of registers during register allocation can be done with tuning rustc-std-workspace-core v1.99.0
.
I think we can use the --no-verify option to publish without building, which will avoid this error.
The crate can successfully build, but only in release mode. Since the version that's currently on crates.io doesn't work at all, I think it would still be better to publish this, even though it can't build in debug mode.
Yes, I agree that adding --no-verify
can get us beyond "ran out ofregisters during register allocation".
$ cargo publish --no-verify
Updating crates.io index
Packaging avr_delay v0.4.0 (/home/stappers/src/rust/RustAVR/delay)
Uploading avr_delay v0.4.0 (/home/stappers/src/rust/RustAVR/delay)
error: failed to publish to registry at https://crates.io
Caused by:
the remote server responded with an error: A verified email address is required to publish crates to crates.io.
Visit https://crates.io/me to set and verify your email address.
$
(Issue left open as an invitation for expressing further ideas on this.)
On the rewrite branch, just doing cargo publish
(without specifying --target
or -Z build-std
) works successfully.
Nice!
That does bring the project further.
Now closing this issue, because we have #19 for tracking a first release done by me.
What follows is something that confirms what @lord-ne observation and that I have confirmed my email address at crates.io.
stappers@myhost:~/src/rust/RustAVR/delay
$ cargo publish
Updating crates.io index
Packaging avr_delay v0.4.0 (/home/stappers/src/rust/RustAVR/delay)
Verifying avr_delay v0.4.0 (/home/stappers/src/rust/RustAVR/delay)
Compiling proc-macro2 v1.0.39
Compiling unicode-ident v1.0.0
Compiling syn v1.0.95
Compiling quote v1.0.18
Compiling const_env_impl--value v0.1.2
Compiling const_env--value v0.1.2
Compiling avr-config v2.0.1
Compiling avr_delay v0.4.0 (/home/stappers/src/rust/RustAVR/delay/target/package/avr_delay-0.4.0)
error: invalid register class `reg_iw`: unknown register class
--> src/lib.rs:41:18
|
41 | i = inout(reg_iw) zero => _,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: invalid register class `reg_iw`: unknown register class
--> src/lib.rs:48:14
|
48 | i = inout(reg_iw) last_count => _,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: could not compile `avr_delay` due to 2 previous errors
error: failed to verify package tarball
stappers@myhost:~/src/rust/RustAVR/delay
$ git checkout rewrite
Switched to branch 'rewrite'
Your branch is up to date with 'origin/rewrite'.
stappers@myhost:~/src/rust/RustAVR/delay
$ cargo publish
Updating crates.io index
Packaging avr_delay v0.4.0 (/home/stappers/src/rust/RustAVR/delay)
Verifying avr_delay v0.4.0 (/home/stappers/src/rust/RustAVR/delay)
Compiling proc-macro2 v1.0.39
Compiling unicode-ident v1.0.0
Compiling syn v1.0.95
Compiling quote v1.0.18
Compiling const_env_impl--value v0.1.2
Compiling const_env--value v0.1.2
Compiling avr-config v2.0.1
Compiling avr_delay v0.4.0 (/home/stappers/src/rust/RustAVR/delay/target/package/avr_delay-0.4.0)
Finished dev [unoptimized + debuginfo] target(s) in 4.67s
Uploading avr_delay v0.4.0 (/home/stappers/src/rust/RustAVR/delay)
error: failed to publish to registry at https://crates.io
Caused by:
the remote server responded with an error: A verified email address is required to publish crates to crates.io. Visit https://crates.io/me to set and verify your email address.
stappers@myhost:~/src/rust/RustAVR/delay
$ cargo publish
Updating crates.io index
Packaging avr_delay v0.4.0 (/home/stappers/src/rust/RustAVR/delay)
Verifying avr_delay v0.4.0 (/home/stappers/src/rust/RustAVR/delay)
Compiling proc-macro2 v1.0.39
Compiling unicode-ident v1.0.0
Compiling syn v1.0.95
Compiling quote v1.0.18
Compiling const_env_impl--value v0.1.2
Compiling const_env--value v0.1.2
Compiling avr-config v2.0.1
Compiling avr_delay v0.4.0 (/home/stappers/src/rust/RustAVR/delay/target/package/avr_delay-0.4.0)
Finished dev [unoptimized + debuginfo] target(s) in 4.68s
Uploading avr_delay v0.4.0 (/home/stappers/src/rust/RustAVR/delay)
error: failed to publish to registry at https://crates.io
Caused by:
the remote server responded with an error: this crate exists but you don't seem to be an owner. If you believe this is a mistake, perhaps you need to accept an invitation to be an owner before publishing.
stappers@myhost:~/src/rust/RustAVR/delay
$
Hi,
The succesfull build I got in #20, is not yet a succes for publish.
This is blocking #19.