linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 12780/13853] arch/um/drivers/harddog_user.c:6:10: fatal error: stdio.h: No such file or directory
@ 2023-04-24 20:53 kernel test robot
  2023-04-24 21:00 ` Richard Weinberger
  0 siblings, 1 reply; 4+ messages in thread
From: kernel test robot @ 2023-04-24 20:53 UTC (permalink / raw)
  To: Johannes Berg
  Cc: oe-kbuild-all, Linux Memory Management List, Richard Weinberger

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   3b85b9b39960c08f29fa91b8d984d055dde6017e
commit: fc54a4f15988e228cf88f888483e985c5f35031e [12780/13853] um: prevent user code in modules
config: um-allmodconfig (https://download.01.org/0day-ci/archive/20230425/202304250419.YtCLtUhG-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=fc54a4f15988e228cf88f888483e985c5f35031e
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout fc54a4f15988e228cf88f888483e985c5f35031e
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=um olddefconfig
        make W=1 O=build_dir ARCH=um SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304250419.YtCLtUhG-lkp@intel.com/

All errors (new ones prefixed by >>):

>> arch/um/drivers/harddog_user.c:6:10: fatal error: stdio.h: No such file or directory
       6 | #include <stdio.h>
         |          ^~~~~~~~~
   compilation terminated.


vim +6 arch/um/drivers/harddog_user.c

^1da177e4c3f41 Linus Torvalds 2005-04-16  @6  #include <stdio.h>
^1da177e4c3f41 Linus Torvalds 2005-04-16   7  #include <unistd.h>
^1da177e4c3f41 Linus Torvalds 2005-04-16   8  #include <errno.h>
37185b33240870 Al Viro        2012-10-08   9  #include <os.h>
^1da177e4c3f41 Linus Torvalds 2005-04-16  10  

:::::: The code at line 6 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests


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

* Re: [linux-next:master 12780/13853] arch/um/drivers/harddog_user.c:6:10: fatal error: stdio.h: No such file or directory
  2023-04-24 20:53 [linux-next:master 12780/13853] arch/um/drivers/harddog_user.c:6:10: fatal error: stdio.h: No such file or directory kernel test robot
@ 2023-04-24 21:00 ` Richard Weinberger
  2023-06-09  1:26   ` Yujie Liu
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Weinberger @ 2023-04-24 21:00 UTC (permalink / raw)
  To: kernel test robot; +Cc: Johannes Berg, oe-kbuild-all, linux-mm

----- Ursprüngliche Mail -----
> Von: "kernel test robot" <lkp@intel.com>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> master
> head:   3b85b9b39960c08f29fa91b8d984d055dde6017e
> commit: fc54a4f15988e228cf88f888483e985c5f35031e [12780/13853] um: prevent user
> code in modules
> config: um-allmodconfig
> (https://download.01.org/0day-ci/archive/20230425/202304250419.YtCLtUhG-lkp@intel.com/config)
> compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
> reproduce (this is a W=1 build):
>        #
>        https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=fc54a4f15988e228cf88f888483e985c5f35031e
>        git remote add linux-next
>        https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
>        git fetch --no-tags linux-next master
>        git checkout fc54a4f15988e228cf88f888483e985c5f35031e
>        # save the config file
>        mkdir build_dir && cp config build_dir/.config
>        make W=1 O=build_dir ARCH=um olddefconfig
>        make W=1 O=build_dir ARCH=um SHELL=/bin/bash
> 
> If you fix the issue, kindly add following tag where applicable
>| Reported-by: kernel test robot <lkp@intel.com>
>| Link: https://lore.kernel.org/oe-kbuild-all/202304250419.YtCLtUhG-lkp@intel.com/
> 
> All errors (new ones prefixed by >>):
> 
>>> arch/um/drivers/harddog_user.c:6:10: fatal error: stdio.h: No such file or
>>> directory
>       6 | #include <stdio.h>
>         |          ^~~~~~~~~
>   compilation terminated.

Wild guess, is this a nolibc toolchain?

Thanks,
//richard


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

* Re: [linux-next:master 12780/13853] arch/um/drivers/harddog_user.c:6:10: fatal error: stdio.h: No such file or directory
  2023-04-24 21:00 ` Richard Weinberger
@ 2023-06-09  1:26   ` Yujie Liu
  2023-06-09  7:55     ` Johannes Berg
  0 siblings, 1 reply; 4+ messages in thread
From: Yujie Liu @ 2023-06-09  1:26 UTC (permalink / raw)
  To: Richard Weinberger
  Cc: kernel test robot, Johannes Berg, oe-kbuild-all, linux-mm

Hi Richard,

