Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Error When Installing Max #2260

Closed
TheDetroitDon opened this issue Apr 10, 2024 · 1 comment
Closed

[BUG] Error When Installing Max #2260

TheDetroitDon opened this issue Apr 10, 2024 · 1 comment
Labels
bug Something isn't working mojo-repo Tag all issues with this label

Comments

@TheDetroitDon
Copy link

Bug description

received the following error when installing max as noted in step three [HERE](https://docs.modular.com/engine/get-started/). steps one and two were completed successfully.

Steps to reproduce

root@Ubuntu-Mojo-Dev:~# modular install max

Found release for https://packages.modular.com/max @ 24.2.0

Downloading archive: packages/24.2.0/max-x86_64-unknown-linux-gnu-24.2.0-3-0.tar.gz

Downloaded [ ████████████████████████ ] 100% 1.39GiB/1.39GiB

Extracting downloaded archives.

Extracted [ ████████████████████████ ] 100% 1.39GiB/1.39GiB

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/tmpwhsse50e/test_mandelbrot' died with <Signals.SIGILL: 4>.
File "/root/.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 "/root/.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 build test_python.mojo" failed:
SubprocessError: Command '/tmp/tmpwhsse50e/test_python' died with <Signals.SIGILL: 4>.
File "/root/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 223, in test_mojo_build
self.run(Path(tmp) / "test_python")[0],
File "/root/.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 package" failed:
SubprocessError: Command '/root/.modular/pkg/packages.modular.com_max/bin/mojo run /tmp/tmp1kmmmzqn/test_package_user.mojo -I /tmp/tmp1kmmmzqn' died with <Signals.SIGILL: 4>.
stderr:
[5641:5641:20240410,173402.622316:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[5641:5641:20240410,173402.622437: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: /root/.modular/pkg/packages.modular.com_max/bin/mojo run /tmp/tmp1kmmmzqn/test_package_user.mojo -I /tmp/tmp1kmmmzqn
[5641:5642:20240410,173402.623336:ERROR directory_reader_posix.cc:42] opendir /root/.modular/crashdb/attachments/1745caf1-b917-4780-88af-40241cce8065: No such file or directory (2)
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 0x000055eb18929157
1 mojo 0x000055eb18926d2e
2 mojo 0x000055eb189297ef
3 libpthread.so.0 0x00007f92a00eb420
4 libpthread.so.0 0x00007f923000a17c
0x55eb1b7b7d88 crashed!
Please file a bug report.
File "/root/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 264, in test_mojo_package
self.run_mojo(
File "/root/.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 "/root/.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 '/root/.modular/pkg/packages.modular.com_max/bin/mojo /root/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo' died with <Signals.SIGILL: 4>.
stderr:
[5660:5660:20240410,173404.116574:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[5660:5660:20240410,173404.116628: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: /root/.modular/pkg/packages.modular.com_max/bin/mojo /root/.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 0x0000555e75445157
1 mojo 0x0000555e75442d2e
2 mojo 0x0000555e754457ef
3 libpthread.so.0 0x00007fbb827b6420
4 libpthread.so.0 0x00007fbb1800a17c
0x555e782d3d88 crashed!
Please file a bug report.
File "/root/.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 "/root/.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 "/root/.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_python.mojo" failed:
SubprocessError: Command '/root/.modular/pkg/packages.modular.com_max/bin/mojo /root/.modular/pkg/packages.modular.com_max/test/test_python.mojo' died with <Signals.SIGILL: 4>.
stderr:
[5677:5677:20240410,173404.693998:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[5677:5677:20240410,173404.694104: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: /root/.modular/pkg/packages.modular.com_max/bin/mojo /root/.modular/pkg/packages.modular.com_max/test/test_python.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 0x0000558cdebd7157
1 mojo 0x0000558cdebd4d2e
2 mojo 0x0000558cdebd77ef
3 libpthread.so.0 0x00007f5eae017420
4 libpthread.so.0 0x00007f5e4403efae
0x558ce1a65d88 crashed!
Please file a bug report.
File "/root/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 369, in test_mojo_run
self.run_mojo(self.test_dir / "test_python.mojo")[0],
File "/root/.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 "/root/.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 "/root/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 306, in test_mojo_repl
self.assert_contains("42", out)
File "/root/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 156, in assert_contains
raise CheckError(needle, haystack)
[mojo][error] Mojo SDK post-install test "mojo debug" failed:
CheckError: expected '42' to appear in output:
Current executable set to '/root/.modular/pkg/packages.modular.com_max/bin/mojo' (x86_64).
Breakpoint 1: no locations (pending).
WARNING: Unable to resolve breakpoint to any actual locations.
1 location added to breakpoint 1
Process 5775 launched: '/root/.modular/pkg/packages.modular.com_max/bin/mojo' (x86_64)
Process 5775 stopped and restarted: thread 1 received signal: SIGCHLD
Process 5775 stopped

  • thread Add the initial README.md #1, name = 'mojo', stop reason = signal SIGILL: illegal operand
    frame #0: 0x00007fe518001e90 JIT(0x7fe518075000)`stdlib.memory.memory.memcpy[scalar, 0](dest=0x00005561690da000, src=0x00007fe518000040, count=1) at memory.mojo:236:5
    File "/root/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 357, in test_mojo_debug
    self.assert_contains("42", out)
    File "/root/.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=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin HOME=/root PYTHONPATH=/root/.modular/pkg/packages.modular.com_max/venv/lib/root/.modular/pkg/packages.modular.com_max/venv/bin/python /root/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py --modular-home /root/.modular --package-path /root/.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/tmpwhsse50e/test_mandelbrot' died with <Signals.SIGILL: 4>.
      File "/root/.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 "/root/.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 build test_python.mojo" failed:
      SubprocessError: Command '/tmp/tmpwhsse50e/test_python' died with <Signals.SIGILL: 4>.
      File "/root/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 223, in test_mojo_build
      self.run(Path(tmp) / "test_python")[0],
      File "/root/.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 package" failed:
      SubprocessError: Command '/root/.modular/pkg/packages.modular.com_max/bin/mojo run /tmp/tmp1kmmmzqn/test_package_user.mojo -I /tmp/tmp1kmmmzqn' died with <Signals.SIGILL: 4>.
      stderr:
      [5641:5641:20240410,173402.622316:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
      [5641:5641:20240410,173402.622437: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:
    1. Program arguments: /root/.modular/pkg/packages.modular.com_max/bin/mojo run /tmp/tmp1kmmmzqn/test_package_user.mojo -I /tmp/tmp1kmmmzqn
      [5641:5642:20240410,173402.623336:ERROR directory_reader_posix.cc:42] opendir /root/.modular/crashdb/attachments/1745caf1-b917-4780-88af-40241cce8065: No such file or directory (2)
      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 0x000055eb18929157
      1 mojo 0x000055eb18926d2e
      2 mojo 0x000055eb189297ef
      3 libpthread.so.0 0x00007f92a00eb420
      4 libpthread.so.0 0x00007f923000a17c
      0x55eb1b7b7d88 crashed!
      Please file a bug report.
      File "/root/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 264, in test_mojo_package
      self.run_mojo(
      File "/root/.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 "/root/.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 '/root/.modular/pkg/packages.modular.com_max/bin/mojo /root/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo' died with <Signals.SIGILL: 4>.
      stderr:
      [5660:5660:20240410,173404.116574:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
      [5660:5660:20240410,173404.116628: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:
    2. Program arguments: /root/.modular/pkg/packages.modular.com_max/bin/mojo /root/.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 0x0000555e75445157
      1 mojo 0x0000555e75442d2e
      2 mojo 0x0000555e754457ef
      3 libpthread.so.0 0x00007fbb827b6420
      4 libpthread.so.0 0x00007fbb1800a17c
      0x555e782d3d88 crashed!
      Please file a bug report.
      File "/root/.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 "/root/.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 "/root/.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_python.mojo" failed:
      SubprocessError: Command '/root/.modular/pkg/packages.modular.com_max/bin/mojo /root/.modular/pkg/packages.modular.com_max/test/test_python.mojo' died with <Signals.SIGILL: 4>.
      stderr:
      [5677:5677:20240410,173404.693998:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
      [5677:5677:20240410,173404.694104: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:
    3. Program arguments: /root/.modular/pkg/packages.modular.com_max/bin/mojo /root/.modular/pkg/packages.modular.com_max/test/test_python.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 0x0000558cdebd7157
      1 mojo 0x0000558cdebd4d2e
      2 mojo 0x0000558cdebd77ef
      3 libpthread.so.0 0x00007f5eae017420
      4 libpthread.so.0 0x00007f5e4403efae
      0x558ce1a65d88 crashed!
      Please file a bug report.
      File "/root/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 369, in test_mojo_run
      self.run_mojo(self.test_dir / "test_python.mojo")[0],
      File "/root/.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 "/root/.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 "/root/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 306, in test_mojo_repl
self.assert_contains("42", out)
File "/root/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 156, in assert_contains
raise CheckError(needle, haystack)
[mojo][error] Mojo SDK post-install test "mojo debug" failed:
CheckError: expected '42' to appear in output:
Current executable set to '/root/.modular/pkg/packages.modular.com_max/bin/mojo' (x86_64).
Breakpoint 1: no locations (pending).
WARNING: Unable to resolve breakpoint to any actual locations.
1 location added to breakpoint 1
Process 5775 launched: '/root/.modular/pkg/packages.modular.com_max/bin/mojo' (x86_64)
Process 5775 stopped and restarted: thread 1 received signal: SIGCHLD
Process 5775 stopped

  • thread Add the initial README.md #1, name = 'mojo', stop reason = signal SIGILL: illegal operand
    frame #0: 0x00007fe518001e90 JIT(0x7fe518075000)`stdlib.memory.memory.memcpy[scalar, 0](dest=0x00005561690da000, src=0x00007fe518000040, count=1) at memory.mojo:236:5
    File "/root/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 357, in test_mojo_debug
    self.assert_contains("42", out)
    File "/root/.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.

==========================

System information

- What OS did you do install Mojo on ?
  - ubuntu 20.04.6 lts
- Provide version information for Mojo by pasting the output of `mojo -v`
  - n/a
- Provide Modular CLI version by pasting the output of `modular -v`
  - modular 0.7.0  487c2f88
@TheDetroitDon TheDetroitDon added bug Something isn't working mojo Issues that are related to mojo labels Apr 10, 2024
@ematejska
Copy link
Collaborator

Failure in mojo postinstall test.

@ematejska ematejska added the mojo-tooling Tag for all issues related to repl, lldb, lsp, vscode extension. label Apr 10, 2024
@JoeLoser JoeLoser added modular-cli modular tool issues and removed mojo-tooling Tag for all issues related to repl, lldb, lsp, vscode extension. labels Apr 12, 2024
@smuniraj2018 smuniraj2018 removed the modular-cli modular tool issues label Apr 15, 2024
@linear linear bot removed the mojo Issues that are related to mojo label Apr 29, 2024
@ematejska ematejska added the mojo-repo Tag all issues with this label label Apr 29, 2024
@linear linear bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mojo-repo Tag all issues with this label
Projects
None yet
Development

No branches or pull requests

4 participants