From nobody Tue Mar 26 18:08:38 2024 X-Original-To: ports-bugs@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 4V3yTy5FJvz5FWMD for ; Tue, 26 Mar 2024 18:08:38 +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 4V3yTy2TT5z54sN for ; Tue, 26 Mar 2024 18:08:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711476518; a=rsa-sha256; cv=none; b=ToGVjL2yNE4HS3cl1l0EyJNyO8ojJ+sDuhjHl0NJwAhEJks7nBYhRlaoyfjSXIMi5JQOTE x6J85RDWxPsV7Gk7tPsBVWFdMbakQM/xDu4RjdUen4ds3dFnnEjuA2NB9GgPsl9/vj70Ab 7g1qxhNQj3tg0Z0MzOExBVvg0X7E378ZgwnfG/K3xm4RdFjQh1OF/5SdmIBH7tqLAKbU3m SgWGJpIMO5nR1UM7bfqJqEa0Tg1a1Rm40Ze2z16MgwXyYHGxc2GgE83HSxva1e2rUzoPOP MXIbkeG7N9P0BN9Hhdh9D9iD7CWspC8RHAiJ0ZvX0f2rxPVfCVADG9KJ6z5hLg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711476518; 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=Nqs5GyJ9MzqoWOo564XU7bQGGNSYpOLHNXk6TMoutd4=; b=rrO932+eh9uVxEfUlPxSPJ2eb1VzNhgrUU4cKRjvSlFl9pjTrmUR1csOqmoZ/uDnt9aDcC /WwkGlCVTImOv1PZ4y3TYGeQRBJh+5/aeHH0Ad+56vwhrFd6mcr2TLGyEDPdB6ZT96l7sN o+rcEvpoeHS/zam3GthMQaXp2JBpD4Cki7rbXYmbtbzuJOKyU7wFnjnm7zv/Wbvx+qUdqF zqXorGzCaMzNNDQUnheoW685ZjtyYzc4aR9U1dqzLKpLAau4YR8Y4QSc2XQHeYZOuZASD1 urHF+xazKXrnSncdttaiJHVYAbcmd/xAjjEJHypLRgCxreOLG/V33pws8NJc8A== 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 4V3yTy248Rz19Sd for ; Tue, 26 Mar 2024 18:08:38 +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 42QI8cYT029825 for ; Tue, 26 Mar 2024 18:08:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42QI8cUa029820 for ports-bugs@FreeBSD.org; Tue, 26 Mar 2024 18:08:38 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: ports-bugs@FreeBSD.org Subject: [Bug 277333] Mk/Features/lto.mk: passing -C lto=no breaks LTO_UNSAFE ports Date: Tue, 26 Mar 2024 18:08:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkubaj@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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277333 --- Comment #17 from Jan Beich --- To summarize, WITH_LTO looks like crap to me: - LTO_UNSAFE with inconsistent (CARGO_PROFILE_* vs. RUSTFLAGS) and unexpect= ed semantics (LTO_UNSAFE vs. WITHOUT_LTO) - Modifies RUSTFLAGS without passing to MAKE_ENV (for ports *without* USES=3Dcargo) - Overrides individual CARGO_ENV assignemnets in consumers - Fakes LTO in USES=3Dcabal (-Wl,--gc-sections is a different thing and com= mon in C/C++ world) I may be wrong but you can easily test via devel/texlab which is fast to bu= ild. --=20 You are receiving this mail because: You are on the CC list for the bug.=