Skip to content

VxWorks std does not build #143442

Open
Open
@Noratrieb

Description

@Noratrieb

Since 2025-05-15, vxworks std does not build: https://does-it-build.noratrieb.dev/target?target=aarch64-wrs-vxworks

https://does-it-build.noratrieb.dev/build?nightly=2025-07-04&target=aarch64-wrs-vxworks&mode=miri-std there's a type error.

rust-lang/libc#4407 added these values but they do not seem to have the types expected by std.

error[E0308]: mismatched types
   --> /var/lib/does-it-build/.rustup/toolchains/nightly-2025-07-04-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/pal/unix/thread.rs:225:42
    |
225 |         let mut name = truncate_cstr::<{ libc::VX_TASK_RENAME_LENGTH - 1 }>(name);
    |                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `i32`

error[E0425]: cannot find function `to_timespec` in this scope
    --> /var/lib/does-it-build/.rustup/toolchains/nightly-2025-07-04-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/fs/unix.rs:1581:30
     |
1581 |                 let times = [to_timespec(times.accessed)?, to_timespec(times.modified)?];
     |                              ^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function `to_timespec` in this scope
    --> /var/lib/does-it-build/.rustup/toolchains/nightly-2025-07-04-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/fs/unix.rs:1581:60
     |
1581 |                 let times = [to_timespec(times.accessed)?, to_timespec(times.modified)?];
     |                                                            ^^^^^^^^^^^ not found in this scop

@biabbas

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.O-vxworksTarget: when they made us, they called us Curiosity, and Spirit, and told us to tell you helloT-libsRelevant to the library team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions