Build error: configure: error: You must get working getaddrinfo() function or pass the "--disable-ipv6" option to configure.
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- build-system
Hướng nghiên cứu
Bắt đầu với build.rs và cpython/builddir/wasi/config.log, sau đó so sánh kiểm tra getaddrinfo bị lỗi với mục trong Makefile của wasi-sdk wasi-libc bỏ qua netdb.h cho WASI snapshot p1. Xem CONTRIBUTING.md để biết revision wasi-sdk được chỉ định và tái hiện bản build Nix; hoàn tất khi bản build componentize-py hoàn thành mà không có lỗi configure.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I'm trying to build componentize-py with Nix and encountered the following problem. Am I missing something or maybe doing something obviously wrong?
Build error:
> error: failed to run custom build command for `componentize-py v0.16.0 (/build/source)`
>
> Caused by:
> process didn't exit successfully: `/build/source/target/release/build/componentize-py-a59959045623dda0/build-script-build` (exit status: 1)
> --- stdout
> cargo:rerun-if-changed=build.rs
>
> --- stderr
> Error: command `../../Tools/wasm/wasi-env ../../configure -C --host=wasm32-unknown-wasi --build=x86_64-pc-linux-gnu
> --with-build-python=/build/source/cpython/builddir/wasi/../build/python --prefix=/build/source/cpython/builddir/wasi/install --disable-test-modules --enable-ipv6` failed: configure: error: You must get working getaddrinfo() function or pass the "--disable-ipv6" option to configure.
>
> 💥 maturin failed
> Caused by: Failed to build a native library through cargo
> Caused by: Cargo build finished with "exit status: 101": `env -u CARGO "cargo" "rustc" "--jobs" "16" "--features" "pyo3/extension-module" "--target" "x86_64-unknown-linux-gnu" "--message-format" "json-render-diagnostics" "--offline" "--manifest-path" "/build/source/Cargo.toml" "--release" "--lib" "--crate-type" "cdylib" "--" "-C" "strip=symbols"`
I've dug a bit, and configure fails because netdb.h header is missing:
cpython/builddir/wasi/config.log
<snip>
configure:22403: checking for getaddrinfo
configure:22426: /nix/store/jflmkk9kx2cw7qwxij7iw9fzphjv194s-wasi-sdk-wasi-sockets-alpha-5/opt/wasi-sdk/bin/clang --sysroot=/nix/store/jflmkk9kx2cw7qwxij7iw9fzphjv194s-wasi-sdk-wasi-sockets-alpha-5/opt/wasi-sdk/share/wasi-sysroot -o conftest conftest.c -ldl -lwasi-emulated-signal -lwasi-emulated-getpid -lwasi-emulated-process-clocks >&5
conftest.c:201:10: fatal error: 'netdb.h' file not found
201 | #include <netdb.h>
| ^~~~~~~~~
1 error generated.
<snip>
I'm using wasi-sockets-alpha-5 tag (f3a1f89915357e0b00fb269a34f92b6d0bafd4c1) for wasi-sdk, as specified in CONTRIBUTING.md. It seem to omit netdb.h for target wasm32-wasip1 , which is synonymous with wasm32-wasi:
wasi-sdk/src/wasi-libc/Makefile
<snip>
ifeq ($(WASI_SNAPSHOT), p1)
MUSL_OMIT_HEADERS += "netdb.h"
endif
<snip>
componentize-py revision: https://github.com/bytecodealliance/componentize-py/commit/c50822c825b4333ff41a0ea3cd9e0c9bc3df49da
wasi-sdk revision: https://github.com/dicej/wasi-sdk/commit/f3a1f89915357e0b00fb269a34f92b6d0bafd4c1
- Ngôn ngữ chính
- Rust
- Star
- 284
- Fork
- 56
- Merge trung bình
- 2 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của bytecodealliance/componentize-py
-
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 40/100
bytecodealliance/componentize-py#259 · 1 bình luận ·
-
wasm32-wasip3 target uses WASI preview 2 bindingsCó thể đã có người làm @Snowiiii đã nhận 6 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 57/100
bytecodealliance/componentize-py#253 · 1 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
bytecodealliance/componentize-py#247 · 12 bình luận ·
-
ModuleNotFoundError errorĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
bytecodealliance/componentize-py#217 · 6 bình luận ·
Tất cả issue của bytecodealliance/componentize-py
Issue tương tự
-
Test connection's password prompt says the password is never saved, also for a keychain profileĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area: settings bug Haiku review: no-score ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
MMFoundation/WallpaperMachine#346 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Make the HTTP server's keep-alive and headers timeouts configurableCó thể đã có người làm @mattgodbolt đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
compiler-explorer/compiler-explorer#9902 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
jonathanong/no-mistakes#5490 ·
-
follow-up
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày