alexcrichton / alexcrichton/nghttp2-rs

Error when building with target wasm32-unknown-unknown

Đang mở
#7 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Rust
Star
28
Fork
10
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

```

warning: In file included from nghttp2/lib/sfparse.c:27:
warning: In file included from nghttp2/lib/sfparse.h:46:
warning: /opt/homebrew/Cellar/llvm/16.0.6/lib/clang/16/include/inttypes.h:21:15: fatal error: 'inttypes.h' file not found
warning: #include_next
warning: ^~~~~~~~~~~~
warning: 1 error generated.

error: failed to run custom build command for `libnghttp2-sys v0.1.8+1.55.1`

Caused by:
process didn't exit successfully: `/Users/Projects/dioxus-mobile-test/target/debug/build/libnghttp2-sys-4ecdd379e7cf26b4/build-script-build` (exit status: 1)
--- stdout
TARGET = Some("wasm32-unknown-unknown")
OPT_LEVEL = Some("0")
HOST = Some("aarch64-apple-darwin")
cargo:rerun-if-env-changed=CC_wasm32-unknown-unknown
CC_wasm32-unknown-unknown = None
cargo:rerun-if-env-changed=CC_wasm32_unknown_unknown
CC_wasm32_unknown_unknown = None
cargo:rerun-if-env-changed=TARGET_CC
TARGET_CC = None
cargo:rerun-if-env-changed=CC
CC = Some("/opt/homebrew/opt/llvm/bin/clang")
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
cargo:rerun-if-env-changed=CFLAGS_wasm32-unknown-unknown
CFLAGS_wasm32-unknown-unknown = None
cargo:rerun-if-env-changed=CFLAGS_wasm32_unknown_unknown
CFLAGS_wasm32_unknown_unknown = None
cargo:rerun-if-env-changed=TARGET_CFLAGS
TARGET_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = None
running: "/opt/homebrew/opt/llvm/bin/clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "--target=wasm32-unknown-unknown" "-I" "nghttp2/lib/includes" "-I" "/Users/Projects/dioxus-mobile-test/target/wasm32-unknown-unknown/debug/build/libnghttp2-sys-53ad8e768a563971/out/i/include" "-DNGHTTP2_STATICLIB" "-DHAVE_NETINET_IN" "-DHAVE_ARPA_INET_H" "-o" "/Users/Projects/dioxus-mobile-test/target/wasm32-unknown-unknown/debug/build/libnghttp2-sys-53ad8e768a563971/out/i/lib/nghttp2/lib/sfparse.o" "-c" "nghttp2/lib/sfparse.c"
cargo:warning=In file included from nghttp2/lib/sfparse.c:27:

cargo:warning=In file included from nghttp2/lib/sfparse.h:46:

cargo:warning=/opt/homebrew/Cellar/llvm/16.0.6/lib/clang/16/include/inttypes.h:21:15: fatal error: 'inttypes.h' file not found

cargo:warning=#include_next

cargo:warning= ^~~~~~~~~~~~

cargo:warning=1 error generated.

exit status: 1

--- stderr

error occurred: Command "/opt/homebrew/opt/llvm/bin/clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "--target=wasm32-unknown-unknown" "-I" "nghttp2/lib/includes" "-I" "/Users/Projects/dioxus-mobile-test/target/wasm32-unknown-unknown/debug/build/libnghttp2-sys-53ad8e768a563971/out/i/include" "-DNGHTTP2_STATICLIB" "-DHAVE_NETINET_IN" "-DHAVE_ARPA_INET_H" "-o" "/Users/Projects/dioxus-mobile-test/target/wasm32-unknown-unknown/debug/build/libnghttp2-sys-53ad8e768a563971/out/i/lib/nghttp2/lib/sfparse.o" "-c" "nghttp2/lib/sfparse.c" with args "clang" did not execute successfully (status code exit status: 1).

```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.