Skip to content

mimalloc is incompatible with musl libc on arm64 device #556

@stefson

Description

@stefson

hi there, fellow gentoo user here.

musl is a very lean and fast alternative libc to the bloaty and unhealthy glibc. This is the projects website: https://www.musl-libc.org/ and git: https://git.musl-libc.org/cgit/musl/

mold is a new super fast linker, it can be found here: https://github.com/rui314/

I initially tested the compile of mold against mimalloc with amd64, where it works perfectly fine. On arm64, the compile is working but the resulting binary flakes immediately:

/usr/bin/mold -v

mimalloc: warning: unable to allocate OS memory (67108864 bytes, error code: 12, address: 0, large only: 0, allow large: 1)
mimalloc: warning: unable to allocate OS memory (67108864 bytes, error code: 12, address: 0, large only: 0, allow large: 1)
mimalloc: warning: unable to allocate OS memory (67108864 bytes, error code: 12, address: 0, large only: 0, allow large: 1)
mimalloc: warning: unable to allocate OS memory (67108864 bytes, error code: 12, address: 0, large only: 0, allow large: 1)
mimalloc: error: unable to allocate memory (72704 bytes)
mimalloc: warning: unable to allocate OS memory (67108864 bytes, error code: 12, address: 0, large only: 0, allow large: 1)
mimalloc: warning: unable to allocate OS memory (67108864 bytes, error code: 12, address: 0, large only: 0, allow large: 1)
mimalloc: warning: unable to allocate OS memory (67108864 bytes, error code: 12, address: 0, large only: 0, allow large: 1)
mimalloc: warning: unable to allocate OS memory (67108864 bytes, error code: 12, address: 0, large only: 0, allow large: 1)
mimalloc: error: unable to allocate memory (36 bytes)
mimalloc: error: out of memory in 'new'Aborted

this issue was first filled here: rui314/mold#281

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions