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

Unable to compile rustc on ubuntu 12.04 vm (osx host machine) #12850

Closed
brycefisher opened this issue Mar 12, 2014 · 4 comments
Closed

Unable to compile rustc on ubuntu 12.04 vm (osx host machine) #12850

brycefisher opened this issue Mar 12, 2014 · 4 comments

Comments

@brycefisher
Copy link

Apologies if this is the wrong repo to file an issue on! Is it possible to compile rustc on a virtual machine? Here's what happened when I tried:

My host machine:

  • Mac Book Pro, OSX 10.8
  • 8 GB ram
  • 64bit architecture.

Virtual Machine:

  • Running on VirtualBox 4.3.8
  • 64bit Ubuntu 12.04
  • 2 GB Ram
  • 20 GB harddrive (VDI with fixed storage allocation)
  • Additional Details:
    screen shot 2014-03-12 at 12 55 27 pm

Steps to Reproduce:

  1. Boot up the new instance and select "Try Ubuntu" (same problem exists when installing as well)
  2. Open terminal and sudo apt-get install g++ clang curl and git
  3. curl -O http://static.rust-lang.org/dist/rust-0.9.tar.gz
  4. tar -xzf rust-0.9.tar.gz
  5. cd rust-0.9
  6. ./configure
  7. make && sudo make install

Expected outcome

rustc and rustdoc should compile and install after about 20 minutes.

Actual Outcome

screen shot 2014-03-12 at 1 01 18 pm
The virtual harddrive is completely filled up. The complete error message I received was:

> error: ar rS x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libsyntax-9be99726-0.9.rlib x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/syntax.bc failed with: exit code: 1
> note: stdout ---
>
> note: stderr ---
> ar:x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libsyntax-9be99726-0.9.rlib: No space left on device
>
> error: aborting due to previous error
> task 'rustc' failed at 'explicit failure', /home/rustbuild/src/rust-buildbot/slave/snap3-linux/build/src/libsyntax/diagnostic.rs:75
> task '<main>' failed at 'explicit failure', /home/rustbuild/src/rust-buildbot/slace/snap3-linux/build/src/librustc/lib.rs:440
> make: *** [x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstanx.so] Error 101
@alexcrichton
Copy link
Member

That error, plus the output of df (as you have noticed) means that your hardrive is full.

A rust build directory should be on the order of ~2.4 GB (that's what mine is right now), so you may want to explore where the extra space is going in the rest of the system.

@brycefisher
Copy link
Author

The space is empty when I started the process. I newly provisioned the whole harddrive. I had the same outcome with a newly created VM on 8 GB virtual hardrive, so I ramped it up to 20 GB. I'm inclined to think that there's an issue with the build process on the VM, or there's an issue with VirtualBox.

@alexcrichton
Copy link
Member

Can you investigate to see where all the space is going? "the build directory is > 20GB" is tough to debug when we can't reproduce it.

@brycefisher
Copy link
Author

Arg! Sorry, my bad. When running Ubuntu in "Try" mode, I only had access to the available RAM. Ubuntu wasn't accessing my virtual harddrive at all (which I didn't realize at first). Installing Ubuntu and restarting the VM resolved this issue. Thanks for the speedy support!!

fasterthanlime pushed a commit to fasterthanlime/rust that referenced this issue Jul 24, 2022
fix: Fix error tooltip message for VSCode status bar item
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