Open 1-hussy opened 10 months ago
@shashankprasanna can you please look at this issue please
Hi. Can you verify that you're running WSL 2? You should be able to run wsl -l -v
to see the version. If you're on 1, you can find Microsoft's upgrade instructions here: https://learn.microsoft.com/en-us/windows/wsl/install#upgrade-version-from-wsl-1-to-wsl-2
Hi, I am using WSL version: 2.0.9.0 Kernel version: 5.15.133.1-1 WSLg version: 1.0.59 MSRDC version: 1.2.4677 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows version: 10.0.22621.2861
now updated to the latest version of wsl but still facing the same error WSL version: 2.0.14.0 Kernel version: 5.15.133.1-1 WSLg version: 1.0.59 MSRDC version: 1.2.4677 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows version: 10.0.22621.2861
With the main() there, I get the build-time error of:
error: TODO: expressions are not yet supported at the file scope level
main()
^
Do you have that in your file and can you remove? We also released v0.6.1 if you want to try that.
may be you are using it in a .mojo file thats why you got that error if you run the same code in notebook you have to write like this. Yep I know I was already updated to the latest version of mojo as well.
Bug description
Got giberish error from which I cannot anything '/home/alex/.modular/pkg/packages.modular.com_mojo/bin/mojo' '/home/alex/mojo-course/test.mojo' [17210:17210:20240106,013313.489154:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2) [17210:17210:20240106,013313.489295: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/mojo/issues and include the crash backtrace along with all the relevant source codes. Stack dump:
0 0x0000564455a06ee7 (/home/alex/.modular/pkg/packages.modular.com_mojo/bin/mojo+0x60fee7)
1 0x0000564455a04abe (/home/alex/.modular/pkg/packages.modular.com_mojo/bin/mojo+0x60dabe)
2 0x0000564455a075bf (/home/alex/.modular/pkg/packages.modular.com_mojo/bin/mojo+0x6105bf)
3 0x00007f9bde9a2520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
4 0x00007f9b500016ad
Segmentation fault
this was the code snippet
Steps to reproduce
Just run the code
System information