← 输入框|bugs.python.org|刷新

➜

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.

作者 xrisk
收信人 xrisk
日期 2021-05-10.03:01:36
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1620615696.74.0.363750017848.issue44093@roundup.psfhosted.org>
In-reply-to
内容
On macOS devices, the configure script seems to always detect gcc, even though Apple does not ship with gcc — the gcc binary is simply a wrapper around clang (probably llvm-gcc?)

I believe the issue is with these lines.

https://github.com/python/cpython/blob/8e8307d70bb9dc18cfeeed3277c076309b27515e/configure.ac#L630-L635

Concretely, gcc —-version produces this on my computer:

$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.5 (clang-1205.0.22.9)
Target: x86_64-apple-darwin20.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

Perhaps an additional check for “clang” would solve the issue.
历史
日期 用户 动作 参数
2021-05-10 03:01:36xrisk修改recipients: + xrisk
2021-05-10 03:01:36xrisk修改messageid: <1620615696.74.0.363750017848.issue44093@roundup.psfhosted.org>
2021-05-10 03:01:36xrisk链接issue44093 messages
2021-05-10 03:01:36xrisk创建