Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F413BC7EE24 for ; Mon, 5 Jun 2023 05:30:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F3A4D857AF; Mon, 5 Jun 2023 07:30:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=etri.re.kr Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=dooray.com header.i=@dooray.com header.b="D3n9B8BK"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 62392857AF; Mon, 5 Jun 2023 07:30:16 +0200 (CEST) Received: from mscreen.etri.re.kr (mscreen.etri.re.kr [129.254.9.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7DA4D859AD for ; Mon, 5 Jun 2023 07:30:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=etri.re.kr Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ckim@etri.re.kr Received: from unknown (HELO send001-relay.gov-dooray.com) (211.180.235.152) by 129.254.9.16 with ESMTP; 5 Jun 2023 14:30:05 +0900 X-Original-SENDERIP: 211.180.235.152 X-Original-MAILFROM: ckim@etri.re.kr X-Original-RCPTTO: u-boot@lists.denx.de Received: from [10.162.225.106] (HELO smtp001-imp.gov-dooray.com) ([10.162.225.106]) by send001-relay.gov-dooray.com with SMTP id d952e4b3647d72dd; Mon, 05 Jun 2023 14:30:05 +0900 DKIM-Signature: a=rsa-sha256; b=D3n9B8BKZrnh99DXCN/tLkYcSSREPZ58DvBVdhrPUR7xvkXfojscT/v4uX7HitWS7Hzetkv5On DfwNQC/1iDHw1h70kQXnD/bFSa99EuZzTOWwTx7B9HZ/idZ7qMu78Wu2Sq4hZ5TMtkOaM+RyALvR SsfXs1bNPWHlSJM7yL7ve+d6LfT1MW/LsaP2S9rmiRjRey37u735wwxJKKhPGfyhfv+DyylTrN+U hIKd/TdS2vm8fZHl74gEeeQEwhtaKhGR1JT3/p2DabMLvjSon0vs3JGFqOg2JcV+AZNzB8Bw4FFx klKVpqLGcr3qF4VMImQ4PazaaC4u/PgbNe3dg6Nw==; c=relaxed/relaxed; s=selector; d=dooray.com; v=1; bh=TrWbvk5d5qz5+RJdHQDW8Bwd13He9E+PrLrX0wfIHYQ=; h=From:To:Subject:Message-ID; Received: from [129.254.132.39] (HELO CHANKIMPC) ([129.254.132.39]) by smtp001-imp.gov-dooray.com with SMTP id f0368f61647d72dc; Mon, 05 Jun 2023 14:30:04 +0900 From: "Chan Kim" To: "U-Boot Mailing List" References: In-Reply-To: Subject: RE: compile error Date: Mon, 5 Jun 2023 14:30:03 +0900 Message-ID: <039c01d9976e$c7b9ce60$572d6b20$@etri.re.kr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQKyfm4/zReZlUScrLbJ8UTbRZ5rXa3J3mlw Content-Language: ko X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Earlier I found this error occurs because during the tool build, it uses list.h file not in the include/linux directory of u-boot but in my host computer's /usr/local/include/linux directory. So if I temporarily rename the /usr/local/include/linux/list.h, u-boot compiles ok. From https://lists.denx.de/pipermail/u-boot/2015-June/217687.html I found it is correct to use the include path in my host system during the tool build. (because it happend during tools/lib/sha1.c.) But I don't have that hlist_node_list definition in my system header file. What is wrong with my system? (ubuntu 20.04). Chan Kim >-----Original Message----- >From: Chan Kim >Sent: Sunday, June 4, 2023 11:41 PM >To: U-Boot Mailing List >Subject: compile error > >Hello all, >For commit 26659d42654 (Fri Jun 2 12:13:01 2023 -0400) > >When I do 'make qemu_arm64_defconfig' and 'make', I get this compile error. > >ckim@ckim-ubuntu:~/u-boot-test/u-boot$ make -j28 > ENVC include/generated/env.txt > UPD include/generated/timestamp_autogenerated.h > ENVP include/generated/env.in > ENVT include/generated/environment.h > HOSTCC tools/lib/sha1.o > HOSTCC tools/lib/sha256.o > HOSTCC tools/lib/sha512.o >In file included from include/watchdog.h:13, > from ./tools/../lib/sha512.c:20, > from tools/lib/sha512.c:1: >include/cyclic.h:40:20: error: field ??list?? has incomplete type > 40 | struct hlist_node list; > | ^~~~ >In file included from include/watchdog.h:13, > from ./tools/../lib/sha1.c:25, > from tools/lib/sha1.c:1: >include/cyclic.h:40:20: error: field ??list?? has incomplete type > 40 | struct hlist_node list; > | ^~~~ >In file included from include/watchdog.h:13, > from ./tools/../lib/sha256.c:14, > from tools/lib/sha256.c:1: >include/cyclic.h:40:20: error: field ??list?? has incomplete type > 40 | struct hlist_node list; > | ^~~~ >make[1]: *** [scripts/Makefile.host:112: tools/lib/sha512.o] Error 1 >make[1]: *** Waiting for unfinished jobs.... >make[1]: *** [scripts/Makefile.host:112: tools/lib/sha1.o] Error 1 >make[1]: *** [scripts/Makefile.host:112: tools/lib/sha256.o] Error 1 >make: *** [Makefile:1853: tools] Error 2 > >Can anyone please fix it? > >Thank you! > >Chan Kim