RTEMS5 for arm on macOS 12.3. Or how Apple blew up RTEMS.

Mr. Andrei Chichak groups at chichak.ca
Fri Mar 25 21:44:59 UTC 2022


Good day. It must be Friday afternoon, because my RTEMS5 install has been messed up. Yes, this install worked until now.

RTEMS5, stm32f4 BSP, macOS

I recently updated macOS to 12.3 (Monterey) and a “feature" of 12.3 is the removal of python 2.7. This caused arm-rtems5-gdb to fail with:

dyld[12480]: Library not loaded: /System/Library/Frameworks/Python.framework/Versions/2.7/Python 
 Referenced from: /Users/andreichichak/RTEMS5/rtems/5/bin/arm-rtems5-gdb
 Reason: tried: '/System/Library/Frameworks/Python.framework/Versions/2.7/Python' (no such file), '/Library/Frameworks/Python.framework/Versions/2.7/Python' (no such file) 
Abort trap: 6

I went back to my install scripts, grabbed the latest RSB blob, then

../source-builder/sb-set-builder —prefix=$HOME/RTEMS5/rtems/5 5/rtems-arm

goes well for a while then fails setting up to build gdb with:

config: tools/rtems-gdb-9.1-1.cfg
error: config error: gdb-common-1.cfg:99: "gdb: python: header file not found: python3.8/Python.h, please install”

I had python 3.9 installed, so I used brew and installed 3.8, uninstalled 3.9, reinstalled 3.8, rebooted, but I get the same rsb failure.

I’m not sure how python is supposed to be configured. Maybe this is a clue:

python —version
-bash: python: command not found

python3 —version
Python 3.8.9

I seem to have a couple of instances of Python.h in an appropriately named directory:

/usr/local/Cellar/python at 3.8/3.8.13/Frameworks/Python.framework/Versions/3.8/include/python3.8/Python.h
/System/Volumes/Data/usr/local/Cellar/python at 3.8/3.8.13/Frameworks/Python.framework/Versions/3.8/include/python3.8/Python.h

But something doesn’t seem to be pointing at one of those folders so the rsb script can find it.

Any hints?

Thanks,

Andrei


---------------------
Andrei Chichak

Systems Developer
CBF Systems Inc.
225 College Plaza
8215 112 Street.
EDMONTON, ALBERTA
T6G 2C8
CANADA

Phone: 780-628-2072
Skype: andrei.chichak












More information about the users mailing list