From: Tiezhu Yang <yangtiezhu@loongson.cn>
To: kernel test robot <lkp@intel.com>,
Josh Poimboeuf <jpoimboe@kernel.org>,
Peter Zijlstra <peterz@infradead.org>,
Huacai Chen <chenhuacai@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev, loongarch@lists.linux.dev,
linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn
Subject: Re: [PATCH v2 8/8] LoongArch: Add ORC unwinder support
Date: Wed, 18 Oct 2023 19:44:54 +0800 [thread overview]
Message-ID: <b30b034d-46ee-618b-5f92-b0f7dde1219a@loongson.cn> (raw)
In-Reply-To: <202310102113.bw7w3ZVv-lkp@intel.com>
On 10/10/2023 09:46 PM, kernel test robot wrote:
> Hi Tiezhu,
>
> kernel test robot noticed the following build errors:
...
> In file included from scripts/sorttable.c:201:
>>> scripts/sorttable.h:96:10: fatal error: 'asm/orc_types.h' file not found
> #include <asm/orc_types.h>
> ^~~~~~~~~~~~~~~~~
> 1 error generated.
Thanks for your report, I can reproduce the error on x86:
make ARCH=x86_64 olddefconfig
make ARCH=x86_64 prepare
The build error is related with "ARCH=x86_64", there is no error
without "ARCH=x86_64" when build locally on x86.
As described in Documentation/kbuild/makefiles.rst:
For example, you can pass in ARCH=i386, ARCH=x86_64, or ARCH=x86.
For all of them, SRCARCH=x86 because arch/x86/ supports both i386 and
x86_64.
we should use SRCARCH instead of ARCH to specify the directory,
like this:
diff --git a/scripts/Makefile b/scripts/Makefile
index 576cf64..e4cca53 100644
--- a/scripts/Makefile
+++ b/scripts/Makefile
@@ -31,9 +31,12 @@ HOSTLDLIBS_sign-file = $(shell $(HOSTPKG_CONFIG)
--libs libcrypto 2> /dev/null |
ifdef CONFIG_UNWINDER_ORC
ifeq ($(ARCH),x86_64)
-ARCH := x86
+SRCARCH := x86
endif
-HOSTCFLAGS_sorttable.o += -I$(srctree)/tools/arch/x86/include
+ifeq ($(ARCH),loongarch)
+SRCARCH := loongarch
+endif
+HOSTCFLAGS_sorttable.o += -I$(srctree)/tools/arch/$(SRCARCH)/include
HOSTCFLAGS_sorttable.o += -DUNWINDER_ORC_ENABLED
endif
I will update the related code of this patch in the next version.
Thanks,
Tiezhu
next prev parent reply other threads:[~2023-10-18 11:45 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-09 13:03 [PATCH v2 0/8] Add objtool and orc support for LoongArch Tiezhu Yang
2023-10-09 13:03 ` [PATCH v2 1/8] objtool/LoongArch: Enable objtool to be built Tiezhu Yang
2023-10-10 12:45 ` Huacai Chen
2023-10-14 2:12 ` Tiezhu Yang
2023-10-09 13:03 ` [PATCH v2 2/8] objtool/LoongArch: Implement instruction decoder Tiezhu Yang
2023-10-09 13:03 ` [PATCH v2 3/8] objtool/x86: Separate arch-specific and generic parts Tiezhu Yang
2023-10-09 13:03 ` [PATCH v2 4/8] objtool/LoongArch: Enable orc to be built Tiezhu Yang
2023-10-10 12:52 ` Huacai Chen
2023-10-14 3:40 ` Tiezhu Yang
2023-10-09 13:03 ` [PATCH v2 5/8] objtool: Check local label about sibling call Tiezhu Yang
2023-10-09 13:03 ` [PATCH v2 6/8] objtool: Check local label in add_dead_ends() Tiezhu Yang
2023-10-09 13:03 ` [PATCH v2 7/8] objtool: Check local label in read_unwind_hints() Tiezhu Yang
2023-10-09 13:03 ` [PATCH v2 8/8] LoongArch: Add ORC unwinder support Tiezhu Yang
2023-10-10 13:46 ` kernel test robot
2023-10-18 11:44 ` Tiezhu Yang [this message]
2023-10-10 14:43 ` kernel test robot
2023-10-11 4:37 ` Huacai Chen
2023-10-14 9:21 ` Tiezhu Yang
2023-10-14 11:37 ` Huacai Chen
2023-10-15 12:57 ` Jinyang He
2023-10-15 13:57 ` Huacai Chen
2023-10-17 12:44 ` Tiezhu Yang
2023-10-17 12:39 ` Tiezhu Yang
2023-10-17 12:37 ` Tiezhu Yang
2023-10-14 11:40 ` Huacai Chen
2023-10-17 12:33 ` Tiezhu Yang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b30b034d-46ee-618b-5f92-b0f7dde1219a@loongson.cn \
--to=yangtiezhu@loongson.cn \
--cc=chenhuacai@kernel.org \
--cc=jpoimboe@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=loongarch@lists.linux.dev \
--cc=loongson-kernel@lists.loongnix.cn \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=peterz@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®