-
-
Notifications
You must be signed in to change notification settings - Fork 16.1k
std doesn't build for x86_64-wrs-vxworks: no pread/pwrite on the target #160043
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.O-vxworksTarget: when they made us, they called us Curiosity, and Spirit, and told us to tell you helloTarget: 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.Relevant to the library team, which will review and decide on the PR/issue.
Description
Activity
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.O-vxworksTarget: when they made us, they called us Curiosity, and Spirit, and told us to tell you helloTarget: 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.Relevant to the library team, which will review and decide on the PR/issue.
x86_64-wrs-vxworksstill can't build std after #159991:sys/fd/unix.rs:32,406import
libc::pread/pwrite, which the target doesn't have, so-Zbuild-stdstops with two
error[E0432]. libc dropped its polyfills in rust-lang/libc#5129(0.2.187) and won't bring them back — rust-lang/libc#5328: "These are just stub
so I'd keep them removed. Like
killpg, fixing std by returning unsupportedwould be better."
They're only reached from
FileExt::read_at/read_buf_at/write_at, andlseek+readisn't a substitute since it isn't atomic. So: branch themper-target — as
read_vectoreddoes for espidf/horizon/vita/nuttx atsys/fd/unix.rs:127— and returnErrorKind::Unsupportedon vxworks.