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

fail to build on Ubuntu 18.04 #86708

Closed
BaoshanPang opened this issue Jun 29, 2021 · 2 comments
Closed

fail to build on Ubuntu 18.04 #86708

BaoshanPang opened this issue Jun 29, 2021 · 2 comments
Labels
C-bug Category: This is a bug.

Comments

@BaoshanPang
Copy link
Contributor

BaoshanPang commented Jun 29, 2021

<bpang@boyuan-Precision-3640-Tower:~/rust$ python3.8 x.py build                                                                                                                    
Updating only changed submodules                                                                                                                                                       
Submodules updated in 0.01 seconds                                                                                                                                                     
downloading https://static.rust-lang.org/dist/2021-05-23/rust-std-beta-x86_64-unknown-linux-gnu.tar.xz                                                                                 
############################################################################################################################################################################### 100.0% 
Traceback (most recent call last):                                                                                                                                                     
  File "x.py", line 27, in <module>                                                                                                                                                    
    bootstrap.main()                                                                                                                                                                   
  File "/home/bpang/rust/src/bootstrap/bootstrap.py", line 1187, in main                                                                                                               
    bootstrap(help_triggered)                                                                                                                                                          
  File "/home/bpang/rust/src/bootstrap/bootstrap.py", line 1153, in bootstrap                                                                                                          
    build.download_toolchain()                                                                                                                                                         
  File "/home/bpang/rust/src/bootstrap/bootstrap.py", line 413, in download_toolchain                                                                                                  
    self._download_component_helper(filename, pattern, tarball_suffix, stage0)                                                                                                         
  File "/home/bpang/rust/src/bootstrap/bootstrap.py", line 526, in _download_component_helper                                                                                          
    get("{}/{}".format(url, filename), tarball, verbose=self.verbose, do_verify=stage0)                                                                                                
  File "/home/bpang/rust/src/bootstrap/bootstrap.py", line 49, in get                                                                                                                  
    if do_verify and not verify(temp_path, sha_path, verbose):                                                                                                                         
  File "/home/bpang/rust/src/bootstrap/bootstrap.py", line 108, in verify                                                                                                              
    expected = sha256sum.readline().split()[0]                                                                                                                                         
IndexError: list index out of range
@BaoshanPang BaoshanPang added the C-bug Category: This is a bug. label Jun 29, 2021
@JohnTitor
Copy link
Member

JohnTitor commented Jul 1, 2021

It'd be great if you could provide more information e.g. your env, your config.toml, and if it happens after ./x.py clean (or cleaning up manually). Otherwise it's hard to dig into the error.

@BaoshanPang
Copy link
Contributor Author

It turns out I have installed a defect 'curl' from snap on my ubuntu 18.04, removed it and installed the one from "apt-get" makes the issue disappear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug.
Projects
None yet
Development

No branches or pull requests

2 participants