alexcrichton / alexcrichton/curl-rust

failed to run custom build command for `curl-sys v0.4.36+curl-7.71.1`

Offen
#369 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Rust
Sterne
1.1k
Forks
258
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

When trying to cargo install a package that depends on this package, I am getting this error.

I found an issue that was very similar, if not the same as mine:
https://github.com/alexcrichton/curl-rust/issues/240

I looked at the solution, where someone added a conditional on the custom build script based off of the xcodebuild -version being greater than or less than 9.

I am on xcodebuild -version = 12.3
I am running a mac OS and just upgraded to bigsur

```
warning: clang-4.0: warning: argument unused during compilation: '-L/usr/local/lib' [-Wunused-command-line-argument]
warning: clang-4.0: warning: argument unused during compilation: '-L/usr/local/lib' [-Wunused-command-line-argument]
warning: clang-4.0: warning: argument unused during compilation: '-L/usr/local/lib' [-Wunused-command-line-argument]
warning: clang-4.0: warning: argument unused during compilation: '-L/usr/local/lib' [-Wunused-command-line-argument]
warning: curl/lib/connect.c:1219:30: error: unrecognized platform name macOS
warning: if(__builtin_available(macOS 10.11, iOS 9.0, tvOS 9.0, watchOS 2.0, *)) {
warning: ^
warning: curl/lib/connect.c:1219:43: error: unrecognized platform name iOS
warning: if(__builtin_available(macOS 10.11, iOS 9.0, tvOS 9.0, watchOS 2.0, *)) {
warning: ^
warning: curl/lib/connect.c:1219:52: error: unrecognized platform name tvOS
warning: if(__builtin_available(macOS 10.11, iOS 9.0, tvOS 9.0, watchOS 2.0, *)) {
warning: ^
warning: curl/lib/connect.c:1219:62: error: unrecognized platform name watchOS
warning: if(__builtin_available(macOS 10.11, iOS 9.0, tvOS 9.0, watchOS 2.0, *)) {
warning: ^
warning: 4 errors generated.

error: failed to run custom build command for `curl-sys v0.4.36+curl-7.71.1`
```

At this point I am not sure if it is something I have configured incorrectly, or an actual issue with the code/project. Because I saw someone with a similar issue, I thought I would repost and try to find out more. Any guidance is much appreciated.

Best Wishes!

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.