On Mon, Apr 24, 2023 at 11:00:47PM +0200, Richard Weinberger wrote:
> ----- Ursprüngliche Mail -----
> > Von: "kernel test robot" <lkp@intel.com>
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> > master
> > head:   3b85b9b39960c08f29fa91b8d984d055dde6017e
> > commit: fc54a4f15988e228cf88f888483e985c5f35031e [12780/13853] um: prevent user
> > code in modules
> > config: um-allmodconfig
> > (https://download.01.org/0day-ci/archive/20230425/202304250419.YtCLtUhG-lkp@intel.com/config)
> > compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
> > reproduce (this is a W=1 build):
> >        #
> >        https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=fc54a4f15988e228cf88f888483e985c5f35031e
> >        git remote add linux-next
> >        https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> >        git fetch --no-tags linux-next master
> >        git checkout fc54a4f15988e228cf88f888483e985c5f35031e
> >        # save the config file
> >        mkdir build_dir && cp config build_dir/.config
> >        make W=1 O=build_dir ARCH=um olddefconfig
> >        make W=1 O=build_dir ARCH=um SHELL=/bin/bash
> > 
> > If you fix the issue, kindly add following tag where applicable
> >| Reported-by: kernel test robot <lkp@intel.com>
> >| Link: https://lore.kernel.org/oe-kbuild-all/202304250419.YtCLtUhG-lkp@intel.com/
> > 
> > All errors (new ones prefixed by >>):
> > 
> >>> arch/um/drivers/harddog_user.c:6:10: fatal error: stdio.h: No such file or
> >>> directory
> >       6 | #include <stdio.h>
> >         |          ^~~~~~~~~
> >   compilation terminated.
> 
> Wild guess, is this a nolibc toolchain?

The bot is using the gcc-11 provided by debian distribution, so we think
it is not a "nolibc toolchain".

    compiler: gcc-11 (Debian 11.3.0-8) 11.3.0

We can reproduce it on commit fc54a4f15988, and its parent commit is
clean. Please help give some guidance if anything wrong in our test
flow. Thanks.

$ git checkout fc54a4f15988e228cf88f888483e985c5f35031e
HEAD is now at fc54a4f15988 um: prevent user code in modules
$ make ARCH=um allmodconfig
$ make ARCH=um arch/um/drivers/
...
  CC [M]  arch/um/drivers/harddog_user.o
arch/um/drivers/harddog_user.c:6:10: fatal error: stdio.h: No such file or directory
    6 | #include <stdio.h>
      |          ^~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:252: arch/um/drivers/harddog_user.o] Error 1
make[1]: *** [scripts/Makefile.build:494: arch/um/drivers] Error 2
make: *** [Makefile:2025: .] Error 2

$ git checkout 5d90cf6dcc6a4cb85a51ffe007a8e34375799164
HEAD is now at 5d90cf6dcc6a um: further clean up user_syms
$ make ARCH=um allmodconfig
$ make ARCH=um arch/um/drivers/
...
  CC [M]  arch/um/drivers/harddog_kern.o
  CC [M]  arch/um/drivers/harddog_user.o  <--
  LD [M]  arch/um/drivers/harddog.o
  CC [M]  arch/um/drivers/random.o
$ echo $?
0


Best Regards,
Yujie


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

* Re: [linux-next:master 12780/13853] arch/um/drivers/harddog_user.c:6:10: fatal error: stdio.h: No such file or directory
  2023-06-09  1:26   ` Yujie Liu
@ 2023-06-09  7:55     ` Johannes Berg
  0 siblings, 0 replies; 4+ messages in thread
From: Johannes Berg @ 2023-06-09  7:55 UTC (permalink / raw)
  To: Liu, Yujie, Richard Weinberger; +Cc: lkp, oe-kbuild-all, linux-mm

Hi Yujie,

> > > 
> > > > > arch/um/drivers/harddog_user.c:6:10: fatal error: stdio.h: No such file or
> > > > > directory
> > >       6 | #include <stdio.h>
> > >         |          ^~~~~~~~~
> > >   compilation terminated.
> > 
> > Wild guess, is this a nolibc toolchain?
> 
> The bot is using the gcc-11 provided by debian distribution, so we think
> it is not a "nolibc toolchain".
> 
>     compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
> 
> We can reproduce it on commit fc54a4f15988, and its parent commit is
> clean. Please help give some guidance if anything wrong in our test
> flow. Thanks.
> 

That was just a misinterpretation. The real issue was fixed by commit
73a23d771033 ("um: harddog: fix modular build").

johannes


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

end of thread, other threads:[~2023-06-09  7:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-24 20:53 [linux-next:master 12780/13853] arch/um/drivers/harddog_user.c:6:10: fatal error: stdio.h: No such file or directory kernel test robot
2023-04-24 21:00 ` Richard Weinberger
2023-06-09  1:26   ` Yujie Liu
2023-06-09  7:55     ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox