Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp927771rdb; Fri, 20 Oct 2023 03:47:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEX36xxYgfSmxb+bL320+B5g8bekFtEqUg35Y0v+0lWvCewdlKpiIOfeP/PX8lxDCLWqS8g X-Received: by 2002:a05:6358:60cc:b0:166:a6e3:cba5 with SMTP id i12-20020a05635860cc00b00166a6e3cba5mr1300904rwi.2.1697798840222; Fri, 20 Oct 2023 03:47:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697798840; cv=none; d=google.com; s=arc-20160816; b=BwCVdTee3p9xyjvPGJ0gv1FcqYBVJ9ZIlSFyz2tFc0h5rsHOxr3LTpCl1C6jiToQz/ ZeQkQkgSDWwX2F3vor9yITy/4KLp4GhdHSz9DpmYA3lyNxE0RdbA2pYgYyxmMRAjy2s0 e8oRj+6i6FXRQm8XtJScuZ8SRyQUbRlShpX38os19lu99z1rz9BZvf4S5CQMKEne3tWH 447BMYAocrRgvTyW1jWPau1Av5agHDrQodfYmcKIpZaBC4mPm/poIbbuEHCxVtZvhjSN hbTwGpgTkTRR+pxHCHl1Uz7BS8Ton4H2sbkxZL5321SlwFAQaQHWcsR+gXRbWikN82OI KIWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:autocrypt:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=kZxZZMO8DOF4b/RWaqAS9+xpkWGLQUQ/2arUNFal2uw=; fh=iwAWqBVqjdYwYx7w9dwWnId+UzvbVfnHEjZjHEJYLWo=; b=GvpcJXOxdudrJGqD0giFWxHeWDyRl1XGHyYrVzdUlBDKb+5lzytvhN/GuGIeX5SeXW 9jHk3d59l3EYwqgXQ+HRMfTn0bRLjr9qWT4ike4u5t67Hw3yaAA++3I/EWOkYUVplqnr 2OQV8Nbo2tFhkfFUUVxLeVjToxKFqr4j8uZe/fN7mKEKbixtS5osZh+irMiArApPXdMU k7XuySRuHOkaX0w97lsPH+bPhbk18gH25CBoO5unrp2wQKt6KkY5IxOxb6DbCQJS7gDf KsnmaRIKw8PM0G63MQHdIe5it0OOQk02mNFvpGIEghqU01kgpcF/GqmAk/1hupRiEWPh b+ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=FsDnEWZs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id p15-20020a056a000b4f00b0069109ee0b59si1713362pfo.231.2023.10.20.03.47.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 03:47:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=FsDnEWZs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 5B8C581BDF2A; Fri, 20 Oct 2023 03:47:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377161AbjJTKrR (ORCPT + 99 others); Fri, 20 Oct 2023 06:47:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377168AbjJTKrI (ORCPT ); Fri, 20 Oct 2023 06:47:08 -0400 Received: from xry111.site (xry111.site [89.208.246.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67C792707 for ; Fri, 20 Oct 2023 03:46:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1697798756; bh=nfBnGhYJ5nTVpGtNot+ccu217gvsTSZcpqyIbJ5SNno=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=FsDnEWZstoHAyPtaA8IZgbliKyj3niakr5++vfQvgtLJqA06Djx0gpI8/Zlh5OZmJ WKnSFQThqMHP3EBcdPWPQQ7LdR9ESNCZ2z3U1ZRCFPIfZ5ztuZpNFN7DCFSePGyOy8 jSXeaCQUwOMvkdCijqxV34ClVd7CkiEHTD1BBOG0= Received: from [192.168.124.14] (unknown [113.140.11.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id C12B966AA2; Fri, 20 Oct 2023 06:45:54 -0400 (EDT) Message-ID: <23a3ebe302f77db630edc52b23afb812f31f103e.camel@xry111.site> Subject: Re: [PATCH v3 0/8] Add objtool and orc support for LoongArch From: Xi Ruoyao To: Tiezhu Yang , Huacai Chen Cc: Josh Poimboeuf , Peter Zijlstra , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn Date: Fri, 20 Oct 2023 18:45:48 +0800 In-Reply-To: References: <1697768821-22931-1-git-send-email-yangtiezhu@loongson.cn> Autocrypt: addr=xry111@xry111.site; prefer-encrypt=mutual; keydata=mDMEYnkdPhYJKwYBBAHaRw8BAQdAsY+HvJs3EVKpwIu2gN89cQT/pnrbQtlvd6Yfq7egugi0HlhpIFJ1b3lhbyA8eHJ5MTExQHhyeTExMS5zaXRlPoiTBBMWCgA7FiEEkdD1djAfkk197dzorKrSDhnnEOMFAmJ5HT4CGwMFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQrKrSDhnnEOPHFgD8D9vUToTd1MF5bng9uPJq5y3DfpcxDp+LD3joA3U2TmwA/jZtN9xLH7CGDHeClKZK/ZYELotWfJsqRcthOIGjsdAPuDgEYnkdPhIKKwYBBAGXVQEFAQEHQG+HnNiPZseiBkzYBHwq/nN638o0NPwgYwH70wlKMZhRAwEIB4h4BBgWCgAgFiEEkdD1djAfkk197dzorKrSDhnnEOMFAmJ5HT4CGwwACgkQrKrSDhnnEOPjXgD/euD64cxwqDIqckUaisT3VCst11RcnO5iRHm6meNIwj0BALLmWplyi7beKrOlqKfuZtCLbiAPywGfCNg8LOTt4iMD Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.0 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Fri, 20 Oct 2023 03:47:19 -0700 (PDT) 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: > >=20 > > =C2=A0=C2=A0 CALL=C2=A0=C2=A0=C2=A0 scripts/checksyscalls.sh > > =C2=A0=C2=A0 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-i= n.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 >=20 > It seems that there is no stdbool.h in your cross compile environment. >=20 > 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/std= bool.h > /opt/cross-tools/loongarch64-unknown-linux-gnu/include/c++/14.0.0/tr1/std= bool.h The problem is HOSTCC cannot find stdbool.h, not (target) CC. So these two files are not relevant. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University