Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2228377/?format=api
{ "id": 2228377, "url": "http://patchwork.ozlabs.org/api/patches/2228377/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260426105932.2270364-2-mkchauras@gmail.com/", "project": { "id": 2, "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api", "name": "Linux PPC development", "link_name": "linuxppc-dev", "list_id": "linuxppc-dev.lists.ozlabs.org", "list_email": "linuxppc-dev@lists.ozlabs.org", "web_url": "https://github.com/linuxppc/wiki/wiki", "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git", "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/", "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/", "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}" }, "msgid": "<20260426105932.2270364-2-mkchauras@gmail.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20260426105932.2270364-2-mkchauras@gmail.com/", "date": "2026-04-26T10:59:26", "name": "[V15,1/7] rust: Fix \"multiple candidates for rmeta dependency core\" error", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "79f068113daa1d09dd4cbb55c06e5ae09f39ed85", "submitter": { "id": 92575, "url": "http://patchwork.ozlabs.org/api/people/92575/?format=api", "name": "Mukesh Kumar Chaurasiya", "email": "mkchauras@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260426105932.2270364-2-mkchauras@gmail.com/mbox/", "series": [ { "id": 501524, "url": "http://patchwork.ozlabs.org/api/series/501524/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=501524", "date": "2026-04-26T10:59:25", "name": "Rust support for powerpc", "version": 15, "mbox": "http://patchwork.ozlabs.org/series/501524/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2228377/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2228377/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linuxppc-dev+bounces-20122-incoming=patchwork.ozlabs.org@lists.ozlabs.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linuxppc-dev@lists.ozlabs.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=aBftWdoo;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=2404:9400:21b9:f100::1; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-20122-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)", "lists.ozlabs.org;\n arc=none smtp.remote-ip=\"2607:f8b0:4864:20::62e\"", "lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com", "lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=aBftWdoo;\n\tdkim-atps=neutral", "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com\n (client-ip=2607:f8b0:4864:20::62e; helo=mail-pl1-x62e.google.com;\n envelope-from=mkchauras@gmail.com; receiver=lists.ozlabs.org)" ], "Received": [ "from lists.ozlabs.org (lists.ozlabs.org\n [IPv6:2404:9400:21b9:f100::1])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1 raw public key)\n server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g3NyL11wSz1yHv\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 26 Apr 2026 21:00:10 +1000 (AEST)", "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4g3NyF0CGWz2ySV;\n\tSun, 26 Apr 2026 21:00:05 +1000 (AEST)", "from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com\n [IPv6:2607:f8b0:4864:20::62e])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4g3NyD0KXVz2xfX\n\tfor <linuxppc-dev@lists.ozlabs.org>; Sun, 26 Apr 2026 21:00:03 +1000 (AEST)", "by mail-pl1-x62e.google.com with SMTP id\n d9443c01a7336-2b7adb38d65so31233255ad.2\n for <linuxppc-dev@lists.ozlabs.org>;\n Sun, 26 Apr 2026 04:00:03 -0700 (PDT)", "from li-1a3e774c-28e4-11b2-a85c-acc9f2883e29.ibm.com.com\n ([106.51.164.157])\n by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2b5faa2f129sm256667235ad.29.2026.04.26.03.59.49\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sun, 26 Apr 2026 04:00:01 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1777201204;\n\tcv=none;\n b=aS++4d7yZQO6KNHZpFWK40Qq7tdpTsCPmuaeLASeahXEwT3sDTti327xcv/qTmO8PI4WPs/+YhdEGOBd40X6evcqFLuyNd5qAtm9dM39CGvMXlCVeABf59GdCFhfTT+sRdVco+LNpiSV2DtHfE0NkF7JTLXYZQmoNsO7Hrj8ZjEU/zauvo9Jb2ykA1v35AlJ52k3ba4q4eDcUvsD/9WOXOVYT9mUooLsO+WEJk8sxtqYb8W5nuvuEunBPKM9PpETaaoRTggNERQNC2QGYQk5dEkSC2MqCzEqp97B1/Dkxp45wN1EcjGhg16IpcorKLC2o24brCiQaxrMZsj4D/n4gg==", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1777201204; c=relaxed/relaxed;\n\tbh=xY7w8LnDIE8HyaiKiCv1wqAMXYWCbDMiA1p0Co9KMuY=;\n\th=From:To:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=mMuUVsnSZWADiRTUbVbltZUi2mkKHbvh2VPBeV27HT7RySx4ErGdqFbHZ1/n0LGHh9G29Rl7S6GgUfgO+fN9aljlJnhH0Q+62xUt/nld6WRhfvbxG9DAHuJyo7TPhhc1EeYOO+/0uEAhEfvce9tEDDOzt0SftYG3+TcjsMrGqutLEXscFPrajNCC1mBEs3ad9Az5c6F263bIjw0w8v8KGVU9Tl2Bul+1XixSj9TXz+NzuZbVvOm4xMaFqcIJgwgW7755oQrYjBYlYciiQm1gVrP43Jql75HcbZGFCNeM+xeQhDOhGWLc6rdNkdT31h2txLH4GvdI+J/7hszvnSXDzQ==", "ARC-Authentication-Results": "i=1; lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com; dkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=aBftWdoo; dkim-atps=neutral;\n spf=pass (client-ip=2607:f8b0:4864:20::62e; helo=mail-pl1-x62e.google.com;\n envelope-from=mkchauras@gmail.com;\n receiver=lists.ozlabs.org) smtp.mailfrom=gmail.com", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1777201202; x=1777806002;\n darn=lists.ozlabs.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:from:to:cc:subject:date:message-id\n :reply-to;\n bh=xY7w8LnDIE8HyaiKiCv1wqAMXYWCbDMiA1p0Co9KMuY=;\n b=aBftWdooO7REh29WeblVRn2mof3vaDSkjc0KkoW+Pm0xd9r8lutNf6WA9tIag5uWna\n HPKOVgDTw2FUYiMVQpRLANYSjCLl5CKFtQQIs8vxxFO4lLlSmrEDU08L50W94yJDk4ef\n 9KBc6vlznTfviYX8D5cYAYe8fa6PXOCzXogbM7ZT65kP4oH8g199j3oH+vmm5Z40bqKl\n wnim+zQpmLKe4/UMPJAX3ZI8zN5QyOF9+0cES6csAXwEsQfXhXmhhTT3B8EcUZQsmYOy\n q76OrT8yISdX0l69LoJtzkit5pwzp2DcigjFMU4dlUer/UuUUYVw6gWYqDIWyzR/SheI\n qK2A==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777201202; x=1777806002;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=xY7w8LnDIE8HyaiKiCv1wqAMXYWCbDMiA1p0Co9KMuY=;\n b=RT1Ckiq3CkmmqMDodiAF9AqGGjDpuDi7qGt/vVfKPsvUps8mRTnBHd0ANoqqpdUeSu\n W1WOOvtlRKAseag7v0VBM5Sd+ddM1WI1libfC5OXlSH7LwJq2BBo/LMflznpYQJDFGFh\n a08PhMl1l17Ymg9Vs5HwCSBNmXRc500JBpltAkicL7x1wAeEBum/eS1qxFhhyrnW5jLO\n urd1cKRqWaikXgpzK4Uu0wOBXWDebM2boEicMt8+D68W0+AhlL5G/HrVkBzpP1fxn53e\n xi4/ily6ZjJ5ndNM/vP8A3XdMohZnm54oANFBsgLitA5HKiaUydpg3vhy9MwVhimqo+R\n gNDw==", "X-Forwarded-Encrypted": "i=1;\n AFNElJ+QPnhMIciOVV3pXxqPv5vJZ9FYWqr38JJgAbmmHdkA2Ej20L8t8pd8SnnQwK9A3+uv8qRpbRwU7EX4G4A=@lists.ozlabs.org", "X-Gm-Message-State": "AOJu0YxSX7imEE1nl8HGtyecdp1C5LLoF6RwpgkWqtygI5NawB18Kx+5\n\tp7c3ipLbYSCXBcx15GPy5CEk8SS4cPaDjOzjAl5ebzSA2YTgbPkaur/T", "X-Gm-Gg": "AeBDieuwGiAcl7kTwO7319g8vaZ4LSCDn13pNeRdxn4BzO3LG2UE6KxIngTVDoB3x3c\n\tiMI/9rJrXlxWJXYnB8QAlKrtYTbIgC0bjLYFYsESkfBPjFY1JG08PIRphz8cUm8ZMLr/d/V3ZOZ\n\tFWITnBI6eOkRT/XckK6QIBm84iCoKRsc/C8SWeyfiKhkrOiNJ4srafIy50OiRFc9UqaQtVQJ1/s\n\tzI88QgkMYl+fdYH2Zg5AP74PEH6orMVQQj32YT++PPcUosq+YZ+0DgOBjWcmSkE1Ujl69j4kKqs\n\tQoT0LQBBzo8hVNRomQJG7RsoKAl4Y3Wx60e/crzM6oVipd5t22PEWH1V2GUhLy4SpzvMezNTDwS\n\tBrIZrE5SyD4TXrJn6eDQewA3+PWOsYn7G1d7M8yPXRNwI5IOn0dwEVGt/UME62c2zMhpZxERrxm\n\tkVauL9BmuAJkHVADGf+LvugSPQcr+OxcjhkmbEgq1seG+ha7I50mLyjQZyJRPCqFR5jCcq5v6Fq\n\tEclW0MrRYUAJQI=", "X-Received": "by 2002:a17:903:b06:b0:2b2:5491:e32b with SMTP id\n d9443c01a7336-2b5f9f2bd43mr403518485ad.23.1777201202017;\n Sun, 26 Apr 2026 04:00:02 -0700 (PDT)", "From": "\"Mukesh Kumar Chaurasiya (IBM)\" <mkchauras@gmail.com>", "To": "maddy@linux.ibm.com,\n\tmpe@ellerman.id.au,\n\tnpiggin@gmail.com,\n\tchleroy@kernel.org,\n\tpeterz@infradead.org,\n\tjpoimboe@kernel.org,\n\tjbaron@akamai.com,\n\taliceryhl@google.com,\n\trostedt@goodmis.org,\n\tardb@kernel.org,\n\tojeda@kernel.org,\n\tboqun@kernel.org,\n\tgary@garyguo.net,\n\tbjorn3_gh@protonmail.com,\n\tlossin@kernel.org,\n\ta.hindborg@kernel.org,\n\ttmgross@umich.edu,\n\tdakr@kernel.org,\n\tnathan@kernel.org,\n\tnick.desaulniers+lkml@gmail.com,\n\tmorbo@google.com,\n\tjustinstitt@google.com,\n\tdaniel.almeida@collabora.com,\n\tfujita.tomonori@gmail.com,\n\tviresh.kumar@linaro.org,\n\tprafulrai522@gmail.com,\n\tgregkh@linuxfoundation.org,\n\tarnd@arndb.de,\n\ttamird@kernel.org,\n\tmark.rutland@arm.com,\n\tmkchauras@gmail.com,\n\tlyude@redhat.com,\n\tlina+kernel@asahilina.net,\n\tlinuxppc-dev@lists.ozlabs.org,\n\tlinux-kernel@vger.kernel.org,\n\trust-for-linux@vger.kernel.org,\n\tllvm@lists.linux.dev", "Subject": "[PATCH V15 1/7] rust: Fix \"multiple candidates for rmeta dependency\n core\" error", "Date": "Sun, 26 Apr 2026 16:29:26 +0530", "Message-ID": "<20260426105932.2270364-2-mkchauras@gmail.com>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260426105932.2270364-1-mkchauras@gmail.com>", "References": "<20260426105932.2270364-1-mkchauras@gmail.com>", "X-Mailing-List": "linuxppc-dev@lists.ozlabs.org", "List-Id": "<linuxppc-dev.lists.ozlabs.org>", "List-Help": "<mailto:linuxppc-dev+help@lists.ozlabs.org>", "List-Owner": "<mailto:linuxppc-dev+owner@lists.ozlabs.org>", "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>", "List-Archive": "<https://lore.kernel.org/linuxppc-dev/>,\n <https://lists.ozlabs.org/pipermail/linuxppc-dev/>", "List-Subscribe": "<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>", "List-Unsubscribe": "<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>", "Precedence": "list", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Spam-Status": "No, score=-0.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID,\n\tDKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,\n\tSPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 OzLabs 8", "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org" }, "content": "When building Rust code for powerpc64le with LLVM=1 and -j1, rustc\nencounters an error: \"multiple candidates for `rmeta` dependency `core`\nfound\", with two candidates:\n1. The host's standard library from the rustup toolchain\n2. The kernel's custom libcore.rmeta in the rust/ directory\n\nThis occurs because the build system uses `-L$(objtree)/rust` for host\nlibrary builds (proc_macro2, quote, syn), which causes rustc to search\nthe rust/ directory. During this search, rustc finds both the kernel's\ncustom libcore.rmeta and gains access to the host's standard library,\ncreating a conflict.\n\nThe solution is to separate host libraries into a dedicated rust/host/\nsubdirectory and use `-L$(objtree)/rust/host` for host builds instead\nof `-L$(objtree)/rust`. This ensures that:\n\n1. Host library builds (proc_macro2, quote, syn) only search rust/host/\n and never encounter the kernel's libcore.rmeta\n2. Proc macro builds use `-L$(objtree)/rust/host` to find their\n dependencies\n\nSpecial handling is added for rustdoc-pin_init, which is a host build\n(to access the alloc crate) but depends on proc macros from the main\nrust/ directory. It uses explicit `--extern` paths to reference the\nproc macros without adding `-L$(objtree)/rust`, which would reintroduce\nthe conflict.\n\nThe rust/host/ directory is added to clean-files to ensure it's removed\nduring `make clean`.\n\nLink: https://github.com/Rust-for-Linux/linux/issues/105\nLink: https://github.com/linuxppc/issues/issues/451\nSigned-off-by: Mukesh Kumar Chaurasiya (IBM) <mkchauras@gmail.com>\n---\n rust/Makefile | 38 +++++++++++++++++++++-----------------\n 1 file changed, 21 insertions(+), 17 deletions(-)", "diff": "diff --git a/rust/Makefile b/rust/Makefile\nindex b361bfedfdf0..44ec1634714a 100644\n--- a/rust/Makefile\n+++ b/rust/Makefile\n@@ -3,6 +3,9 @@\n # Where to place rustdoc generated documentation\n rustdoc_output := $(objtree)/Documentation/output/rust/rustdoc\n \n+# Clean generated host directory\n+clean-files := host/\n+\n obj-$(CONFIG_RUST) += core.o compiler_builtins.o ffi.o\n always-$(CONFIG_RUST) += exports_core_generated.h\n \n@@ -31,7 +34,7 @@ endif\n \n obj-$(CONFIG_RUST) += exports.o\n \n-always-$(CONFIG_RUST) += libproc_macro2.rlib libquote.rlib libsyn.rlib\n+always-$(CONFIG_RUST) += host/libproc_macro2.rlib host/libquote.rlib host/libsyn.rlib\n \n always-$(CONFIG_RUST_KERNEL_DOCTESTS) += doctests_kernel_generated.rs\n always-$(CONFIG_RUST_KERNEL_DOCTESTS) += doctests_kernel_generated_kunit.c\n@@ -146,7 +149,7 @@ quiet_cmd_rustdoc = RUSTDOC $(if $(rustdoc_host),H, ) $<\n cmd_rustdoc = \\\n \tOBJTREE=$(abspath $(objtree)) \\\n \t$(RUSTDOC) $(filter-out $(skip_flags) --remap-path-scope=%,$(if $(rustdoc_host),$(rust_common_flags),$(rust_flags))) \\\n-\t\t$(rustc_target_flags) -L$(objtree)/$(obj) \\\n+\t\t$(rustc_target_flags) -L$(objtree)/$(obj)$(if $(rustdoc_host),/host) \\\n \t\t-Zunstable-options --generate-link-to-definition \\\n \t\t--output $(rustdoc_output) \\\n \t\t--crate-name $(subst rustdoc-,,$@) \\\n@@ -231,6 +234,7 @@ rustdoc-pin_init_internal: $(src)/pin-init/internal/src/lib.rs \\\n \n rustdoc-pin_init: private rustdoc_host = yes\n rustdoc-pin_init: private rustc_target_flags = $(pin_init-flags) \\\n+ --extern pin_init_internal=$(objtree)/$(obj)/$(libpin_init_internal_name) \\\n --extern alloc --cfg feature=\\\"alloc\\\"\n rustdoc-pin_init: $(src)/pin-init/src/lib.rs rustdoc-pin_init_internal \\\n rustdoc-macros FORCE\n@@ -520,23 +524,23 @@ quiet_cmd_rustc_procmacrolibrary = $(RUSTC_OR_CLIPPY_QUIET) PL $@\n \t$(if $(skip_clippy),$(RUSTC),$(RUSTC_OR_CLIPPY)) \\\n \t\t$(filter-out $(skip_flags),$(rust_common_flags) $(rustc_target_flags)) \\\n \t\t--emit=dep-info=$(depfile) --emit=link=$@ --crate-type rlib -O \\\n-\t\t--out-dir $(objtree)/$(obj) -L$(objtree)/$(obj) \\\n+\t\t--out-dir $(objtree)/$(obj)/host -L$(objtree)/$(obj)/host \\\n \t\t--crate-name $(patsubst lib%.rlib,%,$(notdir $@)) $<\n \n-$(obj)/libproc_macro2.rlib: private skip_clippy = 1\n-$(obj)/libproc_macro2.rlib: private rustc_target_flags = $(proc_macro2-flags)\n-$(obj)/libproc_macro2.rlib: $(src)/proc-macro2/lib.rs FORCE\n+$(obj)/host/libproc_macro2.rlib: private skip_clippy = 1\n+$(obj)/host/libproc_macro2.rlib: private rustc_target_flags = $(proc_macro2-flags)\n+$(obj)/host/libproc_macro2.rlib: $(src)/proc-macro2/lib.rs FORCE\n \t+$(call if_changed_dep,rustc_procmacrolibrary)\n \n-$(obj)/libquote.rlib: private skip_clippy = 1\n-$(obj)/libquote.rlib: private skip_flags = $(quote-skip_flags)\n-$(obj)/libquote.rlib: private rustc_target_flags = $(quote-flags)\n-$(obj)/libquote.rlib: $(src)/quote/lib.rs $(obj)/libproc_macro2.rlib FORCE\n+$(obj)/host/libquote.rlib: private skip_clippy = 1\n+$(obj)/host/libquote.rlib: private skip_flags = $(quote-skip_flags)\n+$(obj)/host/libquote.rlib: private rustc_target_flags = $(quote-flags)\n+$(obj)/host/libquote.rlib: $(src)/quote/lib.rs $(obj)/host/libproc_macro2.rlib FORCE\n \t+$(call if_changed_dep,rustc_procmacrolibrary)\n \n-$(obj)/libsyn.rlib: private skip_clippy = 1\n-$(obj)/libsyn.rlib: private rustc_target_flags = $(syn-flags)\n-$(obj)/libsyn.rlib: $(src)/syn/lib.rs $(obj)/libquote.rlib FORCE\n+$(obj)/host/libsyn.rlib: private skip_clippy = 1\n+$(obj)/host/libsyn.rlib: private rustc_target_flags = $(syn-flags)\n+$(obj)/host/libsyn.rlib: $(src)/syn/lib.rs $(obj)/host/libquote.rlib FORCE\n \t+$(call if_changed_dep,rustc_procmacrolibrary)\n \n quiet_cmd_rustc_procmacro = $(RUSTC_OR_CLIPPY_QUIET) P $@\n@@ -545,20 +549,20 @@ quiet_cmd_rustc_procmacro = $(RUSTC_OR_CLIPPY_QUIET) P $@\n \t\t-Clinker-flavor=gcc -Clinker=$(HOSTCC) \\\n \t\t-Clink-args='$(call escsq,$(KBUILD_PROCMACROLDFLAGS))' \\\n \t\t--emit=dep-info=$(depfile) --emit=link=$@ --extern proc_macro \\\n-\t\t--crate-type proc-macro -L$(objtree)/$(obj) \\\n+\t\t--crate-type proc-macro -L$(objtree)/$(obj)/host \\\n \t\t--crate-name $(patsubst lib%.$(libmacros_extension),%,$(notdir $@)) \\\n \t\t@$(objtree)/include/generated/rustc_cfg $<\n \n # Procedural macros can only be used with the `rustc` that compiled it.\n $(obj)/$(libmacros_name): private rustc_target_flags = \\\n --extern proc_macro2 --extern quote --extern syn\n-$(obj)/$(libmacros_name): $(src)/macros/lib.rs $(obj)/libproc_macro2.rlib \\\n- $(obj)/libquote.rlib $(obj)/libsyn.rlib FORCE\n+$(obj)/$(libmacros_name): $(src)/macros/lib.rs $(obj)/host/libproc_macro2.rlib \\\n+ $(obj)/host/libquote.rlib $(obj)/host/libsyn.rlib FORCE\n \t+$(call if_changed_dep,rustc_procmacro)\n \n $(obj)/$(libpin_init_internal_name): private rustc_target_flags = $(pin_init_internal-flags)\n $(obj)/$(libpin_init_internal_name): $(src)/pin-init/internal/src/lib.rs \\\n- $(obj)/libproc_macro2.rlib $(obj)/libquote.rlib $(obj)/libsyn.rlib FORCE\n+ $(obj)/host/libproc_macro2.rlib $(obj)/host/libquote.rlib $(obj)/host/libsyn.rlib FORCE\n \t+$(call if_changed_dep,rustc_procmacro)\n \n # `rustc` requires `-Zunstable-options` to use custom target specifications\n", "prefixes": [ "V15", "1/7" ] }