… creating Makefile
Running code to generate profile data (this can take a while):
find: ‘build’: No such file or directory…
Building with support for profile generation:
clang-14: warning: treating ‘c’ input as ‘c++’ when in C++ mode, this behavior is deprecated [-Wdeprecated]
error: invalid argument ‘-std=c99’ not allowed with ‘C++’
make[3]: *** [Makefile:813: Programs/python.o] Error 1
make[3]: *** Waiting for unfinished jobs…
make[2]: *** [Makefile:531: build_all_generate_profile] Error 2
make[1]: *** [Makefile:507: profile-gen-stamp] Error 2
make: *** [Makefile:519: profile-run-stamp] Error 2
Makefile
Lines 85-88:
CFLAGS_NODIST is used for building the interpreter and stdlib C extensions.
Use it when a compiler flag should not be part of the distutils CFLAGS
latest 3.12
clang-14: warning: treating ‘c’ input as ‘c++’ when in C++ mode, this behavior is deprecated [-Wdeprecated]
error: invalid argument ‘-std=c11’ not allowed with ‘C++’
I have seen clang build on version 2 but not 3. The config.log looks reasonable.
Is this a bug (I think I understand the error but cant see where the -std=c99 / c11 is created) or
am I missing something?
Again, works for me (switching from 3.11 branch to 3.10 branch):
(python39) cpython% ./python
Python 3.10.5+ (heads/3.10:9cc0afcb87, Jun 8 2022, 06:52:35) [Clang 10.0.0 ] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.version
'3.10.5+ (heads/3.10:9cc0afcb87, Jun 8 2022, 06:52:35) [Clang 10.0.0 ]'
I suggest you open an issue on GitHub and provide as many details as you can (platform, configure flags, etc) to help the experts figure out what’s wrong.