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

I can't compile #445

Open
AlscadIngenierie opened this issue Jan 30, 2019 · 1 comment
Open

I can't compile #445

AlscadIngenierie opened this issue Jan 30, 2019 · 1 comment

Comments

@AlscadIngenierie
Copy link

AlscadIngenierie commented Jan 30, 2019

error[E0046]: not all trait items implemented, missing: `encode`
    --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.3.24/src/serialize.rs:1358:1
     |
853  |     fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error>;
     |     ---------------------------------------------------------------- `encode` from trait
...
1358 | impl Encodable for path::Path {
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `encode` in implementation

error[E0046]: not all trait items implemented, missing: `decode`
    --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.3.24/src/serialize.rs:1382:1
     |
904  |     fn decode<D: Decoder>(d: &mut D) -> Result<Self, D::Error>;
     |     ----------------------------------------------------------- `decode` from trait
...
1382 | impl Decodable for path::PathBuf {
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `decode` in implementation

@zydxhs
Copy link

zydxhs commented Jul 31, 2019

I had a similar problem, os=win7 64bit,:
error: failed to run custom build command for rust-crypto v0.2.36
process didn't exit successfully: E:\code\rust\hello\target\debug\build\rust-crypto-381e1f5a94ff2bec\build-script-build (exit code:
101)
--- stdout
TARGET = Some("x86_64-pc-windows-gnu")
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-pc-windows-gnu")
TARGET = Some("x86_64-pc-windows-gnu")
HOST = Some("x86_64-pc-windows-gnu")
CFLAGS_x86_64-pc-windows-gnu = None
CFLAGS_x86_64_pc_windows_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-m64" "-Wall" "-Wextra" "-o" "E:\code\rust\hello\target\debug\build\rust-crypto-dca8f45881417d38\out\src\util_helpers.o" "-c" "src/util_helpers.c"

--- stderr
thread 'main' panicked at '

Internal error occurred: Failed to find tool. Is cc installed? (see https://github.com/alexcrichton/gcc-rs#compile-time-requirements for help)

', D:\Program\cargo\registry\src\mirrors.ustc.edu.cn-61ef6e0cd06fb9b8\gcc-0.3.55\src\lib.rs:1672:5
note: Run with RUST_BACKTRACE=1 environment variable to display a backtrace.

warning: build failed, waiting for other jobs to finish...
error: build failed

rimbi pushed a commit to rimbi/rust-crypto that referenced this issue Sep 3, 2019
Fixes the build problem which arises when the
* host is windows
* target is x86_64-pc-windows-gnu
The problem is fixed by setting the compiler to gcc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants