Re: [ARTIQ] Error Installing Rust

2017-09-25 Thread Joe Britton via ARTIQ
> We were following the instructions from the link you attached; conda worked 
> for installing rust.

Your email to the list started out with a question related to
compiling rust. Now you say you were installing rust from conda. Don't
try to mix the two approaches. The conda-dev path should be squeaky
clean with no errors since it's used by the build bot for automated
builds.

I just did a spot test installing ARTIQ 3 from the conda dev channels
on a Windows 10 machine on top of a fresh install of 64-bit Anaconda.
Following these instructions and got no errors.

http://www.m-labs.hk/artiq/manual-master/developing.html#artiq-anaconda-development-environment

To test the phaser gateware on kc705 there's also a precompiled
bitfile. Then you don't have to build using Vivado. This conda .bit is
 discussed here:

http://www.m-labs.hk/artiq/manual-master/core_device.html?highlight=phaser#phaser

I triggered a build of the latest version of this .bit file artiq-kc705-phaser.

(a3t2) c:\shared\github\m-labs\artiq> conda search artiq-kc705-phaser
3.0.dev py_1295+gitc00b3fe8  m-labs/label/dev

But when I install it there are unsatisfied dependencies. Do you see this too?

(a3t2) c:\shared\github\m-labs\artiq>conda install artiq-kc705-phaser
Fetching package metadata ...
Solving package specifications:

PackageNotFoundError: Dependencies missing in current win-64 channels:
  - artiq-kc705-phaser -> artiq 3.0.dev py_1183+gitf4624e08 ->
llvmlite-artiq 0.12.0.dev py35_30
  - artiq-kc705-phaser -> artiq 3.0.dev py_1183+gitf4624e08 -> python-dateutil
  - artiq-kc705-phaser -> artiq 3.0.dev py_1183+gitf4624e08 ->
pythonparser >=1.1

(and similarly for the other packages)



On Sun, Sep 24, 2017 at 8:03 PM, Joe Britton  wrote:
> 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
>  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


Re: [ARTIQ] Error Installing Rust

2017-09-24 Thread Joe Britton via ARTIQ
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
 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