Hi I have a similar problem to lf_10 in which I have attempted to follow the same method in order to alleviate my problem.
The following was entered:
rabi@artiq ~> sudo nix build --print-build-logs --impure --expr 'let fl = builtins.getFlake "/home/rabi/artiq-zynq"; in (fl.makeArtiqZynqPackage {target="kasli_soc"; variant="standalone"; json=/home/rabi/auckland.json;}).kasli_soc-standalone-sd'
This resulted in the following error:
Grabber (EEM0) starting at RTIO channel 0x000000
DIO (EEM2) starting at RTIO channel 0x000002
Urukul (EEM3) starting at RTIO channel 0x00000a
Sampler (EEM5) starting at RTIO channel 0x000010
Fastino (EEM7) starting at RTIO channel 0x000013
USER LED at RTIO channel 0x000014
USER LED at RTIO channel 0x000015
/etc/profile: line 36: /home/rabi/Xilinx/Vivado/2022.2/settings64.sh: No such file or directory
Traceback (most recent call last):
File "/nix/store/mwb3anly2pnvqwcsdzrzi3bmc0czb4gk-gateware/kasli_soc.py", line 672, in <module>
main()
File "/nix/store/mwb3anly2pnvqwcsdzrzi3bmc0czb4gk-gateware/kasli_soc.py", line 668, in main
soc.build(build_dir=args.g)
File "/nix/store/r5486bqn9pvhs2hqglqrxbiv1dlmgj83-python3-3.12.7-env/lib/python3.12/site-packages/migen_axi/integration/soc_core.py", line 169, in build
self.platform.build(self, *args, **kwargs)
File "/nix/store/r5486bqn9pvhs2hqglqrxbiv1dlmgj83-python3-3.12.7-env/lib/python3.12/site-packages/migen/build/xilinx/platform.py", line 59, in build
return self.toolchain.build(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/r5486bqn9pvhs2hqglqrxbiv1dlmgj83-python3-3.12.7-env/lib/python3.12/site-packages/migen/build/xilinx/vivado.py", line 224, in build
_run_vivado(build_name)
File "/nix/store/r5486bqn9pvhs2hqglqrxbiv1dlmgj83-python3-3.12.7-env/lib/python3.12/site-packages/migen/build/xilinx/vivado.py", line 69, in _run_vivado
raise OSError("Subprocess failed")
OSError: Subprocess failed
Prior to reading through this thread I originally was struggling to get past having the vivado directory being from /opt/
after following the instructions from architeuthis and fsagbuya such as cloning both artiq and artiq-zynq and proceeding to change the source and inputs.artiq.url, as well as including my vivado location to my sandbox-paths.
I have now progressed to having
USER LED at RTIO channel 0x000015
/etc/profile: line 36: /home/rabi/Xilinx/Vivado/2022.2/settings64.sh: No such file or directory
instead of:
USER LED at RTIO channel 0x000015
/etc/profile: line 36: /opt/Xilinx/Vivado/2022.2/settings64.sh: No such file or directory
the directory /home/rabi/Xilinx/Vivado/2022.2/settings64.sh
, does indeed exist, as well as having the following permissions
rabi@artiq ~> ls -l /home/rabi/Xilinx/Vivado/2022.2/settings64.sh
-rwxr-xr-x 1 rabi users 508 Jan 8 22:50 /home/rabi/Xilinx/Vivado/2022.2/settings64.sh
I am very new to linux, nixos, and artiq, so there is a high chance I have missed something simple. However I am able to run vivado outside of the context of this nix build command.
If anyone could help out, I'd greatly appreciate it 🙂
Happy New Year!