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

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

Closed
walkingeyerobot opened this issue Mar 11, 2021 · 1 comment
Closed

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

walkingeyerobot opened this issue Mar 11, 2021 · 1 comment

Comments

@walkingeyerobot
Copy link

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"].

@jyn514
Copy link
Member

jyn514 commented Mar 14, 2021

Duplicate of #76526

@jyn514 jyn514 marked this as a duplicate of #76526 Mar 14, 2021
@jyn514 jyn514 closed this as completed Mar 14, 2021
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