Skip to content

Building Rust from source fails #40291

Closed
Closed
@jimblandy

Description

@jimblandy

I am unable to build a fresh checkout of rust-lang/rust following the directions in README.md on Fedora 23. (Yes, I know F23 is EOL, but the problem seems unrelated.)

sergei:rust$ git clone https://github.com/rust-lang/rust.git
Cloning into 'rust'...
remote: Counting objects: 637017, done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 637017 (delta 6), reused 0 (delta 0), pack-reused 637001
Receiving objects: 100% (637017/637017), 295.85 MiB | 261.00 KiB/s, done.
Resolving deltas: 100% (513831/513831), done.
Checking connectivity... done.
sergei:rust$ cd rust
sergei:rust$ ./x.py build
downloading https://static.rust-lang.org/dist/2017-02-01/rust-std-beta-x86_64-unknown-linux-gnu.tar.gz
######################################################################## 100.0%
extracting /home/jimb/rust/rust/build/cache/2017-02-01/rust-std-beta-x86_64-unknown-linux-gnu.tar.gz
downloading https://static.rust-lang.org/dist/2017-02-01/rustc-beta-x86_64-unknown-linux-gnu.tar.gz
######################################################################## 100.0%
extracting /home/jimb/rust/rust/build/cache/2017-02-01/rustc-beta-x86_64-unknown-linux-gnu.tar.gz
downloading https://s3.amazonaws.com/rust-lang-ci/cargo-builds/bfee18f73287687c543bda8c35e4e33808792715/cargo-nightly-x86_64-unknown-linux-gnu.tar.gz
######################################################################## 100.0%
extracting /home/jimb/rust/rust/build/cache/bfee18f73287687c543bda8c35e4e33808792715/cargo-nightly-x86_64-unknown-linux-gnu.tar.gz
error: failed to read `/home/jimb/rust/rust/src/tools/cargo/Cargo.toml`

Caused by:
  No such file or directory (os error 2)
Build completed unsuccessfully in 0:00:59
sergei:rust$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
sergei:rust$ git pull
remote: Counting objects: 17, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 17 (delta 12), reused 12 (delta 12), pack-reused 1
Unpacking objects: 100% (17/17), done.
From https://github.com/rust-lang/rust
 + dd73b04...0cc7037 auto       -> origin/auto  (forced update)
Already up-to-date.
sergei:rust$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
sergei:rust$ ./x.py build
error: failed to read `/home/jimb/rust/rust/src/tools/cargo/Cargo.toml`

I believe I have the required versions of the given prerequisites:

sergei:rust$ g++ --version
g++ (GCC) 5.3.1 20160406 (Red Hat 5.3.1-6)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

sergei:rust$ python --version
Python 2.7.11
sergei:rust$ make --version
GNU Make 4.0
Built for x86_64-redhat-linux-gnu
Copyright (C) 1988-2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
sergei:rust$ cmake --version
cmake version 3.4.3

CMake suite maintained and supported by Kitware (kitware.com/cmake).
sergei:rust$ curl --version
curl 7.43.0 (x86_64-redhat-linux-gnu) libcurl/7.43.0 NSS/3.26 zlib/1.2.8 libidn/1.33 libssh2/1.6.0 nghttp2/1.7.1
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz HTTP2 UnixSockets Metalink 
sergei:rust$ git --version
git version 2.5.5
sergei:rust$ 

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

    Issue actions