<!-- Please provide the below information: * a Minimum Working Example without any dependencies (except libc) that shows the issue and ideally reproduces in the Rust playground * the target triple - libc supports many targets and many APIs * instructions to reproduce, logs (e.g. build logs, links to Travis-CI logs, uploads to github gists, etc.). In general, just please consider that the people who can help you are all very busy, they will be helping you in their free time, there are a lot of people in need of help so they need to prioritize to which issues they devote their free time, etc. So try to give most of the information upfront, be concise, show small self-contained examples (nobody has time to create a new cargo project, set up dependencies,...), etc. Help us help you. --> While browsing the libc crate source code, I noticed [this part](https://github.com/rust-lang/libc/blob/main/build.rs#L94): ```rust // loongarch64 and ohos have already updated if musl_v1_2_3 || target_os == "loongarch64" || target_env == "ohos" { // FIXME(musl): enable time64 api as well set_cfg("musl_v1_2_3"); } ``` This is suspicious because it should probably be `target_arch`, not `target_os`.