Skip to content

"make install" failure #19156

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

Closed
ndarilek opened this issue Nov 20, 2014 · 11 comments
Closed

"make install" failure #19156

ndarilek opened this issue Nov 20, 2014 · 11 comments
Labels
C-bug Category: This is a bug. E-help-wanted Call for participation: Help is requested to fix this issue. P-low Low priority T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.

Comments

@ndarilek
Copy link

Trying to build the latest Rust with the ARM Raspberry Pi toolchain. I get the following when running "make install":

cfg: including prepare rules
cfg: including dist rules
cfg: including install rules
cleaning destination tmp/dist/rust-0.13.0-dev-x86_64-unknown-linux-gnu
prepare: tmp/dist/rust-0.13.0-dev-x86_64-unknown-linux-gnu/bin
mkdir: cannot create directory â?~tmpâ?T: Permission denied
make: *** [prepare-host-dirs-dir-x86_64-unknown-linux-gnu] Error 1
make: *** [install] Error 2

I can reproduce this every time. In fact, I'm running the build in Vagrant. The below Vagrantfile causes this for me on "vagrant up":

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

  config.vm.box = "ubuntu/trusty64"

  # If true, then any SSH connections made will enable agent forwarding.
  # Default value: false
  config.ssh.forward_agent = true

  config.vm.provider :virtualbox do |vb|
    vb.memory = 4096
    # vb.customize ["modifyvm", :id, "--usb", "on"]
    # vb.customize ["modifyvm", :id, "--usbehci", "on"]
    # vb.customize "post-boot", ["controlvm", :id, "webcam", "attach", ".3"]
  end

  config.vm.provision :shell, inline: """
    adduser vagrant video
    apt-get update
    apt-get upgrade -y
    apt-get install -y git libopencv-dev lua5.1 lua5.1-dev linux-image-extra-`uname -r`
    curl -s https://static.rust-lang.org/rustup.sh | sudo sh
    cd /opt
    git clone git://github.com/raspberrypi/tools
    cd /usr/src
    git clone --recursive git://github.com/mozilla/rust
    cd rust
    export PATH=/opt/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin:$PATH
    ./configure --target=arm-unknown-linux-gnueabihf
    make
    make install
  """

end
@huonw
Copy link
Member

huonw commented Nov 21, 2014

mkdir: cannot create directory â?~tmpâ?T: Permission denied

Is this literally the directory it is trying to create or is it mangled due to copy-paste (or something else)? If the former, what's the LANG env variable?

@ndarilek
Copy link
Author

No cut-and-paste error, that's literally what I get.

LANG is "en_US.UTF-8".

Thanks.

@frewsxcv
Copy link
Member

frewsxcv commented Jun 3, 2015

@ndarilek Can you still replicate this issue?

@alexcrichton
Copy link
Member

We've had enough churn in how our installer works that I think this is probably stale, so closing.

@frewsxcv
Copy link
Member

frewsxcv commented Oct 4, 2015

This is still an issue and should maybe be reopened. Here's the Vagrantfile used to reproduce this:

Vagrant.configure(2) do |config|
  config.vm.box = "ubuntu/trusty64"

  config.vm.provider "virtualbox" do |vb|
    vb.memory = "4096"
   end

  config.vm.provision "shell", inline: <<-SHELL
    sudo apt-get update
    sudo apt-get install -y git clang cmake

    git clone https://github.com/rust-lang/rust.git
    cd rust
    ./configure --prefix=/rust --enable-clang --disable-libcpp --enable-optimize
    make
    make install
  SHELL
end

@steveklabnik steveklabnik reopened this Oct 4, 2015
@frewsxcv
Copy link
Member

frewsxcv commented Oct 5, 2015

Here's the exact error the Vagrantfile spits out:

root@vagrant-ubuntu-trusty-64:/home/vagrant/rust# make install
cfg: version 1.5.0-dev (5ff4442a3 2015-10-04)
cfg: build triple x86_64-unknown-linux-gnu
cfg: host triples x86_64-unknown-linux-gnu
cfg: target triples x86_64-unknown-linux-gnu
cfg: host for x86_64-unknown-linux-gnu is x86_64
cfg: os for x86_64-unknown-linux-gnu is unknown-linux-gnu
cfg: good valgrind for x86_64-unknown-linux-gnu is 1
cfg: using CC=clang (CFG_CC)
cfg: using CXX=clang++ (CFG_CXX)
cfg: disabling valgrind run-pass tests
cfg: including prepare rules
cfg: including dist rules
cfg: including install rules
cfg: version 1.5.0-dev (5ff4442a3 2015-10-04)
cfg: build triple x86_64-unknown-linux-gnu
cfg: host triples x86_64-unknown-linux-gnu
cfg: target triples x86_64-unknown-linux-gnu
cfg: host for x86_64-unknown-linux-gnu is x86_64
cfg: os for x86_64-unknown-linux-gnu is unknown-linux-gnu
cfg: good valgrind for x86_64-unknown-linux-gnu is 1
cfg: using CC=clang (CFG_CC)
cfg: using CXX=clang++ (CFG_CXX)
cfg: disabling valgrind run-pass tests
cfg: including prepare rules
cfg: including dist rules
cfg: including install rules
cleaning destination tmp/dist/rustc-1.5.0-dev-x86_64-unknown-linux-gnu-image
prepare: tmp/dist/rustc-1.5.0-dev-x86_64-unknown-linux-gnu-image/bin
mkdir: cannot create directory ‘tmp/dist’: Permission denied
make: *** [prepare-host-dirs-dir-x86_64-unknown-linux-gnu] Error 1
make: *** [install] Error 2

frewsxcv added a commit to rust-fuzz/afl.rs that referenced this issue Oct 6, 2015
@CamilleScholtz
Copy link

Just ran into the same error...

@CamilleScholtz
Copy link

EDIT: It seems to install when running make install as su (read, not sudo)

@CamilleScholtz
Copy link

These are the build instructions: https://github.com/6c37/crux-ports/blob/3.2/rustc/Pkgfile, I can confirm that other CRUX users who try to compile this port get the same error.

@alexcrichton alexcrichton added the P-low Low priority label Aug 22, 2016
@edunham
Copy link
Member

edunham commented Aug 22, 2016

Help wanted: Attempt to reproduce this in another virtualization solution, see whether there are any relevant Vagrant or Raspberry Pi toolchain bugs

@edunham edunham added the E-help-wanted Call for participation: Help is requested to fix this issue. label Aug 22, 2016
@Mark-Simulacrum Mark-Simulacrum added T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. and removed A-infrastructure labels Jun 25, 2017
@Mark-Simulacrum Mark-Simulacrum added the C-bug Category: This is a bug. label Jul 22, 2017
@steveklabnik
Copy link
Member

Since this issue was opened, the build system was completely re-done. I'm going to close; if this still reproduces, please let me know and we can re-open.

lnicola pushed a commit to lnicola/rust that referenced this issue Feb 17, 2025
add cargo's git checkouts to the list of paths to mark as read-only in vscode
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. E-help-wanted Call for participation: Help is requested to fix this issue. P-low Low priority T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

8 participants