[New-bugs-announce] [issue42619] python 3.9.1 failed to create .so files as universal2 (arm64, x86_64) on Mac

xz_sophos report at bugs.python.org
Fri Dec 11 05:34:20 EST 2020


New submission from xz_sophos <xing.zhang at sophos.com>:

With 3.9.1 source code, I am trying to make univerisal2 build of python.framework from the source code. The problem I am seeing is the main python binary is universal, but all the .so files in lib-dynload (Python.framework/Versions/3.9/lib/python3.9/lib-dynload/) are only x86_64.

The Mac is MacOS 10.15, with Xcode 12.2 installed. Xcode12.2 has SDKs to support universal build for both arm64 and x86_64 architecture. I have no problems making other universal applications and frameworks on the machine. 

Following the documentation. I ran the following build command:
./configure --enable-universalsdk --enable-framework=./tmp --with-universal-archs=universal2 --without-ensurepip
make
make install

The resulting python was universal but the .so files are not.

----------
components: macOS
messages: 382861
nosy: ned.deily, ronaldoussoren, xz_sophos
priority: normal
severity: normal
status: open
title: python 3.9.1 failed to create .so files as universal2 (arm64, x86_64) on Mac
type: compile error
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42619>
_______________________________________


More information about the New-bugs-announce mailing list