spack on wsl2

111 views
Skip to first unread message

Valeriy Onuchin

unread,
Apr 28, 2022, 5:54:54 AM4/28/22
to Spack
Hi,
I'm trying to use spack  on wsl2 machine

$ uname -a
Linux x2v0 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux


$ spack debug report
* **Spack:** 0.18.0.dev0
* **Python:** 3.6.8
* **Platform:** linux-centos7-skylake
* **Concretizer:** clingo


Some packages are built OK, but some - failed, and it seems this is related to python running  in such environment.

For example 
$spack --debug --stacktrace install fftw

lib/spack/spack/installer.py:1784 ==> [2022-04-28-12:36:02.396464] Error: fftw-3.3.10-trknfhaucmsqnshuorvr54jrf2oiikzs: Package was not installed
lib/spack/spack/main.py:913 ==> [2022-04-28-12:36:02.396626] InstallError: Installation request failed.  Refer to reported errors for failing package(s).
lib/spack/spack/error.py:54 ==> [2022-04-28-12:36:02.396745] Error: Installation request failed.  Refer to reported errors for failing package(s).



Is it possible to use spack on windows11/wsl2? 
What could you recommend me?

Thanks.
Regards. Valeriy




 




Valeriy Onuchin

unread,
Apr 28, 2022, 8:46:31 AM4/28/22
to Spack
Hi,
I found out the problem is explained in 

https://githubhot.com/repo/spack/spack/issues/29673

Install any package on Windows e.g. spack install cpuinfo
Spack's tee functionality does not pipe the output to stdout, only the output file.


WSL2 - is both "win32" and "linux" system 
$ uname -a
Linux x2v0 5.10.16.3-microsoft-standard-WSL2

So,  additional "platform " check required.
I'll try to prepare a patch.

Regards. Valeriy

 
четверг, 28 апреля 2022 г. в 12:54:54 UTC+3, Valeriy Onuchin:
Reply all
Reply to author
Forward
0 new messages