Skip to content

build x86_64-unknown-motor failed #160366

Closed
Closed

Description

@Wyvern

rustc 1.99.0-nightly (73dc916 2026-08-01)
target: x86_64-unknown-motor
build with -Zbuild-std

error[: mismatched types
    ╭▸ /rustc/73dc9167f1cd099e525c9ade2e068d1907b78564/library/std/src/sys/process/motor.rs:149:13
    │
149 │         let (handle, stdin, stdout, stderr) =
    │             ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ expected `SpawnResult`, found `(_, _, _, _)`
150 │             moto_rt::process::spawn(args).map_err(map_motor_error)?;
    │             ─────────────────────────────────────────────────────── this expression has type `SpawnResult`
    │
    ╰ note: expected struct `SpawnResult`
                found tuple `(_, _, _, _)`

For more information about this error, try `rustc --explain E0308`.
error: could not compile `std` (lib) due to 1 previous error

Activity

  1. added
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Aug 2, 2026
  2. zachs18 commented on Aug 2, 2026

    @zachs18
    Contributor

    Regression in de53406. Note that if it is a legacy rollup build, it might be available in rust-lang-ci@de53406.
    The PR introducing the regression in this rollup is #160262 : Library lock file maintenance

    searched nightlies: from nightly-2026-07-31 to nightly-2026-08-02
    regressed nightly: nightly-2026-08-02
    searched commit range: ad3d0bc...73dc916
    regressed commit: 73dc916

    bisected with cargo-bisect-rustc v0.6.11

    Host triple: x86_64-unknown-linux-gnu
    Reproduce with:

    cargo bisect-rustc --with-src --preserve --regress error -- build -Zbuild-std=core,alloc,std,panic_abort --target x86_64-unknown-motor 

    with fn main() {} in src/lib.rs

    #160262 updated moto-rt from 0.16.0 to 0.16.4. In 0.16.0, moto_rt::process::spawn returns Result<(u64, RtFd, RtFd, RtFd)>, but in 0.16.4 it returns Result<SpawnResult>, where SpawnResult is a struct.

    @rustbot label O-motor-os

  3. added
    O-motor-osOperating system: Motor OS, https://doc.rust-lang.org/nightly/rustc/platform-support/motor.html
    on Aug 2, 2026
  4. zachs18 commented on Aug 2, 2026

    @zachs18
    Contributor

    cc @lasiotus (*-unknown-motor target maintainer)

    moturus/motor-os@6f1b844#diff-37762e512e788308bca5b31c747fe764f3e8f508275fe89a3e602b98cc050683

    Seems like the signature change for moto_rt::process::spawn should have been a semver-major change for moto-rt?

  5. added
    T-libsRelevant to the library team, which will review and decide on the PR/issue.
    C-bugCategory: This is a bug.
    on Aug 2, 2026
  6. lasiotus commented on Aug 2, 2026

    @lasiotus
    Contributor

    cc @lasiotus (*-unknown-motor target maintainer)

    moturus/motor-os@6f1b844#diff-37762e512e788308bca5b31c747fe764f3e8f508275fe89a3e602b98cc050683

    Seems like the signature change for moto_rt::process::spawn should have been a semver-major change for moto-rt?

    Ack. Sorry about that. I've yanked v0.16.4 and will publish v 0.17.0 today.

  7. lasiotus commented on Aug 2, 2026

    @lasiotus
    Contributor

    The FIX: #160392

  8. lasiotus commented on Aug 25, 2026

    @lasiotus
    Contributor

    Fixed by PR #160392

  9. joboet commented on Sep 1, 2026

    @joboet
    Member

    Indeed, does-it-build shows it passing again.

  10. removed
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.O-motor-osOperating system: Motor OS, https://doc.rust-lang.org/nightly/rustc/platform-support/motor.htmlT-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