Skip to content

make install is failing #19678

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

Closed
chris-morgan opened this issue Dec 9, 2014 · 10 comments
Closed

make install is failing #19678

chris-morgan opened this issue Dec 9, 2014 · 10 comments

Comments

@chris-morgan
Copy link
Member

$ make install
…
rustdoc: doc/rustc_trans/index.html
/home/chris/rust/src/librustc_trans/lib.rs:25:40: 25:46 warning: feature has been added to Rust, directive not necessary
/home/chris/rust/src/librustc_trans/lib.rs:25 #![feature(default_type_params, globs, if_let, import_shadowing, macro_rules, phase, quote)]
                                                                                     ^~~~~~
<stdin>:5:2: 5:3 error: unknown start of token: \\
<stdin>:5  \   /
           ^
task '<main>' panicked at 'Box<Any>', /home/chris/rust/src/libsyntax/diagnostic.rs:99
/home/chris/rust/mk/docs.mk:287: recipe for target 'doc/rustc_trans/index.html' failed
make[1]: *** [doc/rustc_trans/index.html] Error 101
make[1]: Leaving directory '/home/chris/rust'
/home/chris/rust/mk/install.mk:22: recipe for target 'install' failed
make: *** [install] Error 2

We seem to break make install completely once every few months, because buildbot doesn’t actually try doing make install

@csouth3
Copy link
Contributor

csouth3 commented Dec 9, 2014

+1. I can confirm I'm getting the same error.

@nodakai
Copy link
Contributor

nodakai commented Dec 10, 2014

https://github.com/rust-lang/rust/blob/master/src/librustc/metadata/loader.rs#L186

//! ## Loading transitive dependencies
//!
//! Dealing with same-named-but-distinct crates is not just a local problem, but
//! one that also needs to be dealt with for transitive dependencies. Note that
//! in the letter above `--extern` flags only apply to the *local* set of
//! dependencies, not the upstream transitive dependencies. Consider this
//! dependency graph:
//!
//! ```ignore
//! A.1   A.2
//! |     |
//! |     |
//! B     C
//!  \   /
//!   \ /
//!    D
//! ```

There are two similar figures in librustc/middle/infer/doc.rs

@2bdkid
Copy link

2bdkid commented Dec 10, 2014

Can confirm also, getting same error.

@Kintaro
Copy link
Contributor

Kintaro commented Dec 10, 2014

Same here. Buildbot should include a make install step to capture stuff like that.

@Passw
Copy link

Passw commented Dec 10, 2014

+1.

@nodakai
Copy link
Contributor

nodakai commented Dec 10, 2014

git log src/librustdoc showed 096a286 was the last commit which directly modified src/librustdoc. But that version didn't suffer from this problem. So I tried git bisect. git bisect start master 096a286 followed by git bisect run ./bs.sh (basically rm -rf doc, configure and then make -j8 compiler-docs) told me 8ba5605 was the first bad commit.

@steveklabnik Can you look into this issue? As I already posted, the error seems to be because ignore cannot contain an arbitrary text which resembles to an escaped character.

@steveklabnik
Copy link
Member

Ugh, yes, some of these should be annotated text.

@steveklabnik
Copy link
Member

Okay, make install fails for me. It seems like the blocsk are properly annotated text, though :/

alexcrichton added a commit to alexcrichton/rust that referenced this issue Dec 10, 2014
Move a few docblocks from 'ignore' to something that's not rust (e.g. 'text').

Closes rust-lang#19678
steveklabnik added a commit to steveklabnik/rust that referenced this issue Dec 10, 2014
This triggers an ICE otherwise :(

Fixes rust-lang#19678
@2bdkid
Copy link

2bdkid commented Dec 10, 2014

Has this been fixed yet? I'm still getting the same error. Should a "git pull" pull in the updates or is there other stuff I need to do?

@Gankra
Copy link
Contributor

Gankra commented Dec 10, 2014

#19705 needs to be merged first.

lnicola pushed a commit to lnicola/rust that referenced this issue Apr 28, 2025
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

Successfully merging a pull request may close this issue.

8 participants