Opened 3 years ago

Closed 3 years ago

#63506 closed defect (invalid)

python38 @3.8.12_1 +optimizations does not build on macOS 11.5.2

Reported by: ballapete (Peter "Pete" Dyballa) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: bigsur Cc:
Port: python38

Description

make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python38/python38/work/Python-3.8.12'
# This is an expensive target to build and it does not have proper
# makefile dependency information.  So, we create a "stamp" file
# to record its completion and avoid re-running it.
touch profile-run-stamp
Rebuilding with profile guided optimizations:
rm -f profile-clean-stamp
/Library/Developer/CommandLineTools/usr/bin/make build_all CFLAGS_NODIST=" -fprofile-instr-use=code.profclangd" LDFLAGS_NODIST=""
make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python38/python38/work/Python-3.8.12'
/usr/bin/clang -c -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64   -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fprofile-instr-use=code.profclangd -I./Include/internal  -I. -I./Include -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk   -DPy_BUILD_CORE -o Programs/python.o ./Programs/python.c
/usr/bin/clang -c -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64   -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fprofile-instr-use=code.profclangd -I./Include/internal  -I. -I./Include -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk   -DPy_BUILD_CORE -o Parser/acceler.o Parser/acceler.c
/usr/bin/clang -c -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64   -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fprofile-instr-use=code.profclangd -I./Include/internal  -I. -I./Include -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk   -DPy_BUILD_CORE -o Parser/grammar1.o Parser/grammar1.c
/usr/bin/clang -c -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64   -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fprofile-instr-use=code.profclangd -I./Include/internal  -I. -I./Include -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk   -DPy_BUILD_CORE -o Parser/listnode.o Parser/listnode.c
/usr/bin/clang -c -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64   -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fprofile-instr-use=code.profclangd -I./Include/internal  -I. -I./Include -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk   -DPy_BUILD_CORE -o Parser/node.o Parser/node.c
/usr/bin/clang -c -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64   -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fprofile-instr-use=code.profclangd -I./Include/internal  -I. -I./Include -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk   -DPy_BUILD_CORE -o Parser/parser.o Parser/parser.c
/usr/bin/clang -c -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64   -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fprofile-instr-use=code.profclangd -I./Include/internal  -I. -I./Include -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk   -DPy_BUILD_CORE -o Parser/token.o Parser/token.c
/usr/bin/clang -c -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64   -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fprofile-instr-use=code.profclangd -I./Include/internal  -I. -I./Include -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk   -DPy_BUILD_CORE -o Parser/myreadline.o Parser/myreadline.c
/usr/bin/clang -c -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64   -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fprofile-instr-use=code.profclangd -I./Include/internal  -I. -I./Include -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk   -DPy_BUILD_CORE -o Parser/parsetok.o Parser/parsetok.c
/usr/bin/clang -c -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64   -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fprofile-instr-use=code.profclangd -I./Include/internal  -I. -I./Include -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk   -DPy_BUILD_CORE -o Parser/tokenizer.o Parser/tokenizer.c
/usr/bin/clang -c -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64   -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fprofile-instr-use=code.profclangd -I./Include/internal  -I. -I./Include -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk   -DPy_BUILD_CORE -o Objects/abstract.o Objects/abstract.c
/usr/bin/clang -c -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64   -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fprofile-instr-use=code.profclangd -I./Include/internal  -I. -I./Include -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk   -DPy_BUILD_CORE -o Objects/accu.o Objects/accu.c
error: Could not read profile code.profclangd: Unsupported instrumentation profile format version
error: Could not read profile code.profclangd: Unsupported instrumentation profile format version
error: Could not read profile code.profclangd: Unsupported instrumentation profile format version
error: error: Could not read profile code.profclangd: Unsupported instrumentation profile format versionCould not read profile code.profclangd: Unsupported instrumentation profile format version

error: Could not read profile code.profclangd: Unsupported instrumentation profile format version
error: Could not read profile code.profclangd: Unsupported instrumentation profile format version
error: Could not read profile code.profclangd: Unsupported instrumentation profile format version
error: Could not read profile code.profclangd: Unsupported instrumentation profile format version
error: Could not read profile code.profclangd: Unsupported instrumentation profile format version
error: Could not read profile code.profclangd: Unsupported instrumentation profile format version
error: Could not read profile code.profclangd: Unsupported instrumentation profile format version
1 error generated.
1 error generated.
1 error generated.
1 error generated.
1 error generated.
1 error generated.
make[1]: *** [Parser/listnode.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Parser/grammar1.o] Error 1
1 error generated.
make[1]: *** [Objects/accu.o] Error 1
make[1]: *** [Parser/acceler.o] Error 1
make[1]: *** [Parser/parsetok.o] Error 1
make[1]: *** [Programs/python.o] Error 1
1 error generated.
make[1]: *** [Parser/node.o] Error 1
make[1]: *** [Parser/myreadline.o] Error 1
1 error generated.
1 error generated.
make[1]: *** [Parser/parser.o] Error 1
1 error generated.
make[1]: *** [Parser/token.o] Error 1
make[1]: *** [Parser/tokenizer.o] Error 1
1 error generated.
make[1]: *** [Objects/abstract.o] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python38/python38/work/Python-3.8.12'
make: *** [profile-opt] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python38/python38/work/Python-3.8.12'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python38/python38/work/Python-3.8.12" && /usr/bin/make -j12 -w all 
Exit code: 2

Attachments (1)

main.log (727.6 KB) - added by ballapete (Peter "Pete" Dyballa) 3 years ago.
Main.log from intel Big Sur macOS 11.5.2

Download all attachments as: .zip

Change History (5)

Changed 3 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from intel Big Sur macOS 11.5.2

comment:1 Changed 3 years ago by jmroot (Joshua Root)

Summary: python38 @3.8.12_1 does not build on Big Sur, macOS 11.5.2, because of error: Could not read profile code.profclangd: Unsupported instrumentation profile format versionpython38 @3.8.12_1 +optimizations does not build on macOS 11.5.2

comment:2 Changed 3 years ago by jmroot (Joshua Root)

Given that you're building against the 11.0 SDK you might need to update your command line tools.

comment:3 in reply to:  2 ; Changed 3 years ago by ballapete (Peter "Pete" Dyballa)

Replying to jmroot:

Given that you're building against the 11.0 SDK you might need to update your command line tools.

Xcode 12.5.1 has SDK 11.3. Until recently it seemed to be complete and OK. After installing "Command_Line_Tools_for_Xcode_12.5.1" the port built.

comment:4 in reply to:  3 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

Replying to ballapete:

Replying to jmroot:

Given that you're building against the 11.0 SDK you might need to update your command line tools.

Xcode 12.5.1 has SDK 11.3.

Yes it does, but the log shows you're not using the Xcode SDK but the one from the command line tools: /Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk. Ports do not use Xcode SDKs unless they indicate that they require that, or if you do not have the command line tools installed.

After installing "Command_Line_Tools_for_Xcode_12.5.1" the port built.

Great. Remember to update your command line tools manually as needed in the future.

Note: See TracTickets for help on using tickets.