Comments (16)
from curl-rust.
@vvuk could you gist the logs of this? Our buildbots build Cargo (and transitively, this library) each night in MSYS2 and I've also built this a bunch locally, so I'm surprised this is happening!
from curl-rust.
Hmm. Maybe it's because I'm using the x64 version of msys2?
$ uname -a
MSYS_NT-6.3 shepherd 2.2.1(0.289/5/3) 2015-08-09 20:04 x86_64 Msys
$ cd curl-rust/curl-sys/curl
$ ./config.guess
./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 (./config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <[email protected]> in order to provide the needed
information to handle your system.
config.guess timestamp = 2013-06-10
uname -m = x86_64
uname -r = 2.2.1(0.289/5/3)
uname -s = MSYS_NT-6.3
uname -v = 2015-08-09 20: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.2.1(0.289/5/3)
UNAME_SYSTEM = MSYS_NT-6.3
UNAME_VERSION = 2015-08-09 20:04
$ curl -o config.guess 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD'
$ curl -o config.sub 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD'
$ ./config.guess
x86_64-pc-msys
from curl-rust.
Can you gist the build logs of Cargo trying to build libcurl? If I run this in a 64-bit msys2 shell it works out ok so I'm not quite sure what's going on.
from curl-rust.
Replace your
C:\Users\youname.cargo\registry\src\github.com-0a35038f75765ae4\curl-sys-0.1.25\curl\config.guess
by
msys64\usr\share\automake-1.15\config.guess
from curl-rust.
The log is pretty uninteresting, pretty much what I posted above: https://gist.github.com/vvuk/f37ec1d1e4d1bd94e96d
Note that the build totally wedges if I start using mingw64-shell.bat instead of msys-shell.bat (and add /mingw64/bin to the PATH) -- if $MSYSTEM is MINGW64, cmake doesn't recognize the system (and the build wedges earlier). If I use mingw64-shell.bat and then set MSYSTEM=MSYS, then I hit the above.
from curl-rust.
Hm ok, thanks for the logs! Does this branch work for you?
from curl-rust.
I'm having this issue too, here's the log: gist.
@alexcrichton your branch doesn't compile for me either, here's the log: gist.
from curl-rust.
@Seeker14491 your second error indicates that you may not have been running inside of an MSYS shell, are you sure you were?
from curl-rust.
@alexcrichton Yes, I'm using MSYS2. I followed the install instructions, then ran these commands:
$ pacman -S mingw-w64-x86_64-toolchain
$ pacman -S git
$ pacman -S --needed base-devel
The thing is, I had problems running these commands on my computer, as the downloads would time out on my connection, so I spun up a Windows Server 2012 VPS. I Installed MSYS2 on it and ran all the commands, which completed successfully. I then transferred the C:\msys64
folder from the VPS to my computer.
I should have tried building on the VPS to see if that worked; I'll try that now.
from curl-rust.
Ok, I tried building on the VPS, and I get the same error. Here are the exact steps I took:
- Go to the MSYS2 page; download and install the 64-bit version; follow all installation instructions on that page.
- Run the following commands in the MSYS2 shell:
$ pacman -S mingw-w64-x86_64-toolchain
$ pacman -S git
$ pacman -S --needed base-devel
- Add
C:\msys64\mingw64\bin
toPATH
. - Install 64-bit Rust nightly; tick installation option to add to
PATH
. - In the MSYS2 shell, run the commands:
$ git clone "https://github.com/alexcrichton/curl-rust.git" --branch "update-curl"
$ cd curl-rust
$ cargo build --release
Here's the output of that cargo build
command: gist
from curl-rust.
@Seeker14491 oh right sorry, I read that error message wrong. You'll need to run git submodule update --init
to check out the libcurl submodule
from curl-rust.
@alexcrichton this sequence of commands still fails:
$ git clone "https://github.com/alexcrichton/curl-rust.git" --branch "update-curl"
$ cd curl-rust
$ git submodule update --init
$ cargo build
from curl-rust.
Ah oops, looks like I forgot to check in a file, wanna try that branch again?
from curl-rust.
@alexcrichton Ok, I reran that same sequence of commands, but it still errors.
from curl-rust.
Hm that looks to be the same error as before, so maybe it hasn't been fixed upstream?
from curl-rust.
Related Issues (20)
- 16K max response size for easy::Easy.transfer.write_function()? HOT 2
- How to retrieve body only? HOT 1
- Incorrect comment for CURL_HTTP_VERSION_3 HOT 3
- curl smashes moka cache HOT 4
- Link to custom libcurl on macOS
- bundled libcurl limits cookie expiry date to the year 2038 HOT 1
- Crashes on run on macOS Sonoma 14.0 Beta (23A5312d) HOT 14
- one of your examples doesnt work HOT 3
- Library with command line arguments always returns 301 HOT 4
- Best way to use Easy2 when downloading large files and can resume download if connection fails
- Can't compile curl-sys v0.4.68+curl-8.4.0 on M1 Pro with Sonoma HOT 1
- Versioning up of this crate
- How to make OpenSSL as the TLS backend on Windows and macOS? HOT 2
- HTTP response version HOT 5
- Missing debug_function in curl::easy::Easy2
- v0.4.69 release cannot be compiled because it's missing its copy of curl HOT 2
- Adopt openssl@3 HOT 1
- more easily get access to headers in Easy2 client HOT 2
- 0.4.45: Compilation issue HOT 2
- EOF error parsing large JSON response HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from curl-rust.