linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* gup_test.c:1:10: fatal error: fcntl.h: No such file or directory
@ 2021-07-28  4:59 kernel test robot
  2021-07-28  5:24 ` John Hubbard
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2021-07-28  4:59 UTC (permalink / raw)
  To: John Hubbard
  Cc: kbuild-all, linux-kernel, Andrew Morton, Linux Memory Management List

[-- Attachment #1: Type: text/plain, Size: 1583 bytes --]

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 <lkp@intel.com>

All errors (new ones prefixed by >>):

>> gup_test.c:1:10: fatal error: fcntl.h: No such file or directory
       1 | #include <fcntl.h>
         |          ^~~~~~~~~
   compilation terminated.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32015 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gup_test.c:1:10: fatal error: fcntl.h: No such file or directory
  2021-07-28  4:59 gup_test.c:1:10: fatal error: fcntl.h: No such file or directory kernel test robot
@ 2021-07-28  5:24 ` John Hubbard
  2021-07-28  6:09   ` [kbuild-all] " Chen, Rong A
  0 siblings, 1 reply; 3+ messages in thread
From: John Hubbard @ 2021-07-28  5:24 UTC (permalink / raw)
  To: kernel test robot
  Cc: kbuild-all, linux-kernel, Andrew Morton, Linux Memory Management List

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 <lkp@intel.com>
> 
> All errors (new ones prefixed by >>):
> 
>>> gup_test.c:1:10: fatal error: fcntl.h: No such file or directory
>         1 | #include <fcntl.h>
>           |          ^~~~~~~~~
>     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 <fcntl.h>
|          ^~~~~~~~~
compilation terminated.
compaction_test.c:10:10: fatal error: stdio.h: No such file or directory
10 | #include <stdio.h>
|          ^~~~~~~~~
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 <asm/types.h>
|          ^~~~~~~~~~~~~
hugepage-shm.c:31:10: fatal error: stdlib.h: No such file or directory
31 | #include <stdlib.h>
|          ^~~~~~~~~~
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 <stdlib.h>
|          ^~~~~~~~~~
map_hugetlb.c:13:10: fatal error: stdlib.h: No such file or directory
13 | #include <stdlib.h>
|          ^~~~~~~~~~
compilation terminated.
compilation terminated.
on-fault-limit.c:2:10: fatal error: sys/mman.h: No such file or directory
2 | #include <sys/mman.h>
|          ^~~~~~~~~~~~
transhuge-stress.c:9:10: fatal error: stdlib.h: No such file or directory
9 | #include <stdlib.h>
|          ^~~~~~~~~~
map_fixed_noreplace.c:10:10: fatal error: sys/mman.h: No such file or directory
10 | #include <sys/mman.h>
|          ^~~~~~~~~~~~
mlock2-tests.c:3:10: fatal error: sys/mman.h: No such file or directory
3 | #include <sys/mman.h>
|          ^~~~~~~~~~~~
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 <sys/mman.h>
|          ^~~~~~~~~~~~
compilation terminated.
va_128TBswitch.c:8:10: fatal error: stdio.h: No such file or directory
8 | #include <stdio.h>
|          ^~~~~~~~~
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 <errno.h>
|          ^~~~~~~~~
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 <unistd.h>
|          ^~~~~~~~~~
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 <fcntl.h>
|          ^~~~~~~~~
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 <sys/mman.h>
|          ^~~~~~~~~~~~
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 <stdio.h>
|          ^~~~~~~~~
compilation terminated.
write_to_hugetlbfs.c:7:10: fatal error: err.h: No such file or directory
7 | #include <err.h>
|          ^~~~~~~
compilation terminated.
virtual_address_range.c:8:10: fatal error: stdio.h: No such file or directory
8 | #include <stdio.h>
|          ^~~~~~~~~
compilation terminated.


thanks,
-- 
John Hubbard
NVIDIA


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [kbuild-all] Re: gup_test.c:1:10: fatal error: fcntl.h: No such file or directory
  2021-07-28  5:24 ` John Hubbard
@ 2021-07-28  6:09   ` Chen, Rong A
  0 siblings, 0 replies; 3+ messages in thread
From: Chen, Rong A @ 2021-07-28  6:09 UTC (permalink / raw)
  To: John Hubbard, kernel test robot
  Cc: kbuild-all, linux-kernel, Andrew Morton, Linux Memory Management List

Hi John,

On 7/28/2021 1:24 PM, John Hubbard wrote:
> 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 <lkp@intel.com>
>>
>> All errors (new ones prefixed by >>):
>>
>>>> gup_test.c:1:10: fatal error: fcntl.h: No such file or directory
>>         1 | #include <fcntl.h>
>>           |          ^~~~~~~~~
>>     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?
> 

Yes, Sorry about this, it seems to be related to our changes recently, 
please ignore it.

Best Regards,
Rong Chen


> 
> gup_test.c:1:10: fatal error: fcntl.h: No such file or directory
> 1 | #include <fcntl.h>
> |          ^~~~~~~~~
> compilation terminated.
> compaction_test.c:10:10: fatal error: stdio.h: No such file or directory
> 10 | #include <stdio.h>
> |          ^~~~~~~~~
> 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 <asm/types.h>
> |          ^~~~~~~~~~~~~
> hugepage-shm.c:31:10: fatal error: stdlib.h: No such file or directory
> 31 | #include <stdlib.h>
> |          ^~~~~~~~~~
> 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 <stdlib.h>
> |          ^~~~~~~~~~
> map_hugetlb.c:13:10: fatal error: stdlib.h: No such file or directory
> 13 | #include <stdlib.h>
> |          ^~~~~~~~~~
> compilation terminated.
> compilation terminated.
> on-fault-limit.c:2:10: fatal error: sys/mman.h: No such file or directory
> 2 | #include <sys/mman.h>
> |          ^~~~~~~~~~~~
> transhuge-stress.c:9:10: fatal error: stdlib.h: No such file or directory
> 9 | #include <stdlib.h>
> |          ^~~~~~~~~~
> map_fixed_noreplace.c:10:10: fatal error: sys/mman.h: No such file or 
> directory
> 10 | #include <sys/mman.h>
> |          ^~~~~~~~~~~~
> mlock2-tests.c:3:10: fatal error: sys/mman.h: No such file or directory
> 3 | #include <sys/mman.h>
> |          ^~~~~~~~~~~~
> 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 <sys/mman.h>
> |          ^~~~~~~~~~~~
> compilation terminated.
> va_128TBswitch.c:8:10: fatal error: stdio.h: No such file or directory
> 8 | #include <stdio.h>
> |          ^~~~~~~~~
> 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 <errno.h>
> |          ^~~~~~~~~
> 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 <unistd.h>
> |          ^~~~~~~~~~
> 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 <fcntl.h>
> |          ^~~~~~~~~
> 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 <sys/mman.h>
> |          ^~~~~~~~~~~~
> 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 <stdio.h>
> |          ^~~~~~~~~
> compilation terminated.
> write_to_hugetlbfs.c:7:10: fatal error: err.h: No such file or directory
> 7 | #include <err.h>
> |          ^~~~~~~
> compilation terminated.
> virtual_address_range.c:8:10: fatal error: stdio.h: No such file or 
> directory
> 8 | #include <stdio.h>
> |          ^~~~~~~~~
> compilation terminated.
> 
> 
> thanks,


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-07-28  6:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-28  4:59 gup_test.c:1:10: fatal error: fcntl.h: No such file or directory kernel test robot
2021-07-28  5:24 ` John Hubbard
2021-07-28  6:09   ` [kbuild-all] " Chen, Rong A

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).