From nobody Wed Feb 23 03:06:18 2022 X-Original-To: python@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 5D7CC19D323E for ; Wed, 23 Feb 2022 03:06:18 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K3LXV17YNz3Bv9 for ; Wed, 23 Feb 2022 03:06:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 033F510960 for ; Wed, 23 Feb 2022 03:06:18 +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 21N36H2U029781 for ; Wed, 23 Feb 2022 03:06:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 21N36H81029780 for python@FreeBSD.org; Wed, 23 Feb 2022 03:06:17 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: python@FreeBSD.org Subject: [Bug 261974] lang/python311: Enable Link Time Optimization (via autoconf) Date: Wed, 23 Feb 2022 03:06:18 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-patch, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: koobs@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: short_desc keywords 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: FreeBSD-specific Python issues List-Archive: https://lists.freebsd.org/archives/freebsd-python List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-python@freebsd.org X-BeenThere: freebsd-python@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645585578; 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=PNlicNmLN6ot0Rn63MClrxYUpld6/ik6u0+uPJIEeX0=; b=aY25e8ykKssjKhGDHurKLP2NjQ+pPPRmeqUnDfHSC0E1g8Uom4UEyJbiMc9PCqLpheaw72 32wExXwdP4FfoJoJH40ce04zN9cVb7R1ska6xHUEJ40xZEyDnHwBaJyPhXjcuMy4UfCsvC LPunw/Iqn0FkPMKNYUavgFBQNh+n9A63xuVNUy7S4O2NTRoQGSmymcONiBPdqoExw0V/r2 P20IE+ILNcDNxAcxHl69pmLx34ngRFeuvfildb7bSph+iArH5xw1dFvzCMOsolHHs8Py2W pzIasNchQsTZodXxwdWkljBqxKxiNEME/EC+uqb2GfnW2ejwToBTi5gfrmHI9A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645585578; a=rsa-sha256; cv=none; b=NCCLhmTV9VyCtyRySiE+5Ht4qW4qmKVqk0EKBiCBGSvCJj1+PN2wcNxJGqKv/W1TgG+DpS u3cjwJabvewMid997uRZ+jsbZHYYofojJEIV0rST5OMCwu/VeZUKcTAY1KqfPsZ+mFy0nw lhaHok1yvskFgAZ4HXNnVVh87Xw5A40HcXDTWGvH52F8BBL08HiYMq9mlrm0d2VdIDOxs1 K25N7ol94m8FkGfH7LoUJYk7ILi+S3PgPWzE3FDKuS2NXLtzJ6vDcdHsFTYLFHCFA23aC3 YyIms1txywi98fZRfv9fLxb42uAeP2Ba9bguCe0dYCZzimCzHEtul2uefuKK7g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261974 Kubilay Kocak changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|lang/python311: add |lang/python311: Enable Link |--enable-lto |Time Optimization (via | |autoconf) Keywords| |needs-patch, needs-qa --- Comment #5 from Kubilay Kocak --- (In reply to Piotr Kubaj from comment #4) Sounds reasonable. Could we: - Wrap this in an LTO option, enabled by default, excluded on architectures= its not relevent or ok for. - Update the patch to include changes for all lang/python* ports that suppo= rt it (LTO). I think more than one does. - Can we get away without the 'CC=3D environment override', leaving in eith= er: 1) the current check for =3D=3D cc, or=20 2) using appropriate ports framework mechanisms to determine whether the compiler is clang? ie: if excluding options based on arch is feasible: if option and correct-compiler=20 If not: if option and correct compiler and not bad-arch Note that while pythons configure checks CC, it also incorrectly detects 'G= NU linker' (based on version string), and the build system is not very robust = with respect to toolchains, and if we can just do the 'is this the right toolcha= in for lto' parts in ports, that would be preferable. --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.=