2020-08-08 20:31:57

by Rustam Kovhaev

[permalink] [raw]
Subject: realpath "No such file or directory" warnings when building

tags from KBUILD_OUTPUT directory
Reply-To:

running 'make ARCH=x86_64 COMPILED_SOURCE=1 cscope tags' in
KBUILD_OUTPUT directory produces lots of "No such file or directory"
warnings from realpath

it seems like commit 4f491bb6ea2a greatly improved tags generation when
COMPILED_SOURCE=1 is set, but should we add "-q" flag for realpath in
all_compiled_sources() or probably it would be better to fix root cause
and make sure that for example we don't try to find objtool sources and
exclude other similar dirs during tags generation? what do you think?

...
realpath: special.h: No such file or directory
realpath: warn.h: No such file or directory
realpath: sigchain.c: No such file or directory
realpath: sigchain.h: No such file or directory
realpath: orc_gen.c: No such file or directory
realpath: objtool.c: No such file or directory
...


2020-08-09 07:19:30

by Greg KH

[permalink] [raw]
Subject: Re: realpath "No such file or directory" warnings when building

On Sat, Aug 08, 2020 at 01:28:22PM -0700, Rustam Kovhaev wrote:
> tags from KBUILD_OUTPUT directory
> Reply-To:
>
> running 'make ARCH=x86_64 COMPILED_SOURCE=1 cscope tags' in
> KBUILD_OUTPUT directory produces lots of "No such file or directory"
> warnings from realpath
>
> it seems like commit 4f491bb6ea2a greatly improved tags generation when
> COMPILED_SOURCE=1 is set, but should we add "-q" flag for realpath in
> all_compiled_sources() or probably it would be better to fix root cause
> and make sure that for example we don't try to find objtool sources and
> exclude other similar dirs during tags generation? what do you think?
>
> ...
> realpath: special.h: No such file or directory
> realpath: warn.h: No such file or directory
> realpath: sigchain.c: No such file or directory
> realpath: sigchain.h: No such file or directory
> realpath: orc_gen.c: No such file or directory
> realpath: objtool.c: No such file or directory
> ...

Care to send a patch for this?

thanks,

greg k-h

2020-08-09 21:03:52

by Rustam Kovhaev

[permalink] [raw]
Subject: Re: realpath "No such file or directory" warnings when building tags from KBUILD_OUTPUT directory

On Sun, Aug 09, 2020 at 09:16:27AM +0200, Greg Kroah-Hartman wrote:
> On Sat, Aug 08, 2020 at 01:28:22PM -0700, Rustam Kovhaev wrote:
> > running 'make ARCH=x86_64 COMPILED_SOURCE=1 cscope tags' in
> > KBUILD_OUTPUT directory produces lots of "No such file or directory"
> > warnings from realpath
> >
> > it seems like commit 4f491bb6ea2a greatly improved tags generation when
> > COMPILED_SOURCE=1 is set, but should we add "-q" flag for realpath in
> > all_compiled_sources() or probably it would be better to fix root cause
> > and make sure that for example we don't try to find objtool sources and
> > exclude other similar dirs during tags generation? what do you think?
> >
> > ...
> > realpath: special.h: No such file or directory
> > realpath: warn.h: No such file or directory
> > realpath: sigchain.c: No such file or directory
> > realpath: sigchain.h: No such file or directory
> > realpath: orc_gen.c: No such file or directory
> > realpath: objtool.c: No such file or directory
> > ...
>
> Care to send a patch for this?
hi Greg, yes i do, thank you!