-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Cargo build failed in 0.6.4 [windows] #607
Comments
@shinchiro openssl requires some native dependencies to build on windows, see this section from the rust-openssl README: https://github.com/sfackler/rust-openssl#windows. |
I have a weirder, but I think related, error:
Compiling with MSYS2, I made sure OpenSSL was installed with |
Also, if you don't want https support (or at least, from openssl), you can On Tue, Jul 14, 2015, 6:37 AM Artem notifications@github.com wrote:
|
@cybergeek94 Im pretty sure you're using wrong gcc, MSYS2 one, instead of gcc that comes with To make sure see what |
@shinchiro I think something "wrong" with your gcc setup (see this issue from |
@semmaz Thanks..finally I managed to compile hyper via mingw64_shell.bat. But is it possible to compile it inside IDE like atom (build package) with mingw64_shell or something like that |
@shinchiro Just bring As for atom specific build package, this is achievable with custom build command, but, it seems that setting
and launching it from custom build command. |
Got it..thanks :)
|
Closing as this seems to be an openssl issue, and it seems to have been fixed-ish. |
Error compiling openssl-sys:
Executing: cargo build
Compiling traitobject v0.0.1
Compiling lazy_static v0.1.11
Compiling libc v0.1.9
Compiling pkg-config v0.3.5
Compiling winapi-build v0.1.0
Compiling httparse v0.1.5
Compiling language-tags v0.0.7
Compiling bitflags v0.3.2
Compiling matches v0.1.2
Compiling rustc-serialize v0.3.15
Compiling unicase v0.1.0
Compiling gcc v0.3.8
Compiling typeable v0.1.2
Compiling log v0.3.1
Compiling num_cpus v0.2.6
Compiling winapi v0.1.23
Compiling kernel32-sys v0.1.2
Compiling hpack v0.2.0
Compiling mime v0.0.12
Compiling openssl-sys v0.6.4
Build failed, waiting for other jobs to finish...
failed to run custom build command for
openssl-sys v0.6.4
Process didn't exit successfully:
D:\a\b\target\debug\build\openssl-sys-149f6ef08ad7404d\build-script-build
(exit code: 101)--- stdout
cargo:rustc-link-lib=dylib=eay32
cargo:rustc-link-lib=dylib=ssl32
TARGET = Some("x86_64-pc-windows-gnu")
TARGET = Some("x86_64-pc-windows-gnu")
CARGO_MANIFEST_DIR = Some("C:\Users\anon.cargo\registry\src\github.com-1ecc6299db9ec823\openssl-sys-0.6.4")
OUT_DIR = Some("D:\a\b\target\debug\build\openssl-sys-149f6ef08ad7404d\out")
OPT_LEVEL = Some("0")
PROFILE = Some("debug")
debug 0
TARGET = Some("x86_64-pc-windows-gnu")
HOST = Some("x86_64-pc-windows-gnu")
CC_x86_64-pc-windows-gnu = None
CC_x86_64_pc_windows_gnu = None
HOST_CC = None
CC = None
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
TARGET = Some("x86_64-pc-windows-gnu")
HOST = Some("x86_64-pc-windows-gnu")
CC_x86_64-pc-windows-gnu = None
CC_x86_64_pc_windows_gnu = None
HOST_CC = None
CC = None
running: "gcc" "-O0" "-c" "-ffunction-sections" "-fdata-sections" "-mwin32" "-m64" "-fPIC" "C:\Users\anon.cargo\registry\src\github.com-1ecc6299db9ec823\openssl-sys-0.6.4\src/openssl_shim.c" "-o" "D:\a\b\target\debug\build\openssl-sys-149f6ef08ad7404d\out\src\openssl_shim.o"
failed to execute command: The system cannot find the file specified.
(os error 2)
Is
gcc
not installed? (see https://github.com/alexcrichton/gcc-rs#windows-notes for help)--- stderr
' panicked at 'explicit panic', C:\Users\anon.cargo\registry\src\github.com-1ecc6299db9ec823\gcc-0.3.8\src\lib.rs:497thread '
The text was updated successfully, but these errors were encountered: