Fails to build on Windows
vinipsmaker opened this issue · 5 comments
This definitely will be fixed. Thanks for reporting!
@vinipsmaker, could you please provide more details about what errors do you get while building on Windows?
Appveyor CI builds seem to be producing correct results on both MSVC x64 and 32-bit MSYS: https://ci.appveyor.com/project/nbaksalyar/rust-streaming-http-parser
It was on the AppVeyor on one of the commits of this PR: maidsafe-archive/crust#715
However, I rebased the PR and lost the history of the commits (and I don't know where the AppVeyor log went).
You could try to build this: https://github.com/vinipsmaker/http-pull-parser-rs/tree/0.1.2
Cannot compile on Windows (win10) through cargo, error:
error: failed to run custom build command for `http-muncher v0.2.4`
Process didn't exit successfully: `X:\rust\chat\target\debug\build\http-muncher- 9ef5012ac945138a\build-script-build` (exit code: 101)
--- stdout
TARGET = Some("x86_64-pc-windows-gnu")
OPT_LEVEL = Some("0")
PROFILE = Some("debug")
TARGET = Some("x86_64-pc-windows-gnu")
debug=true opt-level=0
HOST = Some("x86_64-pc-windows-gnu")
TARGET = Some("x86_64-pc-windows-gnu")
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
running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-m64" "-o " "X:\\rust\\chat\\target\\debug\\build\\http-muncher-9ef5012ac945138a\\out\\htt p-parser\\http_parser.o" "-c" "http-parser/http_parser.c"
ExitStatus(ExitStatus(1))
command did not execute successfully, got: exit code: 1
--- stderr
http-parser/http_parser.c:1:0: sorry, unimplemented: 64-bit mode not compiled in
/* Based on src/http/ngx_http_parse.c from NGINX copyright Igor Sysoev
^
thread '<main>' panicked at 'explicit panic', C:\Users\hkmp7\.cargo\registry\src \github.com-88ac128001ac3a9a\gcc-0.3.28\src\lib.rs:840
note: Run with `RUST_BACKTRACE=1` for a backtrace.
Any ideas?
@red2awn, it seems that 64-bit MSYS GCC isn't supported by the underlying library, https://github.com/nodejs/http-parser.
I'm not sure about the reason, because it compiles OK with the 64-bit MSVC compiler.
I'll take a look into that, thanks for the report!