Skip to content

jemalloc breaks foundry build process for systems with unsupported page sizes  #5832

@mtugan

Description

@mtugan

Component

forge, chisel, cast

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What command(s) is the bug in?

In the build process.

Operating System

Linux (aarch64)

Describe the bug

Due to the following:

jemalloc/jemalloc#467

jemalloc will break portable foundry binaries or if building from source the build process on systems with page sizes different from the compiled-in one (not sure exactly what that page size is, 4k?).

In any case an example output when build on the ALARM kernel:

foundryup: downloading manpages
###################################################################################################### 100.0%
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
memory allocation of 5 bytes failed
foundryup: command failed: /var/cache/pacman-aur/srcpkg/foundry-bin/src/usr/bin/forge --version
foundryup: installed - 
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
memory allocation of 5 bytes failed
foundryup: command failed: /var/cache/pacman-aur/srcpkg/foundry-bin/src/usr/bin/cast --version
foundryup: installed - 
foundryup: installed - anvil 0.2.0 (74c0318 2023-09-14T00:22:18.142452503Z)
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
memory allocation of 5 bytes failed
foundryup: command failed: /var/cache/pacman-aur/srcpkg/foundry-bin/src/usr/bin/chisel --version
foundryup: installed - 
foundryup: done!
==> Starting pkgver()...
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
memory allocation of 5 bytes failed

The following PR introduces jemalloc for forge, chisel, cast, anvil:

#5690

The following PR removes jemalloc from anvil due to other issues:

#5759

It would be nice to remove jemalloc entirely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions