On 26/3/2022 8:44 am, Mr. Andrei Chichak wrote: > 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@3.8/3.8.13/Frameworks/Python.framework/Versions/3.8/include/python3.8/Python.h > /System/Volumes/Data/usr/local/Cellar/python@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?
I spent a small amount of time looking into the breakage around python on recent MacOS versions and as you have discovered things have change. I need to look into getting gdb to find and use the Xcode runtime for python3. Chris _______________________________________________ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users