https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93384

--- Comment #13 from Victor Stinner <vstinner at redhat dot com> ---
I used 3.9.0a3 release of Python to reproduce the issue:

https://www.python.org/ftp/python/3.9.0/Python-3.9.0a3.tar.xz

Here are the full commands to configure Python on ppc64le for Fedora Rawhide
with PGO+LTO optimizations.

---
export CFLAGS='-O2 -g -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions
-fstack-protector-strong -grecord-gcc-switches   -m64 -mcpu=power8
-mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection
-D_GNU_SOURCE -fPIC -fwrapv'
export CFLAGS_NODIST='-O2 -g -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions
-fstack-protector-strong -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8
-fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC
-fwrapv -fno-semantic-interposition'
export CPPFLAGS=''
export CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions
-fstack-protector-strong -grecord-gcc-switches   -m64 -mcpu=power8
-mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection
-D_GNU_SOURCE -fPIC -fwrapv'
export FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions
-fstack-protector-strong -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8
-fasynchronous-unwind-tables -fstack-clash-protection
-I/usr/lib64/gfortran/modules'
export FFLAGS='-O2 -g -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions
-fstack-protector-strong -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8
-fasynchronous-unwind-tables -fstack-clash-protection
-I/usr/lib64/gfortran/modules'
export LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now  -g'
export LDFLAGS_NODIST='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld -fno-semantic-interposition -g'
export LINKCC=gcc
export LT_SYS_LIBRARY_PATH=/usr/lib64:
export OPT='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong
-grecord-gcc-switches   -m64 -mcpu=power8 -mtune=power8
-fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC
-fwrapv'

./configure --build=ppc64le-redhat-linux-gnu --host=ppc64le-redhat-linux-gnu
--program-prefix= --disable-dependency-tracking --prefix=/usr
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64
--libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib
--mandir=/usr/share/man --infodir=/usr/share/info --enable-ipv6 --enable-shared
--with-computed-gotos=yes --with-dbmliborder=gdbm:ndbm:bdb --with-system-expat
--with-system-ffi --enable-loadable-sqlite-extensions --with-dtrace --with-lto
--with-ssl-default-suites=openssl --with-valgrind --without-ensurepip
--enable-optimizations
---

Then run "make".

Note: I prefer to "mkdir build; cd build" and run "../configure (...)" to not
pollute sources with generated files (and be able to retry from scratch if
neeed).

Reply via email to