This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Python 3.10.3 + Osx Lion : fatal error (make) signalmodule or more
Type: compile error Stage: resolved
Components: macOS Versions: Python 3.10
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Python 3.5rc1 compilation error with Apple clang 4.2 included with Xcode 4
View: 24844
Assigned To: Nosy List: christian.heimes, laurentang001, ned.deily, ronaldoussoren
Priority: normal Keywords:

Created on 2022-03-17 17:00 by laurentang001, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
make.log laurentang001, 2022-03-17 17:09 Text file from make, with the error(s).
config.log laurentang001, 2022-03-17 17:10 config.log
my-configure.log laurentang001, 2022-03-17 17:11 Screen display from . /configure.
Messages (5)
msg415429 - (view) Author: Laurent Delphin (laurentang001) Date: 2022-03-17 17:00
Hello developers :

Hereafter somme comments about a fatal error when Running make. Enclosed log (txt) files if I succeed in uploading them. 
Python3 : 3.10.3.
Osx : Lion 10.7.5. 
Compiler family : clang (Xcode). 

Message :
return PyErr_SetFromErrno(PyExec_OSError) ;
fatal error : error in backend etc.

Kind regards,
msg415431 - (view) Author: Laurent Delphin (laurentang001) Date: 2022-03-17 17:15
But make OK with Gcc 4.9.4, built with the formentionned clang (Xcode) compiler.
So, Compiler sensitive... 
Thank you,
msg415482 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2022-03-18 10:27
It does not look like a Python problem. "fatal error: error in backend" suggests that clang is crashing with an internal error. macOS 10.7 is about a decade old. Can you update to a more recent macOS and Xcode version?
msg415512 - (view) Author: Laurent Delphin (laurentang001) Date: 2022-03-18 17:02
I didn't expect to buy in a very next future a new Mac. The main reason 8s,because I have too much third parties to rebuild, and needing some months to spend. But it is forecasted.
Besides, the Compiler Gcc 4.9.4 I built with clang seems working. But with a new bug, even though Python is built. 
Thank you very much for your reply.
msg415717 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2022-03-21 22:42
Thanks for the report. This problem was reported previously in bpo-24844 and was determined to be due a partial implementation of atomics support in the early versions of LLVM compilers provided in the Apple Developer Tools for macOS 10.7. While the start of a patch was proposed there, it languished for lack of interest and the issue was subsequently closed by the submitter. Since you have already have a workaround (and using a newer compiler is a good idea in this), I think there will be little interest in reviving this issue.

By the way, since you need to continue to use macOS 10.7, you may want to consider using Python (and many other third-party packages) from the MacPorts project. They provide pre-built binaries for these packages, including the latest versions of Python 3.10, built for multiple versions of macOS including 10.7 Lion. I was able to install MacPorts and a fully functional Python 3.10.3 on a 10.7.5 system in fewer than 5 minutes.  https://www.macports.org/install.php#installing
History
Date User Action Args
2022-04-11 14:59:57adminsetgithub: 91204
2022-03-21 22:42:57ned.deilysetstatus: open -> closed
versions: + Python 3.10
superseder: Python 3.5rc1 compilation error with Apple clang 4.2 included with Xcode 4
messages: + msg415717

resolution: duplicate
stage: resolved
2022-03-18 17:02:01laurentang001setmessages: + msg415512
2022-03-18 10:27:03christian.heimessetnosy: + christian.heimes, ronaldoussoren, ned.deily
messages: + msg415482
components: + macOS
2022-03-17 17:15:19laurentang001setmessages: + msg415431
2022-03-17 17:11:46laurentang001setfiles: + my-configure.log
2022-03-17 17:10:52laurentang001setfiles: + config.log
2022-03-17 17:09:56laurentang001setfiles: + make.log
2022-03-17 17:00:07laurentang001create