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=-13.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,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 39737C4338F for ; Wed, 28 Jul 2021 05:24:41 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E0AAD60C41 for ; Wed, 28 Jul 2021 05:24:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 699BF8D0001; Wed, 28 Jul 2021 01:24:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6229E6B005D; Wed, 28 Jul 2021 01:24:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 49B398D0001; Wed, 28 Jul 2021 01:24:40 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0238.hostedemail.com [216.40.44.238]) by kanga.kvack.org (Postfix) with ESMTP id 2C2506B0036 for ; Wed, 28 Jul 2021 01:24:40 -0400 (EDT) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id C4A90202ED for ; Wed, 28 Jul 2021 05:24:39 +0000 (UTC) X-FDA: 78410856678.21.7F3566E Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2058.outbound.protection.outlook.com [40.107.93.58]) by imf18.hostedemail.com (Postfix) with ESMTP id 4172C400F629 for ; Wed, 28 Jul 2021 05:24:39 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C16xSZKtzL3T/2TYdgHyewFVpv9CuPwpu3s+W6G/rcYUjLlDE76L6OFlgZTo0ooX685ZsEPYmroPCTxGDaN/V/aBlXvbboaz3wKjx/ELVB1NRY3xKNdtiF06p3YKkRyyj13Jym90BVmvo1BWcljwn3tY6KYYsWecm/QKJ6DOSXlsyLvHFExHz5GOIhdTseYnRomOtpFYhApdghc9J1b1PFNtLsNBzvzeierMbOYECahjMOkXQxs/qjYyof0CjIZIebRXy2/l9UjTGdJnnvgj2xGpBNzSKcShcrB+btnDYFPSVcd+Hvcgh2I7rRWon5h9MfCX1ArOgJRnapf8E1UOog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2Pax0ZViEAIOL8xgj5/StArnAu1PE/mnHVmauloNClY=; b=GwHiRy7Tuifde5Tz1473L1pgBpYUUPpgAHptl6npqbpOhz8xxy6LG4m4kZ9tog/SrIbCejh44Roew5yyXKiMufsrvIa8xkj4eiijRrriYhZcfsAvvaqvkKSOAtymgd+zTrj7dxBMt1psY+XJOxw6iysjtH5bEYtxpYhPpCC2Lf6OkVUvsVbnrE66OMdg9X9pm8XkVI66Huz3eyNUSrd2bqMDa1lWu2KMvQx+CGtmeYcdmfXzVx8uWou9zKQgd2PjZxcS8xWd1a1M1ysuKedVJB8tnWgVGYZ/t8e4D5dRa1br0WqrmvRRsH2YrM6ZAua74/qo+RxcLd82t4OnwyKfQA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=lists.01.org smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2Pax0ZViEAIOL8xgj5/StArnAu1PE/mnHVmauloNClY=; b=ixaHRxzD+V5QoNf8rIZXdA4yJXqwxpMBF+aonsald87hQZrT/b8FM8Li7B0JWgFP2If+0rGOMc6E1dkD8c9kmfZ0tfgwDxdR8uMR8+4NcaUCSfrVjjxPX58ZgAqYJu5XktFkK4BeLkHq7fTfn92/TMqYO96Wnnf7t006l+5JnuCLVv4cm/gwieDO6qlxiF5pjFYkv4eY5iMyrsSIHWFooFLncsvxwUMAlYQ37CNv7LNrIHn4d3Hz6VVdLwPYZvjaSB6IiSjHlgqM++QiUNGC2l3iE86TArd24SzikPc8Cg4onIiitToINjuNq1K7I5WvWI8woNeMLYVlF7XhIBjGEg== Received: from DM6PR02CA0079.namprd02.prod.outlook.com (2603:10b6:5:1f4::20) by DM6PR12MB4986.namprd12.prod.outlook.com (2603:10b6:5:16f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.29; Wed, 28 Jul 2021 05:24:37 +0000 Received: from DM6NAM11FT013.eop-nam11.prod.protection.outlook.com (2603:10b6:5:1f4:cafe::2b) by DM6PR02CA0079.outlook.office365.com (2603:10b6:5:1f4::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.17 via Frontend Transport; Wed, 28 Jul 2021 05:24:37 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; lists.01.org; dkim=none (message not signed) header.d=none;lists.01.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT013.mail.protection.outlook.com (10.13.173.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4373.18 via Frontend Transport; Wed, 28 Jul 2021 05:24:37 +0000 Received: from [10.2.52.97] (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 28 Jul 2021 05:24:36 +0000 Subject: Re: gup_test.c:1:10: fatal error: fcntl.h: No such file or directory To: 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> From: John Hubbard Message-ID: <6af32770-1825-ff9a-ccf2-46600ed6fc7e@nvidia.com> Date: Tue, 27 Jul 2021 22:24:36 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <202107281223.L61SLDL2-lkp@intel.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 83f8f38f-7672-491b-2bd5-08d95187fde6 X-MS-TrafficTypeDiagnostic: DM6PR12MB4986: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:510; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VbhI9ImdRxsQPtXkWziDNRG3evIzAQ3bFuSjtw5MlgMaHHhd/2/+pdH1xnx7urpUDfOEFIo2adrpOpahco8g2Uy3EuBZ3YN9uRISb5xGE/6axAaggsb34T2sQPKv/jQx3Q0y1KMKiq4ra5Lvj0At2sKUwQmxcKgLJQ+Nwc0m7uFAd2EELh0XMnQq8YyPcIzRpGeEg95OUGmjCfVze2rH67e/+nSyrmKVr++mAibJUzJowZt/Uy9xDeGcIyriJeGsyEKKaZz7GffKPs1EOzlS08jzMotNWGWCwbnqrvTV7U7cOXSGe+iacp0i8X2XRy9WStgkWNnyTTD6beJWz+BDulUbdxhqoBC19O/7TeOkgeY5dkTJZmrgZ+WD/byS9u//NsMTt9VW26WWLg5rKK6qV1UHT+ZB1xowKtQGMgPzYiX2Bgc06bq0ElPGUZyW+sYlaJu53vIph29WU2HdyGjWOrN/jCDTZPQFi1skCzGADX+jlho2lNDs5Vsh22INEwGxnGie16ArVBd5NlsrD68D6cqXh2y0uzwqpAZ4IxwbQZWM00wqAgyl/ONdcUkf7N8PxzSHon+L6RmlM6gYEbx0VpnuUi3nod3Xjj9Th/vOln/1tR1gGXv6uzfAOTiss9pJzNESiCRJ5KYpJQ+gRnR8ULS/Xaqd7ydEzzmkLFxUr4s6+JkW2oVbKwRdimRvLMvevxqXRtvMqR5HveRHqVE9UMivb7An3ovIEeSrUdACGvd2QDDvo/3zo5BKP7SqH61RGLMp6JtXSrpHwbzYPkO414vHAAG4QYPQGbfJrVESQhu/rvQfZsGF0tm7i8oJfr8kJMzd3gqDU1z5QKQN7pECAfbB8aHrOhQ/r+X+RvPLvew= X-Forefront-Antispam-Report: CIP:216.228.112.34;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:schybrid03.nvidia.com;CAT:NONE;SFS:(4636009)(136003)(346002)(396003)(376002)(39860400002)(36840700001)(46966006)(336012)(478600001)(86362001)(426003)(316002)(26005)(82310400003)(8676002)(5660300002)(47076005)(7636003)(16576012)(53546011)(36906005)(83380400001)(36756003)(966005)(8936002)(356005)(54906003)(4326008)(31696002)(6916009)(36860700001)(2616005)(82740400003)(16526019)(70586007)(70206006)(31686004)(2906002)(186003)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jul 2021 05:24:37.0701 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 83f8f38f-7672-491b-2bd5-08d95187fde6 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.112.34];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT013.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4986 X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 4172C400F629 Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=ixaHRxzD; spf=none (imf18.hostedemail.com: domain of jhubbard@nvidia.com has no SPF policy when checking 40.107.93.58) smtp.mailfrom=jhubbard@nvidia.com; dmarc=pass (policy=quarantine) header.from=nvidia.com X-Stat-Signature: bwe6rutmukt9h49u5o45sicobgdthnzj X-HE-Tag: 1627449879-482053 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: On 7/27/21 9:59 PM, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: 7d549995d4e0d99b68e8a7793a0d23da6fc40fe8 > commit: 9c84f229268fa229e250b7225611d0eb7094fea0 mm/gup_benchmark: rename to mm/gup_test > date: 7 months ago > config: openrisc-randconfig-s031-20210726 (attached as .config) > compiler: or1k-linux-gcc (GCC) 10.3.0 > reproduce: > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # apt-get install sparse > # sparse version: v0.6.3-341-g8af24329-dirty > # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9c84f229268fa229e250b7225611d0eb7094fea0 > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > git fetch --no-tags linus master > git checkout 9c84f229268fa229e250b7225611d0eb7094fea0 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=openrisc SHELL=/bin/bash -C tools/testing/selftests/vm install > > 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 > 1 | #include > | ^~~~~~~~~ > compilation terminated. > I reproduced this via the above steps, and noticed that there are missing 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). This seems like a new toolchain issue, right? gup_test.c:1:10: fatal error: fcntl.h: No such file or directory 1 | #include | ^~~~~~~~~ compilation terminated. compaction_test.c:10:10: fatal error: stdio.h: No such file or directory 10 | #include | ^~~~~~~~~ In file included from hmm-tests.c:13: ../kselftest_harness.h:56:10: fatal error: asm/types.h: No such file or directory 56 | #include | ^~~~~~~~~~~~~ hugepage-shm.c:31:10: fatal error: stdlib.h: No such file or directory 31 | #include | ^~~~~~~~~~ make: *** [../lib.mk:139: /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 | ^~~~~~~~~~ map_hugetlb.c:13:10: fatal error: stdlib.h: No such file or directory 13 | #include | ^~~~~~~~~~ compilation terminated. compilation terminated. on-fault-limit.c:2:10: fatal error: sys/mman.h: No such file or directory 2 | #include | ^~~~~~~~~~~~ transhuge-stress.c:9:10: fatal error: stdlib.h: No such file or directory 9 | #include | ^~~~~~~~~~ map_fixed_noreplace.c:10:10: fatal error: sys/mman.h: No such file or directory 10 | #include | ^~~~~~~~~~~~ mlock2-tests.c:3:10: fatal error: sys/mman.h: No such file or directory 3 | #include | ^~~~~~~~~~~~ compilation terminated. compilation terminated. compilation terminated. compilation terminated. mremap_dontunmap.c:9:10: fatal error: sys/mman.h: No such file or directory 9 | #include | ^~~~~~~~~~~~ compilation terminated. va_128TBswitch.c:8:10: fatal error: stdio.h: No such file or directory 8 | #include | ^~~~~~~~~ compilation terminated. make: *** [../lib.mk:139: /kernel_work/linux-github/tools/testing/selftests/vm/hmm-tests] Error 1 make: *** [../lib.mk:139: /kernel_work/linux-github/tools/testing/selftests/vm/hugepage-shm] Error 1 map_populate.c:9:10: fatal error: errno.h: No such file or directory 9 | #include | ^~~~~~~~~ compilation terminated. make: *** [../lib.mk:139: /kernel_work/linux-github/tools/testing/selftests/vm/compaction_test] Error 1 make: *** [../lib.mk:139: /kernel_work/linux-github/tools/testing/selftests/vm/hugepage-mmap] Error 1 mlock-random-test.c:6:10: fatal error: unistd.h: No such file or directory 6 | #include | ^~~~~~~~~~ compilation terminated. make: *** [../lib.mk:139: /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 | ^~~~~~~~~ compilation terminated. make: *** [../lib.mk:139: /kernel_work/linux-github/tools/testing/selftests/vm/on-fault-limit] Error 1 make: *** [../lib.mk:139: /kernel_work/linux-github/tools/testing/selftests/vm/mlock2-tests] Error 1 make: *** [../lib.mk:139: /kernel_work/linux-github/tools/testing/selftests/vm/transhuge-stress] Error 1 make: *** [../lib.mk:139: /kernel_work/linux-github/tools/testing/selftests/vm/map_fixed_noreplace] Error 1 make: *** [../lib.mk:139: /kernel_work/linux-github/tools/testing/selftests/vm/mremap_dontunmap] Error 1 make: *** [../lib.mk:139: /kernel_work/linux-github/tools/testing/selftests/vm/va_128TBswitch] Error 1 make: *** [../lib.mk:139: /kernel_work/linux-github/tools/testing/selftests/vm/map_populate] Error 1 thuge-gen.c:16:10: fatal error: sys/mman.h: No such file or directory 16 | #include | ^~~~~~~~~~~~ compilation terminated. make: *** [../lib.mk:139: /kernel_work/linux-github/tools/testing/selftests/vm/khugepaged] Error 1 make: *** [../lib.mk:139: /kernel_work/linux-github/tools/testing/selftests/vm/mlock-random-test] Error 1 userfaultfd.c:38:10: fatal error: stdio.h: No such file or directory 38 | #include | ^~~~~~~~~ compilation terminated. write_to_hugetlbfs.c:7:10: fatal error: err.h: No such file or directory 7 | #include | ^~~~~~~ compilation terminated. virtual_address_range.c:8:10: fatal error: stdio.h: No such file or directory 8 | #include | ^~~~~~~~~ compilation terminated. thanks, -- John Hubbard NVIDIA