From nobody Tue Jul 19 15:11:43 2022 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 4LnMk72dqGz4TKbj for ; Tue, 19 Jul 2022 15:11:43 +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 4LnMk70QF7z3m46 for ; Tue, 19 Jul 2022 15:11:43 +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 4LnMk66bGbzN0y for ; Tue, 19 Jul 2022 15:11:42 +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 26JFBguS070966 for ; Tue, 19 Jul 2022 15:11:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 26JFBg3o070965 for toolchain@FreeBSD.org; Tue, 19 Jul 2022 15:11:42 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 265254] lang/gcc11: build gets stuck Date: Tue, 19 Jul 2022 15:11:43 +0000 X-Bugzilla-Reason: 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: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: salvadore@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ 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: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658243503; 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=sFAQcdyF9FscCZOZvobmJhKnSuPOK1pPsQ6skK768QQ=; b=FxmMVodDM+tse6zh6iP3knuIZDEpQXVm32E8GNmycxAc1M89wnYzG/vC6WrF9ama+m58OB 4cy7LUEYoXmwmLkTtzKMyJ5QbFR2aNoXqxud1CozrqDxpD3EYulgNsgYG3bwDhDaUMG1Z6 TaaMz8LkIVtTFn/ZoI8Vw/oiurwS/GcKyj3MlkNHTwE+1BZJ05Yt6LlfQhjt9fXA0hxqy7 2EI+E04hetF4fzxbm2CUA4ILDW6OSHc1cujbyGDe6UVhD1Y6lT7iuOflQBg/1h05N85KKr mIBj3LapKhXc8LM9sMUGHUtT+ZHp5+ZLO4cvPh2+PhQNxyHBcUfE572ZfpPorQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658243503; a=rsa-sha256; cv=none; b=f4mK0rjS3gl7/wQZXsEj6w2No8s7YWyuxKGCYsrMqtbaPRSiyvUVGYUMqLlxjmVkbFGJLA Uz330DHqimMmSB3JpaEiA2bganAyos0XW7uaHHbH/i+mQHKWQIdCxNs0+TTUuutn52R94J vKX9m3xTUYXrTWaAl8LgBZsUn+KD2T6nF+v6XocJC6zUGS5rCWnm+NQ3bLOe52G9r/jReK 6Qeb+XDYazFwHGPlCtD4Lp+GfP3cZRel7XlITTs8EGaYaoW48vTWLOWBv9zTb8AhkxS+5p VG+df/mnar5nd+U6Nc1RSbvxXw0buNTWuIYmzy8wef4+JsWud3AzgFqEUTQORg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265254 --- Comment #23 from Lorenzo Salvadore --- As it can be read in the bug Yuri has reported upstream, the bug is confirm= ed. Now we should agree on a strategy to deal with it while we wait for an upst= ream resolution. Yuri suggested disabling LTO for lang/gcc11. It makes sense since there are cases that stucks the buil. However, I don't see those cases so common. Unt= il now, Yuri is the only one who has noticed the issue (while LTO is quite new= on default gcc version on FreeBSD, it has already been around for a long time = in other systems, but it seems Yuri has reported the first bug upstream on the topic), so I think the issue does not affect most of our users. Moreover, we know it does not affect the official packages builders either. I think we should choose between these three strategies (but more ideas are welcome of course): 1 - Leave LTO enabled by default on all gcc ports having it. 2 - Disable LTO on all gcc ports having it. 3 - Leave LTO enabled on some ports and disable it on others. In that case,= I would suggest to leave it enabled on -devel ports and disable it on gcc11 a= nd gcc12. Moreover I believe we should update pkg-help to inform about this bug for a= ll gcc ports where the LTO_BOOTSTRAP option exists: an additional warning is always better. Personally, I prefer strategy 3. I see the following advantages: - gcc11 (default version) builds flawlessly; - disabling LTO requires a PORTREVISION bump, but the gcc11 and gcc12 ports with standard bootstrap (which I would enable by default instead of lto bootstrap) are quick enough to compile; - leaving LTO enabled on -devel ports allows us to monitor lto state, notice bugs, fix them and then better understand when LTO is ready to be enabled on the production ports. Please let me know your thoughts about it. --=20 You are receiving this mail because: You are the assignee for the bug.=