lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <caa9c73c-4779-a88e-4577-4d7b0ed2b76a@loongson.cn>
Date:   Fri, 20 Oct 2023 18:54:57 +0800
From:   Tiezhu Yang <yangtiezhu@...ngson.cn>
To:     Xi Ruoyao <xry111@...111.site>, Huacai Chen <chenhuacai@...nel.org>
Cc:     Josh Poimboeuf <jpoimboe@...nel.org>,
        Peter Zijlstra <peterz@...radead.org>,
        loongarch@...ts.linux.dev, linux-kernel@...r.kernel.org,
        loongson-kernel@...ts.loongnix.cn
Subject: Re: [PATCH v3 0/8] Add objtool and orc support for LoongArch



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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