Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp931119rdb; Fri, 20 Oct 2023 03:55:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEqTVwSFNSddHwuuS15c4cDqkSr6jtZOGpcJntln/JhTc/j5BomuZPZDKxlh84Zu2oC1J2D X-Received: by 2002:a17:902:f543:b0:1ca:77e9:3863 with SMTP id h3-20020a170902f54300b001ca77e93863mr1762621plf.31.1697799340346; Fri, 20 Oct 2023 03:55:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697799340; cv=none; d=google.com; s=arc-20160816; b=nsnuKO/poDo3sfvDUGNPc/y3ew7xVnLe7c3QcnmTsCErsJGpmnt3Wcq+XGUQGaZeHL rw++Da2KD5r1FliGWJTUuFNFTSjraRnPY+hs15IC3iuGYQmfLBC2IKsBFGKDPFYJOo0g Xv374T6VuwgUZ8qbt63qwaziRzI6oF2lk6ANmlGv4FDSEsYO4Hk4WElwsjSs72cBh/Iw Ae3Egi7RdC/Q5FjQPutIkKAqA9SVCGAV1deWEQZbi4o0EDyfRPGx+2pLNWpmaxQd/Lmm N5Q9Su2XRyf29IeLFfV59SPvoZMaetleO89RugPgbXSAOiJ9IcOwEH32Wwj5VSyFm94x /b8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=chKsUoRgyNajClkjhxakqek5dejbL90FSh1+B6+b/Og=; fh=uXwoL1YIA+JSkNXquqUHVFLm5orTkaceJbipf4Tyhlo=; b=bJG/S2680ndUB5fhRzOL3wsr7BT/VHrrKTmuPhdd3ylXcBg5A8cO5lRMMznHNbvq9j uq/Ax8upfawawR34A8J8fB8WqxDcE19Z8XNDyYLkXONDz6N+TljBKarlovSOxhQ2SsY0 11G4SARuI+/EgB3bmD8bl+eT58bNWY0TkxWl2j1nV0eFteXwFvufvE0yX1OKU40uHva1 QiP0nFuY+A/sWNuzzbneuFN2DdRJJx8GS4CrC9354P1W7F/YFvopIirqBOS8E+elDXcC Rt52xEBFrYFAEOIlHZr4/dRN9MaN5Q4J/07iPmbPEfzjq2MxJa1LWRTzP4FLDsOcVb5n m49g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id k17-20020a170902c41100b001bf1d1d99b0si1647267plk.568.2023.10.20.03.55.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 03:55:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 936D180765CB; Fri, 20 Oct 2023 03:55:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376927AbjJTKzI (ORCPT + 99 others); Fri, 20 Oct 2023 06:55:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376745AbjJTKzG (ORCPT ); Fri, 20 Oct 2023 06:55:06 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D9037112 for ; Fri, 20 Oct 2023 03:55:02 -0700 (PDT) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8Dxl+iEXDJlKHQzAA--.64009S3; Fri, 20 Oct 2023 18:55:00 +0800 (CST) Received: from [10.130.0.149] (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Dx_y+BXDJlqEIsAA--.28192S3; Fri, 20 Oct 2023 18:54:58 +0800 (CST) Subject: Re: [PATCH v3 0/8] Add objtool and orc support for LoongArch To: Xi Ruoyao , Huacai Chen References: <1697768821-22931-1-git-send-email-yangtiezhu@loongson.cn> <23a3ebe302f77db630edc52b23afb812f31f103e.camel@xry111.site> Cc: Josh Poimboeuf , Peter Zijlstra , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn From: Tiezhu Yang Message-ID: Date: Fri, 20 Oct 2023 18:54:57 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <23a3ebe302f77db630edc52b23afb812f31f103e.camel@xry111.site> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-CM-TRANSID: AQAAf8Dx_y+BXDJlqEIsAA--.28192S3 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBj93XoW7Kw4DKryDWry3tF4kCrWDKFX_yoW8Wr17pr 4DJayj9rsruayFyayvkw1xKa4DZF1Ivrn0qrWkGry5A345Aryftrs7JF1kuF9rXrn09F4a 9392gryUWF1xAagCm3ZEXasCq-sJn29KB7ZKAUJUUUU7529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUPqb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_JFI_Gr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x0267AK xVW8Jr0_Cr1UM2kKe7AKxVWUXVWUAwAS0I0E0xvYzxvE52x082IY62kv0487Mc804VCY07 AIYIkI8VC2zVCFFI0UMc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWU AVWUtwAv7VC2z280aVAFwI0_Cr0_Gr1UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvEwI xGrwCYjI0SjxkI62AI1cAE67vIY487MxkF7I0En4kS14v26r126r1DMxAIw28IcxkI7VAK I48JMxC20s026xCaFVCjc4AY6r1j6r4UMxCIbckI1I0E14v26r4a6rW5MI8I3I0E5I8CrV AFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCI c40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267 AKxVWUJVW8JwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Cr0_ Gr1UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07j0pB -UUUUU= X-Spam-Status: No, score=-4.1 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 20 Oct 2023 03:55:18 -0700 (PDT) On 10/20/2023 06:45 PM, Xi Ruoyao wrote: > On Fri, 2023-10-20 at 18:28 +0800, Tiezhu Yang wrote: >> On 10/20/2023 04:51 PM, Huacai Chen wrote: >>> Cross compiling on X86 for LoongArch fails: >>> >>> CALL scripts/checksyscalls.sh >>> DESCEND objtool >>> make[5]: *** No rule to make target >>> '/usr/lib/gcc/x86_64-redhat-linux/8/include/stdbool.h', needed by >>> '/home/chenhuacai/linux-official.git/tools/objtool/libsubcmd/exec-cmd.o'. >>> Stop. >>> make[4]: *** [Makefile:80: >>> /home/chenhuacai/linux-official.git/tools/objtool/libsubcmd/libsubcmd-in.o] >>> Error 2 >>> make[3]: *** [Makefile:82: >>> /home/chenhuacai/linux-official.git/tools/objtool/libsubcmd/libsubcmd.a] >>> Error 2 >>> make[2]: *** [Makefile:73: objtool] Error 2 >>> make[1]: *** [/home/chenhuacai/linux-official.git/Makefile:1355: >>> tools/objtool] Error 2 >>> make: *** [Makefile:234: __sub-make] Error 2 >> >> It seems that there is no stdbool.h in your cross compile environment. >> >> It works well with the following steps, you can try it. > > /* snip */ > >> find /opt -name stdbool.h >> /opt/cross-tools/lib/gcc/loongarch64-unknown-linux-gnu/14.0.0/include/stdbool.h >> /opt/cross-tools/loongarch64-unknown-linux-gnu/include/c++/14.0.0/tr1/stdbool.h > > The problem is HOSTCC cannot find stdbool.h, not (target) CC. So these > two files are not relevant. > Oh, thank you for pointing out the real reason of this issue. By the way, my test system is Fedora 38 x86_64, it works well. Thanks, Tiezhu