Re: [tip:locking/core 5/6] /bin/bash: scripts/atomic/check-atomics.sh: No such file or directory

From: Mark Rutland
Date: Thu Nov 01 2018 - 07:29:53 EST


On Thu, Nov 01, 2018 at 06:16:22PM +0800, kbuild test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/core
> head: 30bc7baa9de81efc0584b9290ce8040a1130f156
> commit: 85f8507192fbfb4ad2ac01de879cb50045f4247f [5/6] locking/atomics: Check generated headers are up-to-date
> config: i386-tinyconfig (attached as .config)
> compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
> reproduce:
> git checkout 85f8507192fbfb4ad2ac01de879cb50045f4247f
> # save the attached .config to linux build tree
> make ARCH=i386
>
> All errors (new ones prefixed by >>):
>
> >> /bin/bash: scripts/atomic/check-atomics.sh: No such file or directory
> make[2]: *** [old-atomics] Error 127
> make[2]: Target '__build' not remade because of errors.
> make[1]: *** [prepare0] Error 2
> make[1]: Target 'prepare' not remade because of errors.
> make: *** [sub-make] Error 2

It looks like we accidentally dropped execute permissions from the
scripts when picking them from the list. Locally I get a slightly
different failure:

ALL scripts/atomic/check-atomics.sh
scripts/atomic/check-atomics.sh: line 16:
scripts/atomic/gen-atomic-instrumented.sh: Permission denied
warning: include/asm-generic/atomic-instrumented.h is out-of-date.
scripts/atomic/check-atomics.sh: line 16:
scripts/atomic/gen-atomic-long.sh: Permission denied
warning: include/asm-generic/atomic-long.h is out-of-date.
scripts/atomic/check-atomics.sh: line 16:
scripts/atomic/gen-atomic-fallback.sh: Permission denied
warning: include/linux/atomic-fallback.h is out-of-date.

I've sent a patch [1] to fix this.

Thanks,
Mark.

[1] https://lkml.kernel.org/r/20181101112654.55898-1-mark.rutland@xxxxxxx