Tcmalloc error in device that does not has 48 bit virtual address space size

Hello, I get this error in Mojo after fresh install

[dev@localhost ~]# uv init mojo_tes

Initialized project mojo-tes at /dev/mojo_tes

[dev@localhost ~]# cd mojo_tes

[dev@localhost mojo_tes]# uv run python --version

Using CPython 3.12.14

Creating virtual environment at: .venv

Built mojo-tes @ file:///dev/mojo_tes Installed 1 package in 137ms

Python 3.12.14

[dev@localhost mojo_tes]# uv add mojo

Using CPython 3.12.14

Removed virtual environment at: .venv

Creating virtual environment at: .venv

Resolved 10 packages in 1.79s

Built mojo-tes @ file:///dev/mojo_tes Prepared 10 packages in 2m 22s Installed 10 packages in 3.23s + click==8.5.0 + mblack==26.6.0 + mojo==1.1.0 + mojo-compiler==1.1.0 + mojo-compiler-mojo-libs==1.1.0 + mojo-lldb-libs==1.1.0 + mojo-tes==0.1.0 (from file:///dev/mojo_tes) + mypy-extensions==1.1.0 + pathspec==1.1.1 + platformdirs==4.11.11 [dev@localhost mojo_tes]# uv run mojo Using CPython 3.12.14 Removed virtual environment at: .venv Creating virtual environment at: .venv Installed 10 packages in 255ms /dev/mojo_tes/.venv/bin/mojo: error while loading shared libraries: libMSupportGlobals.so: cannot open shared object file: No such file or directory

[dev@localhost mojo_tes]# find /dev/mojo_tes/.venv -name ‘libMSupportGlobals.so’ 2>/dev/null

/dev/mojo_tes/.venv/lib/python3.12/site-packages/modular/lib/libMSupportGlobals.so

[dev@localhost mojo_tes]# find /dev/mojo_tes/.venv -name ‘libMSupportGlobals.so’ 2>/dev/null

/dev/mojo_tes/.venv/lib/python3.12/site-packages/modular/lib/libMSupportGlobals.so

[dev@localhost mojo_tes]# export LD_LIBRARY_PATH=/dev/mojo_tes/.venv/lib/python3.12/site-packages/modular/lib:$LD_LIBRARY_PATH

[dev@localhost mojo_tes]# uv run mojo

Using CPython 3.12.14

Removed virtual environment at: .venv

Creating virtual environment at: .venv

Installed 10 packages in 603ms

26653 external/tcmalloc+/tcmalloc/internal/system_allocator.h:585] MmapAligned() failed - unable to allocate with tag (hint=0x4e9e40000000, size=1073741824, alignment=1073741824) - is something limiting address placement?

26653 external/tcmalloc+/tcmalloc/internal/system_allocator.h:592] Note: the allocation may have failed because TCMalloc assumes a 48-bit virtual address space size; you may need to rebuild TCMalloc with TCMALLOC_ADDRESS_BITS defined to your system’s virtual address space size

26653 external/tcmalloc+/tcmalloc/arena.cc:59] CHECK in Alloc: FATAL ERROR: Out of memory trying to allocate internal tcmalloc data (bytes=131072, object-size=16384); is something preventing mmap from succeeding (sandbox, VSS limitations)?

How to fix it? Thank you

Please check the system requirements.

Thank you for the response, my system should able to run it. The origin of the error is not from Mojo, but Tcmalloc. I encountered exact same error message from Tcmalloc in another project in the past. It seems that Tcmalloc is not portable, is there a way to change it to a more portable allocator like Mimalloc?