You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
x86_64-windows-musl: getaddrinfo cannot resolve a host name (no /etc/resolv.conf on Windows) #46
On x86_64-windows-musl, a host name does not resolve. A connect by address works.
Measured on 2026-10-02 with tinyhttps (mcpplibs/tinyhttps#23), openkal-llvm-runtime 0.15.2 (openkal-musl 0.19.2), llvm@22.1.8 and mcpp 2026.9.30.2. The program ran under wine on an x86_64 Linux host that does have DNS:
openkal has no name-resolution interface. musl's resolver reads /etc/resolv.conf, and a Windows system does not have that file. Library code also cannot fall back on a nameserver of its own, because it has no portable way to find out which nameserver the system uses.
What would help
Either a source of nameservers on Windows, such as an optional openkal interface or openkal-windows answering /etc/resolv.conf from the system's DNS configuration, or a documented statement that name resolution is unavailable on this target.
tinyhttps now documents the limitation (README, "Platforms") and its CI reports "no network" for this target rather than failing.
Activity