From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.5 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7227AC4338F for ; Wed, 28 Jul 2021 06:09:11 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id F097360F9E for ; Wed, 28 Jul 2021 06:09:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org F097360F9E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 8D74C6B005D; Wed, 28 Jul 2021 02:09:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 887BD6B006C; Wed, 28 Jul 2021 02:09:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 775EC6B0070; Wed, 28 Jul 2021 02:09:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0204.hostedemail.com [216.40.44.204]) by kanga.kvack.org (Postfix) with ESMTP id 5BE1B6B005D for ; Wed, 28 Jul 2021 02:09:10 -0400 (EDT) Received: from smtpin14.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 01E5D1802EC08 for ; Wed, 28 Jul 2021 06:09:10 +0000 (UTC) X-FDA: 78410968860.14.4C185ED Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by imf02.hostedemail.com (Postfix) with ESMTP id 437837006282 for ; Wed, 28 Jul 2021 06:09:09 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6200,9189,10058"; a="192866705" X-IronPort-AV: E=Sophos;i="5.84,275,1620716400"; d="scan'208";a="192866705" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2021 23:09:06 -0700 X-IronPort-AV: E=Sophos;i="5.84,275,1620716400"; d="scan'208";a="517290472" Received: from rongch2-mobl.ccr.corp.intel.com (HELO [10.255.30.133]) ([10.255.30.133]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2021 23:09:04 -0700 Subject: Re: [kbuild-all] Re: gup_test.c:1:10: fatal error: fcntl.h: No such file or directory To: John Hubbard , kernel test robot Cc: "kbuild-all@lists.01.org" , "linux-kernel@vger.kernel.org" , Andrew Morton , Linux Memory Management List References: <202107281223.L61SLDL2-lkp@intel.com> <6af32770-1825-ff9a-ccf2-46600ed6fc7e@nvidia.com> From: "Chen, Rong A" Message-ID: <04756a7d-3c08-affa-2e14-13b801d543a7@intel.com> Date: Wed, 28 Jul 2021 14:09:02 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <6af32770-1825-ff9a-ccf2-46600ed6fc7e@nvidia.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 437837006282 Authentication-Results: imf02.hostedemail.com; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=intel.com (policy=none); spf=none (imf02.hostedemail.com: domain of rong.a.chen@intel.com has no SPF policy when checking 192.55.52.151) smtp.mailfrom=rong.a.chen@intel.com X-Stat-Signature: gn5ybjtff6wnedkzakdjhqiqh55r3x8p X-HE-Tag: 1627452549-685799 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi John, On 7/28/2021 1:24 PM, John Hubbard wrote: > On 7/27/21 9:59 PM, kernel test robot wrote: >> tree: =20 >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git mas= ter >> head:=C2=A0=C2=A0 7d549995d4e0d99b68e8a7793a0d23da6fc40fe8 >> commit: 9c84f229268fa229e250b7225611d0eb7094fea0 mm/gup_benchmark:=20 >> rename to mm/gup_test >> date:=C2=A0=C2=A0 7 months ago >> config: openrisc-randconfig-s031-20210726 (attached as .config) >> compiler: or1k-linux-gcc (GCC) 10.3.0 >> reproduce: >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 wget=20 >> https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cro= ss=20 >> -O ~/bin/make.cross >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 chmod +x ~/bin/make.c= ross >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # apt-get install spa= rse >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # sparse version: v0.= 6.3-341-g8af24329-dirty >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 #=20 >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/com= mit/?id=3D9c84f229268fa229e250b7225611d0eb7094fea0=20 >> >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 git remote add linus=20 >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 git fetch --no-tags l= inus master >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 git checkout 9c84f229= 268fa229e250b7225611d0eb7094fea0 >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # save the attached .= config to linux build tree >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 COMPILER_INSTALL_PATH= =3D$HOME/0day COMPILER=3Dgcc-10.3.0=20 >> make.cross C=3D1 CF=3D'-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=3Dbui= ld_dir=20 >> ARCH=3Dopenrisc SHELL=3D/bin/bash -C tools/testing/selftests/vm instal= l >> >> If you fix the issue, kindly add following tag as appropriate >> Reported-by: kernel test robot >> >> All errors (new ones prefixed by >>): >> >>>> gup_test.c:1:10: fatal error: fcntl.h: No such file or directory >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1 | #include >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~ >> =C2=A0=C2=A0=C2=A0 compilation terminated. >> >=20 > I reproduced this via the above steps, and noticed that there are missi= ng > header files for most (all?) of the vm tests, not just gup_test.c. And > not just fcntl.h, either. The error list continue as follows (below). >=20 > This seems like a new toolchain issue, right? >=20 Yes, Sorry about this, it seems to be related to our changes recently,=20 please ignore it. Best Regards, Rong Chen >=20 > gup_test.c:1:10: fatal error: fcntl.h: No such file or directory > 1 | #include > |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~ > compilation terminated. > compaction_test.c:10:10: fatal error: stdio.h: No such file or director= y > 10 | #include > |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~ > In file included from hmm-tests.c:13: > ../kselftest_harness.h:56:10: fatal error: asm/types.h: No such file or= =20 > directory > 56 | #include > |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~~~~~ > hugepage-shm.c:31:10: fatal error: stdlib.h: No such file or directory > 31 | #include > |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~~ > make: *** [../lib.mk:139:=20 > /kernel_work/linux-github/tools/testing/selftests/vm/gup_test] Error 1 > compilation terminated. > compilation terminated. > compilation terminated. > hugepage-mmap.c:20:10: fatal error: stdlib.h: No such file or directory > 20 | #include > |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~~ > map_hugetlb.c:13:10: fatal error: stdlib.h: No such file or directory > 13 | #include > |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~~ > compilation terminated. > compilation terminated. > on-fault-limit.c:2:10: fatal error: sys/mman.h: No such file or directo= ry > 2 | #include > |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~~~~ > transhuge-stress.c:9:10: fatal error: stdlib.h: No such file or directo= ry > 9 | #include > |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~~ > map_fixed_noreplace.c:10:10: fatal error: sys/mman.h: No such file or=20 > directory > 10 | #include > |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~~~~ > mlock2-tests.c:3:10: fatal error: sys/mman.h: No such file or directory > 3 | #include > |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~~~~ > compilation terminated. > compilation terminated. > compilation terminated. > compilation terminated. > mremap_dontunmap.c:9:10: fatal error: sys/mman.h: No such file or direc= tory > 9 | #include > |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~~~~ > compilation terminated. > va_128TBswitch.c:8:10: fatal error: stdio.h: No such file or directory > 8 | #include > |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~ > compilation terminated. > make: *** [../lib.mk:139:=20 > /kernel_work/linux-github/tools/testing/selftests/vm/hmm-tests] Error 1 > make: *** [../lib.mk:139:=20 > /kernel_work/linux-github/tools/testing/selftests/vm/hugepage-shm] Erro= r 1 > map_populate.c:9:10: fatal error: errno.h: No such file or directory > 9 | #include > |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~ > compilation terminated. > make: *** [../lib.mk:139:=20 > /kernel_work/linux-github/tools/testing/selftests/vm/compaction_test]=20 > Error 1 > make: *** [../lib.mk:139:=20 > /kernel_work/linux-github/tools/testing/selftests/vm/hugepage-mmap] Err= or 1 > mlock-random-test.c:6:10: fatal error: unistd.h: No such file or direct= ory > 6 | #include > |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~~ > compilation terminated. > make: *** [../lib.mk:139:=20 > /kernel_work/linux-github/tools/testing/selftests/vm/map_hugetlb] Error= 1 > khugepaged.c:2:10: fatal error: fcntl.h: No such file or directory > 2 | #include > |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~ > compilation terminated. > make: *** [../lib.mk:139:=20 > /kernel_work/linux-github/tools/testing/selftests/vm/on-fault-limit]=20 > Error 1 > make: *** [../lib.mk:139:=20 > /kernel_work/linux-github/tools/testing/selftests/vm/mlock2-tests] Erro= r 1 > make: *** [../lib.mk:139:=20 > /kernel_work/linux-github/tools/testing/selftests/vm/transhuge-stress]=20 > Error 1 > make: *** [../lib.mk:139:=20 > /kernel_work/linux-github/tools/testing/selftests/vm/map_fixed_noreplac= e] Error=20 > 1 > make: *** [../lib.mk:139:=20 > /kernel_work/linux-github/tools/testing/selftests/vm/mremap_dontunmap]=20 > Error 1 > make: *** [../lib.mk:139:=20 > /kernel_work/linux-github/tools/testing/selftests/vm/va_128TBswitch]=20 > Error 1 > make: *** [../lib.mk:139:=20 > /kernel_work/linux-github/tools/testing/selftests/vm/map_populate] Erro= r 1 > thuge-gen.c:16:10: fatal error: sys/mman.h: No such file or directory > 16 | #include > |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~~~~ > compilation terminated. > make: *** [../lib.mk:139:=20 > /kernel_work/linux-github/tools/testing/selftests/vm/khugepaged] Error = 1 > make: *** [../lib.mk:139:=20 > /kernel_work/linux-github/tools/testing/selftests/vm/mlock-random-test]= =20 > Error 1 > userfaultfd.c:38:10: fatal error: stdio.h: No such file or directory > 38 | #include > |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~ > compilation terminated. > write_to_hugetlbfs.c:7:10: fatal error: err.h: No such file or director= y > 7 | #include > |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~ > compilation terminated. > virtual_address_range.c:8:10: fatal error: stdio.h: No such file or=20 > directory > 8 | #include > |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~ > compilation terminated. >=20 >=20 > thanks,