Open jvmahon opened 8 months ago
Has annyone fixed this?
Boostrap should try to create a separate virtualenv (in .virtualenv
if PW_ENVIRONMENT_ROOT is not set) and use that.
The error you have seems to say "you should not install system python packages and instead use the system package manager like dpkg or similar" which is true, however bootstrap should have created a virtualenv for that. Guessing that maybe virtualenv package is not available?
Will need to debug this a bit, however for starters does this do anything for you?
virtualenv ~/pyenv
This should generate a virtual environment in ~/pyenv
. If this does not work, probably a python virtualenv package is missing and maybe that is the error.
if it does work, you can try to:
source ~/pyenv/bin/activate.sh
source boostrap.sh
and then pip installs should happen in pyenv instead of systemenv. ... however this is NOT a correct workaround: bootstrap should create its own virtualenv, so we have to figure out why it does not.
The underlying issue is with jemalloc being set for an older pagesizes. There's some discussion of that here: https://github.com/jemalloc/jemalloc/issues/2639
It looks like jemalloc has not been updated in a while (last release 5.3.0 was May 2022), so at present, the workaround in my original post may be the easiest workaround.
Good morning
I am encountering the very same error on Raspberry Pi 5..
However @jvmahon , I am unable to find the file "/boot/firmware/config.txt" Could you give a little bit more detail on where to find it? Is it mean to be from the root of connectedhomeip/boot/firmware/config.txt ?
Thanks a lot..
However @jvmahon , I am unable to find the file "/boot/firmware/config.txt"
I think /boot/firmware/config.txt might be link to /boot/config.txt Can you find a file /boot/config.txt? Try editing that instead.
Its been a long time since I originally posted this and am no longer using RPi 5 for a development environment, so I can't even check what I did right now (sorry). You should be able to google for jemalloc error kernel8.img and find others who have solve this (that's how I originally found a solution).
Reproduction steps
This is unique to Raspberry Pi 5.
This is both a problem report and a workaround, but it took quite a while to find a workaround, so if it is possible to have this fixed so the workaround isn't needed, that may help others.
I'll start with a workaround so it doesn't get lost in the text below.
To avoid a jemalloc error on RPi 5 when setting up the Matter build environment, alter the file /boot/firmware/config.txt, to add the lines:
Now here's how the underlying issue is encountered:
On a Raspberry Pi5, with latest Raspian OS / all updates installed, when creating the build environment per these instructions: https://github.com/project-chip/connectedhomeip/blob/master/docs/guides/BUILDING.md#prerequisites , the step:
results in the error:
Bug prevalence
When activating the bootstrap script on RPi 5.
GitHub hash of the SDK that was being used
latest Matter SDK as of Jan. 12, 2024
Platform
raspi
Platform Version(s)
RPi 5
Anything else?
No response