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 vstinner
Recipients corona10, petr.viktorin, vstinner
Date 2021-05-17.22:52:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Compilation failed on s390x RHEL7 LTO + PGO 3.x buildbot:

rm -f libpython3.11.a
ar rcs libpython3.11.a Modules/getbuildinfo.o (...) Python/frozen.o
lto1: error: libpython3.11.a: file too short
(null):0: confused by earlier errors, bailing out
lto-wrapper: gcc returned 1 exit status
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status

make[3]: *** [python] Error 1
make[3]: *** Waiting for unfinished jobs....

gcc -pthread   -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -g -fprofile-generate -Xlinker -export-dynamic -o python Programs/python.o libpython3.11.a -lcrypt -lpthread -ldl  -lutil -lm   -lm 
# Regenerate Programs/test_frozenmain.h
# from Programs/
# using Programs/
./python Programs/ Programs/test_frozenmain.h
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Programs/test_frozenmain.h written

make[4]: Leaving directory `/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z.lto-pgo/build'
make[3]: Leaving directory `/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z.lto-pgo/build'
make[2]: *** [build_all_generate_profile] Error 2
make[2]: Leaving directory `/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z.lto-pgo/build'
make[1]: *** [profile-gen-stamp] Error 2
make[1]: Leaving directory `/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z.lto-pgo/build'
make: *** [profile-run-stamp] Error 2
program finished with exit code 2
Date User Action Args
2021-05-17 22:52:03vstinnersetrecipients: + vstinner, petr.viktorin, corona10
2021-05-17 22:52:03vstinnersetmessageid: <>
2021-05-17 22:52:03vstinnerlinkissue44131 messages
2021-05-17 22:52:03vstinnercreate