Skip to content

Docker container fails on aarch64 due to jemalloc page size #10065

@Tritlo

Description

@Tritlo

Component

Other (please describe)

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

  • Foundry
  • Foundryup

What version of Foundry are you on?

v1.0.0, nightly, latest

What version of Foundryup are you on?

No response

What command(s) is the bug in?

forge build, anvil, etc.

Operating System

Linux

Describe the bug

When I run anvil or forge on aarch64 (in my case, a Raspbery Pi 5), I get:

<jemalloc>: Unsupported system page size                                                                                                    
<jemalloc>: Unsupported system page size
memory allocation of 64 bytes failed

Steps to reproduce:

Build this docker image on aarch64:

FROM ghcr.io/foundry-rs/foundry:latest
RUN forge --version

Results in

 => [local-blockchain internal] load build definition from Dockerfile                                                                                        0.0s
 => => transferring dockerfile: 136B                                                                                                                         0.0s 
 => [local-blockchain internal] load metadata for ghcr.io/foundry-rs/foundry:latest                                                                          0.2s 
 => [local-blockchain internal] load .dockerignore                                                                                                           0.0s
 => => transferring context: 2B                                                                                                                              0.0s 
 => CACHED [local-blockchain 1/2] FROM ghcr.io/foundry-rs/foundry:latest@sha256:0a92df807fe877ac59f60e07e23ef4b876e088f8949d97026d3584a26066f518             0.0s 
 => ERROR [local-blockchain 2/2] RUN forge --version                                                                                                         0.2s 
------
 > [local-blockchain 2/2] RUN forge --version:
0.217 <jemalloc>: Unsupported system page size
0.221 <jemalloc>: Unsupported system page size
0.222 memory allocation of 64 bytes failed
0.223 Aborted

Seems to be #8526 again.

Metadata

Metadata

Assignees

Labels

A-releasesArea: releases/packagingT-bugType: bug

Type

No type

Projects

Status

Completed

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions