-
Notifications
You must be signed in to change notification settings - Fork 709
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
0.17.8 build error as a normal part of cargo build #2138
Comments
In the end, I removed the ".into()" as the compiler suggested, and it compiled. I didn't run any tests on it though, and thus won't be submitting a PR. But this worked for me. |
We should do a new release of the current Git main branch, as I think the current main branch resolves this. |
What version of cargo/rustc are you using? |
I also have this issue -- It happens on 1.34.0, 1.76.0, 1.84.0-stable and 1.84.0-nightly. Exact error and output as this guy. [package]
name = "sdthemis"
version = "1.0.0"
authors = ["hidden"]
edition = "2018"
[features]
docker = []
[dependencies]
rumqtt = {git = "https://github.com/AtherEnergy/rumqtt.git"}
pretty_env_logger = "0.3.0"
bitfield = "0.13.1"
ruci_lib = {path = "../ruci-lib"}
sd_confs = {path = "../sd-confs"}
euiparser = {path = "../euiparser"}
serde = "1.0.80"
serde_json = "1.0.33"
uuid = { version = "0.7", features = ["serde", "v4"] }
log = "0.4.6"
quick-error = "1.2.2"
env_logger = "0.7.1"
libc = "0.2"
nix = "0.18"
privdrop = "0.5.0" I also have the following dependency tree for ring:
I am building with: cargo build --release --target arm-unknown-linux-gnueabi --bin sdthemis |
I don't use ring directly. One of my project dependencies depends on ring. After running
cargo update
on my project, and then attemptingcargo build
, I get a compile error during the ring compile. I will be reverting my cargo.lock file. This looks like a simple fix, although I will leave that up to the original developer.Compiling ring v0.17.8
error[E0283]: type annotations needed
--> /home/x/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.13.5/build.rs:482:52
|
482 | let _ = c.flag("-Wl,--gc-sections".into());
| ---- ^^^^
| |
| required by a bound introduced by this call
|
= note: multiple
impl
s satisfying_: AsRef<OsStr>
found in the following crates:cc
,std
:- impl AsRef for OsStr;
- impl AsRef for OsString;
- impl AsRef for Path;
- impl AsRef for PathBuf;
- impl AsRef for String;
- impl AsRef for str;
- impl AsRef for windows_registry::Env;
note: required by a bound in
Build::flag
--> /home/x/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.1.14/src/lib.rs:533:39
|
533 | pub fn flag(&mut self, flag: impl AsRef) -> &mut Build {
| ^^^^^^^^^^^^ required by this bound in
Build::flag
help: try using a fully qualified path to specify the expected types
|
482 | let _ = c.flag(<&str as Into>::into("-Wl,--gc-sections"));
| ++++++++++++++++++++++++ ~
help: consider removing this method call, as the receiver has type
&'static str
and&'static str: AsRef<OsStr>
trivially holds|
482 - let _ = c.flag("-Wl,--gc-sections".into());
482 + let _ = c.flag("-Wl,--gc-sections");
The text was updated successfully, but these errors were encountered: