Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 tasks done
mtugan opened this issue Sep 14, 2023 · 1 comment · Fixed by #5833
Closed
2 tasks done

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

mtugan opened this issue Sep 14, 2023 · 1 comment · Fixed by #5833
Labels
T-bug Type: bug

Comments

@mtugan
Copy link

mtugan commented Sep 14, 2023

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.

@rymnc
Copy link

rymnc commented Jun 30, 2024

This issue exists again, since jemalloc was re-introduced as a default feature.

I'm running on aarch64-unknown-linux-gnu (an old M1 mini w/ Asahi), and am facing this issue while using foundryup, but not when installing from source.

Here's an issue in another repo, and their patch:
issue: oxc-project/oxc#3783
patch: oxc-project/oxc@a94ef68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants