Open igormintz opened 4 months ago
Does this ever succeed for you? Looks like the error is about available memory on your device: "JIT session error: Cannot allocate memory"
my first time. it seems that mojo works (at least the 'hello, world' part). I don't see an issue with memory: Filesystem 1K-blocks Used Available Use% Mounted on tmpfs 97596 1136 96460 2% /run efivarfs 256 15 242 6% /sys/firmware/efi/efivars /dev/sda1 70006392 3539840 66450168 6% / tmpfs 487968 0 487968 0% /dev/shm tmpfs 5120 0 5120 0% /run/lock /dev/sda16 911580 58712 789228 7% /boot /dev/sda15 99791 6475 93317 7% /boot/efi tmpfs 97592 12 97580 1% /run/user/1000
IIRC mojo requires 2 GBs to be allocated in order to JIT something. Could you make sure you have enough RAM available when running the installer?
Also, self-test
is a step that runs after the installation has finished, and it's okay if sometimes it fails. Can you try executing some mojo program using mojo run
, for example? That will help figure out what's going on.
Bug description
(mojo-venv) ubuntu@igorlinux:\~$ modular install mojo
Found release for https://packages.modular.com/mojo @ 24.4.0
Downloading archive: packages/24.4.0/mojo-aarch64-unknown-linux-gnu-24.4.0-14-0.tar.zst
Downloaded [ ███████████████████████████████████████████████████████████████████████████████████████████ ] 100% 98.6MiB/98.6MiB
Extracting downloaded archives.
Extracted [ ███████████████████████████████████████████████████████████████████████████████████████████ ] 100% 98.6MiB/98.6MiB
Running post-install scripts...
Mojo Interop [ █████████████████████████████████████████████░░░░░░░░░░░░░░░ ] 50% [mojo][error] Mojo SDK post-install test "
mojo test_mandelbrot.mojo
" failed:SubprocessError: Command '/home/ubuntu/.modular/pkg/packages.modular.com_mojo/bin/mojo /home/ubuntu/.modular/pkg/packages.modular.com_mojo/test/test_mandelbrot.mojo' returned non-zero exit status 1. stderr: JIT session error: Cannot allocate memory /home/ubuntu/.modular/pkg/packages.modular.com_mojo/bin/mojo: error: Failed to materialize symbols: { (exec, { static_string_74f4a3eb31a5a74ddb14235b2a8ab96dc38c568fc06b98f1872508ea70957ff5, static_string_a53f8c03fb0d6348caa8509ba52aa6ff7c06a31a5a3003eb524e06a97683286e, main, static_string_3fdc461abc445130dc7b1253064eb5520da7f603b99494dc8b07ab5f3a017329, static_string_3236d4a97fa195711fa518f3d76d16162b49f5b7298a840f08f23049db12dfd4 }) } File "/home/ubuntu/.modular/pkg/packages.modular.com_mojo/scripts/checks/self-test-complex.py", line 356, in test_mojo_run self.run_mojo(self.test_dir / "test_mandelbrot.mojo")[0], File "/home/ubuntu/.modular/pkg/packages.modular.com_mojo/scripts/checks/self-test-complex.py", line 184, in run_mojo return self.run(self.mojo, subcommand, *args) File "/home/ubuntu/.modular/pkg/packages.modular.com_mojo/scripts/checks/self-test-complex.py", line 172, in run raise SubprocessError( [mojo][error] Mojo SDK post-install test "
mojo test_python.mojo
" failed: SubprocessError: Command '/home/ubuntu/.modular/pkg/packages.modular.com_mojo/bin/mojo /home/ubuntu/.modular/pkg/packages.modular.com_mojo/test/test_python.mojo' returned non-zero exit status 1. stderr: JIT session error: Cannot allocate memory /home/ubuntu/.modular/pkg/packages.modular.com_mojo/bin/mojo: error: Failed to materialize symbols: { (exec, { static_string_4392942e00d028b28d70180ff578624619c45a976640534a510393019c7ca6e5, main, static_string_9bf3e3bae7f22ec8c4fb8f66dc7638cd287a36a5bccf43fbab7e230f2cb124c1, static_string_7f0858c8f217d326cf38feac7b764faf2648ea37a1247bc40efbc5fa81f637e7, static_string_724521dffbd69d97539288ac670c76efd49376d0cee793364ca47b8fbdd6c636, static_string_f6a288972b06cfdb80d7f84bb85148f97f7cb26549110add94da75f62e46961d, static_string_a53f8c03fb0d6348caa8509ba52aa6ff7c06a31a5a3003eb524e06a97683286e, static_string_0d91e615272f226436c99d0d68d6a3aee34008d64b756b58ef45f68fe2cc9616, static_string_3fdc461abc445130dc7b1253064eb5520da7f603b99494dc8b07ab5f3a017329, static_string_cea15e2c507608192ff42eb331e73f255f28c6285b2b1141faa388025b0729cc, static_string_bf8a42e90f20502eb1e7386d640f410361d22df2abc62225b9949b965a9437be, static_string_905e686c19b49609fb3cc77990129420c1ec46ed7e34fecb0e8fdf79868061fa, static_string_3319a902334c9cfe8e4b02c4627e0e0e66ffe3bab5c2f319c6a0eed3ea8b2f62 }) } File "/home/ubuntu/.modular/pkg/packages.modular.com_mojo/scripts/checks/self-test-complex.py", line 362, in test_mojo_run self.run_mojo(self.test_dir / "test_python.mojo")[0], File "/home/ubuntu/.modular/pkg/packages.modular.com_mojo/scripts/checks/self-test-complex.py", line 184, in run_mojo return self.run(self.mojo, subcommand, *args) File "/home/ubuntu/.modular/pkg/packages.modular.com_mojo/scripts/checks/self-test-complex.py", line 172, in run raise SubprocessError( [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. Mojo Interop [ █████████████████████████████████████████████░░░░░░░░░░░░░░░ ] 50% modular: error: failed to run scriptFailure Information:
PATH=/home/ubuntu/mojo-venv/bin:/home/ubuntu/.pyenv/shims:/home/ubuntu/.pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin HOME=/home/ubuntu MODULAR_HOME=/home/ubuntu/.modular PYTHONPATH=/home/ubuntu/.modular/pkg/packages.modular.com_mojo/venv/lib/home/ubuntu/.modular/pkg/packages.modular.com_mojo/venv/bin/python /home/ubuntu/.modular/pkg/packages.modular.com_mojo/scripts/checks/self-test-complex.py --modular-home /home/ubuntu/.modular --modular-data /home/ubuntu/.modular --modular-config /home/ubuntu/.modular --package-path /home/ubuntu/.modular/pkg/packages.modular.com_mojo --mojo-config-section mojo --tests build,run
mojo test_mandelbrot.mojo
" failed: SubprocessError: Command '/home/ubuntu/.modular/pkg/packages.modular.com_mojo/bin/mojo /home/ubuntu/.modular/pkg/packages.modular.com_mojo/test/test_mandelbrot.mojo' returned non-zero exit status 1. stderr: JIT session error: Cannot allocate memory /home/ubuntu/.modular/pkg/packages.modular.com_mojo/bin/mojo: error: Failed to materialize symbols: { (exec, { static_string_74f4a3eb31a5a74ddb14235b2a8ab96dc38c568fc06b98f1872508ea70957ff5, static_string_a53f8c03fb0d6348caa8509ba52aa6ff7c06a31a5a3003eb524e06a97683286e, main, static_string_3fdc461abc445130dc7b1253064eb5520da7f603b99494dc8b07ab5f3a017329, static_string_3236d4a97fa195711fa518f3d76d16162b49f5b7298a840f08f23049db12dfd4 }) } File "/home/ubuntu/.modular/pkg/packages.modular.com_mojo/scripts/checks/self-test-complex.py", line 356, in test_mojo_run self.run_mojo(self.test_dir / "test_mandelbrot.mojo")[0], File "/home/ubuntu/.modular/pkg/packages.modular.com_mojo/scripts/checks/self-test-complex.py", line 184, in run_mojo return self.run(self.mojo, subcommand, *args) File "/home/ubuntu/.modular/pkg/packages.modular.com_mojo/scripts/checks/self-test-complex.py", line 172, in run raise SubprocessError( [mojo][error] Mojo SDK post-install test "mojo test_python.mojo
" failed: SubprocessError: Command '/home/ubuntu/.modular/pkg/packages.modular.com_mojo/bin/mojo /home/ubuntu/.modular/pkg/packages.modular.com_mojo/test/test_python.mojo' returned non-zero exit status 1. stderr: JIT session error: Cannot allocate memory /home/ubuntu/.modular/pkg/packages.modular.com_mojo/bin/mojo: error: Failed to materialize symbols: { (exec, { static_string_4392942e00d028b28d70180ff578624619c45a976640534a510393019c7ca6e5, main, static_string_9bf3e3bae7f22ec8c4fb8f66dc7638cd287a36a5bccf43fbab7e230f2cb124c1, static_string_7f0858c8f217d326cf38feac7b764faf2648ea37a1247bc40efbc5fa81f637e7, static_string_724521dffbd69d97539288ac670c76efd49376d0cee793364ca47b8fbdd6c636, static_string_f6a288972b06cfdb80d7f84bb85148f97f7cb26549110add94da75f62e46961d, static_string_a53f8c03fb0d6348caa8509ba52aa6ff7c06a31a5a3003eb524e06a97683286e, static_string_0d91e615272f226436c99d0d68d6a3aee34008d64b756b58ef45f68fe2cc9616, static_string_3fdc461abc445130dc7b1253064eb5520da7f603b99494dc8b07ab5f3a017329, static_string_cea15e2c507608192ff42eb331e73f255f28c6285b2b1141faa388025b0729cc, static_string_bf8a42e90f20502eb1e7386d640f410361d22df2abc62225b9949b965a9437be, static_string_905e686c19b49609fb3cc77990129420c1ec46ed7e34fecb0e8fdf79868061fa, static_string_3319a902334c9cfe8e4b02c4627e0e0e66ffe3bab5c2f319c6a0eed3ea8b2f62 }) } File "/home/ubuntu/.modular/pkg/packages.modular.com_mojo/scripts/checks/self-test-complex.py", line 362, in test_mojo_run self.run_mojo(self.test_dir / "test_python.mojo")[0], File "/home/ubuntu/.modular/pkg/packages.modular.com_mojo/scripts/checks/self-test-complex.py", line 184, in run_mojo return self.run(self.mojo, subcommand, *args) File "/home/ubuntu/.modular/pkg/packages.modular.com_mojo/scripts/checks/self-test-complex.py", line 172, in run raise SubprocessError( [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.==========================
Mojo Tools [ ████████████████████████████████████████████████████████████░░░░░░░░░░░░░░░ ] 66% [mojo][error] Mojo SDK post-install test "
mojo package
" failed:SubprocessError: Command '/home/ubuntu/.modular/pkg/packages.modular.com_mojo/bin/mojo run /tmp/tmplezua8dz/test_package_user.mojo -I /tmp/tmplezua8dz' returned non-zero exit status 1. stderr: JIT session error: Cannot allocate memory /home/ubuntu/.modular/pkg/packages.modular.com_mojo/bin/mojo: error: Failed to materialize symbols: { (exec, { static_string_a53f8c03fb0d6348caa8509ba52aa6ff7c06a31a5a3003eb524e06a97683286e, main, static_string_654bdcef9172153e9b6ad51e405de1ad24f98c8d82dbdfcfc8a9c3b8e6cbd29f }) } File "/home/ubuntu/.modular/pkg/packages.modular.com_mojo/scripts/checks/self-test-tools.py", line 256, in test_mojo_package self.run_mojo( File "/home/ubuntu/.modular/pkg/packages.modular.com_mojo/scripts/checks/self-test-tools.py", line 184, in run_mojo return self.run(self.mojo, subcommand, *args) File "/home/ubuntu/.modular/pkg/packages.modular.com_mojo/scripts/checks/self-test-tools.py", line 172, in run raise SubprocessError( [mojo][error] Mojo SDK post-install test "
mojo debug
" failed: SubprocessError: Command ''/home/ubuntu/.modular/pkg/packages.modular.com_mojo/bin/mojo' 'debug' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set target.load-cwd-lldbinit false' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set target.disable-aslr false' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set plugin.process.gdb-remote.packet-timeout 60' '-Xlldb' '-o' '-Xlldb' 'b test_debug.mojo:15' '-Xlldb' '-o' '-Xlldb' 'run' '-Xlldb' '-o' '-Xlldb' 'frame var foo' '-Xlldb' '-b' '/home/ubuntu/.modular/pkg/packages.modular.com_mojo/test/test_debug.mojo'' returned non-zero exit status 1. stdout: Current executable set to '/home/ubuntu/.modular/pkg/packages.modular.com_mojo/bin/mojo' (aarch64). Breakpoint 1: no locations (pending). WARNING: Unable to resolve breakpoint to any actual locations. JIT session error: Cannot allocate memory /home/ubuntu/.modular/pkg/packages.modular.com_mojo/bin/mojo: error: Failed to materialize symbols: { (exec, { main }) } Process 34838 launched: '/home/ubuntu/.modular/pkg/packages.modular.com_mojo/bin/mojo' (aarch64) Process 34838 stopped and restarted: thread 1 received signal: SIGCHLD Process 34838 exited with status = 1 (0x00000001) stderr: error: Command requires a process which is currently stopped. File "/home/ubuntu/.modular/pkg/packages.modular.com_mojo/scripts/checks/self-test-tools.py", line 342, in test_mojo_debug raise SubprocessError( [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. Mojo Tools [ ████████████████████████████████████████████████████████████░░░░░░░░░░░░░░░ ] 66% modular: error: failed to run scriptFailure Information:
PATH=/home/ubuntu/mojo-venv/bin:/home/ubuntu/.pyenv/shims:/home/ubuntu/.pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin HOME=/home/ubuntu MODULAR_HOME=/home/ubuntu/.modular PYTHONPATH=/home/ubuntu/.modular/pkg/packages.modular.com_mojo/venv/lib/home/ubuntu/.modular/pkg/packages.modular.com_mojo/venv/bin/python /home/ubuntu/.modular/pkg/packages.modular.com_mojo/scripts/checks/self-test-tools.py --modular-home /home/ubuntu/.modular --modular-data /home/ubuntu/.modular --modular-config /home/ubuntu/.modular --package-path /home/ubuntu/.modular/pkg/packages.modular.com_mojo --mojo-config-section mojo --tests package,debug,format
mojo package
" failed: SubprocessError: Command '/home/ubuntu/.modular/pkg/packages.modular.com_mojo/bin/mojo run /tmp/tmplezua8dz/test_package_user.mojo -I /tmp/tmplezua8dz' returned non-zero exit status 1. stderr: JIT session error: Cannot allocate memory /home/ubuntu/.modular/pkg/packages.modular.com_mojo/bin/mojo: error: Failed to materialize symbols: { (exec, { static_string_a53f8c03fb0d6348caa8509ba52aa6ff7c06a31a5a3003eb524e06a97683286e, main, static_string_654bdcef9172153e9b6ad51e405de1ad24f98c8d82dbdfcfc8a9c3b8e6cbd29f }) } File "/home/ubuntu/.modular/pkg/packages.modular.com_mojo/scripts/checks/self-test-tools.py", line 256, in test_mojo_package self.run_mojo( File "/home/ubuntu/.modular/pkg/packages.modular.com_mojo/scripts/checks/self-test-tools.py", line 184, in run_mojo return self.run(self.mojo, subcommand, *args) File "/home/ubuntu/.modular/pkg/packages.modular.com_mojo/scripts/checks/self-test-tools.py", line 172, in run raise SubprocessError( [mojo][error] Mojo SDK post-install test "mojo debug
" failed: SubprocessError: Command ''/home/ubuntu/.modular/pkg/packages.modular.com_mojo/bin/mojo' 'debug' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set target.load-cwd-lldbinit false' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set target.disable-aslr false' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set plugin.process.gdb-remote.packet-timeout 60' '-Xlldb' '-o' '-Xlldb' 'b test_debug.mojo:15' '-Xlldb' '-o' '-Xlldb' 'run' '-Xlldb' '-o' '-Xlldb' 'frame var foo' '-Xlldb' '-b' '/home/ubuntu/.modular/pkg/packages.modular.com_mojo/test/test_debug.mojo'' returned non-zero exit status 1. stdout: Current executable set to '/home/ubuntu/.modular/pkg/packages.modular.com_mojo/bin/mojo' (aarch64). Breakpoint 1: no locations (pending). WARNING: Unable to resolve breakpoint to any actual locations. JIT session error: Cannot allocate memory /home/ubuntu/.modular/pkg/packages.modular.com_mojo/bin/mojo: error: Failed to materialize symbols: { (exec, { main }) } Process 34838 launched: '/home/ubuntu/.modular/pkg/packages.modular.com_mojo/bin/mojo' (aarch64) Process 34838 stopped and restarted: thread 1 received signal: SIGCHLD Process 34838 exited with status = 1 (0x00000001) stderr: error: Command requires a process which is currently stopped. File "/home/ubuntu/.modular/pkg/packages.modular.com_mojo/scripts/checks/self-test-tools.py", line 342, in test_mojo_debug raise SubprocessError( [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.==========================
Errors detected [ ███████████████████████████████████████████████████████████████████████████████████████████ ] 100% 🔥 Mojo installed! 🔥
Steps to reproduce
System information