Skip to content

rustdoc: "FormatMessage failure" on Windows #13073

Closed
@liigo

Description

@liigo
Contributor

upstream/master:

rustdoc: doc/index.html
i686-pc-mingw32/stage2/bin/rustdoc.exe --markdown-css rust.css --markdown-before-content=doc/version_info.html --markdown-in-header=doc/favicon.inc --markdown-after-content=doc/footer.inc  /home/LIIGO/rust/rust/src/doc/index.md
rustdoc: doc/tutorial.html
i686-pc-mingw32/stage2/bin/rustdoc.exe --markdown-css rust.css --markdown-before-content=doc/version_info.html --markdown-in-header=doc/favicon.inc --markdown-after-content=doc/footer.inc  /home/LIIGO/rust/rust/src/doc/tutorial.md
task '<main>' failed at '[15100] FormatMessage failure', D:\MinGW\msys\1.0\home\LIIGO\rust\rust\src\libstd\os.rs:743
make: *** [doc/tutorial.html] Error 101

Activity

changed the title [-]rustdoc: FormatMessage failure[/-] [+]rustdoc: "FormatMessage failure" on Windows[/+] on Mar 22, 2014
huonw

huonw commented on Mar 22, 2014

@huonw
Member

Does that build include the fix in #13043?

liigo

liigo commented on Mar 22, 2014

@liigo
ContributorAuthor

Yes, include.
2014年3月22日 下午6:45于 "Huon Wilson" notifications@github.com写道:

Does that build include the fix in #13043#13043
?


Reply to this email directly or view it on GitHubhttps://github.com//issues/13073#issuecomment-38348271
.

huonw

huonw commented on Mar 22, 2014

@huonw
Member

Thanks for confirming.

cc @alexcrichton

klutzy

klutzy commented on Mar 22, 2014

@klutzy
Contributor

Reproduced on revision 092afdb. Note that I'm using win 8.1 with non-english locale which probably causes issues.

Quick investigation:
FormatMessage is called by std::os::last_os_error(), which gets system error code then convert the code into string. It seems that FormatMessage failed with 15100: ERROR_MUI_FILE_NOT_FOUND.

klutzy

klutzy commented on Mar 22, 2014

@klutzy
Contributor

So the issue is broken into two parts: 1. why rustdoc failed and called last_os_error()? 2. why FormatMessage failed?

added a commit that references this issue on Mar 22, 2014
cffe9e0
added a commit that references this issue on Mar 22, 2014

auto merge of #13078 : klutzy/rust/issue-13075, r=alexcrichton

5e8e1b5
added a commit that references this issue on Aug 8, 2024

Auto merge of rust-lang#13108 - tesuji:fix_redundant_closure, r=xFrednet

2fc74a3
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

    O-windowsOperating system: WindowsT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @liigo@huonw@klutzy

      Issue actions

        rustdoc: "FormatMessage failure" on Windows · Issue #13073 · rust-lang/rust