mojo
mojo copied to clipboard
[Modular CLI]: install mojo fails on M2 Max
Issue description
Output of modular install mojo
# Found release for https://packages.modular.com/mojo @ 0.6.0
# Installing to /Users/delip/.modular/pkg/packages.modular.com_mojo
# Downloading artifacts. Please wait...
# Downloads complete, setting configs...
# Configs complete, running post-install hooks...
Collecting find_libpython==0.3.0
Using cached find_libpython-0.3.0-py3-none-any.whl (8.5 kB)
Collecting jupyter_client>=8.3.0
Using cached jupyter_client-8.6.0-py3-none-any.whl (105 kB)
Collecting ipykernel>=6.25.0
Using cached ipykernel-6.27.1-py3-none-any.whl (114 kB)
Collecting python-dateutil>=2.8.2
Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting importlib-metadata>=4.8.3
Using cached importlib_metadata-7.0.0-py3-none-any.whl (23 kB)
Collecting traitlets>=5.3
Using cached traitlets-5.14.0-py3-none-any.whl (85 kB)
Collecting pyzmq>=23.0
Using cached pyzmq-25.1.1-cp38-cp38-macosx_10_15_universal2.whl (1.9 MB)
Collecting tornado>=6.2
Using cached tornado-6.4-cp38-abi3-macosx_10_9_x86_64.whl (431 kB)
Collecting jupyter-core!=5.0.*,>=4.12
Using cached jupyter_core-5.5.0-py3-none-any.whl (28 kB)
Collecting appnope
Using cached appnope-0.1.3-py2.py3-none-any.whl (4.4 kB)
Collecting nest-asyncio
Using cached nest_asyncio-1.5.8-py3-none-any.whl (5.3 kB)
Collecting debugpy>=1.6.5
Using cached debugpy-1.8.0-py2.py3-none-any.whl (5.0 MB)
Collecting ipython>=7.23.1
Using cached ipython-8.12.3-py3-none-any.whl (798 kB)
Collecting psutil
Using cached psutil-5.9.6-cp36-abi3-macosx_10_9_x86_64.whl (246 kB)
Collecting matplotlib-inline>=0.1
Using cached matplotlib_inline-0.1.6-py3-none-any.whl (9.4 kB)
Collecting comm>=0.1.1
Using cached comm-0.2.0-py3-none-any.whl (7.0 kB)
Collecting packaging
Using cached packaging-23.2-py3-none-any.whl (53 kB)
Collecting zipp>=0.5
Using cached zipp-3.17.0-py3-none-any.whl (7.4 kB)
Collecting pexpect>4.3
Using cached pexpect-4.9.0-py2.py3-none-any.whl (63 kB)
Collecting prompt-toolkit!=3.0.37,<3.1.0,>=3.0.30
Using cached prompt_toolkit-3.0.41-py3-none-any.whl (385 kB)
Collecting pickleshare
Using cached pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB)
Collecting decorator
Using cached decorator-5.1.1-py3-none-any.whl (9.1 kB)
Collecting stack-data
Using cached stack_data-0.6.3-py3-none-any.whl (24 kB)
Collecting pygments>=2.4.0
Using cached pygments-2.17.2-py3-none-any.whl (1.2 MB)
Collecting typing-extensions
Using cached typing_extensions-4.8.0-py3-none-any.whl (31 kB)
Collecting backcall
Using cached backcall-0.2.0-py2.py3-none-any.whl (11 kB)
Collecting jedi>=0.16
Using cached jedi-0.19.1-py2.py3-none-any.whl (1.6 MB)
Collecting platformdirs>=2.5
Using cached platformdirs-4.1.0-py3-none-any.whl (17 kB)
Collecting six>=1.5
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting parso<0.9.0,>=0.8.3
Using cached parso-0.8.3-py2.py3-none-any.whl (100 kB)
Collecting ptyprocess>=0.5
Using cached ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB)
Collecting wcwidth
Using cached wcwidth-0.2.12-py2.py3-none-any.whl (34 kB)
Collecting asttokens>=2.1.0
Using cached asttokens-2.4.1-py2.py3-none-any.whl (27 kB)
Collecting executing>=1.2.0
Using cached executing-2.0.1-py2.py3-none-any.whl (24 kB)
Collecting pure-eval
Using cached pure_eval-0.2.2-py3-none-any.whl (11 kB)
Installing collected packages: wcwidth, pure-eval, ptyprocess, pickleshare, find_libpython, backcall, appnope, zipp, typing-extensions, traitlets, tornado, six, pyzmq, pygments, psutil, prompt-toolkit, platformdirs, pexpect, parso, packaging, nest-asyncio, executing, decorator, debugpy, python-dateutil, matplotlib-inline, jupyter-core, jedi, importlib-metadata, comm, asttokens, stack-data, jupyter_client, ipython, ipykernel
Successfully installed appnope-0.1.3 asttokens-2.4.1 backcall-0.2.0 comm-0.2.0 debugpy-1.8.0 decorator-5.1.1 executing-2.0.1 find_libpython-0.3.0 importlib-metadata-7.0.0 ipykernel-6.27.1 ipython-8.12.3 jedi-0.19.1 jupyter-core-5.5.0 jupyter_client-8.6.0 matplotlib-inline-0.1.6 nest-asyncio-1.5.8 packaging-23.2 parso-0.8.3 pexpect-4.9.0 pickleshare-0.7.5 platformdirs-4.1.0 prompt-toolkit-3.0.41 psutil-5.9.6 ptyprocess-0.7.0 pure-eval-0.2.2 pygments-2.17.2 python-dateutil-2.8.2 pyzmq-25.1.1 six-1.16.0 stack-data-0.6.3 tornado-6.4 traitlets-5.14.0 typing-extensions-4.8.0 wcwidth-0.2.12 zipp-3.17.0
WARNING: You are using pip version 22.0.4; however, version 23.3.1 is available.
You should consider upgrading via the '/Users/delip/.modular/pkg/packages.modular.com_mojo/venv/bin/python -m pip install --upgrade pip' command.
[mojo] Testing: `mojo build test_mandelbrot.mojo` [FAIL]
[mojo] Testing: `mojo build test_python.mojo` [FAIL]
[mojo] Testing: `mojo test_python.mojo` [FAIL]
[mojo] Testing: `mojo repl` [FAIL]
[mojo] Some components may have been installed successfully, but others may not work as expected. 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 python:
Steps to reproduce
-
Include relevant code snippet that did not work as expected.
modular install mojo
-
If applicable, add screenshots to help explain the problem.
-
Include anything else that might help us debug the issue. There was a warning about the
pip
version, and I followed the instruction to upgrade pip, but that did not help.
WARNING: You are using pip version 22.0.4; however, version 23.3.1 is available.
You should consider upgrading via the '/Users/delip/.modular/pkg/packages.modular.com_mojo/venv/bin/python -m pip install --upgrade pip' command.
Version Info
- Provide Modular CLI version by pasting the output of `modular -v`
modular 0.2.2 (95d42445)
- What OS did you install modular CLI on ?
MacOS 14.2 Beta (23C5055b)
Have the same problem installing Mojo 0.6.0
(also tried with 0.5.0
before). Modular version is 0.2.2
.
I am on MacOS 14.1.1 (M1 Max) - I tried to install it in a venv as well, with no change to results.
It seems related to #590 #1131 (and #929 but python path seem to be found, since post-hooks are failing) but solutions proposed there do not seem to work.
These are the last lines of log output:
Installing collected packages: wcwidth, pure-eval, ptyprocess, pickleshare, find_libpython, backcall, appnope, zipp, typing-extensions, traitlets, tornado, six, pyzmq, pygments, psutil, prompt-toolkit, platformdirs, pexpect, parso, packaging, nest-asyncio, executing, decorator, debugpy, python-dateutil, matplotlib-inline, jupyter-core, jedi, importlib-metadata, comm, asttokens, stack-data, jupyter_client, ipython, ipykernel
Successfully installed appnope-0.1.3 asttokens-2.4.1 backcall-0.2.0 comm-0.2.0 debugpy-1.8.0 decorator-5.1.1 executing-2.0.1 find_libpython-0.3.0 importlib-metadata-7.0.0 ipykernel-6.27.1 ipython-8.12.3 jedi-0.19.1 jupyter-core-5.5.0 jupyter_client-8.6.0 matplotlib-inline-0.1.6 nest-asyncio-1.5.8 packaging-23.2 parso-0.8.3 pexpect-4.9.0 pickleshare-0.7.5 platformdirs-4.1.0 prompt-toolkit-3.0.41 psutil-5.9.6 ptyprocess-0.7.0 pure-eval-0.2.2 pygments-2.17.2 python-dateutil-2.8.2 pyzmq-25.1.2 six-1.16.0 stack-data-0.6.3 tornado-6.4 traitlets-5.14.0 typing-extensions-4.8.0 wcwidth-0.2.12 zipp-3.17.0
WARNING: You are using pip version 22.0.4; however, version 23.3.1 is available.
You should consider upgrading via the '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/venv/bin/python -m pip install --upgrade pip' command.
[mojo] Testing: `mojo build test_mandelbrot.mojo` [FAIL]
[mojo] Testing: `mojo build test_python.mojo` [FAIL]
[mojo] Testing: `mojo test_python.mojo` [FAIL]
[mojo] Testing: `mojo repl` [FAIL]
[mojo] Some components may have been installed successfully, but others may not work as expected. 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 python:
Also tried to create a conda environment with Python 3.11 (default was 3.8 on my system) with same results:
Installing collected packages: wcwidth, pure-eval, ptyprocess, find_libpython, appnope, traitlets, tornado, six, pyzmq, pygments, psutil, prompt-toolkit, platformdirs, pexpect, parso, packaging, nest-asyncio, executing, decorator, debugpy, python-dateutil, matplotlib-inline, jupyter-core, jedi, comm, asttokens, stack-data, jupyter_client, ipython, ipykernel
Successfully installed appnope-0.1.3 asttokens-2.4.1 comm-0.2.0 debugpy-1.8.0 decorator-5.1.1 executing-2.0.1 find_libpython-0.3.0 ipykernel-6.27.1 ipython-8.18.1 jedi-0.19.1 jupyter-core-5.5.0 jupyter_client-8.6.0 matplotlib-inline-0.1.6 nest-asyncio-1.5.8 packaging-23.2 parso-0.8.3 pexpect-4.9.0 platformdirs-4.1.0 prompt-toolkit-3.0.41 psutil-5.9.6 ptyprocess-0.7.0 pure-eval-0.2.2 pygments-2.17.2 python-dateutil-2.8.2 pyzmq-25.1.2 six-1.16.0 stack-data-0.6.3 tornado-6.4 traitlets-5.14.0 wcwidth-0.2.12
[notice] A new release of pip is available: 23.2.1 -> 23.3.1
[notice] To update, run: pip install --upgrade pip
[mojo] Testing: `mojo build test_mandelbrot.mojo` [FAIL]
[mojo] Testing: `mojo build test_python.mojo` [FAIL]
[mojo] Testing: `mojo test_python.mojo` [FAIL]
[mojo] Testing: `mojo repl` [FAIL]
[mojo] Some components may have been installed successfully, but others may not work as expected. 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 python:
Also seems related to: #1265 #1467 #1435
@delip I cannot edit the title, but I think it makes sense to make this a grouped issue with all the other issues that I have linked, as there seems to be an underlying problem in the install routines of Mojo that are not limited to MacOS or Apple Silicon (as Ubuntu systems seem also to be affected). Maybe we should rename the issue to be more reflective of that (or at least generalize it to Apple Silicon under MacOS 14.X as that seems to be the majority of reports)?
Also tried to create a conda environment with Python 3.11 (default was 3.8 on my system) with same results
This kind of suggests something is broken with python and/or conda on your system? Maybe clearing that up will unblock the modular installer.
Also, just confirming that you already installed homebrew?
Yes, homebrew is installed. Can elaborate more why that would suggest smth broken with python installation? From what I understand current mojo installer should even ship with internal python packaging, so not dependent on the system one (which to me suggests something broken with mojo installer?).
I am experiencing the same problem. I also think that there seems to be a fundamental problem with the Mojo installer https://github.com/modularml/mojo/issues/1430
@felixnext The installer tries to find a Python install on your system. Most install failures seem to be related to the way Python is installed (for example, some Linux distributions have a Python installation that doesn't include shared libraries, which Mojo requires; some Mac installations have a version of Homebrew that was installed with x86 emulation on; and so on). In https://github.com/modularml/mojo/issues/1131 Python was installed with an experimental package manager.
Based on the "failed to run python" message, it definitely sounds like an issue with the Python setup.
I know you said. you installed Conda. Did you try this procedure? https://docs.modular.com/mojo/manual/python/#set-up-a-python-environment-with-conda
If you still have Conda installed, you might try just the last step, setting the MOJO_PYTHON_LIB environment variable, because it sounds like things did get installed, but something didn't get configured correctly.
@felixnext安装程序会尝试在您的系统上查找 Python 安装。大多数安装失败似乎与 Python 的安装方式有关(例如,某些 Linux 发行版的 Python 安装不包含 Mojo 所需的共享库;某些 Mac 安装的 Homebrew 版本是通过 x86 模拟安装的上;等等)。在#1131中,Python 是通过一个实验性的包管理器安装的。
根据“无法运行 python”消息,这听起来绝对像是 Python 设置的问题。
我知道你说过。你安装了康达。你尝试过这个程序吗? https://docs.modular.com/mojo/manual/python/#set-up-a-python-environment-with-conda
如果您仍然安装了 Conda,您可以尝试最后一步,设置 MOJO_PYTHON_LIB 环境变量,因为听起来好像已经安装了一些东西,但有些东西没有正确配置。
This seems to solve the problem. Although I haven't tried it yet, Mojo's installer comes with python, which is contradictory.
Thanks for the reports -- much to improve here, we're working on it. I'll try to provide some debugging steps here, but first, just one quibble:
Mojo interoperates with Python, meaning you can import Python code into a Mojo program and execute it. To make this possible, Mojo needs to find an appropriate Python on your host system. We do this so you can pip install pandas
and then use that package in Mojo -- we need to be using the Python you just installed pandas for. However, detecting the right Python to use can be tricky.
Mojo's installer comes with python, which is contradictory
One way we'd hoped to minimize errors here was by specifying a dependency between the Mojo SDK and Python, for some installation methods. For example, I believe that when you apt-get install modular
, Python is specified as a dependency and may be downloaded and installed if it's missing on your system (forgive me if I'm wrong about that off the top of my head).
I don't necessarily view this as contradictory, but, hopefully that explanation makes sense. In some cases -- and especially in cases where there's a dependency between the modular
installer and a specific version of Python -- this can help prevent errors for some people.
(Also, technically, since it's available anyway and it's convenient, the installer does use Python for some small tasks. But this may change in the future; I wouldn't call Python a critical dependency of the installer itself -- just my take.)
I know you said. you installed Conda. Did you try this procedure? https://docs.modular.com/mojo/manual/python/#set-up-a-python-environment-with-conda
If you still have Conda installed, you might try just the last step, setting the MOJO_PYTHON_LIB environment variable, because it sounds like things did get installed, but something didn't get configured correctly.
Thanks for the helpful pointers, @arthurevans! Like I mentioned, modular install mojo
attempts to find the correct Python on its own. You can help it find the right one by invoking MOJO_PYTHON_LIB=/path/to/your/python modular install mojo
.
If you've already installed Mojo, and you encountered the dreaded "failed to run python:" error when doing so, then you can either uninstall and reinstall using MOJO_PYTHON_LIB
, or you can confirm which Python was chosen by invoking this command in your shell, and searching for the mojo.python_lib
key:
$ modular config-list
For me, on a MacBook Pro, this shows:
mojo.python_lib = /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/Python3
If that path exists on your macOS machine, you may want to try using it as the value of MOJO_PYTHON_LIB
. If that works, and you don't wish to continue setting MOJO_PYTHON_LIB
, then you can even change the configuration setting using the following command:
$ modular config-set mojo.python_lib /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/Python3
Hopefully this allows some of the people in this thread work around the issue for now. In upcoming releases we'll be improving this Python detection behavior, as well as the error messages you see when something goes wrong.
Thanks @modocache and @arthurevans for all the useful explanations here! I tried going through it again. So from a modular clean
the config is obviously empty (apart from user).
Conda Default Install (like before)
After installing with the failed to run python at the end
I see the following config:
mojo.compilerrt_path = /Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRTShared.dylib
mojo.compilerrt_static_path = /Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a
mojo.driver_path = /Users/felixnext/.modular/pkg/packages.modular.com_mojo/bin/mojo
mojo.import_path = /Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/mojo
mojo.jupyter_path = /Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libMojoJupyter.dylib
mojo.lldb_path = /Users/felixnext/.modular/pkg/packages.modular.com_mojo/bin/lldb
mojo.lldb_plugin_path = /Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libMojoLLDB.dylib
mojo.lldb_visualizers_path = /Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/lldb-visualizers
mojo.lldb_vscode_path = /Users/felixnext/.modular/pkg/packages.modular.com_mojo/bin/lldb-dap
mojo.lsp_server_path = /Users/felixnext/.modular/pkg/packages.modular.com_mojo/bin/mojo-lsp-server
mojo.mblack_path = /Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/mblack/mblack
mojo.orcrt_path = /Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/liborc_rt_osx.a
mojo.python_lib = /opt/homebrew/Caskroom/miniconda/base/envs/mojo/lib/libpython3.11.dylib
mojo.repl_entry_point = /Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/mojo-repl-entry-point
mojo.system_libs = -lm,-lz,-lcurses
user.id = mut_XXX
(Installed from a conda env here). It appears that it detects the right conda environment (miniconda/base/envs/mojo
). This is also exactly the path that the setup guide mentioned above recommends, which is output of the following command: find $CONDA_PREFIX/lib -iname 'libpython*.[s,d]*' | sort -r | head -n 1
Conda Install with Python Path
(Going from modular clean)
Running with MOJO_PYTHON_LIB="$(which python)" modular install mojo
let to the same result (and same config) as above.
(For context which python
resolves to /opt/homebrew/Caskroom/miniconda/base/envs/mojo/bin/python
)
Also tried:
-
/opt/homebrew/Caskroom/miniconda/base/envs/mojo
-
/opt/homebrew/Caskroom/miniconda/base/envs/mojo/bin
With same results.
Setting Config explicitly
(Going from modular clean)
First running modular config-set mojo.python_lib "$(which python)"
. The config contains user.id and mojo.python_lib explicitly at this point with the expected path (the MOJO_PYTHON_LIB
env-var is also still set).
However, modular install mojo
leads to the same result and same config (appears that it is overwritten).
Worth noting here that the pip version changes between installing from conda and from base system, so I assume at least pip is found on the system.
Overall a bit unsure what to do next. It looks to me that the installer does find the correct python_lib, but has problems using it correctly? (Also for reference using python and conda a lot in day-to-day work on my system, so I assume that it is correctly installed, not sure if there might be specific shared libraries to check for?)
However,
modular install mojo
leads to the same result and same config (appears that it is overwritten).
Ah, yes, sorry if I was unclear: modular install mojo
overwrites values in the configuration file. I was suggesting that if you got tired of using MOJO_PYTHON_LIB
after having already installed the Mojo SDK, you could set values in modular.cfg
.
Overall a bit unsure what to do next. It looks to me that the installer does find the correct python_lib, but has problems using it correctly?
Gotcha. This will be improved in future releases, but the problem is that right now it's not clear why the tests you posted are failing:
[mojo] Testing: `mojo build test_mandelbrot.mojo` [FAIL]
[mojo] Testing: `mojo build test_python.mojo` [FAIL]
[mojo] Testing: `mojo test_python.mojo` [FAIL]
[mojo] Testing: `mojo repl` [FAIL]
We'll output failure information for these automatically as part of a future release, but for now, could you try testing the REPL yourself manually, by invoking the following, using the mojo
installed by modular install mojo
(based on the config you posted above, it looks like this exists at mojo.driver_path = /Users/felixnext/.modular/pkg/packages.modular.com_mojo/bin/mojo
)?
$ echo "print(\"Hello\")" | mojo repl # should print "hello"
Please let me know what you see when running that command -- thanks!
This does indeed work:
The build commands and repl seem to work without problme, but I do get the following output from the test_python.mojo
:
$ mojo /Users/felixnext/.modular/pkg/packages.modular.com_mojo/test/test_python.mojo
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: /Users/felixnext/.modular/pkg/packages.modular.com_mojo/bin/mojo /Users/felixnext/.modular/pkg/packages.modular.com_mojo/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 0x0000000102a47764 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1 mojo 0x0000000102a458c4 llvm::sys::RunSignalHandlers() + 112
2 mojo 0x0000000102a47e00 SignalHandler(int) + 344
3 libsystem_platform.dylib 0x00000001886d5a24 _sigtramp + 56
4 libsystem_platform.dylib 0x000000028001cb4c _sigtramp + 4153700704
5 libsystem_platform.dylib 0x0000000280004080 _sigtramp + 4153599636
6 mojo 0x0000000102e0ccf8 M::KGEN::ExecutionEngine::runProgram(llvm::StringRef, llvm::StringRef, llvm::function_ref<M::ErrorOrSuccess (void*)>) + 212
7 mojo 0x00000001029a10bc run(M::State const&) + 3872
8 mojo 0x000000010298af5c main + 1648
9 dyld 0x00000001883250e0 start + 2360
[47630:2331800:20231214,190023.762898:WARNING crash_report_exception_handler.cc:257] UniversalExceptionRaise: (os/kern) failure (5)
[1] 47628 segmentation fault /Users/felixnext/.modular/pkg/packages.modular.com_mojo/bin/mojo
If I execute the test_mandelbrot.mojo
I get the following output:
$ mojo /Users/felixnext/.modular/pkg/packages.modular.com_mojo/test/test_mandelbrot.mojo
== test_mandelbrot_iter
1
1
2
3
25
@modocache At first glance this looks like an llvm problem, but I am unsure why all tests would fail? Also you mentioned that the install routines would be adjusted in future releases, is there a roadmap / eta for that?
OK awesome, thanks so much for the stack trace! I'll look into it.
There are several improvements coming here, the first of which comes in Modular CLI 0.3.0, which was released last night. As of this update, should any of the [mojo] Testing
tests fail (these are called "self-tests" of the SDK), the failing command will be printed. I believe this will allow you to re-run the failing tests as you wish, without re-installing the entire SDK -- that should make it a little easier to test things out on your end, and see if changing config values, etc., fixes things for you.
Other improvements are coming in future Modular CLI updates, too!
That is great news. Can you give details about the re-running of tests. Looks like the docs are not yet updated. I just updated and tried a reinstall, but got the same output:
$ modular --version
modular 0.3.0 (8afa5600)
$ modular install mojo
# Found release for https://packages.modular.com/mojo @ 0.6.0
....
[notice] A new release of pip is available: 23.2.1 -> 23.3.1
[notice] To update, run: pip install --upgrade pip
[mojo] Testing: `mojo build test_mandelbrot.mojo` [FAIL]
[mojo] Testing: `mojo build test_python.mojo` [FAIL]
[mojo] Testing: `mojo test_python.mojo` [FAIL]
[mojo] Testing: `mojo repl` [FAIL]
[mojo] Some components may have been installed successfully, but others may not work as expected. 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 python:
@modocache Also another interesting thing I recognized is: If I close mojo repl (:quit
) or wait a while while it is running, I get a whol range of messages like this:
expression failed to parse (no further compiler diagnostics)
[44601:3701023:20231215,200316.814668:ERROR crash_report_database_mac.mm:753] open lock /Users/felixnext/.modular/crashdb/completed/b79b57dc-cb77-4b45-afaa-9ba5856946e1.dmp: Resource temporarily unavailable (35)
Also attached one of the dmp
file.
b79b57dc-cb77-4b45-afaa-9ba5856946e1.dmp
Not sure what to make of this, seems like a deadlock somewhere?
Also as minor update: Error still persists on Mojo 0.6.1
@modocache Just wanted to check in if there is any update on this? Or something I can do on my side to help with this?
Sorry for the wait --
There are several improvements coming here, the first of which comes in Modular CLI 0.3.0
Apologies, 0.3.0 did not include these changes, but in fact they are coming in the next CLI release. Sorry for the confusion!
As for the REPL failures, I'll take a closer look, thanks for the dump!
@modocache Have tried the new version today. Still getting the following error on installation:
[mojo][error] Mojo SDK post-install test "`mojo build test_python.mojo`" failed:
SubprocessError: Command '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/bin/mojo build /Users/felixnext/.modular/pkg/packages.modular.com_mojo/test/test_python.mojo -o /tmp/tmpyhiijoul/test_python' returned non-zero exit status 1.
stderr:
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[241](Tracing.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[240](System.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[239](Random.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[238](Python.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[237](MojoCallContext.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[236](Memory.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[235](LLCL.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[234](Initialize.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[233](InitIntelAMX.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[232](IO.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[231](HashMap.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[230](Globals.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[229](Config.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[228](xxhash.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[227](regstrlcpy.c.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[226](regfree.c.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[225](regexec.c.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[224](regerror.c.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[223](regcomp.c.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[222](raw_socket_stream.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[221](raw_ostream.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[220](raw_os_ostream.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[219](circular_raw_ostream.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/tmp/mojo_archive-809b991.a[5](/Users/felixnext/.modular/pkg/packages.modular.com_mojo/test/test_python.mojo.2.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[218](blake3_portable.c.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/tmp/mojo_archive-809b991.a[4](/Users/felixnext/.modular/pkg/packages.modular.com_mojo/test/test_python.mojo.1.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/tmp/mojo_archive-809b991.a[3](/Users/felixnext/.modular/pkg/packages.modular.com_mojo/test/test_python.mojo.0.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[217](blake3_neon.c.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/tmp/mojo_archive-809b991.a[2](/Users/ec2-user/actions-runner/_work/modular/modular/Kernels/mojo/stdlib.0.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[216](blake3_dispatch.c.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[215](blake3.c.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[214](Z3Solver.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[112](Error.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[213](YAMLTraits.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[111](Errno.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[110](ELFAttributes.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[212](YAMLParser.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[109](ELFAttributeParser.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[211](X86TargetParser.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[108](DynamicLibrary.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[210](WithColor.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[107](DivisionByConstantInfo.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[209](Watchdog.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[106](Demangle.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[208](VirtualFileSystem.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[105](DeltaAlgorithm.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[207](VersionTuple.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[104](DebugCounter.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[206](Valgrind.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[103](Debug.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[205](UnicodeNameToCodepointGenerated.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[102](DataExtractor.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[101](DLangDemangle.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[204](UnicodeNameToCodepoint.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[100](DJB.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[203](UnicodeCaseFold.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[99](DAGDeltaAlgorithm.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[202](Unicode.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[201](TypeSize.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[200](TypeID.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[199](Twine.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[198](Triple.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[197](ToolUtilities.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[196](ToolOutputFile.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[195](Timing.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[194](Timer.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[193](TimeProfiler.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[192](Threading.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[191](ThreadPool.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[190](TargetParser.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[189](TarWriter.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[188](SystemUtils.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[187](SuffixTreeNode.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[186](SuffixTree.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[185](SubtargetFeature.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[184](StringSaver.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[98](CrashRecoveryContext.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[183](StringRef.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[97](ConvertUTFWrapper.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[182](StringMap.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[96](ConvertUTF.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[181](StringExtras.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[95](ConvertEBCDIC.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[180](StorageUniquer.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[94](Compression.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[179](Statistic.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[93](CommandLine.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[178](SpecialCaseList.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[177](SourceMgr.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[176](SmallVector.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[175](SmallPtrSet.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[174](Signposts.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[173](Signals.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[172](ScopedPrinter.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[171](ScaledNumber.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[170](SHA256.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[169](SHA1.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[168](RustDemangle.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[167](Regex.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[166](RawOstreamExtras.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[165](RandomNumberGenerator.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[164](RWMutex.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[163](RISCVTargetParser.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[162](RISCVISAInfo.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[161](RISCVAttributes.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[160](RISCVAttributeParser.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[159](Program.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[158](Process.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[157](PrettyStackTrace.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[156](PluginLoader.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[155](Path.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[154](Parallel.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[153](PGOOptions.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[152](Optional.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[151](OptimizedStructLayout.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[150](NativeFormatting.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[149](MicrosoftDemangleNodes.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[148](MicrosoftDemangle.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[147](MemoryBufferRef.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[146](MemoryBuffer.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[145](Memory.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[144](MemAlloc.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[143](MathExtras.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[142](ManagedStatic.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[141](MSP430Attributes.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[140](MSP430AttributeParser.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[139](MD5.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[138](LoongArchTargetParser.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[137](LockFileManager.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[136](Locale.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[135](LineIterator.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[134](LEB128.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[133](KnownBits.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[132](JSON.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[131](ItaniumDemangle.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[130](IntervalMap.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[129](InterfaceSupport.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[128](IntEqClasses.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[127](InstructionCost.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[126](InitLLVM.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[125](Host.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[92](CodeGenCoverage.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[91](Chrono.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[90](Caching.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[89](CachePruning.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[124](Hashing.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[88](CSKYTargetParser.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[123](GraphWriter.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[122](GlobPattern.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[121](FormattedStream.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[87](CSKYAttributes.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[120](FormatVariadic.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[86](CSKYAttributeParser.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[119](FoldingSet.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[85](CRC.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[118](FloatingPointMode.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[84](COM.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[117](FileUtilities.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[116](FileOutputBuffer.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[83](BuryPointer.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[115](FileCollector.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[82](BranchProbability.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[81](BlockFrequency.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[80](BinaryStreamWriter.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[114](ExtensibleRTTI.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[113](ErrorHandling.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[79](BinaryStreamRef.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[78](BinaryStreamReader.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[77](BinaryStreamError.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[76](Base64.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[75](BalancedPartitioning.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[74](AutoConvert.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[73](Atomic.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[72](Allocator.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[71](ARMWinEH.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[70](ARMTargetParserCommon.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[69](ARMTargetParser.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[68](ARMBuildAttrs.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[67](ARMAttributeParser.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[66](APSInt.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[65](APInt.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[64](APFloat.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[63](APFixedPoint.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[62](AMDGPUMetadata.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[61](ABIBreak.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[60](AArch64TargetParser.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[59](CUDATensor.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[58](CUDAStreamPool.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[57](CUDASetup.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[56](CUDARuntimeOptions.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[55](CUDARuntime.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[54](CUDAModule.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[53](CUDAEventPool.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[52](CUDAErrorSink.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[51](CUDADriverAPI.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[50](CUDAContext.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[49](CUDABuffer.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[48](UnknownLocationDecoder.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[47](ThreadAffinity.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[46](SpinWaiter.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[45](Semaphore.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[44](Resource.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[43](Location.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[42](FileLocationDecoder.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[41](TypeID.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[40](ThreadPoolWorkQueue.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[39](SingleThreadWorkQueue.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[38](RuntimeCLOptions.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[37](Runtime.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[36](MallocAllocator.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[35](DebuggingAllocators.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[34](CompactRuntimePtr.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[33](AsyncValue.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[32](Version.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[31](TimeProfiler.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[30](MallocProfiler.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[29](ThreadAffinity.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[28](HWInfo.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[27](Version.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[26](URI.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[25](Stats.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[24](ReferenceCounted.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[23](Random.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[22](Progress.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[21](Process.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[20](MicroBenchmark.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[19](JSON.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[18](IPInt.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[17](HMAC.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[16](FileSystemExtras.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[15](ErrorOr.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[14](Error.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[13](DynamicLibrary.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[12](DeviceSpecs.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[11](Configuration.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[10](CommonCLOptions.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[9](CPUCache.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[8](BuildInfo.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[7](Buffer.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[6](Base64.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[5](AlignedAlloc.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[4](Globals.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[3](Globals.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/lib/libKGENCompilerRT-static.a[2](GlobalProfilerContext.cpp.o)': found architecture 'arm64', required architecture 'x86_64'
ld: Undefined symbols:
_main, referenced from:
<initial-undefines>
clang: error: linker command failed with exit code 1 (use -v to see invocation)
/Users/felixnext/.modular/pkg/packages.modular.com_mojo/bin/mojo: error: failed to link executable
File "/Users/felixnext/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py", line 206, in test_mojo_build
self.run_mojo(
File "/Users/felixnext/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py", line 184, in run_mojo
return self.run(self.mojo, subcommand, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/felixnext/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py", line 172, in run
raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo test_python.mojo`" failed:
SubprocessError: Command '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/bin/mojo /Users/felixnext/.modular/pkg/packages.modular.com_mojo/test/test_python.mojo' died with <Signals.SIGSEGV: 11>.
stderr:
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: /Users/felixnext/.modular/pkg/packages.modular.com_mojo/bin/mojo /Users/felixnext/.modular/pkg/packages.modular.com_mojo/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 0x00000001001fa664 llvm_strlcpy + 52684
1 mojo 0x00000001001f87c4 llvm_strlcpy + 44844
2 mojo 0x00000001001fad04 llvm_strlcpy + 54380
3 libsystem_platform.dylib 0x000000018a2f1a24 _sigtramp + 56
4 libsystem_platform.dylib 0x00000002800213cc _sigtramp + 4124244448
5 libsystem_platform.dylib 0x0000000280004080 _sigtramp + 4124124820
6 mojo 0x00000001005d0730 llvm_strlcpy + 4075160
7 mojo 0x0000000100152cf8
8 mojo 0x000000010013d2c8
9 dyld 0x0000000189f410e0 start + 2360
[2662:44131841:20240126,082327.991885:WARNING crash_report_exception_handler.cc:257] UniversalExceptionRaise: (os/kern) failure (5)
[2662:44131842:20240126,082327.999354:ERROR directory_reader_posix.cc:42] opendir /Users/felixnext/.modular/crashdb/attachments/************************************: No such file or directory (2)
File "/Users/felixnext/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py", line 348, in test_mojo_run
self.run_mojo(self.test_dir / "test_python.mojo")[0],
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/felixnext/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py", line 184, in run_mojo
return self.run(self.mojo, subcommand, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/felixnext/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py", line 172, in run
raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo repl`" failed:
SubprocessError: Command '/Users/felixnext/.modular/pkg/packages.modular.com_mojo/bin/mojo repl --one-line-before-file settings set target.load-cwd-lldbinit false --one-line-before-file settings set plugin.process.gdb-remote.packet-timeout 60' died with <Signals.SIGABRT: 6>.
stderr:
Failure value returned from cantFail wrapped call
failed to launch REPL process: process exited with status -1 (debugserver is x86_64 binary running in translation, attach failed.)
UNREACHABLE executed at /Users/ec2-user/actions-runner/_work/modular/modular/third-party/llvm-project/llvm/include/llvm/Support/Error.h:759!
[2672:44131964:20240126,082342.227542:WARNING crash_report_exception_handler.cc:257] UniversalExceptionRaise: (os/kern) failure (5)
File "/Users/felixnext/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py", line 295, in test_mojo_repl
raise SubprocessError(repl.returncode, " ".join(args), out, err)
[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.
==========================
So looks like there is a mismatch between arm and x86. Not sure if that might be caused by config on my site. Will look into this later today.
Awesome, thank you! Personally I'm pleased to see:
- More detailed error output here -- which test failed, and the error message
- The test failed at the point
mojo test_python.mojo
was invoked, instead of at a later assertion
So far haven't been able to get it running. It looks like to me that LLVM and Python are now bundled in the modular installation, but that maybe it installs the x86_64
variant of the libraries instead of arm
?
(Also double checked that the terminal is not running under rosetta, but in that case I would have expected the error to be the other way around, i.e. found architecture 'x86_64', required architecture 'arm64'
)
@modocache any update on this?
Some updates are coming to the installer soon, which may resolve these issues -- so handing this off to @zbowling for now, please reassign back to me if that's wrong.
I like that you call out Rosetta @felixnext; I'm no expert here but I could see how that might impact what the installer chooses to download and install in your environment. @zbowling, I think you mentioned some plans to detect/prevent this case?
Hm, I checked explicitly that the console is running in native mode, so I am not sure why the installer would pull in rosetta dependencies (except it relies on external programs that would autorun in rosetta?). @zbowling is there an ETA on the fix or a workaround that could be done to avoid pulling in x86 deps in the meantime?
Very weird. It seems almost an x86 version of ld is getting pulled in.
the mojo compiler is like most compiler frontends and it will invoke your system linker to link packages. In this case the "ld" command. It's also possible that other environment variables may be causing mojo to tell the link it should be trying to output and link x86 code.
Can you tell me what "which ld" reports for you?
Do you have the latest version of Xcode installed?
Can run xcode-select --install
?
What does ld -v
report for you?
Can you also double check you don't also have an x86 install of homebrew installed too by checking for a "/usr/local/bin/brew" executable (M1/ARM homebrew installs to /opt/homebrew)?
Sure @zbowling
which ld
/usr/bin/ld
Also looks like that ld
is available for both architectures (file /usr/bin/ls
):
/usr/bin/ld: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64e:Mach-O 64-bit executable arm64e]
/usr/bin/ld (for architecture x86_64): Mach-O 64-bit executable x86_64
/usr/bin/ld (for architecture arm64e): Mach-O 64-bit executable arm64e
XCode
Yes, latest version is installed. This is hooked into software update.
ld -v
@(#)PROGRAM:ld PROJECT:dyld-1022.1
BUILD 05:27:37 Dec 7 2023
configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h
will use ld-classic for: armv6 armv7 armv7s arm64_32 i386 armv6m armv7k armv7m armv7em
LTO support using: LLVM version 15.0.0 (static support for 29, runtime is 29)
TAPI support using: Apple TAPI version 15.0.0 (tapi-1500.0.12.8)
Library search paths:
Framework search paths:
brew
Yes, there is a /usr/local/bin/brew
installed (I think i set that up through a separate rosetta terminal a while back), but which brew
links to /opt/homebrew/bin/brew
.
Also tried to rename brew (mv /usr/local/bin/brew /usr/local/bin/brew_
), however had no impact on the x86 errors.
Yeah it not so much the one /usr/local/bin/brew
binary but the symlinks to other binaries that brew installs into "/usr/local/bin/" when you install packages that might be getting picked up. Although this isn't my current primary theory.
It seems like this another environmental thing that may be causing the mojo build
frontend to think the target you want to compile for is x86_64 and not ARM (aarch64) which should be the default on a M2 when invoking mojo build
. Since it's outputtting x86_64, then when we go to link against our compiler runtime, we obviously don't have x86_64 sections to link against in those libraries and the link fails. This is similar to when you are cross compiling with a compiler from your native arch targeting another architecture.
The question I don't have an immediate an answer for is why on your machine are we getting into that state. Mojo inherits a lot of the same rules from other LLVM based compilers on how to determine the best architecture so we have to figure out which one is triggered into believing you want to cross compile.
Can you tell me the out of the command arch
on your terminal that you used to install modular?
Also the output of uname -p -m
in that same terminal?