modularml / max

A collection of sample programs, notebooks, and tools which highlight the power of the MAX Platform
https://www.modular.com
Other
200 stars 31 forks source link

[Modular CLI]: modular install mojo crashes early on WSL2 #170

Open jaykrell opened 3 weeks ago

jaykrell commented 3 weeks ago

Issue description

root@jaykrell-tp4:~# modular install mojo
loc("#M.target<triple = \22x86_64-unknown-linux\22, cpu = \22znver3\22, features = \22+64bit,+adx,+aes,+avx,+avx2,+bmi,+bmi2,+clflushopt,+clwb,+clzero,+cmov,+crc32,+cx16,+cx8,+f16c,+fma,+fsgsbase,+fxsr,+invpcid,+lzcnt,+mmx,+movbe,+mwaitx,+pclmul,+pku,+popcnt,+prfchw,+rdpid,+rdpru,+rdrnd,+rdseed,+sahf,+sha,+shstk,+sse,+sse2,+sse3,+sse4.1,+sse4.2,+sse4a,+ssse3,+vaes,+vpclmulqdq,+wbnoinvd,+x87,+xsave,+xsavec,+xsaveopt,+xsaves\22, data_layout = \22e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128\22, simd_bit_width = 256>":1:50): error: duplicate or unknown struct parameter name: cpu
[1533:1533:20240602,180952.391425:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[1533:1533:20240602,180952.391506:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
Please submit a bug report to https://github.com/modularml/max/issues and include the crash backtrace along with all the relevant source codes.
Stack dump:
0.      Program arguments: modular install mojo
 #0 0x000055a7e5a4c327 (/usr/bin/modular+0x1552327)
 #1 0x000055a7e5a49fde (/usr/bin/modular+0x154ffde)
 #2 0x000055a7e5a4c9af (/usr/bin/modular+0x15529af)
 #3 0x00007f047d4b9520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #4 0x000055a7e5e6edd4 (/usr/bin/modular+0x1974dd4)
 #5 0x000055a7e5e6e54c (/usr/bin/modular+0x197454c)
 #6 0x000055a7e5e5ed8f (/usr/bin/modular+0x1964d8f)
 #7 0x000055a7e5e5dc78 (/usr/bin/modular+0x1963c78)
 #8 0x000055a7e5998433 (/usr/bin/modular+0x149e433)
 #9 0x000055a7e59976ba (/usr/bin/modular+0x149d6ba)
#10 0x00007f047d4a0d90 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#11 0x00007f047d4a0e40 call_init ./csu/../csu/libc-start.c:128:20
#12 0x00007f047d4a0e40 __libc_start_main ./csu/../csu/libc-start.c:379:5
#13 0x000055a7e5996e2e (/usr/bin/modular+0x149ce2e)
installer crashed!
Please file a bug report.
Segmentation fault
root@jaykrell-tp4:~# uname -a
Linux jaykrell-tp4 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Steps to reproduce

Version Info

- Provide Modular CLI version by pasting the output of `modular -v`

root@jaykrell-tp4:~# modular -v
modular 0.8.0 (39a426b5)
ehsanmok commented 3 weeks ago

Thanks for reporting! we'll look into it.

smuniraj2018 commented 3 weeks ago

Can you try modular clean and try again ?