From patchwork Tue Nov 17 14:12:54 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hemanth Kumar M D X-Patchwork-Id: 104632 Received: from mx0a-0064b401.pphosted.com (mx0a-0064b401.pphosted.com [205.220.166.238]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.18820.1794924813196418243 for ; Tue, 17 Nov 2026 06:13:33 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=AOWOJabK; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.166.238, mailfrom: prvs=5781a53026=hemanth.kumarmd@windriver.com) Received: from pps.filterd (m0250809.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AHBx3451075809 for ; Tue, 17 Nov 2026 06:13:32 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=cc:content-transfer-encoding:content-type:date:from :message-id:mime-version:subject:to; s=PPS06212021; bh=xNUO80NmU N5A9Jwyl2xMsKtVVYvGt+NhEUBJiLXg32o=; b=AOWOJabKBTomxJinoLe/DzfVu kIm7c8iJ9QlzHGl927iCyM1E/vPNiq0SVHFi7CKiWV993/vAm+GL0nGbH8/zaoML Qzguhy/nuv7Dn3FCxBIALKZC1fDMeCxZlVDh/QOLuTI18d0mD1OCA8wxokl7gyvK DJHXxGsyGSmTWi6m/nLVrUFVYoybs6sV9oRWgVhMEFbdm+opAph2Bahn4rNxprNP rlpf2KVPSt5WPHE33GR2H9WtEFIqruiOXTOC9UETlMqZKRwwI6x23aw3zR+IBTDK x4TkmUh/M0lq3o+QpjIjQn1ee0/RAmwRSqTGTR7io9Wjf2W74/2JbEefp0+Mw== Received: from sj2pr03cu001.outbound.protection.outlook.com (mail-westusazon11022077.outbound.protection.outlook.com [52.101.43.77]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 4hxr1h4mbn-2 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Tue, 17 Nov 2026 06:13:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=F98EjjD7rf43B/YkUQ+sKoqSEJ5hxK/ivZZFixpm3kqyR6Om701j6JPYiYse2lkf1fnTHguEKiisM9t8cBkCN368S7IlJ94UM1+zMhXJs77+MDUOz70+VMCEns46YYqw/waCXLE5G8vhHFw+D4pJ32BgAYhGAJ9ZKOGFA/bd5mZBga7ohRDpzEcbubTj2ZXFF7YKct3HQmVCuSab94fUB+ZL+0MCx9b5AqQyfsikqim5yHA0EXTTaTw9YWdNGnMXIXv3WYdDgKdlJ/3JGJX9NrQTkS+oakBLCqt2PD8/2kHz9RkLhPk+QfU6nMLQQd+GUW40BJSgnfs1dIFUcYlG1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xNUO80NmUN5A9Jwyl2xMsKtVVYvGt+NhEUBJiLXg32o=; b=PQGWsDXF2nx0VQMCJJLAee+XebRpIZB8dhjzuRi9YDgPsfSITdnNZCYk27n29161LFpmOnyUBHWUB2KCtp28WRLKTXjZMNeTTqkiJEqizacZoPNWtstkJXJG5LXshL9bixlH3YHDBpi9OOVGo8oMMxStNM9WA3qWFxDpE9wAnrqxdMPg2PcQn42GCl6K5LySVUFDOrdZcyf7VuAHTe0hPqwTTZ22FHPm2z76sli170aULjMfwjw2uyoPWaKCdlpdLdy3Co3r7oRHF7PFb4rdl51lCZEAb5m8gElh1wixUshEk1BcvOKozT0xP+mhDjqgwG3pOfBB7s0JjDDuh+3Tvg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=windriver.com; Received: from MW3PR11MB4571.namprd11.prod.outlook.com (2603:10b6:303:59::19) by DS0PR11MB8764.namprd11.prod.outlook.com (2603:10b6:8:192::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.615.14; Tue, 17 Nov 2026 14:13:27 +0000 Received: from MW3PR11MB4571.namprd11.prod.outlook.com ([fe80::3fec:2722:27b1:67f9]) by MW3PR11MB4571.namprd11.prod.outlook.com ([fe80::3fec:2722:27b1:67f9%5]) with mapi id 15.21.0615.009; Tue, 17 Nov 2026 14:13:26 +0000 From: Hemanth.KumarMD@windriver.com To: openembedded-core@lists.openembedded.org Cc: Sundeep.Kokkonda@windriver.com, Hemanth.KumarMD@windriver.com Subject: [PATCH 1/2] rust: Upgrade 1.99.1 -> 1.100.0 Date: Tue, 17 Nov 2026 06:12:54 -0800 Message-ID: <20261117141300.2193043-1-Hemanth.KumarMD@windriver.com> X-Mailer: git-send-email 2.49.0 X-ClientProxiedBy: BY1P220CA0001.NAMP220.PROD.OUTLOOK.COM (2603:10b6:a03:59d::14) To MW3PR11MB4571.namprd11.prod.outlook.com (2603:10b6:303:59::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW3PR11MB4571:EE_|DS0PR11MB8764:EE_ X-MS-Office365-Filtering-Correlation-Id: ada0cb13-a678-490f-0196-08df44b4f2b1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|1800799024|376014|52116014|366016|261102123227099003|261028144727099003|261026140227099003|261026121527099003|261022113327099003|261022075727099003|261021135927099003|261022105027099003|261021123027099003|261021121427099003|38350700014|11063799006|10067099003|260925021911599003|260925022911599003|260925021311599003|56012099006|18002099003|261009223027099003|261009221727099003|261009223327099003|261009220027099003|29003799003|6133799003|12006099003|25016099003|261009221227099003|3023799007; X-Microsoft-Antispam-Message-Info: TpfD7J3aULDutZXzo89/Bj7o1pacRJTmkwNAP6/grmLSRkkOkqKn/8zSoKDfbcwSvwrUv0RuHsxDouCWCyHCcHkhsBa8UwCVVpHdQTWSyWMmRrtdjhgKs80wAHV02hiUb2X2UQt2eOkTvI1BaNgt/vzxnac2ZKVFJFoLERxNodeeo732ZVUqyVrl+hERgl7pZPQVhrTWTTEsRhLKANm+HAx0QyLp3RgfHxmX2nxzmwtNX7HQPVr5JtBlqM++fm324fUywpiz9IAszSaWq5TKc/szAxvInNGyuwj1H2vhIXeE7QPGKI+czFAxCmsRpHOJhD278qA6nAbyyIj2BXZCJNq63amR6OBMYsjp8E6S01B4Ccm/TauFX1+p3W3fZmdPpqFhjBbOtLOXUHvtF3wWb2Ly1QahbfYzFzxLgtuIqgRDBSluw3/ObGMNt0vneQ45Qk6hfHI3bCqfWknq4NKf6qnxmTXUXUD+9ys7G3YFlPQnvk6RwoJXnCt5NHr1YbUwFI9J/S3zmhWXi/PwO+vc4a4muD+SevL2BMlZ1/YheLU7+YKefecYMuvnMLEtjHlva+ZLzR/MWnwKk+kTfSA7EDCo49rZk+8TPm55kRlidz6ZQttJBXnJuJrU0yAYdA1t8JCUoSZgCn148cjVuaGQe71fv5JH8nihatxTycyxtIE= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW3PR11MB4571.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(23010399003)(1800799024)(376014)(52116014)(366016)(261102123227099003)(261028144727099003)(261026140227099003)(261026121527099003)(261022113327099003)(261022075727099003)(261021135927099003)(261022105027099003)(261021123027099003)(261021121427099003)(38350700014)(11063799006)(10067099003)(260925021911599003)(260925022911599003)(260925021311599003)(56012099006)(18002099003)(261009223027099003)(261009221727099003)(261009223327099003)(261009220027099003)(29003799003)(6133799003)(12006099003)(25016099003)(261009221227099003)(3023799007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?rxPowVqU5Jrh3gytGR8+hNjQrNF7?= =?utf-8?q?Vv6ykPZ6Kg5VvsoyD+16yllP1UiIWLWS4gXbaywkqMUm8qlOLjxYkm9hyfyqujRZE?= =?utf-8?q?rnrFjnpF6beF/x3zhl73h5ywRSiezLSWevv7VRECJkLu9tGqOJGvKgBansrfwo6HO?= =?utf-8?q?Xa4xF4g226Fcr2f/a4WX6KITZozoKJZApbe9DEwq8UvmYMR+FbRDYsoj0MbA1AWbN?= =?utf-8?q?YjYKQmyygOOJcWhlMzXfH+MMayHmcWTzLkxY3PVutWZcdhqa/8tvPaXZ2RN5cYORF?= =?utf-8?q?QfDxPKh7xp3MeH1hv4WJQPgQ4Bcfw/t9ijkWJQMOXZDbgyie70fptN7ynENoV24Ax?= =?utf-8?q?JyNFX6DEgrSNY+8iSdVjDO94MhI7Fk11wfV5pdBLkpkCs72E6tBJP+Np5ZIUmoHSj?= =?utf-8?q?v+rT5qwaeyN3rj/V/MjMfZRJOZ35to1phaXULARFo14FD4aLLp4lURl1cyZdOAcF6?= =?utf-8?q?XBqXl4iIUNYaRx6s7C6f4NDEc8gIv9CT7R7gHAkOR9UAeew5guVpiHG9FLyf9o5Bt?= =?utf-8?q?OfPvp3c51wfFtkZuWfMKVN/kih2nG6+F+/JZQN4bLlrxecDYswzOOuyy1QjUfY2jG?= =?utf-8?q?qKIX6IpSi/CqAvNBKs3Afa9V4wLRxescCXhveXypOavNLi1fwekytO9gVTqkCE2BI?= =?utf-8?q?YM6yq9QpjfWEJTW000t795ie7R02mjH+h+e4WqugUlVNY7WCn9pkkilcNbsvk3ueo?= =?utf-8?q?1U2qjtjNK9YuKz0lLf63Avg8vi1PQby+c40RpJ0HaUHER5xpX27AaIzYnDjtQS7Zl?= =?utf-8?q?krtvsf/HOmnYtZMQo88N6zDjcVjaaHVQhw4bw0OBVeDSJqeSdhTqBYIiv/DV6MeMq?= =?utf-8?q?sauaKw1Hu7X6IBXjJTa+jvvt9l5qAzPofMyfa7gHQwD83wZhtEeyRG2oyrgY04cP4?= =?utf-8?q?cOSsYQ9OkpeHt31nl5Ia/r4hhSZAQWLit8kYHj2lx4hLcUqODYrO2ZIPNqg1HOIUC?= =?utf-8?q?ipn66asyhM4TsVAbxrjMRoLKGo/USG86CVYszBAZNSCsLyGaS1p906bJWXeAJ2a2h?= =?utf-8?q?ZaUEYMnPPx4pGDZVl5BCV9qE0cTzWZxwRXBrim8R38MAty3R/xsecx/O1B2tXFExk?= =?utf-8?q?9Rol/x01vGogJOQbBeVzyz5t4MJG+ryzBXgnS2+pzD7py2bQCviuEcgMV9jItvrEy?= =?utf-8?q?dRfanLHbgc3L5nNZNYzL88TxoHQwg5A9gr6aHMCh35Wgg3UaFnrXvAqrngVHfDiuk?= =?utf-8?q?kzcg3gAyaEVZ5VjV0ZBP4jLvebNgr+GWamsx3SRuL3La0/PwuhDnj4mqw74LyJgj2?= =?utf-8?q?CrViwHA9fwVHFzbLYtVed8K93LNofdznJZsKSRFqaIA+0QMBgvrfMvJzOlF3QI49P?= =?utf-8?q?Ui+zGAa3wPi4NpMdRP3yJdkci1l72BUyj8v/pWU4ncig1+Ug94LiufwysfpCUB9n0?= =?utf-8?q?8RpGbv8rc8MWbwdo6MEq6C1yumFY+4+rHypZgAnF1kjK5mKe63dTOIMgGMgPGG6Ns?= =?utf-8?q?I9loFo/LDehRYlBZMeRL6HRtSQ3me+nYDxCWU2zDiexNBxeT/8WSfrSj2LJzN7cdY?= =?utf-8?q?U4JHy8lZqd4pZ9VjDPhHCNlDTHexc5sdnfpMDky2YWHA7L8586MxKM9OgWLsiZ13N?= =?utf-8?q?zlx1lDJ2P4z1xxefmnMyVFKFqJA3alkm9XmoBoVwhU8/H2E6GQtXEylhtIgjdh2xQ?= =?utf-8?q?xL92diN4Dfji6Mnwz6o0Cg+RIk6eZT1Q6NqS/1cL4IvXG3LICOqZo=3D?= X-Exchange-RoutingPolicyChecked: RP8xTtx5WY4ldSJHqVUiJnlFEi4a/5Bpc1hi9zWTm3NCTYbXgYmmu+CpF4121Pb9mJ/hf3058HtuAn2rYB44YLxNmpX4ZHdh/lbGsNBeLtyWF3n/B/mRsojMxgF11bfm3gr1kJleC6K0Lw3MH3hIUJ1rlOkMr/GMkJ9pyiTA3+MToGzRefAfFx7aOUkBlG620BmtmO1QhHe9B5vZDSac3d87Yx6GQXsYzOec0Xf26xnbJAZUglYwASa5lJROl1cs3Yt12C5Vno/7rNJKv9ftXUh+1dSGmdJYUcSEDVgooasA2W3sQUF8P+LyOU71d/Ap9p98GgDTQ1JpTMHwzxX38A== X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: ada0cb13-a678-490f-0196-08df44b4f2b1 X-MS-Exchange-CrossTenant-AuthSource: MW3PR11MB4571.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2026 14:13:26.8851 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 5At5AeGY4z9sN4JCfxN1PS8uifndHaiMfwshwgIadsYZnD/m+6QLd1ttPn/VM4i9OiPaDwsR8cDezhPWirCsly6WERyfqsMMN4YPsOIcoEs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR11MB8764 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTE3MDA1NiBTYWx0ZWRfX1w3zpYw0BC2q 9MqKr5rel1Eal85hqVdalLyEIW+LB8ScyqQeXpPE/O51kvsEOd9hC8sS8wiWKdqV7P8ptonC1dz XgprWcD57W08bb/XaJ4lwmxqtByM5WnzmZAlo21a25S/WZV7kqq06LjcUhwETdc432vmVVXrrBV f1DpSkXJ5VWU0He9CgHRWgFDYBYaYkPbubjqKHDbtKMTaRg6fiiD2q+3mbKWfVklBqqV9GwCOd2 WSpnp1iCOE+tuzPODgErnQJy0ptmO3H+0CPtR+8RIAVC5lSV9yFb3CvYDC/HZsVlFoLYdCkoW6z b4UCo91/wV5w4qOTAUfAQvK7KdrH79kjaQu1k5Wi+FMv8PtauI9dP0Tihb+wv6fSspdg99AS0GG ASINgyZZwecW9udtdiacOPBMfrjVufw8kWKGnXJ8bR4hprSYVur8Wyk0RgxpqW7UwXFH99upx0L zENmynM1naNqEiRp7ng== X-Proofpoint-ORIG-GUID: ATith1bl-owetRszvCpNBWd9_HNUGZ9v X-Proofpoint-GUID: ATith1bl-owetRszvCpNBWd9_HNUGZ9v X-Authority-Analysis: v=2.4 cv=WcmZ+EhX c=1 sm=1 tr=0 ts=6afc610b cx=c_pps a=7Kp79o39qosEjZWU4lqIzQ==:117 a=6eWqkTHjU83fiwn7nKZWdM+Sl24=:19 a=z/mQ4Ysz8XfWz/Q5cLBRGdckG28=:19 a=lCpzRmAYbLLaTzLvsPZ7Mbvzbb8=:19 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=VkNPw1HP01LnGYTKEx00:22 a=bi6dqmuHe4P4UrxVR6um:22 a=iKiJcTA2PjBS6x5JeXcw:22 a=j57RdskLAAAA:20 a=ei4SEBeUAAAA:8 a=NEAV23lmAAAA:8 a=Q4-j1AaZAAAA:8 a=t7CeM3EgAAAA:8 a=7CQSdrXTAAAA:8 a=iGHA9ds3AAAA:8 a=8wEic9LhAAAA:8 a=ag1SF4gXAAAA:8 a=I3kfGSCJAAAA:8 a=pGLkceISAAAA:8 a=zjtiufAZAAAA:8 a=fUgN62gMh-b4hKlZoN8A:9 a=61hOwWNymeJm83Ye:21 a=QEXdDO2ut3YA:10 a=8zIOOLb7Ym0NljyPXbuS:22 a=9H3Qd4_ONW2Ztcrla5EB:22 a=FdTzh2GWekK77mhwV6Dw:22 a=a-qgeE7W1pNrGK8U0ZQC:22 a=nM-MV4yxpKKO9kiQg6Ot:22 a=M9VCcFR7d36vLOFuqMn8:22 a=Yupwre4RP9_Eg_Bd0iYG:22 a=IQfVYk39sIGuNIfSrgEu:22 a=2tRhtM0yMehlNRDZlsEQ:22 a=bA3UWDv6hWIuX7UZL3qL:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMTE3MDA1NiBTYWx0ZWRfX6FAy5eCYU3O8 C+Homb+jpIMqBdiAeJ6G0VOhtQM+NiW0hC+YomY81UcZ+rWuC4hfynTf2OsO6IBmG4QwzugEz5x lCvaH9RI7MikFPysJPRm9XOu+sJ0GUPSvHqp6wy3p/qf+Duf4lkV X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-17_02,2026-11-16_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 spamscore=0 clxscore=1015 priorityscore=1501 malwarescore=0 phishscore=0 suspectscore=0 adultscore=0 lowpriorityscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611170056 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 17 Nov 2026 14:13:34 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/250456 From: Hemanth Kumar M D Rust Changes: https://github.com/rust-lang/rust/releases/tag/1.100.0 Cargo Changes: https://doc.rust-lang.org/nightly/cargo/CHANGELOG.html Update local patches: 0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch cc-hash-object-names-relative-to-source-roots.patch Drop merged patches: 0003-bootstrap-skip-StdarchVerify-when-remote-testing.patch 0005-rustc-span-make-hygiene-encoding-order-deterministic.patch Backport 0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch to fix do_install with the new cargo lints [1]. libstd-rs: cargo now uses a new directory layout [2]. Each crate's artifacts are in build///out/ and deps/ is no longer created, so update do_install to copy the libraries from there. oe-selftest: exclude only the baseline revision of tests/ui/asm/arm-high-dregs.rs. It expects an error for the d16 register on an armv7 target without neon. OE's default configuration for qemuarm (tune-cortexa15.inc, DEFAULTTUNE cortexa15thf-neon) enables neon, so the expected error is not emitted [3]. Excluded tests: +---------+---------+---------+ | Before | After | Skipped | +---------+---------+---------+ | 44 | 45 | +1 | +---------+---------+---------+ [1] https://github.com/rust-lang/cargo/pull/17298 [2] https://github.com/rust-lang/cargo/pull/17354 [3] https://github.com/rust-lang/rust/blob/1.100.0/tests/ui/asm/arm-high-dregs.rs Test results: rust v1.100.0 (from autobuilder) +-------------+---------+---------+ | Machine | Passed | Skipped | +-------------+---------+---------+ | qemux86-64 | 24201 | 1083 | | qemux86 | 23934 | 1352 | | qemuarm | 23914 | 1371 | | qemuarm64 | 24028 | 1258 | | qemuriscv64 | 23969 | 1315 | +-------------+---------+---------+ Test results difference (1.100.0 - 1.99.1): +-------------+--------+---------+ | Machine | Passed | Skipped | +-------------+--------+---------+ | qemux86-64 | +510 | +61 | | qemux86 | +506 | +67 | | qemuarm | +506 | +66 | | qemuarm64 | +506 | +67 | | qemuriscv64 | +505 | +66 | +-------------+--------+---------+ Signed-off-by: Hemanth Kumar M D --- meta/conf/distro/include/maintainers.inc | 2 +- meta/conf/distro/include/tcmode-default.inc | 2 +- meta/lib/oeqa/selftest/cases/rust.py | 1 + .../{cargo_1.99.1.bb => cargo_1.100.0.bb} | 0 ...teps-tool.rs-switch-off-lto-for-rust.patch | 27 +- ...ip-StdarchVerify-when-remote-testing.patch | 30 -- ...host-triple-from-unit-metadata-hash.patch} | 0 ...ess-tests-adjust-for-new-Cargo-lints.patch | 287 ++++++++++++++++++ ...hygiene-encoding-order-deterministic.patch | 59 ---- ...bject-names-relative-to-source-roots.patch | 40 ++- ...bstd-rs_1.99.1.bb => libstd-rs_1.100.0.bb} | 10 +- ...99.1.bb => rust-cross-canadian_1.100.0.bb} | 0 meta/recipes-devtools/rust/rust-snapshot.inc | 104 +++---- meta/recipes-devtools/rust/rust-source.inc | 7 +- ...ource_1.99.1.bb => rust-source_1.100.0.bb} | 0 .../rust/{rust_1.99.1.bb => rust_1.100.0.bb} | 0 16 files changed, 385 insertions(+), 184 deletions(-) rename meta/recipes-devtools/rust/{cargo_1.99.1.bb => cargo_1.100.0.bb} (100%) delete mode 100644 meta/recipes-devtools/rust/files/0003-bootstrap-skip-StdarchVerify-when-remote-testing.patch rename meta/recipes-devtools/rust/files/{0004-cargo-omit-host-triple-from-unit-metadata-hash.patch => 0003-cargo-omit-host-triple-from-unit-metadata-hash.patch} (100%) create mode 100644 meta/recipes-devtools/rust/files/0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch delete mode 100644 meta/recipes-devtools/rust/files/0005-rustc-span-make-hygiene-encoding-order-deterministic.patch rename meta/recipes-devtools/rust/{libstd-rs_1.99.1.bb => libstd-rs_1.100.0.bb} (77%) rename meta/recipes-devtools/rust/{rust-cross-canadian_1.99.1.bb => rust-cross-canadian_1.100.0.bb} (100%) rename meta/recipes-devtools/rust/{rust-source_1.99.1.bb => rust-source_1.100.0.bb} (100%) rename meta/recipes-devtools/rust/{rust_1.99.1.bb => rust_1.100.0.bb} (100%) diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index 97582abe99..62de04001e 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc @@ -787,7 +787,7 @@ RECIPE_MAINTAINER:pn-ruby = "Ross Burton " RECIPE_MAINTAINER:pn-run-postinsts = "Ross Burton " RECIPE_MAINTAINER:pn-rust = "Randy MacLeod " RECIPE_MAINTAINER:pn-rust-cross-canadian-${TRANSLATED_TARGET_ARCH} = "Randy MacLeod " -RECIPE_MAINTAINER:pn-rust-source-1.99.1 = "Deepesh Varatharajan " +RECIPE_MAINTAINER:pn-rust-source-1.100.0 = "Deepesh Varatharajan " RECIPE_MAINTAINER:pn-rxvt-unicode = "Unassigned " RECIPE_MAINTAINER:pn-sassc = "Simone Weiß " RECIPE_MAINTAINER:pn-sato-icon-theme = "Richard Purdie " diff --git a/meta/conf/distro/include/tcmode-default.inc b/meta/conf/distro/include/tcmode-default.inc index 6632f8ff97..4891d310ca 100644 --- a/meta/conf/distro/include/tcmode-default.inc +++ b/meta/conf/distro/include/tcmode-default.inc @@ -12,7 +12,7 @@ PREFERRED_PROVIDER_virtual/gettext ??= "gettext" GCCVERSION ?= "16.%" SDKGCCVERSION ?= "${GCCVERSION}" GLIBCVERSION ?= "2.44%" -RUSTVERSION ?= "1.99.1%" +RUSTVERSION ?= "1.100.0%" PREFERRED_VERSION_gcc ?= "${GCCVERSION}" PREFERRED_VERSION_gcc-cross-${TARGET_ARCH} ?= "${GCCVERSION}" diff --git a/meta/lib/oeqa/selftest/cases/rust.py b/meta/lib/oeqa/selftest/cases/rust.py index 645b5d5fbf..03af98345e 100644 --- a/meta/lib/oeqa/selftest/cases/rust.py +++ b/meta/lib/oeqa/selftest/cases/rust.py @@ -93,6 +93,7 @@ class RustSelfTestSystemEmulated(OESelftestTestCase, OEPTestResultTestCase): 'tests/rustdoc-js-std', 'tests/ui/abi/stack-probes-lto.rs', 'tests/ui/abi/stack-probes.rs', + 'tests/ui/asm/arm-high-dregs.rs#baseline', 'tests/ui/codegen/huge-stacks.rs', 'tests/ui/codegen/mismatched-data-layouts.rs', 'tests/codegen-llvm/rust-abi-arch-specific-adjustment.rs', diff --git a/meta/recipes-devtools/rust/cargo_1.99.1.bb b/meta/recipes-devtools/rust/cargo_1.100.0.bb similarity index 100% rename from meta/recipes-devtools/rust/cargo_1.99.1.bb rename to meta/recipes-devtools/rust/cargo_1.100.0.bb diff --git a/meta/recipes-devtools/rust/files/0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch b/meta/recipes-devtools/rust/files/0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch index 0bd32ecf61..7482c2a295 100644 --- a/meta/recipes-devtools/rust/files/0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch +++ b/meta/recipes-devtools/rust/files/0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch @@ -18,17 +18,21 @@ Upstream-Status: Inappropriate [reported at https://github.com/rust-lang/rust/is Signed-off-by: Alexander Kanavin Signed-off-by: Deepesh Varatharajan --- - src/bootstrap/src/core/build_steps/tool.rs | 19 +++---------------- + src/bootstrap/src/core/build_steps/tool.rs | 22 ++++------------------ src/bootstrap/src/core/builder/mod.rs | 2 +- - 2 files changed, 4 insertions(+), 17 deletions(-) + 2 files changed, 5 insertions(+), 19 deletions(-) +diff --git a/src/bootstrap/src/core/build_steps/tool.rs b/src/bootstrap/src/core/build_steps/tool.rs +index c4fae69..7c4e230 100644 --- a/src/bootstrap/src/core/build_steps/tool.rs +++ b/src/bootstrap/src/core/build_steps/tool.rs -@@ -13,14 +13,13 @@ +@@ -13,16 +13,16 @@ use std::ffi::OsStr; use std::path::{Path, PathBuf}; use std::{env, fs}; --use crate::core::build_steps::compile::is_lto_stage; +-use crate::core::build_steps::compile::{CargoMessage, is_lto_stage}; ++use crate::core::build_steps::compile::CargoMessage; + use crate::core::build_steps::dist::LLD_FILE_NAMES; use crate::core::build_steps::toolstate::ToolState; use crate::core::build_steps::{compile, llvm}; use crate::core::builder::{ @@ -36,12 +40,13 @@ Signed-off-by: Deepesh Varatharajan - StepMetadata, apply_pgo, cargo_profile_var, + StepMetadata, apply_pgo, }; + use crate::core::compiler::Compiler; -use crate::core::config::{Allocator, DebuginfoLevel, RustcLto, TargetSelection}; +use crate::core::config::{Allocator, DebuginfoLevel, TargetSelection}; + use crate::core::session::{FileType, Mode}; use crate::utils::exec::{BootstrapCommand, command}; use crate::utils::helpers::{self, add_dylib_path, exe, t}; - use crate::{Compiler, FileType, Mode}; -@@ -117,21 +116,7 @@ +@@ -121,21 +121,7 @@ impl Step for ToolBuild { cargo.env("RUSTC_WRAPPER", ccache); } @@ -64,14 +69,16 @@ Signed-off-by: Deepesh Varatharajan let pgo_config = match self.path { "src/tools/rustdoc" => Some(&builder.config.rustdoc_pgo), +diff --git a/src/bootstrap/src/core/builder/mod.rs b/src/bootstrap/src/core/builder/mod.rs +index c221a97..4af0fda 100644 --- a/src/bootstrap/src/core/builder/mod.rs +++ b/src/bootstrap/src/core/builder/mod.rs -@@ -13,7 +13,7 @@ +@@ -13,7 +13,7 @@ use clap::ValueEnum; #[cfg(feature = "tracing")] use tracing::instrument; --pub use self::cargo::{Cargo, apply_pgo, cargo_profile_var}; -+pub use self::cargo::{Cargo, apply_pgo}; - pub use crate::Compiler; +-pub(crate) use self::cargo::{Cargo, apply_pgo, cargo_profile_var}; ++pub(crate) use self::cargo::{Cargo, apply_pgo}; use crate::core::build_steps::compile::{Std, StdLink, looks_like_codegen_backend}; + use crate::core::build_steps::llvm::{LlvmKind, get_llvm_build_status}; use crate::core::build_steps::tool::RustcPrivateCompilers; diff --git a/meta/recipes-devtools/rust/files/0003-bootstrap-skip-StdarchVerify-when-remote-testing.patch b/meta/recipes-devtools/rust/files/0003-bootstrap-skip-StdarchVerify-when-remote-testing.patch deleted file mode 100644 index a57765f6ea..0000000000 --- a/meta/recipes-devtools/rust/files/0003-bootstrap-skip-StdarchVerify-when-remote-testing.patch +++ /dev/null @@ -1,30 +0,0 @@ -From ca4541f4241f48f8344bc8b8dd7fcbb476ea6900 Mon Sep 17 00:00:00 2001 -From: Deepesh Varatharajan -Date: Wed, 26 Aug 2026 03:49:52 -0700 -Subject: [PATCH] bootstrap: skip StdarchVerify when remote testing is enabled - -When TEST_DEVICE_ADDR is set for cross-testing, the StdarchVerify step -incorrectly attempts to run on the remote target. Since stdarch-verify -is a host-only verification tool, skip it when remote testing is enabled. - -Upstream-Status: Backport [https://github.com/rust-lang/rust/commit/ca4541f4241f48f8344bc8b8dd7fcbb476ea6900] -Signed-off-by: Deepesh Varatharajan - -diff --git a/src/bootstrap/src/core/build_steps/test.rs b/src/bootstrap/src/core/build_steps/test.rs -index a2d05f8..3753aec 100644 ---- a/src/bootstrap/src/core/build_steps/test.rs -+++ b/src/bootstrap/src/core/build_steps/test.rs -@@ -962,7 +962,12 @@ impl Step for StdarchVerify { - } - - fn make_run(run: RunConfig<'_>) { -- run.builder.ensure(StdarchVerify); -+ let builder = run.builder; -+ if builder.remote_tested(run.target) { -+ builder.info("remote testing is not supported by stdarch-verify. skipping"); -+ return; -+ } -+ builder.ensure(StdarchVerify); - } - - fn run(self, builder: &Builder<'_>) { diff --git a/meta/recipes-devtools/rust/files/0004-cargo-omit-host-triple-from-unit-metadata-hash.patch b/meta/recipes-devtools/rust/files/0003-cargo-omit-host-triple-from-unit-metadata-hash.patch similarity index 100% rename from meta/recipes-devtools/rust/files/0004-cargo-omit-host-triple-from-unit-metadata-hash.patch rename to meta/recipes-devtools/rust/files/0003-cargo-omit-host-triple-from-unit-metadata-hash.patch diff --git a/meta/recipes-devtools/rust/files/0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch b/meta/recipes-devtools/rust/files/0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch new file mode 100644 index 0000000000..6580b53af0 --- /dev/null +++ b/meta/recipes-devtools/rust/files/0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch @@ -0,0 +1,287 @@ +From daa24324904fa6aa460a22de733068c8dcb0323d Mon Sep 17 00:00:00 2001 +From: Mark Rousskov +Date: Tue, 29 Sep 2026 08:13:20 -0400 +Subject: [PATCH] Re-bless tests / adjust for new Cargo lints + +Cargo 1.100 added its own lints (rust-lang/cargo#17298) and rustc no +longer emits unused_crate_dependencies under cargo. The target and +nativesdk rust are built with cargo-native 1.100, so do_install fails on +the unfulfilled expect in rustc-main and on unused dependencies in +library/sysroot, as warnings are denied. + +rust-native is still built with the 1.99 snapshot, so keep the attribute +in compiler/rustc/src/main.rs as allow instead of dropping it. + +Upstream-Status: Backport [https://github.com/rust-lang/rust/commit/daa24324904fa6aa460a22de733068c8dcb0323d] +Signed-off-by: Hemanth Kumar M D +--- + compiler/rustc/src/main.rs | 2 +- + library/alloc/Cargo.toml | 4 ++++ + library/panic_unwind/Cargo.toml | 3 +++ + library/std/Cargo.toml | 4 ++++ + library/std_detect/Cargo.toml | 4 ++++ + library/sysroot/Cargo.toml | 5 +++++ + src/tools/clippy/clippy_test_deps/Cargo.toml | 4 ++++ + src/tools/miri/tests/deps/Cargo.toml | 4 ++++ + src/tools/miri/tests/deps/cross-crate-items/Cargo.toml | 4 ++++ + src/tools/rust-analyzer/Cargo.toml | 5 +++-- + src/tools/rust-analyzer/crates/macros/Cargo.toml | 3 +++ + .../crates/proc-macro-srv/proc-macro-test/Cargo.toml | 3 +++ + .../rust-analyzer/lib/ungrammar/ungrammar2json/Cargo.toml | 3 +++ + tests/ui/array-slice-vec/vec-res-add.stderr | 1 - + ...st_equality_comparison_instead_of_pattern_matching.stderr | 4 ---- + tests/ui/pattern/deref-patterns/implicit-const-deref.stderr | 1 - + tests/ui/pattern/issue-115599.stderr | 1 - + tests/ui/pattern/pattern-tyvar-2.stderr | 1 - + 18 files changed, 45 insertions(+), 11 deletions(-) + +diff --git a/compiler/rustc/src/main.rs b/compiler/rustc/src/main.rs +--- a/compiler/rustc/src/main.rs ++++ b/compiler/rustc/src/main.rs +@@ -1,7 +1,7 @@ + // We need this feature as it changes `dylib` linking behavior and allows us to link to `rustc_driver`. + #![feature(rustc_private)] + // Several crates are depended upon but unused so that they are present in the sysroot +-#![expect(unused_crate_dependencies)] ++#![allow(unused_crate_dependencies)] + + #[allow(unused_imports)] + use std::process::ExitCode; +diff --git a/library/alloc/Cargo.toml b/library/alloc/Cargo.toml +index b32e5e991cc74..a1071d2cde5f0 100644 +--- a/library/alloc/Cargo.toml ++++ b/library/alloc/Cargo.toml +@@ -31,3 +31,7 @@ check-cfg = [ + 'cfg(no_rc)', + 'cfg(no_sync)', + ] ++ ++[lints.cargo] ++# compiler-builtins is claimed unused? ++unused_dependencies = "allow" +diff --git a/library/panic_unwind/Cargo.toml b/library/panic_unwind/Cargo.toml +index 72c1041b46795..3b7805a205492 100644 +--- a/library/panic_unwind/Cargo.toml ++++ b/library/panic_unwind/Cargo.toml +@@ -18,3 +18,6 @@ unwind = { path = "../unwind" } + + [target.'cfg(not(all(windows, target_env = "msvc")))'.dependencies] + libc = { version = "0.2", default-features = false } ++ ++[lints.cargo] ++unused_dependencies = "allow" +diff --git a/library/std/Cargo.toml b/library/std/Cargo.toml +index 1d35b42a53947..67eebd820ca59 100644 +--- a/library/std/Cargo.toml ++++ b/library/std/Cargo.toml +@@ -167,3 +167,7 @@ check-cfg = [ + 'cfg(target_has_reliable_f128)', + 'cfg(target_has_reliable_f128_math)', + ] ++ ++[lints.cargo] ++# panic_abort is not directly used but must be linked in ++unused_dependencies = "allow" +diff --git a/library/std_detect/Cargo.toml b/library/std_detect/Cargo.toml +index a6785bb20555d..c03fff827d5cd 100644 +--- a/library/std_detect/Cargo.toml ++++ b/library/std_detect/Cargo.toml +@@ -24,3 +24,7 @@ libc = { version = "0.2.0", default-features = false } + + [features] + std_detect_env_override = [] ++ ++[lints.cargo] ++# libc is definitely used in code but the lint doesn't realize that (unclear why) ++unused_dependencies = "allow" +diff --git a/library/sysroot/Cargo.toml b/library/sysroot/Cargo.toml +index 10562389d62d3..cef5532857b5e 100644 +--- a/library/sysroot/Cargo.toml ++++ b/library/sysroot/Cargo.toml +@@ -32,3 +32,8 @@ optimize_for_size = ["std/optimize_for_size"] + panic-unwind = ["std/panic-unwind"] + profiler = ["dep:profiler_builtins"] + windows_raw_dylib = ["std/windows_raw_dylib"] ++ ++[lints.cargo] ++# We expect some of these dependencies to not actually be used since this is ++# just an aggregator crate. ++unused_dependencies = "allow" +diff --git a/src/tools/clippy/clippy_test_deps/Cargo.toml b/src/tools/clippy/clippy_test_deps/Cargo.toml +index 880df6599c1e4..c3d236a17e1bb 100644 +--- a/src/tools/clippy/clippy_test_deps/Cargo.toml ++++ b/src/tools/clippy/clippy_test_deps/Cargo.toml +@@ -18,3 +18,7 @@ itertools = "0.15" + + # Make sure we are not part of the rustc workspace. + [workspace] ++ ++[lints.cargo] ++# Not all tests use all of the above dependencies ++unused_dependencies = "allow" +diff --git a/src/tools/miri/tests/deps/Cargo.toml b/src/tools/miri/tests/deps/Cargo.toml +index a377141f98aaf..6b6d4a9e2f443 100644 +--- a/src/tools/miri/tests/deps/Cargo.toml ++++ b/src/tools/miri/tests/deps/Cargo.toml +@@ -37,3 +37,7 @@ windows-sys = { version = "0.61", features = [ + # Make sure we are not part of the rustc workspace. + [workspace] + members = ["cross-crate-items"] ++ ++[lints.cargo] ++# Not all tests use all of the above dependencies ++unused_dependencies = "allow" +diff --git a/src/tools/miri/tests/deps/cross-crate-items/Cargo.toml b/src/tools/miri/tests/deps/cross-crate-items/Cargo.toml +index 1f9fc93cd5237..ca6818dc0fe25 100644 +--- a/src/tools/miri/tests/deps/cross-crate-items/Cargo.toml ++++ b/src/tools/miri/tests/deps/cross-crate-items/Cargo.toml +@@ -5,3 +5,7 @@ edition = "2021" + + [dependencies] + futures = { version = "0.3.0", default-features = false, features = ["alloc", "async-await"] } ++ ++[lints.cargo] ++# panic_abort is not directly used but must be linked in ++unused_dependencies = "allow" +diff --git a/src/tools/rust-analyzer/Cargo.toml b/src/tools/rust-analyzer/Cargo.toml +index d77e89df45e44..54e82148665b6 100644 +--- a/src/tools/rust-analyzer/Cargo.toml ++++ b/src/tools/rust-analyzer/Cargo.toml +@@ -68,10 +68,8 @@ parser = { path = "./crates/parser", version = "0.0.0" } + paths = { path = "./crates/paths", version = "0.0.0" } + proc-macro-api = { path = "./crates/proc-macro-api", version = "0.0.0" } + proc-macro-srv = { path = "./crates/proc-macro-srv", version = "0.0.0" } +-proc-macro-srv-cli = { path = "./crates/proc-macro-srv-cli", version = "0.0.0" } + profile = { path = "./crates/profile", version = "0.0.0" } + project-model = { path = "./crates/project-model", version = "0.0.0" } +-query-group = { package = "query-group-macro", path = "./crates/query-group-macro", version = "0.0.0" } + span = { path = "./crates/span", version = "0.0.0" } + stdx = { path = "./crates/stdx", version = "0.0.0" } + syntax = { path = "./crates/syntax", version = "0.0.0" } +@@ -167,6 +165,9 @@ hashbrown = { version = "0.17.0", features = [ + # We need to freeze the version of the crate, as the raw-api feature is considered unstable + dashmap = { version = "=6.2.1", features = ["raw-api", "inline"] } + ++[workspace.lints.cargo] ++unused_dependencies = "allow" ++ + [workspace.lints.rust] + # remember to update RUSTFLAGS in ci.yml if you add something here + +diff --git a/src/tools/rust-analyzer/crates/macros/Cargo.toml b/src/tools/rust-analyzer/crates/macros/Cargo.toml +index 8184cc6d1c03d..b0d0000268588 100644 +--- a/src/tools/rust-analyzer/crates/macros/Cargo.toml ++++ b/src/tools/rust-analyzer/crates/macros/Cargo.toml +@@ -17,3 +17,6 @@ proc-macro2 = "1" + quote = "1" + syn = "2.0.9" + synstructure = "0.13.0" ++ ++[lints] ++workspace = true +diff --git a/src/tools/rust-analyzer/crates/proc-macro-srv/proc-macro-test/Cargo.toml b/src/tools/rust-analyzer/crates/proc-macro-srv/proc-macro-test/Cargo.toml +index 78630ddb4d7d8..668188340e5c8 100644 +--- a/src/tools/rust-analyzer/crates/proc-macro-srv/proc-macro-test/Cargo.toml ++++ b/src/tools/rust-analyzer/crates/proc-macro-srv/proc-macro-test/Cargo.toml +@@ -11,3 +11,6 @@ doctest = false + + [build-dependencies] + cargo_metadata = "0.23.0" ++ ++[lints] ++workspace = true +diff --git a/src/tools/rust-analyzer/lib/ungrammar/ungrammar2json/Cargo.toml b/src/tools/rust-analyzer/lib/ungrammar/ungrammar2json/Cargo.toml +index 0fa08bbbd0485..f17587e3f556c 100644 +--- a/src/tools/rust-analyzer/lib/ungrammar/ungrammar2json/Cargo.toml ++++ b/src/tools/rust-analyzer/lib/ungrammar/ungrammar2json/Cargo.toml +@@ -10,3 +10,6 @@ edition = "2024" + [dependencies] + write-json = "0.1.1" + ungrammar = { path = "../", version = "1.1.0" } ++ ++[lints] ++workspace = true +diff --git a/tests/ui/array-slice-vec/vec-res-add.stderr b/tests/ui/array-slice-vec/vec-res-add.stderr +index 6d5ad1d3c9694..4e13dbd0366d0 100644 +--- a/tests/ui/array-slice-vec/vec-res-add.stderr ++++ b/tests/ui/array-slice-vec/vec-res-add.stderr +@@ -8,7 +8,6 @@ LL | let k = i + j; + | + note: `Vec` does not implement `Add` + --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL +- ::: $SRC_DIR/alloc/src/vec/mod.rs:LL:COL + | + = note: `Vec` is defined in another crate + +diff --git a/tests/ui/consts/const_in_pattern/suggest_equality_comparison_instead_of_pattern_matching.stderr b/tests/ui/consts/const_in_pattern/suggest_equality_comparison_instead_of_pattern_matching.stderr +index ab823c8fc73b9..38440af675feb 100644 +--- a/tests/ui/consts/const_in_pattern/suggest_equality_comparison_instead_of_pattern_matching.stderr ++++ b/tests/ui/consts/const_in_pattern/suggest_equality_comparison_instead_of_pattern_matching.stderr +@@ -123,7 +123,6 @@ LL | V => {} + | ^ constant of non-structural type + | + --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL +- ::: $SRC_DIR/alloc/src/vec/mod.rs:LL:COL + | + = note: `Vec<()>` is not usable in patterns + | +@@ -144,7 +143,6 @@ LL | if let V = vec![] {} + | ^ constant of non-structural type + | + --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL +- ::: $SRC_DIR/alloc/src/vec/mod.rs:LL:COL + | + = note: `Vec<()>` is not usable in patterns + | +@@ -160,7 +158,6 @@ LL | let V = vec![] else { return; }; + | ^ constant of non-structural type + | + --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL +- ::: $SRC_DIR/alloc/src/vec/mod.rs:LL:COL + | + = note: `Vec<()>` is not usable in patterns + | +@@ -176,7 +173,6 @@ LL | let V = Vec::new() else { return; }; + | ^ constant of non-structural type + | + --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL +- ::: $SRC_DIR/alloc/src/vec/mod.rs:LL:COL + | + = note: `Vec<()>` is not usable in patterns + | +diff --git a/tests/ui/pattern/deref-patterns/implicit-const-deref.stderr b/tests/ui/pattern/deref-patterns/implicit-const-deref.stderr +index c03137fcc4151..7c176162ad184 100644 +--- a/tests/ui/pattern/deref-patterns/implicit-const-deref.stderr ++++ b/tests/ui/pattern/deref-patterns/implicit-const-deref.stderr +@@ -8,7 +8,6 @@ LL | EMPTY => {} + | ^^^^^ constant of non-structural type + | + --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL +- ::: $SRC_DIR/alloc/src/vec/mod.rs:LL:COL + | + = note: `Vec<()>` is not usable in patterns + | +diff --git a/tests/ui/pattern/issue-115599.stderr b/tests/ui/pattern/issue-115599.stderr +index 280516deba14b..f776623ff75b2 100644 +--- a/tests/ui/pattern/issue-115599.stderr ++++ b/tests/ui/pattern/issue-115599.stderr +@@ -8,7 +8,6 @@ LL | if let CONST_STRING = empty_str {} + | ^^^^^^^^^^^^ constant of non-structural type + | + --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL +- ::: $SRC_DIR/alloc/src/vec/mod.rs:LL:COL + | + = note: `Vec` is not usable in patterns + | +diff --git a/tests/ui/pattern/pattern-tyvar-2.stderr b/tests/ui/pattern/pattern-tyvar-2.stderr +index 4761a4e829b85..6676d5129872b 100644 +--- a/tests/ui/pattern/pattern-tyvar-2.stderr ++++ b/tests/ui/pattern/pattern-tyvar-2.stderr +@@ -8,7 +8,6 @@ LL | fn foo(t: Bar) -> isize { match t { Bar::T1(_, Some(x)) => { return x * 3; + | + note: `Vec` does not implement `Mul<{integer}>` + --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL +- ::: $SRC_DIR/alloc/src/vec/mod.rs:LL:COL + | + = note: `Vec` is defined in another crate + diff --git a/meta/recipes-devtools/rust/files/0005-rustc-span-make-hygiene-encoding-order-deterministic.patch b/meta/recipes-devtools/rust/files/0005-rustc-span-make-hygiene-encoding-order-deterministic.patch deleted file mode 100644 index 47a713f82e..0000000000 --- a/meta/recipes-devtools/rust/files/0005-rustc-span-make-hygiene-encoding-order-deterministic.patch +++ /dev/null @@ -1,59 +0,0 @@ -From 9c190d14f93bf27c7f1c94d400cda6f48f285a34 Mon Sep 17 00:00:00 2001 -From: Alejandro Enedino Hernandez Samaniego -Date: Tue, 15 Sep 2026 17:05:36 +0530 -Subject: [PATCH] rust: sort syntax contexts and expansions before encoding - -HygieneEncodeContext encodes the pending syntax contexts and expansions in -hash-map order, so the encoded rmeta depends on the build host. Sort both -before encoding. Upstream has fixed the same problem with a different -approach in https://github.com/rust-lang/rust/pull/161450, merged after -rust 1.99 branched, so this stays a local fix rather than a backport -until a rust upgrade contains it. - -Patch by Alejandro Enedino Hernandez Samaniego, from his strict-version-hash -v5 series for openembedded-core: -https://lists.openembedded.org/g/openembedded-core/topic/120939810 - -Upstream-Status: Inappropriate [OE-specific] - -Signed-off-by: Alejandro Enedino Hernandez Samaniego -Signed-off-by: Sunil Dora ---- - compiler/rustc_span/src/hygiene.rs | 10 ++++++---- - 1 file changed, 6 insertions(+), 4 deletions(-) - -diff --git a/compiler/rustc_span/src/hygiene.rs b/compiler/rustc_span/src/hygiene.rs -index 1c74205..a464eca 100644 ---- a/compiler/rustc_span/src/hygiene.rs -+++ b/compiler/rustc_span/src/hygiene.rs -@@ -1313,12 +1313,12 @@ impl HygieneEncodeContext { - - // Consume the current round of syntax contexts. - // Drop the lock() temporary early. -- // It's fine to iterate over a HashMap, because the serialization of the table -- // that we insert data into doesn't depend on insertion order. - #[allow(rustc::potential_query_instability)] -- let latest_ctxts = { mem::take(&mut *self.latest_ctxts.lock()) }.into_iter(); -+ let mut latest_ctxts: Vec<_> = { mem::take(&mut *self.latest_ctxts.lock()) }.into_iter().collect(); -+ latest_ctxts.sort_by_key(|ctxt| ctxt.0); - let all_ctxt_data: Vec<_> = HygieneData::with(|data| { - latest_ctxts -+ .into_iter() - .map(|ctxt| (ctxt, data.syntax_context_data[ctxt.0 as usize].key())) - .collect() - }); -@@ -1330,9 +1330,11 @@ impl HygieneEncodeContext { - - // Same as above, but for expansions instead of syntax contexts. - #[allow(rustc::potential_query_instability)] -- let latest_expns = { mem::take(&mut *self.latest_expns.lock()) }.into_iter(); -+ let mut latest_expns: Vec<_> = { mem::take(&mut *self.latest_expns.lock()) }.into_iter().collect(); -+ latest_expns.sort_by_key(|expn| (expn.krate, expn.local_id)); - let all_expn_data: Vec<_> = HygieneData::with(|data| { - latest_expns -+ .into_iter() - .map(|expn| (expn, data.expn_data(expn).clone(), data.expn_hash(expn))) - .collect() - }); --- -2.43.0 diff --git a/meta/recipes-devtools/rust/files/cc-hash-object-names-relative-to-source-roots.patch b/meta/recipes-devtools/rust/files/cc-hash-object-names-relative-to-source-roots.patch index c128bd7144..e0218bf5ad 100644 --- a/meta/recipes-devtools/rust/files/cc-hash-object-names-relative-to-source-roots.patch +++ b/meta/recipes-devtools/rust/files/cc-hash-object-names-relative-to-source-roots.patch @@ -15,7 +15,7 @@ CARGO_MANIFEST_DIR as upstream already did. The OUT_DIR part is generic and is merged upstream as rust-lang/cc-rs commit fe27e7b6262, in a slightly different shape: the upstream tree -moved on from the cc 1.2.0 that rust vendors, so the change here keeps +moved on from the cc 1.4.3 that rust vendors, so the change here keeps the form that fits these sources. RUST_COMPILER_RT_ROOT is set by rust's own build system, so that part stays local to this patch. @@ -23,38 +23,34 @@ Upstream-Status: Backport [https://github.com/rust-lang/cc-rs/commit/fe27e7b6262 Signed-off-by: Sunil Dora --- - vendor/cc-1.2.0/.cargo-checksum.json | 2 +- - vendor/cc-1.2.0/src/command_helpers.rs | 18 +++++++++++++++--- + vendor/cc-1.4.3/.cargo-checksum.json | 2 +- + vendor/cc-1.4.3/src/command_helpers.rs | 18 +++++++++++++++--- 2 files changed, 16 insertions(+), 4 deletions(-) -diff --git a/vendor/cc-1.2.0/.cargo-checksum.json b/vendor/cc-1.2.0/.cargo-checksum.json -index 470ecbb..2ff8a08 100644 ---- a/vendor/cc-1.2.0/.cargo-checksum.json -+++ b/vendor/cc-1.2.0/.cargo-checksum.json +diff --git a/vendor/cc-1.4.3/.cargo-checksum.json b/vendor/cc-1.4.3/.cargo-checksum.json +index cc4144e..a8ab1fc 100644 +--- a/vendor/cc-1.4.3/.cargo-checksum.json ++++ b/vendor/cc-1.4.3/.cargo-checksum.json @@ -1 +1 @@ --{"$comment":"This file only protects against accidental modifications. It is not a security mechanism and does not protect against malicious changes.","files":{".cargo_vcs_info.json":"d6e26674a9d7de87dab83262a14f2377988a1e087e4b514f3983f8dd141ea813","CHANGELOG.md":"fb0a3bcb34301d2578bef86feabe93057068cb1906a7f10b584f58ff6123e8c6","Cargo.lock":"b661254fadca74408d53742755b371f7ae29e501e851aeae13bcd14a51883321","Cargo.toml":"50debe1b2fc050e8b305bdd514509d98cdbc59e96e5f10888df4b6fca19d3a75","Cargo.toml.orig":"0aff9dc74ddbe3bfe89ad9698212a6a18d6124b9593780aad25e277d28e9a71f","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"378f5840b258e2779c39418f3f2d7b2ba96f1c7917dd6be0713f88305dbda397","README.md":"f1ddbede208a5b78333a25dac0a7598e678e9b601a7d99a791069bddaf180dfe","clippy.toml":"aa7850db4350883c8f373bd0d6b4d19bf3b75f13c1c238e24368c109cb52fb1d","src/command_helpers.rs":"b766a70e39b8ea7bb57afd288bcac205a23f6a26ac5619cb1d5b10f70c5dfdea","src/detect_compiler_family.c":"97ca4b021495611e828becea6187add37414186a16dfedd26c2947cbce6e8b2f","src/lib.rs":"221ba9475100303b5c694b2a02e5353452ee08a29e4e4d4d67ea8fcbd87605df","src/parallel/async_executor.rs":"4ce24435fff6b6555b43fee042c16bd65d4150d0346567f246b9190d85b45983","src/parallel/job_token.rs":"018a01cb00182270bbcb68e31e7a7c5c621a95f086e4c68cfa2bf557ac24e5f2","src/parallel/mod.rs":"bd9c1334d17d138c281961c690b8d8118a2d6295a7d6cd7296826255436fa063","src/parallel/stderr.rs":"74384d41198740a6fce0877f144262db09fb091225fa8fbfa771314bb11487c6","src/target.rs":"7313240db078ad85c1209a42a5fa96c3692b5d6e5093c7f366a1b99677247109","src/target/apple.rs":"6afbecac9f66aa72db55694413532f80b2753f28466a6213d1aa901a03c78bcd","src/target/generated.rs":"af067e1c291e895ddb591f92534eed0c48977cdb2b58f8239423e07c6de31cd3","src/target/llvm.rs":"e1db4a7fb8b905ee9853781f2fcc64a9d3b48154e4c8b6cb12f5373c5935da6e","src/target/parser.rs":"4f2129a24273d62bf8ab339098e7f758e4e42b0df369dd2b0eb1b20726be91f8","src/tempfile.rs":"ebafb5b0e5d08b0706916ed911d4245240e60c3e2d0c9a1630c520842988a2b3","src/tool.rs":"2e6550062e021f2b394388172bbb01e86fe6a94d2395bcb3c85a9e86690da1a9","src/utilities.rs":"52b30b24a1c31cdefb105309ee5220cfc9fca76eaf4e6d6509c3e19f431448fe","src/windows/com.rs":"a2800ddb81215fff2bf618336f5c4ff8e8bdb746dd18b795873c7304b3f2a5e3","src/windows/find_tools.rs":"0ff410bd71f08ee88e99609c15be5f1bc16ad7bd07a83918d13a70c8465642e2","src/windows/mod.rs":"34cfa201cfbcac7ccaa3ea5295d3e4200439af3cc5c6433baf81502596040a89","src/windows/registry.rs":"c521b72c825e8095843e73482ffa810ed066ad8bb9f86e6db0c5c143c171aba1","src/windows/setup_config.rs":"754439cbab492afd44c9755abcbec1a41c9b2c358131cee2df13c0e996dbbec8","src/windows/vs_instances.rs":"946527cf8fd32c3472f6a2884dcdec290763101097334c7478f9c24c3950db6b","src/windows/winapi.rs":"250d51c1826d1a2329e9889dd9f058cfce253dbf2a678b076147c6cdb5db046c","src/windows/windows_sys.rs":"e2714c8307bfa083b9745eb0e46cadd7f98d7b88abf45a7637172019324e34b8","src/windows/windows_targets.rs":"5b4648ebc22b028caca9f4b4bf8881fe2d094b7bec217264ba2e6e2c49d1ccee"},"package":"1aeb932158bd710538c73702db6945cb68a8fb08c519e6e12706b94263b36db8"} +-{"$comment":"This file only protects against accidental modifications. It is not a security mechanism and does not protect against malicious changes.","files":{".cargo_vcs_info.json":"067dd1727a66bb81a833e7ff9ed732d0a26c4dfb6f78600884cf20cc766b379e",".tombi.toml":"93f57361f60b03b6c14ede301446e5e2658abaa98cac39a4a96be0966b6b851a","CHANGELOG.md":"7e2c9bec874d564ceeedfa88587ab86f45d8a3d3df4a6f6ef19ad3db3997d74e","Cargo.lock":"f309ad15b2b17d7ff090e11005112ad2ed04495da92d8d11f758adb69c87d273","Cargo.toml":"c424f930665aa062f43c448c2837c98f9aad434a95cce4400605b0f2af7c820e","Cargo.toml.orig":"d1fc79a63899b64a816fe5595b403c27ade4612ea58c0e88556c05d307b431f0","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"378f5840b258e2779c39418f3f2d7b2ba96f1c7917dd6be0713f88305dbda397","README.md":"cc952a506dc726eed3e128d47d62defbac4470bbb0e465f6a043ae8bf0c96d19","clippy.toml":"cf46251b0953d1a3c7a4f8f8941a08d8a416d5fc348dfe3f3c520eb93fcc18ea","src/command_helpers.rs":"650c9682edc3d7732249e327c1026c7cc733f3702f4867b9580223e97522d3c6","src/detect_compiler_family.c":"97ca4b021495611e828becea6187add37414186a16dfedd26c2947cbce6e8b2f","src/flags.rs":"1a80855f51db6808cdcb5c0e6bd1c0973e86463014082ef7ed1d0fbe7b89cf93","src/lib.rs":"61391623eed3591d6d06977867b7a772348daa1385c1fefd8e82ab8e9adbc71b","src/parallel/async_executor.rs":"4ce24435fff6b6555b43fee042c16bd65d4150d0346567f246b9190d85b45983","src/parallel/command_runner.rs":"1d17d9a037de93b31cc7ee6a914a1e1f6c1ac156cf8619f0014dcbaca6a0b215","src/parallel/job_token.rs":"1aa1ecc639e09845eea0f1e11a76c39ad2604eaac3268059652f56add8890089","src/parallel/mod.rs":"bf156170790d40a76015a8c78cc2a391cbe1b60bb96c1fac1d047d26e342386a","src/parallel/stderr.rs":"b68d728087667fd568921d61cd40d0dc6b56c59bde6e671cb50cb0c43dcdf56d","src/target.rs":"a9d2d347a3a08015531f00b32bc8a7478f5636822cc8e0237ea9efa3f07d4cd4","src/target/apple.rs":"da9411b2c4db419e0fa39f765ee53b8665b3837fb39827679a53238734a4a1c1","src/target/generated.rs":"f93008829c57e9da3f5d6ac84643c04d8438a319fe9517533604dfe47e9cb8d7","src/target/llvm.rs":"525680a605fb57e038c3103d3efc9201c1af7b99162adf5dbc399da1d5007efe","src/target/parser.rs":"5ea311fc57b6a6d1aecd7e5433ee5f79b403b58e40be18650fdd81cf514614cb","src/tempfile.rs":"77963fe55b63d3a30cccae46f763b8d61ed722247fe208e8485858770f6a67f7","src/tool.rs":"52a7bc134154fde7fecb1ef691f0179eb617e2f17a10d71dfa71afbcb061555b","src/utilities.rs":"ebb59ac01fb9588bcea0d0ee786e5d5a5696b4284a1245657625db03e830b72e"},"package":"509591b7bcd67f4ef775afad7662703b4935daaa6ec0e5605cfb1090b32a2b6d"} \ No newline at end of file -+{"$comment":"This file only protects against accidental modifications. It is not a security mechanism and does not protect against malicious changes.","files":{".cargo_vcs_info.json":"d6e26674a9d7de87dab83262a14f2377988a1e087e4b514f3983f8dd141ea813","CHANGELOG.md":"fb0a3bcb34301d2578bef86feabe93057068cb1906a7f10b584f58ff6123e8c6","Cargo.lock":"b661254fadca74408d53742755b371f7ae29e501e851aeae13bcd14a51883321","Cargo.toml":"50debe1b2fc050e8b305bdd514509d98cdbc59e96e5f10888df4b6fca19d3a75","Cargo.toml.orig":"0aff9dc74ddbe3bfe89ad9698212a6a18d6124b9593780aad25e277d28e9a71f","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"378f5840b258e2779c39418f3f2d7b2ba96f1c7917dd6be0713f88305dbda397","README.md":"f1ddbede208a5b78333a25dac0a7598e678e9b601a7d99a791069bddaf180dfe","clippy.toml":"aa7850db4350883c8f373bd0d6b4d19bf3b75f13c1c238e24368c109cb52fb1d","src/command_helpers.rs":"010873ba1ab0ea4b7e3b5eac72aed5f50e535d42cb94da943d2aa3d74904aa0f","src/detect_compiler_family.c":"97ca4b021495611e828becea6187add37414186a16dfedd26c2947cbce6e8b2f","src/lib.rs":"221ba9475100303b5c694b2a02e5353452ee08a29e4e4d4d67ea8fcbd87605df","src/parallel/async_executor.rs":"4ce24435fff6b6555b43fee042c16bd65d4150d0346567f246b9190d85b45983","src/parallel/job_token.rs":"018a01cb00182270bbcb68e31e7a7c5c621a95f086e4c68cfa2bf557ac24e5f2","src/parallel/mod.rs":"bd9c1334d17d138c281961c690b8d8118a2d6295a7d6cd7296826255436fa063","src/parallel/stderr.rs":"74384d41198740a6fce0877f144262db09fb091225fa8fbfa771314bb11487c6","src/target.rs":"7313240db078ad85c1209a42a5fa96c3692b5d6e5093c7f366a1b99677247109","src/target/apple.rs":"6afbecac9f66aa72db55694413532f80b2753f28466a6213d1aa901a03c78bcd","src/target/generated.rs":"af067e1c291e895ddb591f92534eed0c48977cdb2b58f8239423e07c6de31cd3","src/target/llvm.rs":"e1db4a7fb8b905ee9853781f2fcc64a9d3b48154e4c8b6cb12f5373c5935da6e","src/target/parser.rs":"4f2129a24273d62bf8ab339098e7f758e4e42b0df369dd2b0eb1b20726be91f8","src/tempfile.rs":"ebafb5b0e5d08b0706916ed911d4245240e60c3e2d0c9a1630c520842988a2b3","src/tool.rs":"2e6550062e021f2b394388172bbb01e86fe6a94d2395bcb3c85a9e86690da1a9","src/utilities.rs":"52b30b24a1c31cdefb105309ee5220cfc9fca76eaf4e6d6509c3e19f431448fe","src/windows/com.rs":"a2800ddb81215fff2bf618336f5c4ff8e8bdb746dd18b795873c7304b3f2a5e3","src/windows/find_tools.rs":"0ff410bd71f08ee88e99609c15be5f1bc16ad7bd07a83918d13a70c8465642e2","src/windows/mod.rs":"34cfa201cfbcac7ccaa3ea5295d3e4200439af3cc5c6433baf81502596040a89","src/windows/registry.rs":"c521b72c825e8095843e73482ffa810ed066ad8bb9f86e6db0c5c143c171aba1","src/windows/setup_config.rs":"754439cbab492afd44c9755abcbec1a41c9b2c358131cee2df13c0e996dbbec8","src/windows/vs_instances.rs":"946527cf8fd32c3472f6a2884dcdec290763101097334c7478f9c24c3950db6b","src/windows/winapi.rs":"250d51c1826d1a2329e9889dd9f058cfce253dbf2a678b076147c6cdb5db046c","src/windows/windows_sys.rs":"e2714c8307bfa083b9745eb0e46cadd7f98d7b88abf45a7637172019324e34b8","src/windows/windows_targets.rs":"5b4648ebc22b028caca9f4b4bf8881fe2d094b7bec217264ba2e6e2c49d1ccee"},"package":"1aeb932158bd710538c73702db6945cb68a8fb08c519e6e12706b94263b36db8"} ++{"$comment":"This file only protects against accidental modifications. It is not a security mechanism and does not protect against malicious changes.","files":{".cargo_vcs_info.json":"067dd1727a66bb81a833e7ff9ed732d0a26c4dfb6f78600884cf20cc766b379e",".tombi.toml":"93f57361f60b03b6c14ede301446e5e2658abaa98cac39a4a96be0966b6b851a","CHANGELOG.md":"7e2c9bec874d564ceeedfa88587ab86f45d8a3d3df4a6f6ef19ad3db3997d74e","Cargo.lock":"f309ad15b2b17d7ff090e11005112ad2ed04495da92d8d11f758adb69c87d273","Cargo.toml":"c424f930665aa062f43c448c2837c98f9aad434a95cce4400605b0f2af7c820e","Cargo.toml.orig":"d1fc79a63899b64a816fe5595b403c27ade4612ea58c0e88556c05d307b431f0","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"378f5840b258e2779c39418f3f2d7b2ba96f1c7917dd6be0713f88305dbda397","README.md":"cc952a506dc726eed3e128d47d62defbac4470bbb0e465f6a043ae8bf0c96d19","clippy.toml":"cf46251b0953d1a3c7a4f8f8941a08d8a416d5fc348dfe3f3c520eb93fcc18ea","src/command_helpers.rs":"f878c574ad193473ef07d9b41afe4f7c27b735cc33492615a53c7a454aee3cc9","src/detect_compiler_family.c":"97ca4b021495611e828becea6187add37414186a16dfedd26c2947cbce6e8b2f","src/flags.rs":"1a80855f51db6808cdcb5c0e6bd1c0973e86463014082ef7ed1d0fbe7b89cf93","src/lib.rs":"61391623eed3591d6d06977867b7a772348daa1385c1fefd8e82ab8e9adbc71b","src/parallel/async_executor.rs":"4ce24435fff6b6555b43fee042c16bd65d4150d0346567f246b9190d85b45983","src/parallel/command_runner.rs":"1d17d9a037de93b31cc7ee6a914a1e1f6c1ac156cf8619f0014dcbaca6a0b215","src/parallel/job_token.rs":"1aa1ecc639e09845eea0f1e11a76c39ad2604eaac3268059652f56add8890089","src/parallel/mod.rs":"bf156170790d40a76015a8c78cc2a391cbe1b60bb96c1fac1d047d26e342386a","src/parallel/stderr.rs":"b68d728087667fd568921d61cd40d0dc6b56c59bde6e671cb50cb0c43dcdf56d","src/target.rs":"a9d2d347a3a08015531f00b32bc8a7478f5636822cc8e0237ea9efa3f07d4cd4","src/target/apple.rs":"da9411b2c4db419e0fa39f765ee53b8665b3837fb39827679a53238734a4a1c1","src/target/generated.rs":"f93008829c57e9da3f5d6ac84643c04d8438a319fe9517533604dfe47e9cb8d7","src/target/llvm.rs":"525680a605fb57e038c3103d3efc9201c1af7b99162adf5dbc399da1d5007efe","src/target/parser.rs":"5ea311fc57b6a6d1aecd7e5433ee5f79b403b58e40be18650fdd81cf514614cb","src/tempfile.rs":"77963fe55b63d3a30cccae46f763b8d61ed722247fe208e8485858770f6a67f7","src/tool.rs":"52a7bc134154fde7fecb1ef691f0179eb617e2f17a10d71dfa71afbcb061555b","src/utilities.rs":"ebb59ac01fb9588bcea0d0ee786e5d5a5696b4284a1245657625db03e830b72e"},"package":"509591b7bcd67f4ef775afad7662703b4935daaa6ec0e5605cfb1090b32a2b6d"} \ No newline at end of file -diff --git a/vendor/cc-1.2.0/src/command_helpers.rs b/vendor/cc-1.2.0/src/command_helpers.rs -index adedab2..c911306 100644 ---- a/vendor/cc-1.2.0/src/command_helpers.rs -+++ b/vendor/cc-1.2.0/src/command_helpers.rs -@@ -315,13 +315,25 @@ pub(crate) fn objects_from_files(files: &[Arc], dst: &Path) -> Result], dst: &Path) -> Result//out/ instead of deps/. The dependency + # files are only needed to incrementally rebuild libstd, don't install them. + rm -f ${B}/target/${RUST_TARGET_SYS}/${BUILD_DIR}/build/*/*/out/*.d + cp ${B}/target/${RUST_TARGET_SYS}/${BUILD_DIR}/build/*/*/out/* ${D}${rustlibdir} } BBCLASSEXTEND = "nativesdk" diff --git a/meta/recipes-devtools/rust/rust-cross-canadian_1.99.1.bb b/meta/recipes-devtools/rust/rust-cross-canadian_1.100.0.bb similarity index 100% rename from meta/recipes-devtools/rust/rust-cross-canadian_1.99.1.bb rename to meta/recipes-devtools/rust/rust-cross-canadian_1.100.0.bb diff --git a/meta/recipes-devtools/rust/rust-snapshot.inc b/meta/recipes-devtools/rust/rust-snapshot.inc index f5865d4bba..1082c0d72a 100644 --- a/meta/recipes-devtools/rust/rust-snapshot.inc +++ b/meta/recipes-devtools/rust/rust-snapshot.inc @@ -4,58 +4,58 @@ ## The exact (previous) version that has been used is specified in the source tarball. ## The version is replicated here. -SNAPSHOT_VERSION = "1.98.0" - -SRC_URI[rustc-snapshot-aarch64.sha256sum] = "00590657f2356d7163ca5ef295283523974c340fa21bb94b420ce794f29b358c" -SRC_URI[rust-std-snapshot-aarch64.sha256sum] = "a36f7ac98af20ef0ba6368aace0345efabbebaef7962eba99f47190fd256162d" -SRC_URI[cargo-snapshot-aarch64.sha256sum] = "5784379d73ac881d15a9e67eed2882cd58c747c276221c23cdf9aff37e015ff6" -SRC_URI[clippy-snapshot-aarch64.sha256sum] = "bc9b5636170e4b067794bfb8962c6f22b2aee5cb7358f4d9523072bb2976062a" - -SRC_URI[rustc-snapshot-i686.sha256sum] = "5244bd76687b64cd7305ef038d8f349774eee494174899474535c23dcbeaa009" -SRC_URI[rust-std-snapshot-i686.sha256sum] = "11c7a5cfa324e4324611793692a863490902bdff8b9ccd197404711cb8dc24d4" -SRC_URI[cargo-snapshot-i686.sha256sum] = "b768fe07ae4bd233e5c3f864f935620abb8b72139f7369c869e964a0c30ae419" -SRC_URI[clippy-snapshot-i686.sha256sum] = "df4f34169dffa12cfc75fd246c75092734f2ff3837299531b0dad432d58f959a" - -SRC_URI[rustc-snapshot-loongarch64.sha256sum] = "5af789de2072c185302377c0bf6af5f6ce518670eaec62363142d60a90209986" -SRC_URI[rust-std-snapshot-loongarch64.sha256sum] = "397eb65ab17005c709a86e7bf7cb03d8aa9dae4303783a19c06ba8963247d537" -SRC_URI[cargo-snapshot-loongarch64.sha256sum] = "e00ba627af9f098f0d9527c5b15f1a6886486c93f0139eee6f36cb104543a182" -SRC_URI[clippy-snapshot-loongarch64.sha256sum] = "7bda4fb4a971d23598bd488047fe8a4083f72c9af221a6018a84a8e304663c61" - -SRC_URI[rustc-snapshot-powerpc.sha256sum] = "a4848482dbb50b808495a32d35ed5c7a7a9de86d5c9d7de1ca34a5590ce6056f" -SRC_URI[rust-std-snapshot-powerpc.sha256sum] = "ae6a38ebf8ab0b8bd20da34aedc3de6f78d8314f10a6e373bd76a0dc90f22133" -SRC_URI[cargo-snapshot-powerpc.sha256sum] = "4e5760b7898b00c5b772fe7b1e48d75a0b4035b4a7d4de3ba6fc5b1544966196" -SRC_URI[clippy-snapshot-powerpc.sha256sum] = "a5c37e43b380adfeb14149ec0d9c4a76c985ec8d532ac669be9055094d05f166" - -SRC_URI[rustc-snapshot-powerpc64.sha256sum] = "c9833ed9d2abde4c6b8f4067408e9ff4a758e4252e87257d3acf780c31d3531d" -SRC_URI[rust-std-snapshot-powerpc64.sha256sum] = "e33d1517443f93dcbf151c46e3969bdbe4c9df4c847455915eecd6caee08cee2" -SRC_URI[cargo-snapshot-powerpc64.sha256sum] = "fff7e0ca647951a4a42c2272c857fa749e28746853190e8211849da35d1fb45d" -SRC_URI[clippy-snapshot-powerpc64.sha256sum] = "02cc96e76c2ca4e22608fbf9080455211f0f6b51dc0ec7da0f54430181de7262" - -SRC_URI[rustc-snapshot-powerpc64le.sha256sum] = "a940bca1bce862b2233a5cc07bdfb3f24b285744fc6ecb6dbb174853a41bff6a" -SRC_URI[rust-std-snapshot-powerpc64le.sha256sum] = "ec370e4ad9712cde2f6664f18a022bd8de34c71b8517040b4d14144fcf1ef3e7" -SRC_URI[cargo-snapshot-powerpc64le.sha256sum] = "98b90455b3c57086b7ee6456da1075c929a495ac76850411db1e3cf76cf0cf48" -SRC_URI[clippy-snapshot-powerpc64le.sha256sum] = "2318acbbf599bd57084e4ccc75252723fefd7a9f7d4acd03ee1513b41c212b46" - -SRC_URI[rustc-snapshot-riscv64gc.sha256sum] = "2f76a343190d8ffbe6c44666fdab32b6a6696a3e1176f6d84222b6e6221a382c" -SRC_URI[rust-std-snapshot-riscv64gc.sha256sum] = "68ce716d38bcc15c6fe3686bc7133f5adbadd28f5f5a8a73ef1172b4f60149fc" -SRC_URI[cargo-snapshot-riscv64gc.sha256sum] = "9fcbf7ebb55a3eefdc2145a29b1cc797380edee0cee1163742c5ee06c4622347" -SRC_URI[clippy-snapshot-riscv64gc.sha256sum] = "12b08f51925b9eafae1b3ddccbab49024a05827fa965e65dbccdd63422f84b1e" - -SRC_URI[rustc-snapshot-s390x.sha256sum] = "c6e39df3937b6e2c2c66eb67406738036ed80f79072d136e122e61747b139b85" -SRC_URI[rust-std-snapshot-s390x.sha256sum] = "c9bcf3eb8348e04502a49345a0847576e6c6fbd6600d566ef7cc74f6c2d06048" -SRC_URI[cargo-snapshot-s390x.sha256sum] = "0bc2062d88993fc590007ea2374f5e784fb5b7f1eec6c024b1fb3459ccd50212" -SRC_URI[clippy-snapshot-s390x.sha256sum] = "25aad07f775b7eaac2139f1f233855f8fd81e40ea8450e2220ce9906bab5f123" - -SRC_URI[rustc-snapshot-x86_64.sha256sum] = "0e37cb339f447fc44d6d781073bacacebfdc5612f2600e4c7e84c266f5f3aced" -SRC_URI[rust-std-snapshot-x86_64.sha256sum] = "f5022e6c95a5ad23cca2513dc8281200f585fa188de6370aa37b128a43f876a3" -SRC_URI[cargo-snapshot-x86_64.sha256sum] = "2f512d170d3dd23e16ababcda32ee2e6d5172d861a7af1f504e0b1e270cafab9" -SRC_URI[clippy-snapshot-x86_64.sha256sum] = "646c6bd2450ea4c32a3c78ad7a3727294eea1f1519718a3f1487424021695ffa" - -SRC_URI[rust-std-snapshot-i586.sha256sum] = "7d150f9ec40eaaeb4ae453dedf5416855b9245420fd89203a5da420f692ead38" - -SRC_URI[rust-std-snapshot-riscv64a23.sha256sum] = "81fec8bb25e1377e8f143c33441d12ac115781da496475ecca5601cc791be56b" - -SRC_URI[rust-std-snapshot-sparc64.sha256sum] = "9e0a10697c2e68707573fbcc01aa927d32b9652deb771ca87d69a9b7225580ed" +SNAPSHOT_VERSION = "1.99.0" + +SRC_URI[rustc-snapshot-aarch64.sha256sum] = "89c0f1a3a44df63c95e5d5f2ba093d0a12c5f5f57f8635f8a7a0ce50cf86600e" +SRC_URI[rust-std-snapshot-aarch64.sha256sum] = "1cf7e2ef58ed1cfa6f1adea18e155cbf254c1951f39e5f5e3376879f55fd64a4" +SRC_URI[cargo-snapshot-aarch64.sha256sum] = "113229fcc16cc1ba004923a4cc275fbf3281dafaaf8b97269f9c00189d497fd4" +SRC_URI[clippy-snapshot-aarch64.sha256sum] = "42e49dc02d29949395c0c072585961f6c9b5408110236087828d4e2f94ca96ef" + +SRC_URI[rustc-snapshot-i686.sha256sum] = "17d94ac00b3a5ae896022aabd9e73fb56f01881c9bd3d5095e08d9c9e608f4ac" +SRC_URI[rust-std-snapshot-i686.sha256sum] = "b13902a225a6109588de09167831da111c70a30bedb2d9b9754d9fb13dc6e558" +SRC_URI[cargo-snapshot-i686.sha256sum] = "a6cdcfd06454695375a3aa89c37b0431b5146d55b1111fc323ac92a15d1d087a" +SRC_URI[clippy-snapshot-i686.sha256sum] = "e3295d8f8fc7658e8135a3fdad3a9f7d7dc34d38540f4efc720502dcf952fc86" + +SRC_URI[rustc-snapshot-loongarch64.sha256sum] = "70e0b964f64c462ebb0b9ef1c4e08c3a87a724fbae16b1ca866127e68d4f5e7d" +SRC_URI[rust-std-snapshot-loongarch64.sha256sum] = "31418c9492c57eff5893f7d80d6cf776d968dfcfe1750be8c2bf2c05b19689d9" +SRC_URI[cargo-snapshot-loongarch64.sha256sum] = "dd5901c5668513c0640fff626aa7fce42d33ceb18afecc91e1163063ea859cd1" +SRC_URI[clippy-snapshot-loongarch64.sha256sum] = "ef24b5ed352469eb5efd9eed4e68928ff684682865a70c5e74c372b5d356f034" + +SRC_URI[rustc-snapshot-powerpc.sha256sum] = "ad672e3d515cfbb33e8e05d4fb15a5dfa745988b9699f5b62d1cb9ba13dde81c" +SRC_URI[rust-std-snapshot-powerpc.sha256sum] = "f2ce1424fc9272a64f358f8d28c72f277f7fa626c256f115daae0ecfa12a8999" +SRC_URI[cargo-snapshot-powerpc.sha256sum] = "a511dd7f315fe6097a12de73c1b4041ae6b5c2880e88ed2afba2b36d79074bf7" +SRC_URI[clippy-snapshot-powerpc.sha256sum] = "bfc3191f0086878a7e72b3362f8a36ccd9bb9a88ad14c122334443b16eb39f28" + +SRC_URI[rustc-snapshot-powerpc64.sha256sum] = "fd891495f63d0aa1168875f8a0160ec1587d2ef6bb83979f03e9aa7c21ca8362" +SRC_URI[rust-std-snapshot-powerpc64.sha256sum] = "8b9ac17c3410a1ca895c2280c839fd1d1df7adcb6435137eb3030bb255ee69cf" +SRC_URI[cargo-snapshot-powerpc64.sha256sum] = "18134aecb63ee24aa980c9843cf24bdaeb9c2dd8aeca832ae5b88ca5d8856981" +SRC_URI[clippy-snapshot-powerpc64.sha256sum] = "388e0748e40ec77ab799806e1f48b615ab8e65220d3c9a6838dfa172bea8b4a0" + +SRC_URI[rustc-snapshot-powerpc64le.sha256sum] = "308c82f4c4ba93e7614a27660347ed6b419f3570c5bc1046f73d840b7728dbc9" +SRC_URI[rust-std-snapshot-powerpc64le.sha256sum] = "8c1a6857ba1be316ff453efc4d2aefd43756ecdb6d549a3d64be7351c4a55bdd" +SRC_URI[cargo-snapshot-powerpc64le.sha256sum] = "bbdf0aa56ce2dd7347e9a06861f9bd2d8015e2dadcf80edcb843892efc68174a" +SRC_URI[clippy-snapshot-powerpc64le.sha256sum] = "4ce616ff452ec0491876d00fe1c89fab786b6ce7fd0289c0e0f47da1bfac7039" + +SRC_URI[rustc-snapshot-riscv64gc.sha256sum] = "80db2efdcf26ba75b1c38c6da896ff332d1bb6d0fbde6b1d2336a7ea475c6e40" +SRC_URI[rust-std-snapshot-riscv64gc.sha256sum] = "646847eb1d0b58c55118390a2b1a6af871e4bc581651b5047dcbdfd0a24629f9" +SRC_URI[cargo-snapshot-riscv64gc.sha256sum] = "999311c0ee828b3988f16abcd586d1189ebab6d37081197d89a9883c4b7d2134" +SRC_URI[clippy-snapshot-riscv64gc.sha256sum] = "c4ae4e5e03e3ce8c2f2b93a4b59e2f3c8f47a1647de29458f8e26e76079b0d61" + +SRC_URI[rustc-snapshot-s390x.sha256sum] = "b598d8f89ac024fa9839de2393787eb85bed071528236f0a282e8100d852cb4a" +SRC_URI[rust-std-snapshot-s390x.sha256sum] = "ec386455256a3ef1d16bccb02a040cbb6978af565f716fdc26684054b19dd0d0" +SRC_URI[cargo-snapshot-s390x.sha256sum] = "c6f4d75baf64f08a449d89d1f5cacb4e14a3be40a8623a00ea1530a6e3fa9d9e" +SRC_URI[clippy-snapshot-s390x.sha256sum] = "ad97b001f4c73442307434176fc97cdcf7a80820d728f48bebfb31237ca8b55c" + +SRC_URI[rustc-snapshot-x86_64.sha256sum] = "77171ba2a0345fdf2abc4fedda55d6de078dae7a68527c28be8c77dcc9604bd5" +SRC_URI[rust-std-snapshot-x86_64.sha256sum] = "3e58dff2d0b72196b5ea4e90536e174d400de88564a52694686b81e091169933" +SRC_URI[cargo-snapshot-x86_64.sha256sum] = "d7674918d28093097614cd9728b6ca60db9ea3038f640f0bd1e9a4188c7568ce" +SRC_URI[clippy-snapshot-x86_64.sha256sum] = "982442e32ad8dd3f0bb3a30db74038da5f71fd9bf1a865cc71da8ea5d4ec71ec" + +SRC_URI[rust-std-snapshot-i586.sha256sum] = "0d2e0687934fd8f79e75a092e9a4c1240ca8346b61aa22dae0921a3d66274b18" + +SRC_URI[rust-std-snapshot-riscv64a23.sha256sum] = "e63bf434820d6a2f95396428d1659dac8ef915bc1432d730091ae399518d5fbe" + +SRC_URI[rust-std-snapshot-sparc64.sha256sum] = "ef4399ed88f527bb71b937583a7e5bf36177d83fb55b8c58973ae146579c5ed6" SRC_URI += " \ ${RUST_DIST_SERVER}/dist/${RUST_STD_SNAPSHOT}.tar.xz;name=rust-std-snapshot-${RUST_BUILD_ARCH};subdir=rust-snapshot-components \ diff --git a/meta/recipes-devtools/rust/rust-source.inc b/meta/recipes-devtools/rust/rust-source.inc index b384a0c76e..8b5b59bfa8 100644 --- a/meta/recipes-devtools/rust/rust-source.inc +++ b/meta/recipes-devtools/rust/rust-source.inc @@ -5,11 +5,10 @@ SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;n file://cc-hash-object-names-relative-to-source-roots.patch;patchdir=${RUSTSRC} \ file://0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch;patchdir=${RUSTSRC} \ file://0002-Fix-rust-build-failure-with-unstable-options.patch;patchdir=${RUSTSRC} \ - file://0003-bootstrap-skip-StdarchVerify-when-remote-testing.patch;patchdir=${RUSTSRC} \ - file://0004-cargo-omit-host-triple-from-unit-metadata-hash.patch;patchdir=${RUSTSRC} \ - file://0005-rustc-span-make-hygiene-encoding-order-deterministic.patch;patchdir=${RUSTSRC} \ + file://0003-cargo-omit-host-triple-from-unit-metadata-hash.patch;patchdir=${RUSTSRC} \ + file://0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch;patchdir=${RUSTSRC} \ " -SRC_URI[rust.sha256sum] = "6451598a99e77f07571960f6b21d577399d3a30f33e80cbd2e3a4aae6535d265" +SRC_URI[rust.sha256sum] = "90dab90b8084eb57c35ae2b1d0b70c8e5138ace6023b22c60a5a400f586f63b2" # Point UNPACKDIR into the work-shared location so rust-source.bb and all # consumers (via S/RUSTSRC) reference a single shared source tree. diff --git a/meta/recipes-devtools/rust/rust-source_1.99.1.bb b/meta/recipes-devtools/rust/rust-source_1.100.0.bb similarity index 100% rename from meta/recipes-devtools/rust/rust-source_1.99.1.bb rename to meta/recipes-devtools/rust/rust-source_1.100.0.bb diff --git a/meta/recipes-devtools/rust/rust_1.99.1.bb b/meta/recipes-devtools/rust/rust_1.100.0.bb similarity index 100% rename from meta/recipes-devtools/rust/rust_1.99.1.bb rename to meta/recipes-devtools/rust/rust_1.100.0.bb From patchwork Tue Nov 17 14:12:55 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemanth Kumar M D X-Patchwork-Id: 104631 Received: from mx0a-0064b401.pphosted.com (mx0a-0064b401.pphosted.com [205.220.166.238]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.18819.1794924811826227229 for ; Tue, 17 Nov 2026 06:13:32 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=OPvGo/4m; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.166.238, mailfrom: prvs=5781a53026=hemanth.kumarmd@windriver.com) Received: from pps.filterd (m0250809.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AHBx3441075809 for ; Tue, 17 Nov 2026 06:13:31 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to; s= PPS06212021; bh=XMZqDz/CV8GY7XHslV4ndKX8Py+WKDbpOmFPyqCS1bU=; b= OPvGo/4mBBaGYBHBHgI7fqSTzUlv/jhluNPqe46ZA87GV1oFOuY8sx32JjD8sXzX sXPn70q7AKcsOSo8JMJAExHnobeBovfZdNKzHa/7T9vUS5vuOsKd2ubtb2325HTZ vtIbFf/afLPHfdMnBGbKi/WeN/TFAw3vElqzEay3SwhGV2kAMW++S1fpNN7id2YJ Z0UZlIIUFm6Ni0djATzZpk//Q3FuW6Y3u3E9EeErXA/S4iUjNYHGxrP1LT5P8lmc AUpzKobV/+2pJdx/ZXmRmvT4IzOXshhMhcxvl+LbqG1F9kTb1yCfbi2lXWY4kaeU SWle4v9t4hsrA0cLQwFlwA== Received: from sj2pr03cu001.outbound.protection.outlook.com (mail-westusazon11022077.outbound.protection.outlook.com [52.101.43.77]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 4hxr1h4mbn-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Tue, 17 Nov 2026 06:13:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pm2kYh24f4Lp6sII0unx15pQcU/E1jxxKD0yT8jtih2Qm2Yrf9rZRYzGrYB+DftGjJVUXul8RwWaisuM3cVHaDrtThhSpvULu9OfjbUlQLMBw30Y5RHWQ+DDU815kDRG5sWuija2UaR5CNHUF95ykmwjOJI8KzPA9fIMwM/g0OwOhUbp9NzP6+GT3MVQf1NpH/pZZUxL8k9Z/WxpI41/H8tGDa/4L8tl0mmvauwtAYmVlzNKY/CMrPLFNm5uIxAkF/OJTYudH4+taDlX8hNXfEwJnHywEbqrFpJSl6FBjDLVYj5AbpgGtgKzcnyJgeRK3guDRC4tb/LU5QYCKKMgeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=XMZqDz/CV8GY7XHslV4ndKX8Py+WKDbpOmFPyqCS1bU=; b=YmgtHb0EHSilCiQLc0IsRaewcFUlO3V4gTM2WIbylYBOrZQMll8rJOcLi6NqjJ+kpgOzdJoyCQAI1nSPlRIdLzYk7hdVDLIr/AEY+jaf8H7fhCF+RimpZXRy/ACXHpcULpQZy26QZmJf69BeloERSgONx3RQURm5L+qi0RZcyKk5g0dnOUtp64zaYTy8JmYRZscW4BTweM0b+xAcTG6ZxE59tL2/lbD8URFXR3m5vhTyYg3ojhyW4sAGseONVnbLZkNcCJH2U8PplRq/kitiKe0ZssEoChdIAuFhBDKISV+oXsOjt3UJWwVfW1I2xTng0ViUvZ+p9t34EsBn+kk9sg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=windriver.com; Received: from MW3PR11MB4571.namprd11.prod.outlook.com (2603:10b6:303:59::19) by DS0PR11MB8764.namprd11.prod.outlook.com (2603:10b6:8:192::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.615.14; Tue, 17 Nov 2026 14:13:28 +0000 Received: from MW3PR11MB4571.namprd11.prod.outlook.com ([fe80::3fec:2722:27b1:67f9]) by MW3PR11MB4571.namprd11.prod.outlook.com ([fe80::3fec:2722:27b1:67f9%5]) with mapi id 15.21.0615.009; Tue, 17 Nov 2026 14:13:28 +0000 From: Hemanth.KumarMD@windriver.com To: openembedded-core@lists.openembedded.org Cc: Sundeep.Kokkonda@windriver.com, Hemanth.KumarMD@windriver.com Subject: [PATCH 2/2] rust: drop native libLLVM path for non-host architectures Date: Tue, 17 Nov 2026 06:12:55 -0800 Message-ID: <20261117141300.2193043-2-Hemanth.KumarMD@windriver.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20261117141300.2193043-1-Hemanth.KumarMD@windriver.com> References: <20261117141300.2193043-1-Hemanth.KumarMD@windriver.com> X-ClientProxiedBy: BY1P220CA0001.NAMP220.PROD.OUTLOOK.COM (2603:10b6:a03:59d::14) To MW3PR11MB4571.namprd11.prod.outlook.com (2603:10b6:303:59::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW3PR11MB4571:EE_|DS0PR11MB8764:EE_ X-MS-Office365-Filtering-Correlation-Id: bd1d0510-9f28-474a-8cb0-08df44b4f2fe X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|1800799024|376014|52116014|366016|261102123227099003|261028144727099003|261026140227099003|261026121527099003|261022105027099003|261021123027099003|261021121427099003|38350700014|11063799006|10067099003|260925021911599003|260925022911599003|260925021311599003|56012099006|18002099003|22082099003|261009223027099003|261009221727099003|261009223327099003|261009220027099003|29003799003|6133799003|12006099003|25016099003|261009221227099003|13003099007; X-Microsoft-Antispam-Message-Info: CvRldHLOcw/t1mGS0TGKQfQp0eO1+Di8d3lti7Ij+UiRQyUWkeHZDYV8pgU4aVrCKVpZXrb4DG2jlmtXgpFvNAkY9fxx+SIKmA+DFEkeCnxZLkyfRey/VhCfOLSJI3Bj9jso8WTurGlY9Z78j2uqJbYvObmGe2XyX3UXxF3lsZDSD5hijE8hThjid+MMXL1WppA6rOGi+t+/GIzIrNtv4CoGTgirAEtiPsNJ0ghz+zy9KsWge/HoJZVVj97FpPFAAR7g/MLcc7NRjHrvKZixbIoAS8DYLK+CW73sThg5kMuCDTcJQQtLEHeSlSM1bA4qJY8R+60RVgwr3A7pEMWsQFA3CheQR1wJ2UcQUHKeyHDVSCpghckx+RPMGMWzejyWi7RqMc/c3G+VMpR8cvpLGWh58owExF98N5GiZqEXVFr+9X9gFlXP+aBn7tghEO6g2FpZMG+hEO2fD6w089ERAL0ByBXNvY3heolAqmadJ8WrlSALwV/VWF99/KC1TZYDbGarRe7cqms2K3ww2Q9HtG3UGS7CCtwiXmdfSoLeRKF23BNPVihhs1U1/XjdPEL9TnvvUc2tg6e3/BdWjOutUbt+svYfBtTHLDz+4iW0Fw5aqAZMUaI70UxW+TQ4FoChiccYArTriZPkORiryTqi0y27K07bf9cBl5glAtlutNI= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW3PR11MB4571.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(23010399003)(1800799024)(376014)(52116014)(366016)(261102123227099003)(261028144727099003)(261026140227099003)(261026121527099003)(261022105027099003)(261021123027099003)(261021121427099003)(38350700014)(11063799006)(10067099003)(260925021911599003)(260925022911599003)(260925021311599003)(56012099006)(18002099003)(22082099003)(261009223027099003)(261009221727099003)(261009223327099003)(261009220027099003)(29003799003)(6133799003)(12006099003)(25016099003)(261009221227099003)(13003099007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: atEm1EtZ0/dlD6epE1yMsygO6L9O7Mme8QX8VtUtOlazOJwv5TB9Dg9R3fS9uOhOALe+giBBvBNG6EZWXLqdk+43V6RbSy+LlUQupJHPh4stjJE1mm5OHXazCbbBS9v1UvTe+r22GEu41e40NljNcwlyyvwMPrXfh727840wUOVZWq0XNUPj7f3nZq3vCpmPUQcaxFGdtSjV7Ru6OYSzvIts8xKhUODQFyKRbiuQxSozdg2JnbyO3IeFzuF+9SjmWDRt+mxesA+ZDNkKcfh3QixPFHIHByzcVy3AGIoq8e6/jyu++PYBgzA7IWw5pDE0Xbkk21FN99ku3nBatIvvHZruywNzx6uabVaC7YKB2NdntlO31jZ5JyUQbG6lfmzvH127p8fV4TvvlkyhIgHtBh3SHeGsKU0e0bb3Y/ey/TmocPKb8Unz+slAi4gHbQWkpktNM3G5ktwEu5OOlgxmfQ+VKPAqmVwULMKHwYCkoD8y2GBX8b8aqXjULvX/bWkZGhzE7HHYfJb2BXzGgT1r+uMU9Fhk3MNyOXAKmcz9HZjL2yDZ1o2uDAJwJODvZkW93WqkYPCbn0cHgV1+s6aHGiKOIfP2MkUFr/kvCZVBtLYOpFIPf+TgBuvTPVwYtK9riDozoaj9Y3Mkt9Io/XQwT8lDJj0N7YQBbMJpJt7OjqHeBupLHcRpuepUg9tnLSemaWqIh1h8/M230HrYq9G4GZ0IGj87Fu9vfTt6Kbe2SRat2y7Uv9TaavEw+hKe4Swlt6eEfWdMAWtYxagTbajJKpRhhNeouABlvK0l9BcUHeHdKmm4E64/YTYg6mMOc9tr6JDJj7+c2UtaTKCabX7G3A4QZirHTWPD23Sxws/Q27grq0vR29xqa9BnWb4qrUqignWCrNNm77xaljNb2YlTbg3UWlL/ZWwaLTekLVjqCr6u/ar4oHjT/XYJJPGhwOtKm6zPM2w0M708ipF4ZglEKohUYTOQHzowruQE/VSfoAUobNfgiwDMQ72tBumwRyl6qut8z+Hi7hAR0ik87gSPxdGBdkNc6Bizbaj4sRTCPvjEqPo58s30AlpeqI4u0l6MU0EmME0qz40BcHxHuLhZh8M/62GYLzfwBlz40mbhZyF1eEBU2P13ykBe8Imwf6rqv2vxsWRX3GoWpvL23BFO6R3ERFjQ68ajkcA7Fyn3Q/cQehSGZwccmG8sIfrQ+Ykw7sGu9Ky/JwTW/+qp9o1StyraA27rMwUMIKYWZ5SQWb4fYzBGMRzIBL0nm1ar9a3DXTNeV/Maax57Ra/HZqv+2UWNTxdSAPANwD+qBJpb7LIOwZQsdRne2XxDsXohD9zpWxPsLq/h8radtcxCH/Yg9jfjwf6UWTIHjf5pvjBx6OJ/qOg4F9Kf6PHuvRYwjyoDFkTErgIij1xgHvaarDgikUkfaWvbch0nd8DCger3O08j/5v8H35UHgdF9Hv+CX7x5sw/NIdPN8dry+qDdNdUuMKlUPB1ZenaDWre37mqEKrL6vUvwv4vLHkfzpAO2rPGpk7BjA1lnEqsWuDXEHE7HAW2ia7FUmtItW6OJnL3bbDO1Z7c9H1uSCSzK/yUdgHqkYBe1gc17v3MsGtsHmwOVxVhKnLCyZQnKQkmftTlQ285ujdLgtTy+5zk1EBO9ZtOEHSK/fymjBhcrbePpAbrSDCZ5xuuJpjBpXpcJs4mS8lhwCQ0f92Q1iWVNrFWIVIrZ7JwBjolAqAJBTqa/C6o1tK3LfI0s00yzOm7MpO/JtM= X-Exchange-RoutingPolicyChecked: jeChyaI/iiOQVyd7YX4UvtbdlX4uQ9uuCMm40mK5S6gAnFb3FFAKAj4Pa8dpBxkMTmxfJAXqXx4JW+gZXwuVQu4lIK6f4calc8ZrrN8Mx/HuFlGtlg9N4bDTfbCv12wAX0G/dW3xB/0XzID6m8CxA/+kpucAIJovFHaw5UT3uDejdLhgbFO5Mmrzj2Dj+vPPV9Q1RtggLK1EVKw890ugdrTD2A/mF+m8KjQFfqH2sBOW9h9sKFTVzYzFeSdUtc3rh2U359kzNtpmVedrivO/tYXmQGaeJrsMpieEihuZCBi/+dfxlvTxJxA/wWcpGK5z8AVpgMWfafTpGQ1PLDbSCg== X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: bd1d0510-9f28-474a-8cb0-08df44b4f2fe X-MS-Exchange-CrossTenant-AuthSource: MW3PR11MB4571.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2026 14:13:27.2394 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 14E0uzaMe5zUxJmUWv/XeHwWQUIIYOJ3xPYjjS4WsxQ8OZ97pCZvTAX4xtQAfj+IxvyGzr4lJ96H8mxb3vl2J5yJk3getbUvylwLFbYYQQY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR11MB8764 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTE3MDA1NiBTYWx0ZWRfXzMxH0LVpPNrt 9rDUlM9uhb+alqX0T5ik/lwujZLj+6WdmnQPlWhcmnqiGWQPkHxsKrwRJjg7B7kuZwx1+Ej5Yb3 b3sUTxj7+DUB9s399/Ns8uEMvhNMUuS4/V+1XDMnKkPvyfueSGDKkPqo47WhwDrf4H4bQFW6emz 0nPJmybYEK6+lAOUs2d/pW2lJa6RpbtqaQK5N/Qbn+ZTfDsNkjq7ljDGK0Vj+psg/UE5n+YVtST wsz8EarFIxyODNwKkX+vEM1ReBJ8oH8o/zvFFDjQk2NaHB9Uf6AAbvVlJWMQ2KSaCAE+Ibcv4yn VZ8cwzf4fvxkM1/LBMgawkXaU22zungLer0t+/jsd1ShF7lc+MPnaE7u86OEekEiOd7GPSnI9Wq q4HtYAlFGMXwFyEZrm5g+UdC8skoBI8jmPcSxe0moOUKB4xS+fegrBsD/5V7HRh/ZCe74v7Jrnl d/mzOEblLJ3BUUmYi+w== X-Proofpoint-ORIG-GUID: tflswQx38MxQqsUKr3jFBvwm5moDCpr9 X-Proofpoint-GUID: tflswQx38MxQqsUKr3jFBvwm5moDCpr9 X-Authority-Analysis: v=2.4 cv=WcmZ+EhX c=1 sm=1 tr=0 ts=6afc610b cx=c_pps a=7Kp79o39qosEjZWU4lqIzQ==:117 a=6eWqkTHjU83fiwn7nKZWdM+Sl24=:19 a=z/mQ4Ysz8XfWz/Q5cLBRGdckG28=:19 a=lCpzRmAYbLLaTzLvsPZ7Mbvzbb8=:19 a=xqWC_Br6kY4A:10 a=zJRp6_cAMcgA:10 a=VkNPw1HP01LnGYTKEx00:22 a=bi6dqmuHe4P4UrxVR6um:22 a=iKiJcTA2PjBS6x5JeXcw:22 a=NEAV23lmAAAA:8 a=ei4SEBeUAAAA:8 a=t7CeM3EgAAAA:8 a=XkzZ2HEcXFz5VrAklxcA:9 a=8zIOOLb7Ym0NljyPXbuS:22 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMTE3MDA1NiBTYWx0ZWRfX00e3kB9PLQPu MtamXg4gHPbyC5qhofkOuYG5pfW2nuDlQJSnNN6T4NHzVKZpWNz8tyqCWAXJcJbBklU+cOx46bi vWctdcYIueftL92Gbcu14k0L8Wldxu3blu9VHVXlv+HC6RGO83TO X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-17_02,2026-11-16_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 spamscore=0 clxscore=1015 priorityscore=1501 malwarescore=0 phishscore=0 suspectscore=0 adultscore=0 lowpriorityscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611170056 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 17 Nov 2026 14:13:34 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/250455 From: Hemanth Kumar M D With the recent refactoring of the LLVM handling in rust bootstrap [1], the library search path of the native LLVM (recipe-sysroot-native/usr/lib) is added to the link of the target rustc_llvm when rustc is cross-built. rustc_llvm/build.rs only adjusts these -L paths by replacing the host triple with the target triple. In OE the native and target sysroot paths do not contain a triple, so the native path is kept and the linker finds the native libLLVM before the target one. A linker that cannot read the native library fails with: libLLVM-23.so: file not recognized: file format not recognized Add a patch to drop -L paths that point into recipe-sysroot-native when cross-building. The target libLLVM is still found through the target --sysroot. This is a workaround. The issue has been reported upstream [2] and the patch can be dropped once it is fixed there. [1] https://github.com/rust-lang/rust/pull/161247 [2] https://github.com/rust-lang/rust/issues/165385 Signed-off-by: Hemanth Kumar M D --- ...native-sysroot-L-when-cross-building.patch | 49 +++++++++++++++++++ meta/recipes-devtools/rust/rust-source.inc | 1 + 2 files changed, 50 insertions(+) create mode 100644 meta/recipes-devtools/rust/files/0005-rustc_llvm-drop-native-sysroot-L-when-cross-building.patch diff --git a/meta/recipes-devtools/rust/files/0005-rustc_llvm-drop-native-sysroot-L-when-cross-building.patch b/meta/recipes-devtools/rust/files/0005-rustc_llvm-drop-native-sysroot-L-when-cross-building.patch new file mode 100644 index 0000000000..8fd17c18f4 --- /dev/null +++ b/meta/recipes-devtools/rust/files/0005-rustc_llvm-drop-native-sysroot-L-when-cross-building.patch @@ -0,0 +1,49 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Hemanth Kumar M D +Date: Mon, 16 Nov 2026 03:14:17 -0800 +Subject: [PATCH] rustc_llvm: drop native sysroot -L when cross-building + +With the recent refactoring of the LLVM handling in rust bootstrap [1], +the library search path of the native LLVM +(recipe-sysroot-native/usr/lib) is added to the link of the target +rustc_llvm when rustc is cross-built. + +rustc_llvm/build.rs only adjusts these -L paths by replacing the host +triple with the target triple. In OE the native and target sysroot +paths do not contain a triple, so the native path is kept and the +linker finds the native libLLVM before the target one. A linker that +cannot read the native library fails with: + + libLLVM-23.so: file not recognized: file format not recognized + +Drop -L paths that point into recipe-sysroot-native when +cross-building. The target libLLVM is still found through the target +--sysroot. + +Upstream-Status: Inappropriate [https://github.com/rust-lang/rust/issues/165385] + +[1] https://github.com/rust-lang/rust/pull/161247 + +Signed-off-by: Hemanth Kumar M D +--- + compiler/rustc_llvm/build.rs | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/compiler/rustc_llvm/build.rs b/compiler/rustc_llvm/build.rs +index 450b98f..05ff9dc 100644 +--- a/compiler/rustc_llvm/build.rs ++++ b/compiler/rustc_llvm/build.rs +@@ -452,7 +452,12 @@ fn main() { + if let Some(stripped) = lib.strip_prefix("-LIBPATH:") { + println!("cargo:rustc-link-search=native={}", stripped.replace(&host, &target)); + } else if let Some(stripped) = lib.strip_prefix("-L") { +- println!("cargo:rustc-link-search=native={}", stripped.replace(&host, &target)); ++ // OE: the build-machine llvm-config reports a libdir in the ++ // native sysroot, which holds a wrong-arch libLLVM. ++ let rewritten = stripped.replace(&host, &target); ++ if !rewritten.contains("recipe-sysroot-native") { ++ println!("cargo:rustc-link-search=native={rewritten}"); ++ } + } + } else if let Some(stripped) = lib.strip_prefix("-LIBPATH:") { + println!("cargo:rustc-link-search=native={stripped}"); diff --git a/meta/recipes-devtools/rust/rust-source.inc b/meta/recipes-devtools/rust/rust-source.inc index 8b5b59bfa8..ed779f3478 100644 --- a/meta/recipes-devtools/rust/rust-source.inc +++ b/meta/recipes-devtools/rust/rust-source.inc @@ -7,6 +7,7 @@ SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;n file://0002-Fix-rust-build-failure-with-unstable-options.patch;patchdir=${RUSTSRC} \ file://0003-cargo-omit-host-triple-from-unit-metadata-hash.patch;patchdir=${RUSTSRC} \ file://0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch;patchdir=${RUSTSRC} \ + file://0005-rustc_llvm-drop-native-sysroot-L-when-cross-building.patch;patchdir=${RUSTSRC} \ " SRC_URI[rust.sha256sum] = "90dab90b8084eb57c35ae2b1d0b70c8e5138ace6023b22c60a5a400f586f63b2"