Skip to content
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

Building Rust from source fails #40291

Closed
jimblandy opened this issue Mar 6, 2017 · 2 comments
Closed

Building Rust from source fails #40291

jimblandy opened this issue Mar 6, 2017 · 2 comments

Comments

@jimblandy
Copy link
Contributor

jimblandy commented Mar 6, 2017

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$ 
@petrochenkov
Copy link
Contributor

Can be fixed by

git submodule update --init

See #39917 (comment)

@jimblandy
Copy link
Contributor Author

Okay, it seems like this problem is being addressed in that issue. Thanks for the pointer!

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

No branches or pull requests

2 participants