Lauren, Why are you trying to compile rust from scratch? Have you had success using the pre-compiled conda-distributed version?
http://www.m-labs.hk/artiq/manual-master/developing.html#artiq-anaconda-development-environment On Fri, Sep 22, 2017 at 7:40 PM, Lopez, Lauren M via ARTIQ <artiq@lists.m-labs.hk> wrote: > We encounter the attached error when installing Rust. The specific error > alternates amongst the source dependencies for ‘cmake,’ ‘toml,’ getopts,’ > ‘’rustc-serialize,’ num_cpus,’ ‘libc,’ and ‘gcc.’ Gcc and cmake are > installed. We ran the following shell script from the installation > instructions: > > > > cd ~/artiq-dev > git clone -b artiq-1.18.0 https://github.com/m-labs/rust > cd rust > git submodule update --init > mkdir build > cd build > ../configure --prefix=/usr/local/rust-or1k --llvm-root=/usr/local/llvm-or1k > --disable-manage-submodules > sudo mkdir /usr/local/rust-or1k > sudo chown $USER.$USER /usr/local/rust-or1k > make install > > libs="libcore liballoc libstd_unicode libcollections liblibc_mini libunwind" > rustc="/usr/local/rust-or1k/bin/rustc --target or1k-unknown-none -g -C > target-feature=+mul,+div,+ffl1,+cmov,+addc -C opt-level=s -L ." > destdir="/usr/local/rust-or1k/lib/rustlib/or1k-unknown-none/lib/" > mkdir ../build-or1k > cd ../build-or1k > for lib in ${libs}; do ${rustc} ../src/${lib}/lib.rs; done > ${rustc} -Cpanic=abort ../src/libpanic_abort/lib.rs > ${rustc} -Cpanic=unwind ../src/libpanic_unwind/lib.rs --cfg llvm_libunwind > sudo mkdir -p ${destdir} > sudo cp *.rlib ${destdir} > > We also attempted to install without the script running each line > individually. We get the following error when running make install: > > > > osError: [Errno 13] Permission denied: ‘.cargo/config’ > > > > --- > > Lauren Lopez > > > _______________________________________________ > ARTIQ mailing list > https://ssl.serverraum.org/lists/listinfo/artiq > _______________________________________________ ARTIQ mailing list https://ssl.serverraum.org/lists/listinfo/artiq