From nobody Mon Jul 15 19:01:16 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 4WNBPS3jMtz5RSvL for ; Mon, 15 Jul 2024 19:01:16 +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 4WNBPS0VyYz4TMT for ; Mon, 15 Jul 2024 19:01:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721070076; a=rsa-sha256; cv=none; b=Uo3Nv2X01H5+C+DeS12mGjzOCG/YYCGiD+Ig/r8O3xDsSI29zcpvc6HT/LzRWaIbfiI/oE IO6/JpR/wmg7vr/se/75cvLM5Slh2y5AO/sIl/YXmhwSyZVJtfL2SIShXQ5yH4NNcbJI8E jz77r4LuNgp5HaBzAUQCcNQG8vVCNqqt2zCI2Vc+Fc9CMniznWqLV1zRsz5T7E9coJzJp0 FncTOMbhce7U9A9tz4O7WmnYSTgZttaoqp+YYfxcC/4Ta+bEp9Muk/bZFK3z8jxqaNrP6k 9oCiC0H36djxrmF0J5/NsW3IHBcFVTHJT1u9P313xAfaZaiFxhCOa7EfeP8kww== 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=1721070076; 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; bh=J/d/CMAnsJt+FHAUQ58ZEXRRr/J+IzH1B9hNWSlbroc=; b=m4Oy9CsETqbN/dn+Uz6vMP3gqc7VhI/Nfa1KxBzgpaF/0ni3VQ+diZiVuN98yCuUSjLY5e pzNIrTVZrvbtOtw5q22dEE66uwxoG48kX/iRf1s+fk+gLTfOUjIVYfvoPWx8lrKkXDNgsx 4pbSuCEs7r+X/6pcQDMeumMgKycg4D4yLikx8o5xTCkrjoo7SP4F4nflj+5iBBo7ifmmCx BtV4Fpx++kqjOPI70ZV9bxC+ZUKbscxArW6hJhudA/ITVSWyzliwANmWsVmT4SndKcUAr3 Ka/8VBVrZa+GZJggScNf+3o1y5xk5SUgtm7TCXeR6zVOoPcPAiifVXiWOgEJ4g== 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 4WNBPS073zz14Ct for ; Mon, 15 Jul 2024 19:01:16 +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 46FJ1FZK022971 for ; Mon, 15 Jul 2024 19:01:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46FJ1FCq022970 for ports-bugs@FreeBSD.org; Mon, 15 Jul 2024 19:01:15 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 280305] Mk/Uses/cargo.mk: Remove cross-compilation options Date: Mon, 15 Jul 2024 19:01:16 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: yuri@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: 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: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280305 Bug ID: 280305 Summary: Mk/Uses/cargo.mk: Remove cross-compilation options Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: yuri@freebsd.org Created attachment 252086 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D252086&action= =3Dedit patch According to this comment (https://github.com/rust-lang/rust/issues/127727#issuecomment-2229073731), = the --target xx option, turned on by CARGO_BUILD_TARGET in cargo.mk, enables the cross-comilation mode in the Rust compiler. Cross compilation shouldn't be turned on by default in the FreeBSD ports. If cross-compilation is desired, it should be turned on by dedicated variab= les in ports' makefiles or in /etc/make.conf. According to the linked above conversation cross-compilation causes some RUSTFLAGS to not be passed to some rustc commands. In particular, removal of cross-compilation would fix build failures in many rust-based ports on the = i386 architecture, for example in devel/cargo-spellcheck. The attached patch removes cross-compilation options from cargo.mk --=20 You are receiving this mail because: You are the assignee for the bug.=