Skip to content

building compiler docs fails #36533

@llogiq

Description

@llogiq
Contributor

Steps taken:

$ git clone https://github.com/rust-lang/rust &&\
cd rust && ./configure --enabled compiler idols &&\
make docs

Expected result:

Full docs including compiler docs in doc/ subdirectory

Actual result:

make fails during doc/rustc_built-in/index.html, rustdoc error: Unrecognized option: 'l'.

Activity

hanna-kruppe

hanna-kruppe commented on Sep 16, 2016

@hanna-kruppe
Contributor

Again? #36031 was only fixed 11 days ago 😢 I second this motion by @retep998 in the last issue:

Might be worth having --enable-compiler-docs on some of the buildbots.

llogiq

llogiq commented on Sep 16, 2016

@llogiq
ContributorAuthor

I third @retep998's motion. At least one should have it.

ollie27

ollie27 commented on Sep 18, 2016

@ollie27
Member

It looks like this was caused by #35021 (cc @japaric). It's trying to pass -lstatic=compiler-rt to rustdoc when compiling the docs for compiler_builtins but rustdoc doesn't support -l.

stefanhusmann

stefanhusmann commented on Nov 2, 2016

@stefanhusmann

How can this be fixed? Alternativly, how can I suppress the build of docs?

Manishearth

Manishearth commented on Nov 2, 2016

@Manishearth
Member

./configure --disable-compiler-docs . It's off by default.

I use

diff --git a/mk/crates.mk b/mk/crates.mk
index c7abf27..f68fc2a 100644
--- a/mk/crates.mk
+++ b/mk/crates.mk
@@ -78,7 +78,6 @@ DEPS_panic_abort := libc alloc
 DEPS_panic_unwind := libc alloc unwind
 DEPS_unwind := libc

-RUSTFLAGS_compiler_builtins := -lstatic=compiler-rt

 # FIXME(stage0): change this to just `RUSTFLAGS_panic_abort := ...`
 RUSTFLAGS1_panic_abort := -C panic=abort

on my builds to get the compiler doc build to pass

ollie27

ollie27 commented on Mar 27, 2017

@ollie27
Member

This can be closed now. It was a bug in the long gone Makefiles. The compiler docs now build fine with rustbuild, or at least did and will again after #40852.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @steveklabnik@stefanhusmann@TimNN@Manishearth@hanna-kruppe

        Issue actions

          building compiler docs fails · Issue #36533 · rust-lang/rust