[Bug 276170] LLVM bug prevents from enabling PGO optimization for Python 3.11+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 31 Dec 2024 01:05:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276170
--- Comment #32 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
That was enough context for me to replicate getting a failure
via a 14.1-RELEASE-p6 poudriere jail based build based on,
for example, just adding a CC+clang to CONFIGURE_ENV :
diff --git a/lang/python310/Makefile b/lang/python310/Makefile
index b352e8a2f9d7..ece416cb52dc 100644
--- a/lang/python310/Makefile
+++ b/lang/python310/Makefile
@@ -27,8 +27,9 @@ SHEBANG_FILES+= Lib/test/ziptestdata/exe_with_z64 \
DISABLED_EXTENSIONS= _sqlite3 _tkinter _gdbm
CONFIGURE_ARGS+= --enable-shared --without-ensurepip \
- --with-system-ffi
-CONFIGURE_ENV+= OPT="" # Null out OPT to respect user CFLAGS
and remove optimizations
+ --with-system-ffi --enable-optimizations
+CONFIGURE_ENV+= CC=clang
+#CONFIGURE_ENV+= OPT="" # Null out OPT to respect user CFLAGS
and remove optimizations
INSTALL_TARGET= altinstall
# Don't want cloberring of unprefixed files
@@ -45,7 +46,7 @@ PLIST_SUB= ABI=${ABIFLAGS} \
OSMAJOR=${OSVERSION:C/([0-9]*)[0-9]{5}/\1/}
# For plat-freebsd* in pkg-plist. https://bugs.python.org/issue19554
OPTIONS_DEFINE= DEBUG IPV6 LIBMPDEC LTO NLS PYMALLOC
-OPTIONS_DEFAULT= LIBMPDEC PYMALLOC
+OPTIONS_DEFAULT= LIBMPDEC PYMALLOC LTO
OPTIONS_EXCLUDE_riscv64= LTO
OPTIONS_RADIO= HASH
OPTIONS_RADIO_HASH= FNV SIPHASH
It got:
[00:00:05] [01] [00:00:00] Building lang/python310 | python310-3.10.16
[00:04:35] [01] [00:04:30] Saving lang/python310 | python310-3.10.16 wrkdir
[00:05:06] [01] [00:05:01] Saved lang/python310 | python310-3.10.16 wrkdir to:
/usr/local/poudriere/data/wrkdirs/R141p6-aarch64-default/default/python310-3.10.16.tbz
[00:05:06] [01] [00:05:01] Finished lang/python310 | python310-3.10.16:
Failed: build
I'll check the other test jails as well.
--
You are receiving this mail because:
You are the assignee for the bug.