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

Pixi build for 0.40.1 for Linux + aarch64 does not run on a raspian system with <jemalloc>: Unsupported system page size #2936

Open
2 tasks done
anjos opened this issue Jan 17, 2025 · 2 comments · May be fixed by #2937
Open
2 tasks done

Comments

@anjos
Copy link

anjos commented Jan 17, 2025

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

$ curl -L https://github.com/prefix-dev/pixi/releases/download/v0.40.1/pixi-aarch64-unknown-linux-musl.tar.gz -o pixi.tgz
$ tar xf pixi.tgz
./pixi info
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
memory allocation of 56 bytes failed
fish: Job 1, './pixi info' terminated by signal SIGABRT (Abort)

OS information:

$ uname -a
Linux raspberry 6.6.62+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.62-1+rpt1 (2024-11-25) aarch64 GNU/Linux
$ cat /etc/debian_version 
12.9
$ cat /proc/cpuinfo  | tail -n3
Revision    : d04170
Serial      : 20d09b6679a559fc
Model       : Raspberry Pi 5 Model B Rev 1.0

Issue description

This works fine with the previous build (0.40.0), which you can test making a substitution on the above instructions.

Potential solution

I've seen this in the uv binary shipped with conda-forge a couple of weeks ago. This has been also reported in the uv repository itself. The solution is rather simple, but needs to be added to the build scripts:

# Use jemalloc on linux-aarch64 and linux-ppc64le
if [[ "${target_platform}" == "linux-aarch64" || "${target_platform}" == "linux-ppc64le" ]]; then
  export JEMALLOC_SYS_WITH_LG_PAGE=16
fi

As of now pixi 0.40.1 on raspberry PI is not usable.

Expected behavior

Well, it should not crash 😆

@anjos
Copy link
Author

anjos commented Jan 17, 2025

I confirm version 0.40.2 is still affected by the same issue.

@ruben-arts
Copy link
Contributor

Thank you I'll take a look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants