From nobody Sun Apr 24 23:03:23 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 B35BF1992F29 for ; Sun, 24 Apr 2022 23:03:23 +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 4KmkG33S0sz3KjQ for ; Sun, 24 Apr 2022 23:03:23 +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 5755A780B for ; Sun, 24 Apr 2022 23:03:23 +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 23ON3NlU068077 for ; Sun, 24 Apr 2022 23:03:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 23ON3NCt068076 for python@FreeBSD.org; Sun, 24 Apr 2022 23:03:23 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 263353] lang/python38: fix excessive ld.lld memory use with LTO in port options Date: Sun, 24 Apr 2022 23:03:23 +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-qa, regression X-Bugzilla-Severity: Affects Some People 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: see_also 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=1650841403; 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=Rdq2U+2gfMWv41/BAOZb8TX/ZoN3BvSrDyF1SAGhYXk=; b=eTMq6ZPjFic5LeL5XYh3bG4StbbC9M30cF9Sk2yh9ecZPZsxayu3l32nZDPkdITA16VKIN bPvGiz62nnLXmTTW8iAp2k7fB8Uj0ty16O4pqpbSiFadrQHECLd4JPAhwJCjbXoS9oROEa JPdOHt5vaot4rQiSSfPQkE9/LfeuGAEaPztizyU05P1mV8J1ThZZSLn+aKolxVVLemJdZP /5fQnh68NEgN3INwEYyiYrXJl0IK/VaBj7O+46T/Gr6PV3zUwTwMCMFvnfIkxz38mM605x svKwr6+K+GOTjwWxx3AmwX1zcz+PtT+x8EPNZh+kPuj6YeIxIqt0HxEQ2RPUCA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650841403; a=rsa-sha256; cv=none; b=XTXeJT1h8gL8Vr/1sqeybgtW0A8XEW4ymjiHcWzYNH5ljVu0TqLIOzKPQ8LUVEQ684IW6E FiULkhvaBlx/xkwPaIHaSBniC+SvdTDEgaHwg7WElbJJqoLhHIJ+0mBPzA4VtSo7QhiMKK KT0p8ObuEcki5uFiDDTm1PfoFIytip/XeVvb0FKpYsE3KcNdOyElYr80usg+fmHvweprx9 bLcUduIhssd6CdWrtFa7+HYJtn/axWyrxaM1qXaqjyh65ejR329uJVkEkFgZJ0N3PUHyd+ 4q9Hy+hPwz24U2sljtmf2AY0CbxRTBrvR6iusYF6Luw6E1VGewsxe0zH8V7C2A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263353 Kubilay Kocak changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.freebsd.org/bu | |gzilla/show_bug.cgi?id=3D2= 619 | |74 --- Comment #5 from Kubilay Kocak --- (In reply to Matthias Andree from comment #4) That's not how this works Matthias. Just like you'd like people to respect = your time, everyone else also appreciates you respecting theirs, particularly as they spent time and effort on your bug reports. There are multiple considerations here: 1) with-lto supports =3Dthin argument, but it was only set in python311 in = ports 9a31e1b6d3 because support for =3Dthin was not backported to earlier branch= es. I asked in comment 1 for a test of whether you can link with =3Dthin -g as th= at (thin), along with decoupling our LTo build from Pythons lto option is the = most desirable target state 2) Bug 261974 added support via Pythons build system flag for LTO, not using our own toolchain flags. This means we were necessarily coupled to what Pyt= hon does with this flag. That commit landed somewhat prematurely prematurely an= d we are now dealing with that. 2) Adding -g in the LTO was added a while ago [1][2], and earlier than 3.8,= and affects multiple Python port versions 3) The definition and scope of 'debug' in freebsd ports isn't an exact over= lap with upstreams definitions of 'debug' (not just compile args). 4) Python without compelling arguments/cases to the contrary prefers to rem= ain as close to upstream as possible, and where changes need to be made, changes are submitted for upstream inclusion/improvement unless that is impossible. We're not asking that you care about all of the above, but these are the th= ings we need to consider, along with the overhead of carrying local patches, whe= re alternatives may (and do) exist. [1] https://github.com/python/cpython/commit/1bb9dd337ed5aa9eafc8e2ce017ceedf04= 4145e3 [2] https://github.com/python/cpython/issues/74530 --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.=