Skip to content

Instantly share code, notes, and snippets.

@Seeker14491
Created October 28, 2015 23:45
Show Gist options
  • Save Seeker14491/ead09b737fefc367f193 to your computer and use it in GitHub Desktop.
Save Seeker14491/ead09b737fefc367f193 to your computer and use it in GitHub Desktop.
Administrator@WIN-25P08VE0STQ MSYS ~
$ git clone "https://github.com/alexcrichton/curl-rust.git" --branch "update-curl"
Cloning into 'curl-rust'...
remote: Counting objects: 3905, done.
remote: Total 3905 (delta 0), reused 0 (delta 0), pack-reused 3905
Receiving objects: 100% (3905/3905), 3.94 MiB | 4.85 MiB/s, done.
Resolving deltas: 100% (1754/1754), done.
Checking connectivity... done.
Administrator@WIN-25P08VE0STQ MSYS ~
$ cd curl-rust/
Administrator@WIN-25P08VE0STQ MSYS ~/curl-rust
$ git submodule update --init
Submodule 'curl-sys/curl' (https://github.com/alexcrichton/curl) registered for path 'curl-sys/curl'
Cloning into 'curl-sys/curl'...
remote: Counting objects: 111787, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 111787 (delta 2), reused 0 (delta 0), pack-reused 111779
Receiving objects: 100% (111787/111787), 32.10 MiB | 5.64 MiB/s, done.
Resolving deltas: 100% (86838/86838), done.
Checking connectivity... done.
Submodule path 'curl-sys/curl': checked out 'bef500c722efafe49a011f986e9df627340aec75'
Administrator@WIN-25P08VE0STQ MSYS ~/curl-rust
$ cargo build
Updating registry `https://github.com/rust-lang/crates.io-index`
Compiling winapi v0.2.4
Compiling matches v0.1.2
Compiling winapi-build v0.1.1
Compiling libc v0.1.12
Compiling rustc-serialize v0.3.16
Compiling url v0.2.37
Compiling advapi32-sys v0.1.2
Compiling pkg-config v0.3.6
Compiling log v0.3.3
Compiling gcc v0.3.19
Compiling curl-sys v0.1.26 (file:///C:/msys64/home/Administrator/curl-rust)
Compiling libz-sys v0.1.9
failed to run custom build command for `curl-sys v0.1.26 (file:///C:/msys64/home/Administrator/curl-rust)`
Process didn't exit successfully: `C:\msys64\home\Administrator\curl-rust\target\debug\build\curl-sys-dee6cf49b2b17e93\build-script-build` (exit code: 101)
--- stdout
Couldn't find libcurl from pkgconfig ("`\"pkg-config\" \"--libs\" \"--cflags\" \"libcurl\"` did not exit successfully: exit code: 1\n--- stderr\nPackage libcurl was not found in the pkg-config search path.\nPerhaps you should add the directory containing `libcurl.pc\'\nto the PKG_CONFIG_PATH environment variable\nNo package \'libcurl\' found\n"), compiling it from source...
cargo:rustc-link-search=C:\msys64\home\Administrator\curl-rust\target\debug\build\curl-sys-dee6cf49b2b17e93\out/lib
cargo:rustc-link-lib=static=curl
cargo:root=C:\msys64\home\Administrator\curl-rust\target\debug\build\curl-sys-dee6cf49b2b17e93\out
cargo:include=C:\msys64\home\Administrator\curl-rust\target\debug\build\curl-sys-dee6cf49b2b17e93\out/include
cargo:rustc-flags=-l ws2_32
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: "sh" "/c/msys64/home/Administrator/curl-rust/curl-sys/curl/configure" "--with-winssl" "--enable-static=yes" "--enable-shared=no" "--enable-optimize" "--prefix=C:\\msys64\\home\\Administrator\\curl-rust\\target\\debug\\build\\curl-sys-dee6cf49b2b17e93\\out" "--without-librtmp" "--without-libidn" "--without-libssh2" "--without-nghttp2" "--disable-ldap" "--disable-ldaps" "--disable-ftp" "--disable-rtsp" "--disable-dict" "--disable-telnet" "--disable-tftp" "--disable-pop3" "--disable-imap" "--disable-smtp" "--disable-gopher" "--disable-manual"
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether to enable debug build options... no
checking whether to enable compiler optimizer... yes
checking whether to enable strict compiler warnings... no
checking whether to enable compiler warnings as errors... no
checking whether to enable curl debug memory tracking... no
checking whether to enable hiding of library internal symbols... yes
checking whether to enable c-ares for DNS lookups... no
checking whether to disable dependency on -lrt... (assumed no)
;;
*
no
checking for path separator... :
checking for sed... /usr/bin/sed
checking for grep... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ar... /mingw64/bin/ar
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... gcc.exe
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc.exe accepts -g... yes
checking for gcc.exe option to accept ISO C89... none needed
checking whether gcc.exe understands -c and -o together... yes
checking how to run the C preprocessor... gcc.exe -E
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking dependency style of gcc.exe... gcc3
checking curl version... 7.45.0-DEV
checking build system type...
--- stderr
/bin/sh: /c/msys64/home/Administrator/curl-rust/curl-sys/curl/missing: No such file or directory
configure: WARNING: 'missing' script is too old or missing
/c/msys64/home/Administrator/curl-rust/curl-sys/curl/config.guess: unable to guess system type
This script, last modified 2013-06-10, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
If the version you run (/c/msys64/home/Administrator/curl-rust/curl-sys/curl/config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.
config.guess timestamp = 2013-06-10
uname -m = x86_64
uname -r = 2.3.0(0.290/5/3)
uname -s = MSYS_NT-6.3
uname -v = 2015-10-20 10:04
/usr/bin/uname -p = unknown
/bin/uname -X =
hostinfo =
/bin/universe =
/usr/bin/arch -k =
/bin/arch = x86_64
/usr/bin/oslevel =
/usr/convex/getsysinfo =
UNAME_MACHINE = x86_64
UNAME_RELEASE = 2.3.0(0.290/5/3)
UNAME_SYSTEM = MSYS_NT-6.3
UNAME_VERSION = 2015-10-20 10:04
configure: error: cannot guess build type; you must specify one
thread '<main>' panicked at 'assertion failed: t!(cmd . status ( )).success()', curl-sys\build.rs:130
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment