From nobody Tue Dec 31 13:20:11 2024 X-Original-To: toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YMtqv5C8hz5jRpZ for ; Tue, 31 Dec 2024 13:20:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YMtqv2ssHz4jxD for ; Tue, 31 Dec 2024 13:20:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735651211; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uwE+6taQ3cOW7TwAoP10lKhX+hOrorWm0qXm9GqG5WI=; b=oUxiKT8BmdHdTPhClSkTt05MLSbZJzTewVQEP6Ba/Oy82Rrros6GTtZL8vrFTTGglpr3Rk MYfrEgwfos1hNaDa5ugaMpoXxDioJmcLTxfvVGGHOH55BkhoRBQaWOwkCYfdQJ5X+XqWh9 O6HzstEZjVJMxviTcSNfNxrSSZ0ZdT9nNtqhlxIR+DMm9nAx4/31eQ2MiUigKfdjtJn6u+ zkZSuAZZQNpPUfxcm4Vg+nNLwFiHI+40Ov2UzOqSI7Ll/IU8ZWLhPjkeY5MVyB62w1qyM8 upLgO6J6biWq+Qi7gWMYJ6ruiyiEcvPD8s/VQ1VuLKMzk43VeqVg6IatXQEnQQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735651211; a=rsa-sha256; cv=none; b=Vyt8FAdbjXxtQui/cJTXnRaFuYXKqYgkdY/1coQF6jOPsC3W13cj95rINIc0uwwq5ARoP6 4ft/Y++P0auCKQtJ8GdOoKaRECpO30+7+uNmwXDJGw4A32bidrafPJFEU2aVEVtc4VwS9D famxt6Pu1z7rEonvBzIP0+TegYZMEBmXQQ4CJJcf5wuCRpfaUexsydo5xWOSPSK7SXp0jA bTHNzGfw57NDAMO6lGlvKb6ItBYgxzfw8zDyIWZX2ci5PjFfgYGUT6cAuccasO2grqkHID U8qF74x6pPV2czBEv7f4KnZNHxK9mnqpAoDP3VTYYR+wI4L4VwnsgLeuAtp0Sw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YMtqv1xdWzghP for ; Tue, 31 Dec 2024 13:20:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4BVDKBi8096136 for ; Tue, 31 Dec 2024 13:20:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BVDKBOc096134 for toolchain@FreeBSD.org; Tue, 31 Dec 2024 13:20:11 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 276170] LLVM bug prevents from enabling PGO optimization for Python 3.11+ Date: Tue, 31 Dec 2024 13:20:11 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-toolchain@freebsd.org Sender: owner-freebsd-toolchain@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276170 --- Comment #39 from Mark Millard --- The stable/14 test context got: [00:00:07] [01] [00:00:00] Building lang/python310 | python310-3.10.16 [00:07:55] [01] [00:07:48] Finished lang/python310 | python310-3.10.16: Success for: # cat ~/mmjnk.txt diff --git a/lang/python310/Makefile b/lang/python310/Makefile index b352e8a2f9d7..f09113380dcc 100644 --- a/lang/python310/Makefile +++ b/lang/python310/Makefile @@ -27,8 +27,10 @@ SHEBANG_FILES+=3D Lib/test/ziptestdata/exe_with_z64= \ DISABLED_EXTENSIONS=3D _sqlite3 _tkinter _gdbm CONFIGURE_ARGS+=3D --enable-shared --without-ensurepip \ - --with-system-ffi -CONFIGURE_ENV+=3D OPT=3D"" # Null out OPT to respect user C= FLAGS and remove optimizations + --with-system-ffi --enable-optimizations +CONFIGURE_ENV+=3D CC=3Dclang +#CONFIGURE_ENV+=3D OPT=3D"" # Null out OPT to respect user C= FLAGS and remove optimizations +CFLAGS+=3D -O3 INSTALL_TARGET=3D altinstall=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 # Don't want cloberring of unprefixed files @@ -45,7 +47,7 @@ PLIST_SUB=3D ABI=3D${ABIFLAGS} \ OSMAJOR=3D${OSVERSION:C/([0-9]*)[0-9]{5}/\1/}=20=20= =20=20=20=20=20=20=20=20=20=20 # For plat-freebsd* in pkg-plist. https://bugs.python.org/issue19554 OPTIONS_DEFINE=3D DEBUG IPV6 LIBMPDEC LTO NLS PYMALLOC -OPTIONS_DEFAULT=3D LIBMPDEC PYMALLOC +OPTIONS_DEFAULT=3D LIBMPDEC PYMALLOC LTO OPTIONS_EXCLUDE_riscv64=3D LTO OPTIONS_RADIO=3D HASH OPTIONS_RADIO_HASH=3D FNV SIPHASH that had commands like: clang -pthread -c -Wno-unused-result -Wsign-compare -Wunreachable-code -DND= EBUG -g -fwrapv -O3 -Wall -O2 -pipe -O3 -fstack-protector-strong -fno-strict-aliasing -flto -g -std=3Dc99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=3Dimplicit-function-declaration -fvisibility=3Dhidden -fprofile-instr-generate -I./Include/internal -I. -I./Include -I/usr/local/include -I/usr/local/include -fPIC -DPy_BUILD_CORE -o Programs/python.o ./Programs/python.c So, the order: -O3 -O2 -O3 It does not appear like -O3 leads to any crashes for LLVM19's clang. --=20 You are receiving this mail because: You are the assignee for the bug.=