litex icon indicating copy to clipboard operation
litex copied to clipboard

Native windows Vivado and WSL2 Litex build fails to find toolchain

Open exitrip opened this issue 10 months ago • 2 comments

Kinda an edge case, but I'm also not sure how friendly Vivado's linux installer would work with WSL2...

calling python3 -m litex_boards.targets.colorlight_i9plus --build --toolchain=vivado in an otherwise working (with Lattice chips) Litex WSL2 install fails to properly use the windows exe tools.

I can't find any place Litex calls rdiArgs.sh, to try to point to rdiArgs.bat

I'm not sure about the relationship between rdiArgs (which is the only place I can find the string lnx64) and how Litex handles path resolution. Nor do I know anything about how Vivado uses Java...

/mnt/d/Xilinx/Vivado/2023.2/bin/rdiArgs.sh: line 38: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
WARNING: /mnt/d/Xilinx/Vivado/2023.2/tps/lnx64/jre17.0.7_7 does not exist.
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
ERROR: Could not find 64-bit executable.
ERROR: /mnt/d/Xilinx/Vivado/2023.2/bin/unwrapped/lnx64.o/vivado does not exist

Does anyone have experience installing Vivado in WSL?

exitrip avatar Apr 17 '24 16:04 exitrip