Message ID | 20250422074738.821755-2-elmehdi.younes@smile.fr |
---|---|
State | New |
Headers | show
Return-Path: <buildroot-bounces@buildroot.org> X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4ZhZ8m6W4nz1yMZ for <incoming-buildroot@patchwork.ozlabs.org>; Tue, 22 Apr 2025 17:47:52 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 188D1403F9; Tue, 22 Apr 2025 07:48:09 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id Tn9tvtQEnFEm; Tue, 22 Apr 2025 07:48:08 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=<UNKNOWN> DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 5440440912 Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id 5440440912; Tue, 22 Apr 2025 07:48:08 +0000 (UTC) X-Original-To: buildroot@buildroot.org Delivered-To: buildroot@buildroot.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) by lists1.osuosl.org (Postfix) with ESMTP id 6B8681A0 for <buildroot@buildroot.org>; Tue, 22 Apr 2025 07:48:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 5CE24608E9 for <buildroot@buildroot.org>; Tue, 22 Apr 2025 07:48:07 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id nPfpkFcDeADC for <buildroot@buildroot.org>; Tue, 22 Apr 2025 07:48:06 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::330; helo=mail-wm1-x330.google.com; envelope-from=elmehdi.younes@smile.fr; receiver=<UNKNOWN> DMARC-Filter: OpenDMARC Filter v1.4.2 smtp3.osuosl.org 471926067F DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 471926067F Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by smtp3.osuosl.org (Postfix) with ESMTPS id 471926067F for <buildroot@buildroot.org>; Tue, 22 Apr 2025 07:48:06 +0000 (UTC) Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-43cfa7e7f54so33130045e9.1 for <buildroot@buildroot.org>; Tue, 22 Apr 2025 00:48:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745308084; x=1745912884; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9zbRxnupJw4VjO/gQwt340VXUK9jRlDRl9Nx5jnPeHY=; b=LE2vl8FlmMANbEIXBl4e5mwL4SvQYL1kGgAD53G7y4boJBKISRaI9MzdEB5Diyv09h brm47FIyYhx9pXuNalkYU5PwAGvLvDuYhoEIQ5ziuERX1Ngw58Te5we0Vmqp7AUiSZPC kPF4W5/Ts12n4YnY6lbRAPGo9PMTEaf73QL0fF6G0/E6suZc9lf61yFBmNk4wqbXdInT 7Nc6GOIccXg71TqMc+3AM9n2x2yxO9dvXGjN3DCgqcDwkhsRkbmWj8PhVSfc4Pzm2uff jeqgzBRNpkjFRSXA1g+5EitqylBGhniDl7HCd3KCkewjlSMtRIvOh7VyF89We3Klg/Ww /V4w== X-Gm-Message-State: AOJu0Yx0nc1RJIMZfSNQNhgWvX5HjN43CFd2S0HQeQI+4sYlsli17IJp MeNFBcTsazjT5RyQPAQprSL5ibXIvt3LBL8hiOD/Lq6+wxtlY8+KWf0r+4meItfNsVhCBm3nZbh pHzM= X-Gm-Gg: ASbGnct6aIeHkHqY4dDbwTaMcAqFoSecFniER5oGiXayG5JUJaBbArRWi45YsavRg2c 66cj9wUb5MK312LblVX3/UyqayXfe6QBDvBjuX1pf7fN9o9xr5GVpFVPvh2fI3kDTzzg9mGwaLt IO7OoRKkS0CimglB3qM1o/mqYWtJqZCZS97wqc+uu6FpXPkSpU3yvGyY/tqk/TSVC+5rwn5Hijw Ij14Np0Fb5ReC/FT973yvV0M7IISre9xq/L2wnHMtmXUpoYNLNA0U1yXNvKOm/5Ydpo5tZCOwHN TbyAxz9RY6+CRORGJV4zgkqvg/ZQi0nQ6icp/IeaLHeBXLdnivaOtaRHnbkzEgRnzr+Qp9FR4uo 3NFOlTsbCMdxf+WCVgIc3Fm3LOwPZX4khWL6y6CgQhZrCgg== X-Google-Smtp-Source: AGHT+IFXxAaw1ph10g3xS3qkCKl0F0cjIyVOGmbdWCdrr3JWZq3PPb+rEgUsDfGo29sZeLRAdrhEcg== X-Received: by 2002:a05:600c:46c5:b0:43b:ca8c:fca3 with SMTP id 5b1f17b1804b1-4406b28e9e5mr107018295e9.11.1745308083677; Tue, 22 Apr 2025 00:48:03 -0700 (PDT) Received: from P-NAN-ABRICOT.. (static-css-ccs-204145.business.bouyguestelecom.com. [176.157.204.145]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4406d5bbd8asm162913405e9.23.2025.04.22.00.48.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Apr 2025 00:48:03 -0700 (PDT) To: buildroot@buildroot.org Date: Tue, 22 Apr 2025 09:47:35 +0200 Message-ID: <20250422074738.821755-2-elmehdi.younes@smile.fr> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250422074738.821755-1-elmehdi.younes@smile.fr> References: <20250422074738.821755-1-elmehdi.younes@smile.fr> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google; t=1745308084; x=1745912884; darn=buildroot.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9zbRxnupJw4VjO/gQwt340VXUK9jRlDRl9Nx5jnPeHY=; b=RuDo13rHRVSJyMpV5GF35g1DNgl00bWWyp8/FN2Ue9+djLrsmoy+PFhC2NtEgVR9bl 2VRuEbjyq5kY0wEMfP6uJIEhEyK58rIa3+l5hiYrkTrXGiG3UJmd2dBVyhaWu1PntYqu ljm/2fTQWbvo4XhSGq7VykfXO2Fheh/b9t7FI= X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=reject dis=none) header.from=smile.fr X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (1024-bit key, unprotected) header.d=smile.fr header.i=@smile.fr header.a=rsa-sha256 header.s=google header.b=RuDo13rH Subject: [Buildroot] =?utf-8?q?=5BPATCH_1/4=5D_package/rust=3A_fix_bootstrap?= =?utf-8?q?_with_Rust=E2=89=A51=2E83?= X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot <buildroot.buildroot.org> List-Unsubscribe: <https://lists.buildroot.org/mailman/options/buildroot>, <mailto:buildroot-request@buildroot.org?subject=unsubscribe> List-Archive: <http://lists.buildroot.org/pipermail/buildroot/> List-Post: <mailto:buildroot@buildroot.org> List-Help: <mailto:buildroot-request@buildroot.org?subject=help> List-Subscribe: <https://lists.buildroot.org/mailman/listinfo/buildroot>, <mailto:buildroot-request@buildroot.org?subject=subscribe> From: El Mehdi YOUNES via buildroot <buildroot@buildroot.org> Reply-To: El Mehdi YOUNES <elmehdi.younes@smile.fr> Cc: Eric Le Bihan <eric.le.bihan.dev@free.fr>, Joseph Kogut <joseph.kogut@gmail.com>, David Pierret <david.pierret@smile.fr>, Danilo Bargen <mail@dbrgn.ch>, Graeme Smecher <gsmecher@threespeedlogic.com>, James Hilliard <james.hilliard1@gmail.com>, Sam Voss <sam.voss@gmail.com>, Torben Voltmer <mail@t-voltmer.net>, El Mehdi YOUNES <elmehdi.younes@smile.fr>, Saeed Kazemi <kazemi.ms@gmail.com>, Alex Michel <alex.michel@wiedemann-group.com>, Leo Yu-Chi Liang <ycliang@andestech.com>, Mika Westerberg <mika.westerberg@linux.intel.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" <buildroot-bounces@buildroot.org> |
Series |
package/rust: rust upgrade to version 1.86.0
|
expand
|
diff --git a/package/rust/rust.mk b/package/rust/rust.mk index 29c03594d2..6481e40561 100644 --- a/package/rust/rust.mk +++ b/package/rust/rust.mk @@ -48,6 +48,7 @@ define HOST_RUST_CONFIGURE_CMDS echo '[target.$(RUSTC_TARGET_NAME)]'; \ echo 'cc = "$(TARGET_CROSS)gcc"'; \ echo '[llvm]'; \ + echo 'download-ci-llvm = false'; \ echo 'ninja = false'; \ echo 'ldflags = "$(HOST_LDFLAGS)"'; \ ) > $(@D)/config.toml
Rust includes an option `download-ci-llvm` in config.toml that enables downloading prebuilt LLVM binaries from Rust's CI infrastructure instead of building LLVM from source. This option helps speed up the bootstrap process and is enabled by default starting from Rust 1.83. However, starting from commit [1] the bootstrap process performs a strict check via the function check_incompatible_options_for_ci_llvm(). This validation, implemented in the function check_incompatible_options_for_ci_llvm(), checks for any incompatible custom options such as `llvm.ldflags`, `llvm.cflags`, `targets`, etc. If any of these are set locally and differ from the values used to build the CI-provided LLVM, the build fails immediately with the error: ERROR: Setting `llvm.ldflags` is incompatible with `llvm.download-ci-llvm`. Buildroot explicitly sets `llvm.ldflags` in rust.mk to ensure proper host linking during the build of host-rust. Removing this setting may introduce portability or reliability issues across toolchains. To address the issue without compromising the build environment, this patch disables the use of CI-provided LLVM by setting: [llvm] download-ci-llvm = false This follows the recommendation from the Rust bootstrap script itself. Note: this is a temporary workaround to restore compatibility with Rust ≥1.83. Other solutions will be investigated to avoid disabling the use of prebuilt LLVM in the future, while preserving Buildroot’s reproducible build setup. [1] https://github.com/rust-lang/rust/commit/9df7680ecf698bf7087616b595774ee1023d3c7b Signed-off-by: El Mehdi YOUNES <elmehdi.younes@smile.fr> --- package/rust/rust.mk | 1 + 1 file changed, 1 insertion(+)