Skip to content

Build leaf error #18

Closed
Closed

Description

@mikexxma

error[E0599]: no method named raw found for struct Handle in the current scope
--> C:\Users\zenlayer.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys\windows\fs.rs:360:29
|
360 | self.handle.raw(),
| ^^^ method not found in Handle
|
::: C:\Users\zenlayer.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys\windows\handle.rs:17:1
|
17 | pub struct Handle(OwnedHandle);
| ------------------------------- method raw not found for this

error[E0599]: no method named raw found for struct Handle in the current scope
--> C:\Users\zenlayer.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys\windows\fs.rs:388:29
|
388 | self.handle.raw(),
| ^^^ method not found in Handle
|
::: C:\Users\zenlayer.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys\windows\handle.rs:17:1
|
17 | pub struct Handle(OwnedHandle);
| ------------------------------- method raw not found for this

error[E0599]: no function or associated item named new found for struct Handle in the current scope
--> C:\Users\zenlayer.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys\windows\stdio_uwp.rs:28:26
|
28 | let handle = Handle::new(handle);
| ^^^ function or associated item not found in Handle
|
::: C:\Users\zenlayer.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys\windows\handle.rs:17:1
|
17 | pub struct Handle(OwnedHandle);
| ------------------------------- function or associated item new not found for this

error[E0599]: no method named write found for struct ManuallyDrop<_> in the current scope
--> C:\Users\zenlayer.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys\windows\stdio_uwp.rs:29:31
|
29 | ManuallyDrop::new(handle).write(data)
| ^^^^^ method not found in ManuallyDrop<_>
|
= note: ManuallyDrop::new(handle) is a function, perhaps you wish to call it
= help: items from traits can only be used if the trait is implemented and in scope
note: io::Write defines an item write, perhaps you need to implement it
--> C:\Users\zenlayer.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\io\mod.rs:1368:1
|
1368 | pub trait Write {
| ^^^^^^^^^^^^^^^

error[E0599]: no function or associated item named new found for struct Handle in the current scope
--> C:\Users\zenlayer.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys\windows\stdio_uwp.rs:41:30
|
41 | let handle = Handle::new(handle);
| ^^^ function or associated item not found in Handle
|
::: C:\Users\zenlayer.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys\windows\handle.rs:17:1
|
17 | pub struct Handle(OwnedHandle);
| ------------------------------- function or associated item new not found for this

error[E0599]: no method named read found for struct ManuallyDrop<_> in the current scope
--> C:\Users\zenlayer.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys\windows\stdio_uwp.rs:42:35
|
42 | ManuallyDrop::new(handle).read(buf)
| ^^^^ method not found in ManuallyDrop<_>
|
= note: ManuallyDrop::new(handle) is a function, perhaps you wish to call it
= help: items from traits can only be used if the trait is implemented and in scope
note: io::Read defines an item read, perhaps you need to implement it
--> C:\Users\zenlayer.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\io\mod.rs:520:1
|
520 | pub trait Read {
| ^^^^^^^^^^^^^^

For more information about this error, try rustc --explain E0599.
error: could not compile std due to 6 previous errors

Activity

  1. mikexxma commented on Sep 1, 2021

    @mikexxma
    Author

    this is my version and I have installed “nightly-x86_64-pc-windows-msvc'

    \leaf-ffi> rustc --version
    rustc 1.56.0-nightly (29ef6cf16 2021-08-31)
    \leaf-ffi> rustup toolchain add nightly
    info: syncing channel updates for 'nightly-x86_64-pc-windows-msvc'

  2. added
    bugSomething isn't working
    on Sep 1, 2021
  3. bdbai commented on Sep 1, 2021

    @bdbai
    Member

    Seems like recent changes of libstd broke UWP targets. Before we start to look into it, please try the nightly toolchain on 2021-08-13, which is the one I am using.

    rustup toolchain install nightly-2021-08-13
  4. mikexxma commented on Sep 1, 2021

    @mikexxma
    Author

    rustup toolchain install nightly-2021-08-13

    it works fine thks

  5. added a commit that references this issue on Sep 23, 2021
  6. bdbai commented on Sep 25, 2021

    @bdbai
    Member

    Given rust-lang/rust#88587 has been merged and building libstd no longer fails since toolchain nightly-2021-09-24, I will close this issue. Feel free to open another one in case build fails again.

  7. added a commit that references this issue on Oct 4, 2021
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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions