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.

Author ned.deily
Recipients ned.deily, ronaldoussoren, sandipshah
Date 2022-01-03.20:26:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1641241586.03.0.941056270826.issue46248@roundup.psfhosted.org>
In-reply-to
Content
Thanks for the report. Without more details, we can only guess at what you are trying to accomplish. I would assume it involves embedding Python in another library or application. If so, you should not be using LINKFORSHARED at all which is used to build Python itself (see, for example, Issue36508). Moreover, when embedding on macOS, we do not recommend trying to use the -framework argument to compile with or link to Python: it's too easy to get wrong. Instead, as shown in the use the "Extending and Embedding the Python Interpreter" section of the docset, use the output from the appropriate python3.x-config command, for example:

$ python3.10-config --cflags
-I/Library/Frameworks/Python.framework/Versions/3.10.1_11/include/python3.10 -I/Library/Frameworks/Python.framework/Versions/3.10.1_11/include/python3.10 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g

$ python3.10-config --ldflags
-L/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/config-3.10-darwin -ldl -framework CoreFoundation

https://docs.python.org/3/extending/embedding.html#compiling-and-linking-under-unix-like-systems
History
Date User Action Args
2022-01-03 20:26:26ned.deilysetrecipients: + ned.deily, ronaldoussoren, sandipshah
2022-01-03 20:26:26ned.deilysetmessageid: <1641241586.03.0.941056270826.issue46248@roundup.psfhosted.org>
2022-01-03 20:26:26ned.deilylinkissue46248 messages
2022-01-03 20:26:25ned.deilycreate