Skip to content

"make install" failure #19156

Closed
Closed
@ndarilek

Description

@ndarilek

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.E-help-wantedCall for participation: Help is requested to fix this issue.P-lowLow priorityT-infraRelevant to the infrastructure team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions