Skip to content

could not document std for wasm32-unknown-unknown #83002

Closed
@walkingeyerobot

Description

@walkingeyerobot

I have my config.toml file:

changelog-seen = 2
[install]
prefix = "/home/walkingeye/rust-test"
[build]
target = ["wasm32-unknown-unknown", "x86_64-unknown-linux-gnu"]

Everything builds fine, but when I run ./x.py install, I get the following error:

 Documenting std v0.0.0 (/home/walkingeye/repos/rust/library/std)
error: unresolved link to `self::os::unix::ffi::OsStrExt`
   --> library/std/src/ffi/mod.rs:134:22
    |
134 | //! [unix.OsStrExt]: crate::os::unix::ffi::OsStrExt
    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `ffi` in module `unix_ext`
    |
    = note: `-D rustdoc::broken-intra-doc-links` implied by `-D warnings`

error: unresolved link to `self::os::unix::ffi::OsStrExt::from_bytes`
   --> library/std/src/ffi/mod.rs:135:21
    |
135 | //! [`from_bytes`]: crate::os::unix::ffi::OsStrExt::from_bytes
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `ffi` in module `unix_ext`

error: unresolved link to `self::os::unix::ffi::OsStrExt::as_bytes`
   --> library/std/src/ffi/mod.rs:136:19
    |
136 | //! [`as_bytes`]: crate::os::unix::ffi::OsStrExt::as_bytes
    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `ffi` in module `unix_ext`

error: unresolved link to `self::os::unix::ffi::OsStringExt`
   --> library/std/src/ffi/mod.rs:131:25
    |
131 | //! [unix.OsStringExt]: crate::os::unix::ffi::OsStringExt
    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `ffi` in module `unix_ext`

error: unresolved link to `self::os::unix::ffi::OsStringExt::from_vec`
   --> library/std/src/ffi/mod.rs:132:19
    |
132 | //! [`from_vec`]: crate::os::unix::ffi::OsStringExt::from_vec
    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `ffi` in module `unix_ext`

error: unresolved link to `self::os::unix::ffi::OsStringExt::into_vec`
   --> library/std/src/ffi/mod.rs:133:19
    |
133 | //! [`into_vec`]: crate::os::unix::ffi::OsStringExt::into_vec
    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `ffi` in module `unix_ext`

error: unresolved link to `self::os::windows::ffi::OsStrExt`
   --> library/std/src/ffi/mod.rs:138:25
    |
138 | //! [windows.OsStrExt]: crate::os::windows::ffi::OsStrExt
    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `ffi` in module `windows_ext`

error: unresolved link to `self::os::windows::ffi::OsStrExt::encode_wide`
   --> library/std/src/ffi/mod.rs:139:22
    |
139 | //! [`encode_wide`]: crate::os::windows::ffi::OsStrExt::encode_wide
    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `ffi` in module `windows_ext`

error: unresolved link to `self::os::windows::ffi::OsStringExt`
   --> library/std/src/ffi/mod.rs:141:28
    |
141 | //! [windows.OsStringExt]: crate::os::windows::ffi::OsStringExt
    |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `ffi` in module `windows_ext`

error: unresolved link to `self::os::windows::ffi::OsStringExt::from_wide`
   --> library/std/src/ffi/mod.rs:142:20
    |
142 | //! [`from_wide`]: crate::os::windows::ffi::OsStringExt::from_wide
    |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `ffi` in module `windows_ext`

error: unresolved link to `self::os::unix::fs::PermissionsExt`
   --> library/std/src/fs.rs:177:25
    |
177 | /// [`PermissionsExt`]: crate::os::unix::fs::PermissionsExt
    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `fs` in module `unix_ext`

error: unresolved link to `self::os::unix::fs::symlink`
    --> library/std/src/fs.rs:1749:37
     |
1749 | /// [`std::os::unix::fs::symlink`]: crate::os::unix::fs::symlink
     |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `fs` in module `unix_ext`

error: unresolved link to `self::os::windows::fs::symlink_file`
    --> library/std/src/fs.rs:1750:45
     |
1750 | /// [`std::os::windows::fs::symlink_file`]: crate::os::windows::fs::symlink_file
     |                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `fs` in module `windows_ext`

error: unresolved link to `self::os::windows::fs::symlink_dir`
    --> library/std/src/fs.rs:1751:22
     |
1751 | /// [`symlink_dir`]: crate::os::windows::fs::symlink_dir
     |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `fs` in module `windows_ext`

error: unresolved link to `self::os::unix::process::ExitStatusExt`
    --> library/std/src/process.rs:1425:27
     |
1425 |     /// [`ExitStatusExt`](crate::os::unix::process::ExitStatusExt) is an
     |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `process` in module `unix_ext`

error: aborting due to 15 previous errors

error: could not document `std`

The install process does succeed if I change the target array in config.toml to target = ["x86_64-unknown-linux-gnu"].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions