I’ve tried this on two different MacOS machines with the same results. Following the developer guide works as expected on Linux Mint. I’d still like to figure out the mac issue.
Is your device active during the entire build process, i.e. does it go into screen saver mode or turn off the display?
If it is permanently active, you need to figure out what else is killing these processes. Maybe memory issues? Do any of the lines before give any interesting information?
You could also try running with the macOS Activity Monitor app to try to get a better idea what’s going on. As noted, system sleep or out of memory issue seem most likely. 16Gb of memory is plenty big (overkill) for a Python build on macOS with the standard Apple Xcode or Command Line Tools.
@MegaIng, the machine and display stay active during the build task. The batch of lines above the two in my last post are just a run of gcc -o with a huge number of .o files listed.
The important thing is did it start swapping. But, in any case, I’ve been building Python on all macOS releases of the last 15 years or so, including 14.6.1, and on many different varieties of Macs and Mac VMs and I don’t recall ever running into a situation where a build was terminated by system-generated kills. There’s something very odd going on your system. Try rebooting it and check what else might be running in the background. It is very hard to imagine that this is a Python problem. Sorry I don’t have better suggestions than to treat this as a problem with your macOS systems.