Skip to content
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

Latest master gives error when building std for unsupported #98293

Closed
Ayush1325 opened this issue Jun 20, 2022 · 0 comments · Fixed by #98457
Closed

Latest master gives error when building std for unsupported #98293

Ayush1325 opened this issue Jun 20, 2022 · 0 comments · Fixed by #98457
Labels
C-bug Category: This is a bug.

Comments

@Ayush1325
Copy link
Contributor

Ayush1325 commented Jun 20, 2022

The latest master: 4104596 gives error when trying to build std for x86_64-unknown-uefi

The error I get is the following:

error: `sys_common::condvar::Condvar::new` is not yet stable as a const fn
   --> /var/home/ayush/Documents/Programming/Rust/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/src/rust/library/std/src/sync/condvar.rs:129:26
    |
129 |         Condvar { inner: sys::Condvar::new() }
    |                          ^^^^^^^^^^^^^^^^^^^
    |
    = help: const-stable functions can only call other const-stable functions

error: `sys_common::mutex::MovableMutex::new` is not yet stable as a const fn
   --> /var/home/ayush/Documents/Programming/Rust/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/src/rust/library/std/src/sync/mutex.rs:220:20
    |
220 |             inner: sys::MovableMutex::new(),
    |                    ^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: const-stable functions can only call other const-stable functions

error: `sys_common::rwlock::MovableRwLock::new` is not yet stable as a const fn
   --> /var/home/ayush/Documents/Programming/Rust/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/src/rust/library/std/src/sync/rwlock.rs:153:20
    |
153 |             inner: sys::MovableRwLock::new(),
    |                    ^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: const-stable functions can only call other const-stable functions

error: could not compile `std` due to 3 previous errors

I am currently working on porting Rust std to UEFI. Previously was using a week-old master and decided to rebase today. However, not sure how to fix this error which showed up after rebase.

After looking at previous commits, the culprit seems to be edae495

@Ayush1325 Ayush1325 added the C-bug Category: This is a bug. label Jun 20, 2022
@Ayush1325 Ayush1325 changed the title Latest master gives error with build-std Latest master gives error when building std for x86_64-unknown-uefi Jun 20, 2022
@Ayush1325 Ayush1325 changed the title Latest master gives error when building std for x86_64-unknown-uefi Latest master gives error when building std for unsupported Jun 20, 2022
@bors bors closed this as completed in e20fabb Sep 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant