All of lore.kernel.org
 help / color / mirror / Atom feed
* [peterz-queue:objtool/shrink-reloc 6/9] tools/objtool/include/objtool/elf.h:85:92: error: '_Static_assert' with no message is a C2x extension
@ 2023-02-10 16:50 kernel test robot
  2023-02-10 16:58 ` Peter Zijlstra
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2023-02-10 16:50 UTC (permalink / raw)
  To: Peter Zijlstra; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git objtool/shrink-reloc
head:   6aedb7889b9dbd5094ff15b388ac2d2f6663148c
commit: 371de6c485805b337819a1a5f4a2f37ec739f328 [6/9] objtool: Remove reloc::offset
config: x86_64-randconfig-a012 (https://download.01.org/0day-ci/archive/20230211/202302110008.pUtcZnVo-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=371de6c485805b337819a1a5f4a2f37ec739f328
        git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
        git fetch --no-tags peterz-queue objtool/shrink-reloc
        git checkout 371de6c485805b337819a1a5f4a2f37ec739f328
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 prepare

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

All errors (new ones prefixed by >>):

   In file included from weak.c:10:
   In file included from tools/objtool/include/objtool/objtool.h:13:
>> tools/objtool/include/objtool/elf.h:85:92: error: '_Static_assert' with no message is a C2x extension [-Werror,-Wc2x-extensions]
   static_assert(offsetof(struct reloc, rela.r_offset) == offsetof(struct reloc, rel.r_offset));
                                                                                              ^
                                                                                              , ""
   1 error generated.
   make[4]: *** [tools/build/Makefile.build:97: tools/objtool/weak.o] Error 1
   make[4]: *** Waiting for unfinished jobs....
   In file included from elf.c:22:
>> tools/objtool/include/objtool/elf.h:85:92: error: '_Static_assert' with no message is a C2x extension [-Werror,-Wc2x-extensions]
   static_assert(offsetof(struct reloc, rela.r_offset) == offsetof(struct reloc, rel.r_offset));
                                                                                              ^
                                                                                              , ""
   In file included from orc_dump.c:9:
   In file included from tools/objtool/include/objtool/objtool.h:13:
>> tools/objtool/include/objtool/elf.h:85:92: error: '_Static_assert' with no message is a C2x extension [-Werror,-Wc2x-extensions]
   static_assert(offsetof(struct reloc, rela.r_offset) == offsetof(struct reloc, rel.r_offset));
                                                                                              ^
                                                                                              , ""
   In file included from check.c:14:
   In file included from tools/objtool/include/objtool/arch.h:11:
   In file included from tools/objtool/include/objtool/objtool.h:13:
>> tools/objtool/include/objtool/elf.h:85:92: error: '_Static_assert' with no message is a C2x extension [-Werror,-Wc2x-extensions]
   static_assert(offsetof(struct reloc, rela.r_offset) == offsetof(struct reloc, rel.r_offset));
                                                                                              ^
                                                                                              , ""
   1 error generated.
   make[4]: *** [tools/build/Makefile.build:97: tools/objtool/elf.o] Error 1
   1 error generated.
   make[4]: *** [tools/build/Makefile.build:97: tools/objtool/orc_dump.o] Error 1
   In file included from arch/x86/special.c:4:
   In file included from tools/objtool/include/objtool/special.h:10:
   In file included from tools/objtool/include/objtool/check.h:11:
   In file included from tools/objtool/include/objtool/arch.h:11:
   In file included from tools/objtool/include/objtool/objtool.h:13:
>> tools/objtool/include/objtool/elf.h:85:92: error: '_Static_assert' with no message is a C2x extension [-Werror,-Wc2x-extensions]
   static_assert(offsetof(struct reloc, rela.r_offset) == offsetof(struct reloc, rel.r_offset));
                                                                                              ^
                                                                                              , ""
   In file included from special.c:16:
   In file included from tools/objtool/include/objtool/special.h:10:
   In file included from tools/objtool/include/objtool/check.h:11:
   In file included from tools/objtool/include/objtool/arch.h:11:
   In file included from tools/objtool/include/objtool/objtool.h:13:
>> tools/objtool/include/objtool/elf.h:85:92: error: '_Static_assert' with no message is a C2x extension [-Werror,-Wc2x-extensions]
   static_assert(offsetof(struct reloc, rela.r_offset) == offsetof(struct reloc, rel.r_offset));
                                                                                              ^
                                                                                              , ""
   1 error generated.
   1In file included from builtin-check.c:10:
   In file included from tools/objtool/include/objtool/objtool.h:13:
>> tools/objtool/include/objtool/elf.h:85:92: error: '_Static_assert' with no message is a C2x extension [-Werror,-Wc2x-extensions]
   static_assert(offsetof(struct reloc, rela.r_offset) == offsetof(struct reloc, rel.r_offset));
                                                                                              ^
                                                                                              , ""
   make[5]: *** [tools/build/Makefile.build:97: tools/objtool/arch/x86/special.o] Error 1
   make[5]: *** Waiting for unfinished jobs....
   1 error generated.
   In file included from objtool.c:16:
   In file included from tools/objtool/include/objtool/objtool.h:13:
>> tools/objtool/include/objtool/elf.h:85:92: error: '_Static_assert' with no message is a C2x extension [-Werror,-Wc2x-extensions]
   static_assert(offsetof(struct reloc, rela.r_offset) == offsetof(struct reloc, rel.r_offset));
                                                                                              ^
                                                                                              , ""
    errormake[4]: *** [tools/build/Makefile.build:97: tools/objtool/builtin-check.o] Error 1
    generated.
   1 error generated.
   make[4]: *** [tools/build/Makefile.build:97: tools/objtool/special.o] Error 1
   make[4]: *** [tools/build/Makefile.build:97: tools/objtool/objtool.o] Error 1
   In file included from arch/x86/decode.c:18:
   In file included from tools/objtool/include/objtool/check.h:11:
   In file included from tools/objtool/include/objtool/arch.h:11:
   In file included from tools/objtool/include/objtool/objtool.h:13:
>> tools/objtool/include/objtool/elf.h:85:92: error: '_Static_assert' with no message is a C2x extension [-Werror,-Wc2x-extensions]
   static_assert(offsetof(struct reloc, rela.r_offset) == offsetof(struct reloc, rel.r_offset));
                                                                                              ^
                                                                                              , ""
   In file included from orc_gen.c:12:
   In file included from tools/objtool/include/objtool/check.h:11:
   In file included from tools/objtool/include/objtool/arch.h:11:
   In file included from tools/objtool/include/objtool/objtool.h:13:
>> tools/objtool/include/objtool/elf.h:85:92: error: '_Static_assert' with no message is a C2x extension [-Werror,-Wc2x-extensions]
   static_assert(offsetof(struct reloc, rela.r_offset) == offsetof(struct reloc, rel.r_offset));
                                                                                              ^
                                                                                              , ""
   1 error generated.
   make[4]: *** [tools/build/Makefile.build:97: tools/objtool/check.o] Error 1
   1 error generated.
   1 error generated.
   make[5]: *** [tools/build/Makefile.build:97: tools/objtool/arch/x86/decode.o] Error 1
   make[4]: *** [tools/build/Makefile.build:139: arch/x86] Error 2
   make[4]: *** [tools/build/Makefile.build:97: tools/objtool/orc_gen.o] Error 1
   make[3]: *** [Makefile:66: tools/objtool/objtool-in.o] Error 2
   make[2]: *** [Makefile:73: objtool] Error 2
   make[1]: *** [Makefile:1451: tools/objtool] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:242: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +/_Static_assert +85 tools/objtool/include/objtool/elf.h

    84	
  > 85	static_assert(offsetof(struct reloc, rela.r_offset) == offsetof(struct reloc, rel.r_offset));
    86	

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

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

* Re: [peterz-queue:objtool/shrink-reloc 6/9] tools/objtool/include/objtool/elf.h:85:92: error: '_Static_assert' with no message is a C2x extension
  2023-02-10 16:50 [peterz-queue:objtool/shrink-reloc 6/9] tools/objtool/include/objtool/elf.h:85:92: error: '_Static_assert' with no message is a C2x extension kernel test robot
@ 2023-02-10 16:58 ` Peter Zijlstra
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Zijlstra @ 2023-02-10 16:58 UTC (permalink / raw)
  To: kernel test robot; +Cc: llvm, oe-kbuild-all

On Sat, Feb 11, 2023 at 12:50:43AM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git objtool/shrink-reloc
> head:   6aedb7889b9dbd5094ff15b388ac2d2f6663148c
> commit: 371de6c485805b337819a1a5f4a2f37ec739f328 [6/9] objtool: Remove reloc::offset
> config: x86_64-randconfig-a012 (https://download.01.org/0day-ci/archive/20230211/202302110008.pUtcZnVo-lkp@intel.com/config)
> compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
> reproduce (this is a W=1 build):
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         # https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=371de6c485805b337819a1a5f4a2f37ec739f328
>         git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
>         git fetch --no-tags peterz-queue objtool/shrink-reloc
>         git checkout 371de6c485805b337819a1a5f4a2f37ec739f328
>         # save the config file
>         mkdir build_dir && cp config build_dir/.config
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 prepare
> 
> 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/202302110008.pUtcZnVo-lkp@intel.com/
> 
> All errors (new ones prefixed by >>):
> 
>    In file included from weak.c:10:
>    In file included from tools/objtool/include/objtool/objtool.h:13:
> >> tools/objtool/include/objtool/elf.h:85:92: error: '_Static_assert' with no message is a C2x extension [-Werror,-Wc2x-extensions]
>    static_assert(offsetof(struct reloc, rela.r_offset) == offsetof(struct reloc, rel.r_offset));
>                                                                                               ^

Boo, I included build_bug.h which has:

tools/include/linux/build_bug.h:#define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr)

I'll go dig out me clang I suppose.

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

end of thread, other threads:[~2023-02-10 16:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-10 16:50 [peterz-queue:objtool/shrink-reloc 6/9] tools/objtool/include/objtool/elf.h:85:92: error: '_Static_assert' with no message is a C2x extension kernel test robot
2023-02-10 16:58 ` Peter Zijlstra

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.