Skip to content

missing sched_ss_init_budget, sched_ss_low_priority, sched_ss_max_repl and 1 other field #3166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cn-kali-team opened this issue Sep 29, 2021 · 1 comment

Comments

@cn-kali-team
Copy link

  • git clone --depth=1 https://github.com/RustPython/RustPython
  • use x86_64-unknown-linux-musl
➜  RustPython git:(main) cargo build --target=x86_64-unknown-linux-musl --release --all-features                                            [0/952]
   Compiling rustpython-vm v0.1.2 (/home/kali-team/PudgeProject/RustPython/vm)
warning: use of deprecated type alias `libc::time_t`: This type is changed to 64-bit in musl 1.2.0, we'll follow that change in the future release. See #1848 for more info.
   --> vm/src/stdlib/time.rs:380:35
    |
380 |             tv_sec: std::cmp::min(libc::time_t::max_value() as u64, dur.as_secs()) as libc::time_t,
    |                                   ^^^^^^^^^^^^
    |
    = note: `#[warn(deprecated)]` on by default

warning: use of deprecated type alias `libc::time_t`: This type is changed to 64-bit in musl 1.2.0, we'll follow that change in the future release. See #1848 for more info.
   --> vm/src/stdlib/time.rs:380:87
    |
380 |             tv_sec: std::cmp::min(libc::time_t::max_value() as u64, dur.as_secs()) as libc::time_t,
    |                                                                                       ^^^^^^^^^^^^

error[E0063]: missing fields `sched_ss_init_budget`, `sched_ss_low_priority`, `sched_ss_max_repl` and 1 other field in initializer of `sched_param`
   --> vm/src/stdlib/posix.rs:493:16
    |
493 |             Ok(libc::sched_param { sched_priority })
    |                ^^^^^^^^^^^^^^^^^ missing `sched_ss_init_budget`, `sched_ss_low_priority`, `sched_ss_max_repl` and 1 other field

error: aborting due to previous error; 2 warnings emitted

For more information about this error, try `rustc --explain E0063`.
error: could not compile `rustpython-vm`

To learn more, run the command again with --verbose.
@youknowone
Copy link
Member

I think this is bug report for musl build, rather than missing fields themselves.
I fixed them in #3802 and added musl build to CI. we will keep them working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants