From patchwork Wed Dec 10 10:18:01 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yash Shinde X-Patchwork-Id: 76158 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9DADD3B9A9 for ; Wed, 10 Dec 2025 10:18:31 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.12325.1765361909086039139 for ; Wed, 10 Dec 2025 02:18:29 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=dT1Zyku8; 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.178.238, mailfrom: prvs=4439ea1cec=yash.shinde@windriver.com) Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5BA6A2Ab128616 for ; Wed, 10 Dec 2025 10:18:28 GMT 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=CO2S+naWfNQ2bcyMn4L/dd0eyjGRIouuBonHDSOT2sw=; b= dT1Zyku8VTGEpYUSNxvpWvHiG497S3z6Gq2EKNeGi4B7V/hVZFVAwx/7NJS6ZLOC OVDzmZ7Qc3nh+XIBij5AkLZV9TkHXA2T0V52SKQnotJqR9DLOt8WjFxhAqBggkOy DcTDi4OrTcJHSr9PyjQRLR3nrZfnKlRiPvgT53H0Ari1j+wjOIZQ0YtLxKRGLVkK MMLae/OZtFwwQUD3MH0XUmRBvm6bPlFHnp5BQzuS1MB9GwcCuZPfJAP1p/6k6ZUd +MtPfZCJZOpTVCjFv+o3x4fZ3jpAz94+OjYdOfNFousXo+oeRHpbANA2m5FFC4xA 4o3i30VwBUYCnHkRBQiCcg== Received: from mw6pr02cu001.outbound.protection.outlook.com (mail-westus2azon11012024.outbound.protection.outlook.com [52.101.48.24]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 4ay07hrd2b-3 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Wed, 10 Dec 2025 10:18:27 +0000 (GMT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=WqAIK3sveBbRM/u33GFkV4312FThVgUxUAhm2IckLeK/d5mn+jZ/jc6UMVty/QMKWZXQCVgc71OVh8BqxrNmLkSmVrHDMhAvPL2Aa5xhAAPx5l4Vih0AjFcMPuAlhJdkN2pqeAvOsx8TEBecvRUBdrq2Mu9EkXa6WDaMwxGZ1ygrfeeNUynBxLuktYUKNkX4oT9uNqFXSiTCgrAWBoEoZUzV+Yvxv64lebp/Ooga37Q70h5MtoyPFit9UYrU17RJfTM5gCn678AAwFDT494eaemHsctJ/ikHFfS3UXJXnXQbDTt/TfP6zB5bWSennLcgVuabtiyHNz/QruIs4rhQdQ== 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=CO2S+naWfNQ2bcyMn4L/dd0eyjGRIouuBonHDSOT2sw=; b=PEiADkzVr3v3Z2j0i/KUj/G2zKBJMK/gf9uBJS5xOPZ5ZbqjsuOqwoUWvz3Xq25fJS4EuRlixFcyNR/WzYQzdbKBiCLoyIcR57N7l+6/T+9g8nj+SNQ6GE3J48CsWACkYuakr+khEmX3rd+LLszvsJI4S7cdQzadMs2EOeK9LYd1tLuAKOBIvXOp6+cJS+f3jQ0WRejayPCpo/wuyl6dN6fEdkVSyrzpmD7lN55hbqspTJiY56ULAOY7INhTREZpkBelWvIg9+oZAfnwy6hedw0Gbk2IxTL5L+6HB1NuoniM3Mufn2q3/pkeBWkU+7lyi91iSEpvmU2lx9joode9Jg== 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 Received: from PH7PR11MB7593.namprd11.prod.outlook.com (2603:10b6:510:27f::9) by PH0PR11MB7562.namprd11.prod.outlook.com (2603:10b6:510:287::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9412.8; Wed, 10 Dec 2025 10:18:24 +0000 Received: from PH7PR11MB7593.namprd11.prod.outlook.com ([fe80::2688:e731:421b:5ebc]) by PH7PR11MB7593.namprd11.prod.outlook.com ([fe80::2688:e731:421b:5ebc%5]) with mapi id 15.20.9412.005; Wed, 10 Dec 2025 10:18:24 +0000 From: Yash.Shinde@windriver.com To: openembedded-core@lists.openembedded.org Cc: Randy.MacLeod@windriver.com, Sundeep.Kokkonda@windriver.com, sunilkumar.dora@windriver.com, Yash.Shinde@windriver.com Subject: [PATCH 3/5] rust: Upgrade 1.90.0 -> 1.91.0 Date: Wed, 10 Dec 2025 02:18:01 -0800 Message-ID: <20251210101803.1120711-3-Yash.Shinde@windriver.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20251210101803.1120711-1-Yash.Shinde@windriver.com> References: <20251210101803.1120711-1-Yash.Shinde@windriver.com> X-ClientProxiedBy: SJ0PR05CA0185.namprd05.prod.outlook.com (2603:10b6:a03:330::10) To PH7PR11MB7593.namprd11.prod.outlook.com (2603:10b6:510:27f::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH7PR11MB7593:EE_|PH0PR11MB7562:EE_ X-MS-Office365-Filtering-Correlation-Id: c50970a6-f9e6-466b-c461-08de37d573db X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: RUJ4d6HCmyvKTpeIWQ2GFA7nVXocC31niYFXYonztud1NBXl1Pbf5shQJ8yGvd8/KbGNA0fzZsy6wG6s+7FKK6W1JePFUvJLsgjqn5Q3jS2kC9i0P/wL+fPr/oZviiT1ipIo2k1A9TdAKtlQLg8uIMb4cKDaHH2XY5cJAdbb90h3hNQ/JRNoBIZMdcQTOlauu8val4cjT5MHVFJ/0xAfRJtN5UTNNm+AWzgLiQAHYd+6fHmfVCsZkHtIUtOGsBHiEyFwh029xHcUYrdIuoWmed6nU5HhNTMI0AAGeV89QEaezOH7zjCm2vicT/egAxP3BEofn17Km7MQzlw6kDCApGCLLIgz7TQ+Y3k/4lJBRVFTZjAE0sZIIoRP7vB63c8CdA2ked+eC4VfZhs6aUKyok6P+QK1dxsnUzI/uiFQ7zB4QaGz8acN67gbvquhCB4YhJNI/3+vNNcMPSq1fYfx4W3qyKRVqQXm809Kb1E9zFih2lBGFHfGO3gRL2+NbDpVeV2B1psJciyFf9u+mOZKB7FfwNjwTf847736YFh2+kBdEkm+RSSRtMvP44N3w/J2pxPZX65qASk3v7rrtSGDR5atT1gx7kUk6dxL8ogc+tPDWLeCAKNPB6rmHokvos/nMhGqWSaMAHDq5BFrz7omN0scIs/lSzn52rJZOCb12iid0VIJZFhoYoRzjmjLC4wCz18WJUdVlO35PNlHooSg9PwKaNVBlrd3/mhbawyZ28rGl66pqPUeALCAt2qbcIYK9mLGxFoXFNx49xNvL7CYkmMalran9cCm389p/goy7Kt+37kute1mc+IWaRxo1oZwMdEmuirCzNpctZGpAZXZW1HLh0QENIJ3jumsviQSD/By/lE0IV7QrKj5fcd7Obew5hl1DRiTMxZE3dMyxbW4bJ5gfZtxhHLrIA4ijnzGg+xCYRCb9M2FpZkBNksi9A1mZ/Y/3kpSs3/q9LlXcU1Y9hsilkhrscGQFXCX7dseKOyVGShI4r9/5pKBCZH7Bqa2KZZ29PGGA2TJBXdsA/pNzyJnZM8bg+Pfh2VIVtf9Wf89s6CeReITYc+MdOlNvc7G8GO2QW7SLiMt9RA6h5ejYV20E4X5bVot46FXEHOMfNcl/AHI1SxUFzJxB9i2BK+YZfiGTkWc2k9ZawfUspOWaMPif0nMGEe4NwtfFaL6opPsFZntO8XlwnHyQcVWEn4smhxs+WWXj7SICyM29OIdSo8reZb4/8COjgmWY/4ZF7HLOeGQz40ICJerR+lZ8cVDis4+W7fUtdf+drUnx1XeZ15szgqqt4baihJErjNnI4FMulOanfTaIoLNSyUHXBhQf+kEhv1PPjY32rTWFRH8BlSLAEQLiE2aFIA5D30h8enc1O9UsOk1QYYNB+xdQtOJLNj9HrLV/YIc0OI4WqePU+IHfaM5EptRxf1K5T8ip7DGMYVCPYfusBrogWCj1BBzjRhVLxvfZvys6QtILHgcnA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR11MB7593.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(376014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: pbMdUKqLpLA7SFBhZPOxdx0UCFdjhTZqUkG1vMPX+kKBTFUG1WN9cppj7zc3ArlMkN5fuk935hIuTQxmyB4aRoAZWabi3Pb573upCHiW2yXboaXLRmiQ2pIyRU06BDJ63altKvM4PXFlWAFAmA51WZHyAO7TlTGzC1KnWlYgRqMY71DQGHZxzZv77ByIPpwy65oPwAEtoQAm77R2fwmhr4j80FMayfL3JsqxMrBQ5e+wwNnu01oc9uRNkeD4o34J15HnDogZ5z7JahcWtd5ZFSKHTbQIJpoOD3K3ekc8JVCa1E73efrxrseOgDBc0zUktB6RMfPtSF8MTGpOijv/pZ0SENAy106Aydwr1dk8CZpJ6UnyG0TMl65KdPodCwfSJjzcTsQlJHbMJhHzmuP7Q5drRTLjj3Ni8mkeUqXe3emCiC0Ap19kwPG+hFGYHY3QmIU8iDL7D9DjrlP1rXkYRlWNz2TNM1gTQMmML6TZF/EIdJ6rx/waNIWTMmdVj907KcEF8pzk6BvRUNIASr5mtk5lfv/sf1rlwzI6SNkFG0AoPirIDzJ/dS6Q8YdLxX/gZxnehqdUjxeby4NOKs8NO5tr0pTo3IW8fw0wnc7/GW0AiWCwTmYTI1cp4CXguZ9uzcF7UA1wHHp5KwLWuuk5URbTxIjkK8aU8e5wi+EpubGn3XQ8tvgkqqp7X4K+IFWi+0gBgOSGuNzEBs4anefGbJsb4by3DLHBp5stkfoeDdcdhuxC0BVjcarkcB5QCs5dctRsBiDjqQTIEPdxlxYVd+ZjeT2bxZiGgRLNCkV68T9JSH+VL/cFUTMAMrbjnCVsv3ZQ2/JoR31x29SsAFaz6vStSAlphYiM102aEhLr3+0LrFVJX+rNup4cSIQ91dG42gYC5oFZ3FPDkJhEdmV/dfW1uw1O0dJO0T0na7iUOg808MYj58xfTOjsr7eIYToVgfKWm7kBNT7HgUlkuQhne2YOx+3CMzZd4FQMWOeDxcmrOecNcVUtiyrIqouNUqNwQtMp0wQ2O67Ho+NWStAut10qoUHedMUgf6wzXe7koEUqMFOdNLtqp70VkLNNbXAogCFso0T1398RhhEoIro5Lfu1Oynm/IdMNlmC0Ih818YD5otCTcP7KGCqs0oq8MUjcS0psQjazYSe2/GKEFsZdiy1Mi2C3XD0wxgN+Qyz5hCte0+u5mXPpO/O0trB9HeQbb2B0rTxShYNtCVK7kv93JWfR+qcfHwQF12GtOrv9Wgww5dpqsPfYwv3X67zR4AX0RU6kesGUHgbHUDmXrkEipvFEVxgZWwvZNqsTpmxUDPFO4LJLWwW00zMK0t9LUKdoAlPL0gyvA5X2sRBoU+HH748c9rpsEp4KBAQdpv8CtxPkaa9Jh6MkZOjxlBejdaRpIQDLiytWWVDpTOPh4L4zPJiGykjU0LEo40WDSda3Ed7CfsMDaSi1JuFgq9LY8QVtiYlnwiai+3ttt2WNMvPQA32DjP+mSc5t7Zf7fxNc0Ov1Njd9FYk88WfLv2PbVWtuaJqq65EbYAM4/14BGyKn6T3SJDyGm2zqZA4BpjVFsH5ZX5e2hdgGDevEYWJos7UvJWzwdHCdzdo06s+IDGzlA== X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: c50970a6-f9e6-466b-c461-08de37d573db X-MS-Exchange-CrossTenant-AuthSource: PH7PR11MB7593.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2025 10:18:24.6011 (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: uW7jcqoNhE8pAEgcKqwyGZo4cQ/LWjN+YFquFLFyxvnkywf9EZQl0jf2micJVhpAFskCvL89dMDHUDjOncOI2DLq0wrdNxwUYvmWyCXpuWw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB7562 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMjEwMDA4NSBTYWx0ZWRfXy+vbbDZ66vh8 zg2E32b2WHmTHI3GlBMjpHufw6pYCzdddXLsDFC81ZmGHuh4v1quXEJLEToDUg+5wPcTQUidNE6 paQPg813EGgKXDtKn8vbCNC1nzwtXTNkiBMYmq18UUra6/6qqWXjp9ioVRxMj11qSin6mYv4Ts+ FOv80rWcJXL0LojrsbNwTfOPRYSZno29DoNqaghEp42dmZCwqGn1HpwYys/IDT7tEZh4bZwzfst 91uIM6BBDLvH91wihRjMniM6Nlzc2GLfxVNb8NyKU6XADWCirVuQPX04oEygI/FXmkb/xKj3Rdp D3rQ+LjcdBeH8X/ETl7ccvzuMqZ1jOKDv7owASgevwYugwxInjUAbAB6LnLCqXuhH0/fSrvW8GD aiqkJIdW/cHxvXuhTOAZ9sbldfOaEA== X-Proofpoint-ORIG-GUID: mlRQIz7m0Xi9-AFVjQfBBz23_zWU-DrG X-Proofpoint-GUID: mlRQIz7m0Xi9-AFVjQfBBz23_zWU-DrG X-Authority-Analysis: v=2.4 cv=dbyNHHXe c=1 sm=1 tr=0 ts=693948f3 cx=c_pps a=0dUMnQhOFwHl/g2jU5Tm3A==:117 a=6eWqkTHjU83fiwn7nKZWdM+Sl24=:19 a=z/mQ4Ysz8XfWz/Q5cLBRGdckG28=:19 a=lCpzRmAYbLLaTzLvsPZ7Mbvzbb8=:19 a=xqWC_Br6kY4A:10 a=wP3pNCr1ah4A:10 a=VkNPw1HP01LnGYTKEx00:22 a=ei4SEBeUAAAA:8 a=NEAV23lmAAAA:8 a=mDV3o1hIAAAA:8 a=t7CeM3EgAAAA:8 a=pGLkceISAAAA:8 a=a_U1oVfrAAAA:8 a=_0udxOufDwQLnbEsdQQA:9 a=wUfXnonp_FejyDEq:21 a=8zIOOLb7Ym0NljyPXbuS:22 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-12-09_05,2025-12-09_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 bulkscore=0 suspectscore=0 adultscore=0 phishscore=0 spamscore=0 impostorscore=0 lowpriorityscore=0 malwarescore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2512100085 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 10 Dec 2025 10:18:31 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/227463 From: Yash Shinde https://blog.rust-lang.org/2025/10/30/Rust-1.91.0/ * Recent updates to rustc now require 'target_pointer_width' to be specified as an integer. Cast it to 'int' in rust target configuration to resolve the type consistency error. https://github.com/rust-lang/rust/pull/144443 * The "remote-test-server" bin is now generated in stage2-tools-bin dir rather than stage1. Update the test suite and recipe accordingly. * Rebase existing patches with v1.91.0. * Drop merged patches with rust v1.91.0. - 0001-libunwind-Use-gcs-instead-of-gcs-target-attribute.patch https://github.com/llvm/llvm-project/pull/138077/commits/bcc31a9384d2df1c0f27ef140e1f0f9ee493034f Signed-off-by: Yash Shinde Signed-off-by: Deepesh Varatharajan --- .../classes-recipe/rust-target-config.bbclass | 2 +- meta/conf/distro/include/tcmode-default.inc | 2 +- meta/lib/oeqa/selftest/cases/rust.py | 2 +- .../rust/{cargo_1.90.0.bb => cargo_1.91.0.bb} | 0 ...-gcs-instead-of-gcs-target-attribute.patch | 66 ---------------- ...teps-tool.rs-switch-off-lto-for-rust.patch | 20 ++--- .../rust/files/rust-oe-selftest.patch | 59 +++++--------- ...ibstd-rs_1.90.0.bb => libstd-rs_1.91.0.bb} | 0 ....90.0.bb => rust-cross-canadian_1.91.0.bb} | 0 meta/recipes-devtools/rust/rust-snapshot.inc | 78 +++++++++---------- meta/recipes-devtools/rust/rust-source.inc | 3 +- .../rust/{rust_1.90.0.bb => rust_1.91.0.bb} | 4 +- 12 files changed, 74 insertions(+), 162 deletions(-) rename meta/recipes-devtools/rust/{cargo_1.90.0.bb => cargo_1.91.0.bb} (100%) delete mode 100644 meta/recipes-devtools/rust/files/0001-libunwind-Use-gcs-instead-of-gcs-target-attribute.patch rename meta/recipes-devtools/rust/{libstd-rs_1.90.0.bb => libstd-rs_1.91.0.bb} (100%) rename meta/recipes-devtools/rust/{rust-cross-canadian_1.90.0.bb => rust-cross-canadian_1.91.0.bb} (100%) rename meta/recipes-devtools/rust/{rust_1.90.0.bb => rust_1.91.0.bb} (99%) diff --git a/meta/classes-recipe/rust-target-config.bbclass b/meta/classes-recipe/rust-target-config.bbclass index 9ce57843cf..33a290412e 100644 --- a/meta/classes-recipe/rust-target-config.bbclass +++ b/meta/classes-recipe/rust-target-config.bbclass @@ -385,7 +385,7 @@ def rust_gen_target(d, thing, wd, arch): if tspec['data-layout'] is None: bb.fatal("No rust target defined for %s" % arch_abi) tspec['max-atomic-width'] = int(d.getVarFlag('MAX_ATOMIC_WIDTH', arch_abi)) - tspec['target-pointer-width'] = d.getVarFlag('TARGET_POINTER_WIDTH', arch_abi) + tspec['target-pointer-width'] = int(d.getVarFlag('TARGET_POINTER_WIDTH', arch_abi)) tspec['target-c-int-width'] = int(d.getVarFlag('TARGET_C_INT_WIDTH', arch_abi)) tspec['target-endian'] = d.getVarFlag('TARGET_ENDIAN', arch_abi) tspec['arch'] = arch_to_rust_target_arch(rust_arch) diff --git a/meta/conf/distro/include/tcmode-default.inc b/meta/conf/distro/include/tcmode-default.inc index ff10f14a6b..01e4c7812b 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 ?= "15.%" SDKGCCVERSION ?= "${GCCVERSION}" GLIBCVERSION ?= "2.42%" -RUSTVERSION ?= "1.90.0%" +RUSTVERSION ?= "1.91.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 355d690a59..ebc9204420 100644 --- a/meta/lib/oeqa/selftest/cases/rust.py +++ b/meta/lib/oeqa/selftest/cases/rust.py @@ -110,7 +110,7 @@ class RustSelfTestSystemEmulated(OESelftestTestCase, OEPTestResultTestCase): # Copy remote-test-server to image through scp host_sys = get_bb_var("RUST_BUILD_SYS", "rust") ssh = SSHControl(ip=qemu.ip, logfile=qemu.sshlog, user="root") - ssh.copy_to(builddir + "/build/" + host_sys + "/stage1-tools-bin/remote-test-server","~/") + ssh.copy_to(builddir + "/build/" + host_sys + "/stage2-tools-bin/remote-test-server","~/") # Execute remote-test-server on image through background ssh command = '~/remote-test-server --bind 0.0.0.0:12345 -v' sshrun=subprocess.Popen(("ssh", '-o', 'UserKnownHostsFile=/dev/null', '-o', 'StrictHostKeyChecking=no', '-f', "root@%s" % qemu.ip, command), shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE) diff --git a/meta/recipes-devtools/rust/cargo_1.90.0.bb b/meta/recipes-devtools/rust/cargo_1.91.0.bb similarity index 100% rename from meta/recipes-devtools/rust/cargo_1.90.0.bb rename to meta/recipes-devtools/rust/cargo_1.91.0.bb diff --git a/meta/recipes-devtools/rust/files/0001-libunwind-Use-gcs-instead-of-gcs-target-attribute.patch b/meta/recipes-devtools/rust/files/0001-libunwind-Use-gcs-instead-of-gcs-target-attribute.patch deleted file mode 100644 index a704671fb9..0000000000 --- a/meta/recipes-devtools/rust/files/0001-libunwind-Use-gcs-instead-of-gcs-target-attribute.patch +++ /dev/null @@ -1,66 +0,0 @@ -From e4f4094de8ddcbe6d5ff1cdf782d2b89e0563903 Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Wed, 30 Apr 2025 19:51:19 -0700 -Subject: [PATCH] libunwind: Use +gcs instead of gcs target attribute - -__attribute__((target("gcs"))) does not work with gcc - -GCC-15 has added gcs intrinsics [1] but the syntax for enabling it is -slightly different. This syntax works with clang too. - -With gcc15 compiler libunwind's check for this macros is succeeding and it -ends up enabling 'gcs' by using function attribute, this works with clang -but not with gcc but '+gcs' works with both - -We can see this in rust compiler bootstrap for aarch64/musl when system -uses gcc15, it ends up with these errors - -Building libunwind.a for aarch64-poky-linux-musl -cargo:warning=/mnt/b/yoe/master/sources/poky/build/tmp/work/cortexa57-poky-linux-musl/rust/1.85.1/rustc-1.85.1-src/src/llvm-project/libunwind/src/UnwindLevel1.c:191:1: error: arch extension 'gcs' should be prefixed by '+' -cargo:warning= 191 | unwind_phase2(unw_context_t *uc, unw_cursor_t *cursor, _Unwind_Exception *exception_object) { -cargo:warning= | ^~~~~~~~~~~~~ -cargo:warning=/mnt/b/yoe/master/sources/poky/build/tmp/work/cortexa57-poky-linux-musl/rust/1.85.1/rustc-1.85.1-src/src/llvm-project/libunwind/src/UnwindLevel1.c:337:22: error: arch extension 'gcs' should be prefixed by '+' -cargo:warning= 337 | _Unwind_Stop_Fn stop, void *stop_parameter) { -cargo:warning= | ^~~~~~~~~~~~~~~ - -[1] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=5a6af707f0af - -Upstream-Status: Submitted [https://github.com/llvm/llvm-project/pull/138077] - -Signed-off-by: Khem Raj ---- - src/llvm-project/libunwind/src/UnwindLevel1.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - ---- a/src/llvm-project/libunwind/src/UnwindLevel1.c -+++ b/src/llvm-project/libunwind/src/UnwindLevel1.c -@@ -185,7 +185,7 @@ extern int __unw_step_stage2(unw_cursor_ - - #if defined(_LIBUNWIND_USE_GCS) - // Enable the GCS target feature to permit gcspop instructions to be used. --__attribute__((target("gcs"))) -+__attribute__((target("+gcs"))) - #endif - static _Unwind_Reason_Code - unwind_phase2(unw_context_t *uc, unw_cursor_t *cursor, _Unwind_Exception *exception_object) { -@@ -329,7 +329,7 @@ unwind_phase2(unw_context_t *uc, unw_cur - - #if defined(_LIBUNWIND_USE_GCS) - // Enable the GCS target feature to permit gcspop instructions to be used. --__attribute__((target("gcs"))) -+__attribute__((target("+gcs"))) - #endif - static _Unwind_Reason_Code - unwind_phase2_forced(unw_context_t *uc, unw_cursor_t *cursor, ---- a/src/llvm-project/libunwind/src/cet_unwind.h -+++ b/src/llvm-project/libunwind/src/cet_unwind.h -@@ -42,7 +42,8 @@ - #include - - // We can only use GCS if arm_acle.h defines the GCS intrinsics. --#ifdef _CHKFEAT_GCS -+// Enable gcs with clang for now, gcc does not build unwindlevel1.c correctly -+#if defined(_CHKFEAT_GCS) && defined(__clang__) - #define _LIBUNWIND_USE_GCS 1 - #endif - 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 7f25ba95ed..a8232b928a 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 @@ -24,9 +24,9 @@ diff --git a/src/bootstrap/src/core/build_steps/tool.rs b/src/bootstrap/src/core index 087df2f8a..00790affb 100644 --- a/src/bootstrap/src/core/build_steps/tool.rs +++ b/src/bootstrap/src/core/build_steps/tool.rs -@@ -16,14 +16,12 @@ use std::{env, fs}; - #[cfg(feature = "tracing")] - use tracing::instrument; +@@ -13,14 +13,12 @@ use std::ffi::OsStr; + use std::path::PathBuf; + use std::{env, fs}; -use crate::core::build_steps::compile::is_lto_stage; use crate::core::build_steps::toolstate::ToolState; @@ -41,14 +41,16 @@ index 087df2f8a..00790affb 100644 +use crate::core::config::{DebuginfoLevel, TargetSelection}; use crate::utils::exec::{BootstrapCommand, command}; use crate::utils::helpers::{add_dylib_path, exe, t}; - use crate::{Compiler, FileType, Kind, Mode, gha}; -@@ -160,20 +158,7 @@ impl Step for ToolBuild { + use crate::{Compiler, FileType, Kind, Mode}; +@@ -121,22 +119,7 @@ impl Step for ToolBuild { cargo.env("RUSTC_WRAPPER", ccache); } -- // Rustc tools (miri, clippy, cargo, rustfmt, rust-analyzer) +- // RustcPrivate tools (miri, clippy, rustfmt, rust-analyzer) and cargo - // could use the additional optimizations. -- if self.mode == Mode::ToolRustc && is_lto_stage(&self.build_compiler) { +- if is_lto_stage(&self.build_compiler) +- && (self.mode == Mode::ToolRustcPrivate || self.path == "src/tools/cargo") +- { - let lto = match builder.config.rust_lto { - RustcLto::Off => Some("off"), - RustcLto::Thin => Some("thin"), @@ -67,7 +69,7 @@ index 087df2f8a..00790affb 100644 diff --git a/src/bootstrap/src/core/builder/mod.rs b/src/bootstrap/src/core/builder/mod.rs --- 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; @@ -75,4 +77,4 @@ diff --git a/src/bootstrap/src/core/builder/mod.rs b/src/bootstrap/src/core/buil +pub use self::cargo::Cargo; pub use crate::Compiler; use crate::core::build_steps::compile::{Std, StdLink}; - use crate::core::build_steps::{ + use crate::core::build_steps::tool::RustcPrivateCompilers; diff --git a/meta/recipes-devtools/rust/files/rust-oe-selftest.patch b/meta/recipes-devtools/rust/files/rust-oe-selftest.patch index fe683e9dd9..7d26d75820 100644 --- a/meta/recipes-devtools/rust/files/rust-oe-selftest.patch +++ b/meta/recipes-devtools/rust/files/rust-oe-selftest.patch @@ -10,7 +10,7 @@ Signed-off-by: Peter Tatrai diff --git a/compiler/rustc_errors/src/markdown/tests/term.rs b/compiler/rustc_errors/src/markdown/tests/term.rs --- a/compiler/rustc_errors/src/markdown/tests/term.rs +++ b/compiler/rustc_errors/src/markdown/tests/term.rs -@@ -61,6 +61,7 @@ fn test_wrapping_write() { +@@ -62,6 +62,7 @@ fn test_wrapping_write() { } #[test] @@ -21,7 +21,7 @@ diff --git a/compiler/rustc_errors/src/markdown/tests/term.rs b/compiler/rustc_e diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs --- a/compiler/rustc_interface/src/tests.rs +++ b/compiler/rustc_interface/src/tests.rs -@@ -137,6 +137,7 @@ fn assert_non_crate_hash_different(x: &Options, y: &Options) { +@@ -147,6 +147,7 @@ fn assert_non_crate_hash_different(x: &Options, y: &Options) { // When the user supplies --test we should implicitly supply --cfg test #[test] @@ -29,7 +29,7 @@ diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/sr fn test_switch_implies_cfg_test() { sess_and_cfg(&["--test"], |_sess, cfg| { assert!(cfg.contains(&(sym::test, None))); -@@ -145,6 +146,7 @@ fn test_switch_implies_cfg_test() { +@@ -155,6 +156,7 @@ fn test_switch_implies_cfg_test() { // When the user supplies --test and --cfg test, don't implicitly add another --cfg test #[test] @@ -37,7 +37,7 @@ diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/sr fn test_switch_implies_cfg_test_unless_cfg_test() { sess_and_cfg(&["--test", "--cfg=test"], |_sess, cfg| { let mut test_items = cfg.iter().filter(|&&(name, _)| name == sym::test); -@@ -154,6 +156,7 @@ fn test_switch_implies_cfg_test_unless_cfg_test() { +@@ -164,6 +166,7 @@ fn test_switch_implies_cfg_test_unless_cfg_test() { } #[test] @@ -49,7 +49,7 @@ diff --git a/library/std/tests/sync/rwlock.rs b/library/std/tests/sync/rwlock.rs index 1a9d3d3f12f..0a9cfc48806 100644 --- a/library/std/tests/sync/rwlock.rs +++ b/library/std/tests/sync/rwlock.rs -@@ -74,6 +74,7 @@ +@@ -605,6 +605,7 @@ #[test] #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] @@ -57,7 +57,7 @@ index 1a9d3d3f12f..0a9cfc48806 100644 fn test_rw_arc_poison_wr() { let arc = Arc::new(RwLock::new(1)); let arc2 = arc.clone(); -@@ -87,6 +88,7 @@ +@@ -618,6 +619,7 @@ #[test] #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] @@ -65,7 +65,7 @@ index 1a9d3d3f12f..0a9cfc48806 100644 fn test_rw_arc_poison_mapped_w_r() { let arc = Arc::new(RwLock::new(1)); let arc2 = arc.clone(); -@@ -101,6 +103,7 @@ +@@ -632,6 +634,7 @@ #[test] #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] @@ -73,7 +73,7 @@ index 1a9d3d3f12f..0a9cfc48806 100644 fn test_rw_arc_poison_ww() { let arc = Arc::new(RwLock::new(1)); assert!(!arc.is_poisoned()); -@@ -115,6 +118,7 @@ +@@ -646,6 +649,7 @@ } #[test] @@ -81,7 +81,7 @@ index 1a9d3d3f12f..0a9cfc48806 100644 #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] fn test_rw_arc_poison_mapped_w_w() { let arc = Arc::new(RwLock::new(1)); -@@ -131,6 +135,7 @@ +@@ -662,6 +666,7 @@ #[test] #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] @@ -89,7 +89,7 @@ index 1a9d3d3f12f..0a9cfc48806 100644 fn test_rw_arc_no_poison_rr() { let arc = Arc::new(RwLock::new(1)); let arc2 = arc.clone(); -@@ -160,6 +165,7 @@ +@@ -691,6 +696,7 @@ #[test] #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] @@ -97,38 +97,14 @@ index 1a9d3d3f12f..0a9cfc48806 100644 fn test_rw_arc_no_poison_rw() { let arc = Arc::new(RwLock::new(1)); let arc2 = arc.clone(); -@@ -227,6 +233,7 @@ - - #[test] - #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] -+#[ignore] - fn test_rw_arc_access_in_unwind() { - let arc = Arc::new(RwLock::new(1)); - let arc2 = arc.clone(); -@@ -326,6 +333,7 @@ - - #[test] - #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] -+#[ignore] - fn test_into_inner_poison() { - let m = new_poisoned_rwlock(NonCopy(10)); - -@@ -362,6 +370,7 @@ - - #[test] - #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] -+#[ignore] - fn test_get_mut_poison() { - let mut m = new_poisoned_rwlock(NonCopy(10)); - -@@ -571,6 +571,7 @@ +@@ -794,6 +800,7 @@ #[test] #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] +#[ignore] fn panic_while_mapping_write_unlocked_poison() { let lock = RwLock::new(()); - + diff --git a/library/test/src/tests.rs b/library/test/src/tests.rs --- a/library/test/src/tests.rs +++ b/library/test/src/tests.rs @@ -143,7 +119,7 @@ diff --git a/library/test/src/tests.rs b/library/test/src/tests.rs diff --git a/library/std/tests/sync/mutex.rs b/library/std/tests/sync/mutex.rs --- a/library/std/tests/sync/mutex.rs +++ b/library/std/tests/sync/mutex.rs -@@ -312,6 +312,7 @@ +@@ -472,6 +472,7 @@ #[test] #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] @@ -151,7 +127,7 @@ diff --git a/library/std/tests/sync/mutex.rs b/library/std/tests/sync/mutex.rs fn test_mutex_arc_poison_mapped() { let arc = Arc::new(Mutex::new(1)); assert!(!arc.is_poisoned()); -@@ -391,6 +392,7 @@ +@@ -388,6 +389,7 @@ #[test] #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] @@ -308,13 +284,14 @@ diff --git a/tests/codegen-llvm/transmute-scalar.rs b/tests/codegen-llvm/transmu index ce1b0558b2e..e8fda2cd566 100644 --- a/tests/codegen-llvm/transmute-scalar.rs +++ b/tests/codegen-llvm/transmute-scalar.rs -@@ -1,5 +1,6 @@ +@@ -1,6 +1,7 @@ //@ add-core-stubs - //@ compile-flags: -C opt-level=0 -C no-prepopulate-passes + //@ compile-flags: -C opt-level=0 -C no-prepopulate-passes --target=x86_64-unknown-linux-gnu + //@ needs-llvm-components: x86 +//@ ignore-riscv64 #![crate_type = "lib"] - #![feature(no_core, repr_simd, arm_target_feature, mips_target_feature, s390x_target_feature)] + #![feature(no_core, repr_simd)] diff --git a/tests/codegen-llvm/uninhabited-transparent-return-abi.rs b/tests/codegen-llvm/uninhabited-transparent-return-abi.rs index face1577c3f..09e0846bad0 100644 --- a/tests/codegen-llvm/uninhabited-transparent-return-abi.rs diff --git a/meta/recipes-devtools/rust/libstd-rs_1.90.0.bb b/meta/recipes-devtools/rust/libstd-rs_1.91.0.bb similarity index 100% rename from meta/recipes-devtools/rust/libstd-rs_1.90.0.bb rename to meta/recipes-devtools/rust/libstd-rs_1.91.0.bb diff --git a/meta/recipes-devtools/rust/rust-cross-canadian_1.90.0.bb b/meta/recipes-devtools/rust/rust-cross-canadian_1.91.0.bb similarity index 100% rename from meta/recipes-devtools/rust/rust-cross-canadian_1.90.0.bb rename to meta/recipes-devtools/rust/rust-cross-canadian_1.91.0.bb diff --git a/meta/recipes-devtools/rust/rust-snapshot.inc b/meta/recipes-devtools/rust/rust-snapshot.inc index 6a8802c3fe..c6f9031e65 100644 --- a/meta/recipes-devtools/rust/rust-snapshot.inc +++ b/meta/recipes-devtools/rust/rust-snapshot.inc @@ -4,56 +4,56 @@ ## The exact (previous) version that has been used is specified in the source tarball. ## The version is replicated here. -SNAPSHOT_VERSION = "1.89.0" +SNAPSHOT_VERSION = "1.90.0" -SRC_URI[rustc-snapshot-aarch64.sha256sum] = "16ed8d8c7628a481c8501e7cd1022a123269b297bdedbb7f211f37a15e937e0e" -SRC_URI[rust-std-snapshot-aarch64.sha256sum] = "abea0955dded88c68d731524ab9d29b162fae23bf5805b9f1dec063cba37c2aa" -SRC_URI[cargo-snapshot-aarch64.sha256sum] = "f9df3ee6d55a2387459b843477743fa386c3c0f126bd0be01691ee49309681b8" -SRC_URI[clippy-snapshot-aarch64.sha256sum] = "46512c61e217e613dc4d329fda8c6dde0d0ea94c4ae59c1ca2af9cf480458ff0" +SRC_URI[rustc-snapshot-aarch64.sha256sum] = "4e1a9987a11d7d91f0d5afbf5333feb62f44172e4a31f33ce7246549003217f2" +SRC_URI[rust-std-snapshot-aarch64.sha256sum] = "4952abb7d9d3ed7cea4f7ea44dcb23dc67631fae4ac44a5f059b90a4b5e9223f" +SRC_URI[cargo-snapshot-aarch64.sha256sum] = "bd8d1da6fe88ea7e29338f24277c22156267447adbfc47d690467ad32d02c2a7" +SRC_URI[clippy-snapshot-aarch64.sha256sum] = "1a7f969c5712c17d960d6fba8235b33f264a9484b369dc388766a540f1ba464f" -SRC_URI[rustc-snapshot-i686.sha256sum] = "a5ca58ab1b419ddbf5e4ea9b206a3d1feb0cfc4e0879a96c2c2f809ee9ca00b0" -SRC_URI[rust-std-snapshot-i686.sha256sum] = "853605815e8267baf8fdc6e4594514d2e0afb46fb29f478ebec871a3424430f3" -SRC_URI[cargo-snapshot-i686.sha256sum] = "1b3edcf590af9b9abdfa95f34b90a4258560627464a2a25d4e4503bb5834e291" -SRC_URI[clippy-snapshot-i686.sha256sum] = "2c47960ee78d804ce679b06c9c759e777ac7f39cae48bd8ffaf7ff706f951520" +SRC_URI[rustc-snapshot-i686.sha256sum] = "3b33cef77f9a57d592beb5117d933134bc76258006e6d4f9aed2969d20c75742" +SRC_URI[rust-std-snapshot-i686.sha256sum] = "dc4bffa768326e0cc47d6b129bcb891af6e7b7bf09ec92bca45e49420b9837bd" +SRC_URI[cargo-snapshot-i686.sha256sum] = "c1e9b24bbfa95550b5dba9de2045a4c906bea108625781758692b2a407428391" +SRC_URI[clippy-snapshot-i686.sha256sum] = "3e902971ef6b44ccb804af73aba5dc8c6199ed09a76f178b0eed6f53f7f56eab" -SRC_URI[rustc-snapshot-loongarch64.sha256sum] = "c090c2ab6b54a8d84129de4ef53bd4df35358191092d3217bf6fa99c20c860c6" -SRC_URI[rust-std-snapshot-loongarch64.sha256sum] = "2c5aa2cad944499c5b64947dcfeb12f3d5c91ced330a0982e000f22ec3dea27f" -SRC_URI[cargo-snapshot-loongarch64.sha256sum] = "d22678ae984535464cd9aff3515e9ec5145ecb8db489ef4cce5c697e0538b500" -SRC_URI[clippy-snapshot-loongarch64.sha256sum] = "0392c4fc97dc72b0d7d518129428c928b887e63b47f3d931fab7e54e2332ca9c" +SRC_URI[rustc-snapshot-loongarch64.sha256sum] = "aca7ee7f0d98e34dafa367cef9c35626d37cf8334f356498aa2bda2fc02206b3" +SRC_URI[rust-std-snapshot-loongarch64.sha256sum] = "cb779575cec151223c3c144bc9ca957530fa510e36b32bc9f35bbb1b7dde9e2f" +SRC_URI[cargo-snapshot-loongarch64.sha256sum] = "6ae37dc8eb3ff4655053a39d5f973613a82a8a8e2fff42c423ca33d8cf19e6c1" +SRC_URI[clippy-snapshot-loongarch64.sha256sum] = "847b3d4bd3d2be23bafbb90cd2ed5e1bf1aacb2e7152e7d2f99bee1078aa0eaa" -SRC_URI[rustc-snapshot-powerpc.sha256sum] = "08de18310e7750796261b45d5faccc31ff94ff64148bb5d9fa65e9727a432010" -SRC_URI[rust-std-snapshot-powerpc.sha256sum] = "a03b3c3facf4701b6c7e8f379f2aac445a582227b881e3268dee3752a84a89eb" -SRC_URI[cargo-snapshot-powerpc.sha256sum] = "ebdb0c8c9fad2d07dc702c9bfaee5dd140f6b0f9493bdd0c0d33f1449b7d97c2" -SRC_URI[clippy-snapshot-powerpc.sha256sum] = "f93cb4327943f30b3da8e671eab6a78cdc3110c6612ad2a5eeaa9d8597fbd452" +SRC_URI[rustc-snapshot-powerpc.sha256sum] = "c5d898ca92063d634011525557f2acabc65d4ea268022e7005f99b6ba917357b" +SRC_URI[rust-std-snapshot-powerpc.sha256sum] = "756d1bbd66ebb0d4d575b650a8a94d52546f6892bd2f864410411f6027ed879f" +SRC_URI[cargo-snapshot-powerpc.sha256sum] = "5b160a2bf0e6f470b83c5988db5b6f02b6d65d3d97a9b965acbfe940b4143b34" +SRC_URI[clippy-snapshot-powerpc.sha256sum] = "42ac7480dcac12a843803f5ee398d2a42389359178774cab20c66eda4f6927a5" -SRC_URI[rustc-snapshot-powerpc64.sha256sum] = "6c66c8a3d698bb338d20453c88d768e87a5af8970af4f4082d18dec26c10da2c" -SRC_URI[rust-std-snapshot-powerpc64.sha256sum] = "29338a9b067fe1adfd4d5ad681577c2333b3ca266a631822f23fad0984dcca39" -SRC_URI[cargo-snapshot-powerpc64.sha256sum] = "f23184532c1e2eef6df49358fdfb867e99e84db7c814ce667744a36bc2fd8d37" -SRC_URI[clippy-snapshot-powerpc64.sha256sum] = "695228193ff41ac32ec562140294d87b1988311dfe685acc72b725429e2651d9" +SRC_URI[rustc-snapshot-powerpc64.sha256sum] = "7adbc3c317a73b7d504e171d65a2b0e93953e3e572dab99acabe91140101f81d" +SRC_URI[rust-std-snapshot-powerpc64.sha256sum] = "16daac5dc6994c03ab3b8c4e6e5e52c41f5fc5846acea08f4fdf0759cc273aa2" +SRC_URI[cargo-snapshot-powerpc64.sha256sum] = "fdf90d22476c88d5b9cf8a3ac0937d0b9c6b7dafbf6b3afde369c2f5b8faec88" +SRC_URI[clippy-snapshot-powerpc64.sha256sum] = "071e06a50d5b2975905bb2d6211f2d2372ab0dbd50b7b0097168cb64e77a4bb0" -SRC_URI[rustc-snapshot-powerpc64le.sha256sum] = "14b7a8b7b3951a59a765804e1dd2ad454d3412000e7166ad8f2f621e29a88941" -SRC_URI[rust-std-snapshot-powerpc64le.sha256sum] = "40123b87f0b909376d7f0bd291553b7e10aa637dd710f4bc698bcdcd0b08d21b" -SRC_URI[cargo-snapshot-powerpc64le.sha256sum] = "764eb5f54c2b0779f9e84c6fb0763e45316d5a51fbd187b56f9f6d7a646272d4" -SRC_URI[clippy-snapshot-powerpc64le.sha256sum] = "682d112649355a637a871347d41317e361eb555bbfd4a4e48b26b0978449184b" +SRC_URI[rustc-snapshot-powerpc64le.sha256sum] = "e87b8eb926a65211a99f6712ff376c5950b4b11c67ed7f92019da27a34ae7085" +SRC_URI[rust-std-snapshot-powerpc64le.sha256sum] = "eac29f92ccd335c51553c362c7a6d3de2eb7071b5ae3839470e351a6a3ebdb77" +SRC_URI[cargo-snapshot-powerpc64le.sha256sum] = "f029151dfeed6570b8b347e04a5bb7dcb9c59d8e5454c535c05bb5069c216354" +SRC_URI[clippy-snapshot-powerpc64le.sha256sum] = "12d19dbec34c5a35cd285fe74dcd0226563c0b25be5d041479744060e9374c98" -SRC_URI[rustc-snapshot-riscv64gc.sha256sum] = "2a2a00288faa8a55b16a3135c979bbd9c823f1e9ff376ea452ef0700ccc20d48" -SRC_URI[rust-std-snapshot-riscv64gc.sha256sum] = "ee83276bb2d456116517638b8ff379c24ceffe1c0e381103739cb1db8e4c20da" -SRC_URI[cargo-snapshot-riscv64gc.sha256sum] = "ec9a8f609f23b196d09e6537dbaec7c6fd947e3b8266406c6654b2c112530de2" -SRC_URI[clippy-snapshot-riscv64gc.sha256sum] = "6bba0817c70b4dfae08238beb38003c623404d26b9ec00a297d08c9bf81c6d76" +SRC_URI[rustc-snapshot-riscv64gc.sha256sum] = "11ae522969c6b18ad4b5a1ae229473de59406af7ab2e831acb43ee247a16b58d" +SRC_URI[rust-std-snapshot-riscv64gc.sha256sum] = "675dc5556d9d879101d2401b693fcf79edac8f00a49249e2e0f19cecd172ce51" +SRC_URI[cargo-snapshot-riscv64gc.sha256sum] = "8a09de014f7cec749b338c6636d190a1b73fd377bab6a223eb715d3c76c49e79" +SRC_URI[clippy-snapshot-riscv64gc.sha256sum] = "02338e25b3d2b61d9dbee7bee4c9ed148f18e2d010c6297ffd36df98042f41a2" -SRC_URI[rustc-snapshot-s390x.sha256sum] = "b2b811644d26d10195be0272b81bd28ed55aa998300c52b0d3b74bb40c162c42" -SRC_URI[rust-std-snapshot-s390x.sha256sum] = "2a7ed11535aac5b298a21799292ad8393b14a16acbac6358416406a0d2639746" -SRC_URI[cargo-snapshot-s390x.sha256sum] = "92534c38ffe3a6b17964f37ca812c5d00f079011acb060ec036945d2f568a772" -SRC_URI[clippy-snapshot-s390x.sha256sum] = "a4a050854353325c1710440a5f727e4280f1758fad5c0da6ba336ed57156fb48" +SRC_URI[rustc-snapshot-s390x.sha256sum] = "274daef5a69c8812411248a4afea4f58a096c978dffba6b1198da8e3b5a02de7" +SRC_URI[rust-std-snapshot-s390x.sha256sum] = "e3e7e3dbc65616eebc69e642d9042363ec38d7f50393ef816cc5238ec475f3f5" +SRC_URI[cargo-snapshot-s390x.sha256sum] = "468ace270ee4edac0a10185ea876ea555e41bacc0137ff08985d2155fe8cc777" +SRC_URI[clippy-snapshot-s390x.sha256sum] = "bb0a9483a36fdbdab08b433613b374c036779d247a8d508e31265193c3759a8d" -SRC_URI[rustc-snapshot-x86_64.sha256sum] = "b42c254e1349df86bd40bc28fdf386172a1a46f2eeabe3c7a08a75cf1fb60e27" -SRC_URI[rust-std-snapshot-x86_64.sha256sum] = "2719470dcd78b3f97d78b978c8f85a1a58d84ff11b62558294621c01bca34d49" -SRC_URI[cargo-snapshot-x86_64.sha256sum] = "99fc10be2aeedf2c23a484f217bfa76458494495a0eee33e280d3616bb08282d" -SRC_URI[clippy-snapshot-x86_64.sha256sum] = "c6c362c6cd74567022e9ba0c16f6676f8c2b73d955adcf1f6f4c51cf15e57ce8" +SRC_URI[rustc-snapshot-x86_64.sha256sum] = "48c2a42de9e92fcae8c24568f5fe40d5734696a6f80e83cc6d46eef1a78f13c9" +SRC_URI[rust-std-snapshot-x86_64.sha256sum] = "663f4ab7945b392d5e5294dec1b050a66820a20e86f084ec37eeb0f2f7ff5569" +SRC_URI[cargo-snapshot-x86_64.sha256sum] = "9853db03d68578a30972e2755c89c66aec035fec641cf8f3a7117c81eec2578d" +SRC_URI[clippy-snapshot-x86_64.sha256sum] = "5b6466419693a05365827378145014a37ae74fb2948fab390d5210a524792ed8" -SRC_URI[rust-std-snapshot-i586.sha256sum] = "7909e4bff0a971286958f2a88c3bbf231d6ba4ac1add0b2aa3669adb9f869836" +SRC_URI[rust-std-snapshot-i586.sha256sum] = "46eab5c41bf9160a31a53560ff5fc43308c0998cde952533e76fadef66799553" -SRC_URI[rust-std-snapshot-sparc64.sha256sum] = "a23126912b494dc2fcad495f78f920e43c2b1f06159e45477664aa37c03d80fa" +SRC_URI[rust-std-snapshot-sparc64.sha256sum] = "c204ecb424090cc6c0100cef3013f8636d29f288db99c037578aee7d2672a711" 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 cf8274b443..562bcbf4c5 100644 --- a/meta/recipes-devtools/rust/rust-source.inc +++ b/meta/recipes-devtools/rust/rust-source.inc @@ -7,10 +7,9 @@ SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;n file://oeqa-selftest-Increase-timeout-in-process-sigpipe-ru.patch;patchdir=${RUSTSRC} \ file://0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch;patchdir=${RUSTSRC} \ file://revert-link-std-statically-in-rustc_driver-feature.patch;patchdir=${RUSTSRC} \ - file://0001-libunwind-Use-gcs-instead-of-gcs-target-attribute.patch;patchdir=${RUSTSRC} \ file://0001-riscv32-Define-plain-syscalls-as-their-time64-varian.patch;patchdir=${RUSTSRC} \ " -SRC_URI[rust.sha256sum] = "6bfeaddd90ffda2f063492b092bfed925c4b8c701579baf4b1316e021470daac" +SRC_URI[rust.sha256sum] = "9b94161dba3aa32192e0e75f7891912d98095ffb86087b07a05af35a0265a938" RUSTSRC = "${UNPACKDIR}/rustc-${RUST_VERSION}-src" diff --git a/meta/recipes-devtools/rust/rust_1.90.0.bb b/meta/recipes-devtools/rust/rust_1.91.0.bb similarity index 99% rename from meta/recipes-devtools/rust/rust_1.90.0.bb rename to meta/recipes-devtools/rust/rust_1.91.0.bb index e7f3985332..a25f65f674 100644 --- a/meta/recipes-devtools/rust/rust_1.90.0.bb +++ b/meta/recipes-devtools/rust/rust_1.91.0.bb @@ -293,7 +293,7 @@ rust_do_install:class-nativesdk() { install -d ${D}${bindir} for i in cargo-clippy clippy-driver rustfmt; do - cp build/${RUST_BUILD_SYS}/stage1-tools/${RUST_HOST_SYS}/release/$i ${D}${bindir} + cp build/${RUST_BUILD_SYS}/stage2-tools/${RUST_HOST_SYS}/release/$i ${D}${bindir} patchelf --set-rpath "\$ORIGIN/../lib" ${D}${bindir}/$i done @@ -328,7 +328,7 @@ rust_do_install:class-target() { install -d ${D}${bindir} for i in ${EXTRA_TOOLS}; do - cp build/${RUST_BUILD_SYS}/stage1-tools/${RUST_HOST_SYS}/release/$i ${D}${bindir} + cp build/${RUST_BUILD_SYS}/stage2-tools/${RUST_HOST_SYS}/release/$i ${D}${bindir} patchelf --set-rpath "\$ORIGIN/../lib" ${D}${bindir}/$i done