max
max copied to clipboard
[BUG]: [Mojo] "modular install max" fails
2024-03-28, Linux 5.15.0-94-generic #104-Ubuntu SMP Tue Jan 9 15:25:40 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux System: Kernel: 5.15.0-94-generic x86_64 bits: 64 compiler: gcc v: 11.4.0 Desktop: Cinnamon 5.8.4 CPU: Info: 16-core model: AMD Ryzen 9 7950X3D bits: 64 type: MCP arch: Zen 3 rev: 2 cache: Info: Processes: 410 Uptime: 43m Memory: 15.61 GiB used: 3.23 GiB (20.7%) Init: systemd v: 249 runlevel: 5 Compilers: gcc: 11.4.0 alt: 11/12 Client: Cinnamon v: 5.8.4 inxi: 3.3.13
Installed per: https://docs.modular.com/engine/get-started Install failed at step 3.
(full output as requested)
tki@tki-Go ~/Downloads/modular-stuff $ modular install max
# Found release for https://packages.modular.com/max @ 24.2.0
# Using cached archive: /home/tki/.modular/cache/max-x86_64-unknown-linux-gnu-24.2.0-3-0.tar.gz
# Extracting downloaded archives.
# Extraction complete, setting configs...
# Configs complete, running post-install hooks...
[mojo][error] Mojo SDK post-install test "`mojo build test_mandelbrot.mojo`" failed:
SubprocessError: Command '/tmp/tmpg7f9il50/test_mandelbrot' died with <Signals.SIGILL: 4>.
stdout:
== test_mandelbrot_iter
File "/home/tki/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 212, in test_mojo_build
"25", self.run(Path(tmp) / "test_mandelbrot")[0]
File "/home/tki/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 181, in run
raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo test_mandelbrot.mojo`" failed:
SubprocessError: Command '/home/tki/.modular/pkg/packages.modular.com_max/bin/mojo /home/tki/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo' died with <Signals.SIGILL: 4>.
stdout:
== test_mandelbrot_iter
stderr:
[11492:11492:20240328,175151.813434:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[11492:11492:20240328,175151.813475: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. Program arguments: /home/tki/.modular/pkg/packages.modular.com_max/bin/mojo /home/tki/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 mojo 0x000055e3283cc157
1 mojo 0x000055e3283c9d2e
2 mojo 0x000055e3283cc7ef
3 libc.so.6 0x00007f1b316ce520
4 libc.so.6 0x00007f1a90001091
0x55e32b25ad88 crashed!
Please file a bug report.
File "/home/tki/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 363, in test_mojo_run
"25", self.run_mojo(self.test_dir / "test_mandelbrot.mojo")[0]
File "/home/tki/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 193, in run_mojo
return self.run(self.mojo, subcommand, *args)
File "/home/tki/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 181, in run
raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo repl`" failed:
CheckError: expected '42' to appear in output:
File "/home/tki/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 306, in test_mojo_repl
self.assert_contains("42", out)
File "/home/tki/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 156, in assert_contains
raise CheckError(needle, haystack)
[mojo][error] Some components of the Mojo SDK may have been installed successfully, but others may not work as expected.
[mojo][error] Please submit an issue to https://github.com/modularml/mojo and include the full output of the command you just ran.
modular: error: failed to run script
==========================
Failure Information:
- Script: `PATH=/home/tki/.modular/pkg/packages.modular.com_max/bin:/home/tki/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin:/home/tki/go/bin:/home/tki/Android/Sdk/platform-tools:/usr/local/go/bin:/home/tki/go/bin:/home/tki/Android/Sdk/platform-tools HOME=/home/tki MODULAR_HOME=/home/tki/.modular PYTHONPATH=/home/tki/.modular/pkg/packages.modular.com_max/venv/lib/home/tki/.modular/pkg/packages.modular.com_max/venv/bin/python /home/tki/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py --modular-home /home/tki/.modular --package-path /home/tki/.modular/pkg/packages.modular.com_max --mojo-config-section mojo-max`
- Result: 1
- Stderr:
[mojo][error] Mojo SDK post-install test "`mojo build test_mandelbrot.mojo`" failed:
SubprocessError: Command '/tmp/tmpg7f9il50/test_mandelbrot' died with <Signals.SIGILL: 4>.
stdout:
== test_mandelbrot_iter
File "/home/tki/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 212, in test_mojo_build
"25", self.run(Path(tmp) / "test_mandelbrot")[0]
File "/home/tki/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 181, in run
raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo test_mandelbrot.mojo`" failed:
SubprocessError: Command '/home/tki/.modular/pkg/packages.modular.com_max/bin/mojo /home/tki/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo' died with <Signals.SIGILL: 4>.
stdout:
== test_mandelbrot_iter
stderr:
[11492:11492:20240328,175151.813434:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[11492:11492:20240328,175151.813475: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. Program arguments: /home/tki/.modular/pkg/packages.modular.com_max/bin/mojo /home/tki/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 mojo 0x000055e3283cc157
1 mojo 0x000055e3283c9d2e
2 mojo 0x000055e3283cc7ef
3 libc.so.6 0x00007f1b316ce520
4 libc.so.6 0x00007f1a90001091
0x55e32b25ad88 crashed!
Please file a bug report.
File "/home/tki/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 363, in test_mojo_run
"25", self.run_mojo(self.test_dir / "test_mandelbrot.mojo")[0]
File "/home/tki/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 193, in run_mojo
return self.run(self.mojo, subcommand, *args)
File "/home/tki/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 181, in run
raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo repl`" failed:
CheckError: expected '42' to appear in output:
File "/home/tki/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 306, in test_mojo_repl
self.assert_contains("42", out)
File "/home/tki/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 156, in assert_contains
raise CheckError(needle, haystack)
[mojo][error] Some components of the Mojo SDK may have been installed successfully, but others may not work as expected.
[mojo][error] Please submit an issue to https://github.com/modularml/mojo and include the full output of the command you just ran.
Thanks for reporting! this seems to be an isolated instance. Could you try again and let us know if it persists?
Please try in 24.4 and re-open this ticket if you're still getting this issue! Thanks