Skip to content

install script doesn't recognize --docdir option #36451

Closed

Description

@kamathba

ran ./configure && make && sudo make install

...
gen-install-script: CFG_LEGACY_MANIFEST_DIRS := rustlib,cargo
gen-install-script:
gen-install-script: validating arguments
gen-install-script:
install: error: Option '--docdir=/usr/local/share/doc/rust' is not recognized
/home/banjo/Work/dev/rust/mk/install.mk:21: recipe for target 'install' failed
make: *** [install] Error 1

Seems to be introduced by this commit, which was merged yesterday.

commit 5e9149d
Author: orbea ovariegata@yahoo.com
Date: Thu Sep 8 23:18:20 2016 -0700

Allow setting --docdir

Activity

  1. added a commit that references this issue on Sep 13, 2016
    49af132
  2. nodakai commented on Sep 14, 2016

    @nodakai
    Contributor

    Had we tested make install on buildbot... #19698

  3. m10e commented on Sep 14, 2016

    @m10e

    This is preventing installs for me too. Not sure if it matters, but I got it building a cross compiler from master branch with custom install dir (configure --prefix).

  4. andoriyu commented on Sep 14, 2016

    @andoriyu
    Contributor

    @m10e you can always apply patch to rust-installer before it's merged upstream.

  5. m10e commented on Sep 14, 2016

    @m10e

    @andoriyu Sure, so it's definitely not urgent. I was just weighing in with a +1. Thanks for the tip though!

  6. orbea commented on Sep 15, 2016

    @orbea

    Ideally the merged pull request should of only been merged when both when both pull requests were ready to be merged followed by updating the submodule. Unfortunately it did not work out that way, sorry for any issues I have caused...

  7. cesarb commented on Sep 26, 2016

    @cesarb
    Contributor

    I believe this should be tagged with the label regression-from-stable-to-nightly. @alexcrichton ?

  8. alexcrichton commented on Sep 27, 2016

    @alexcrichton
    Member

    Ah, didn't realize it was a regression, but in that case indeed!

  9. cesarb commented on Sep 27, 2016

    @cesarb
    Contributor

    @alexcrichton Yes, make install on nightly is completely broken. If like me you follow Rust's master by doing ./configure --prefix=... && make && make install, you have to revert commit 5e9149d, otherwise the make install step will fail.

    The issue is that, since that commit, install.sh is called by make install with the nonexistent option --docdir, and Rust's install.sh doesn't ignore unknown options.

  10. cesarb commented on Sep 27, 2016

    @cesarb
    Contributor

    Related: #29632

  11. alexcrichton commented on Sep 27, 2016

    @alexcrichton
    Member

    cc @orbea this may be caused by #36360, mind helping to investigate?

  12. added and removed on Sep 29, 2016
  13. tikue commented on Sep 30, 2016

    @tikue
    Contributor

    Is there a workaround for this currently? The latest nightly ICEs on code that previously compiled (I think due to #36816) so I wanted to compile from source with the merged fix, but now I'm hitting this.

  14. cesarb commented on Sep 30, 2016

    @cesarb
    Contributor

    @tikue Yes, the workaround is to revert commit 5e9149d. There will be a conflict when reverting, but it's easy to resolve. Nothing depends on that commit (and in fact it's broken), so reverting it causes no problems.

  15. self-assigned this
    on Oct 4, 2016
  16. added
    P-highHigh priority
    and removed on Oct 4, 2016
  17. added a commit that references this issue on Oct 5, 2016
    ee0d833
  18. brson commented on Oct 5, 2016

    @brson
    Contributor
  19. added a commit that references this issue on Oct 5, 2016
    26d8b6f
  20. added a commit that references this issue on Oct 10, 2016
    c959390
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions