Closed
Description
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