Uploaded image for project: 'vpp'
  1. vpp
  2. VPP-1369

./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • None
    • 18.07
    • Build system
    • None
    • Ubuntu 18.10

      VPP v18.07

      GCC 8.2.0-1ubuntu2

       

      Compiling with:

      make V=0 PLATFORM=vpp TAG=vpp pkg-deb

       

      leads to numerous identical issues:

      ...

      gcc -c -g -O3 -fwrapv -U_STRICT_ANSI_ -fno-common -Werror=attributes -W -Wall -pedantic -Wc90-c99-compat -Wno-long-long -Werror=implicit -Werror=missing-braces -Werror=return-type -Werror=trigraphs -Werror=pointer-arith -Werror=missing-prototypes -Werror=missing-declarations -Werror=comment -Werror=vla -DHAVE_CONFIG_H -I. -I. -I./include -I./include -I./x86 -I./x86 -I./asm -I./asm -I./disasm -I./disasm -I./output -I./output -o asm/rdstrnum.o asm/rdstrnum.c
      In file included from nasmlib/zerobuf.c:39:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      In file included from stdlib/vsnprintf.c:15:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: stdlib/vsnprintf.o] Error 1
      make[5]: *** Waiting for unfinished jobs....
      make[5]: *** [Makefile:75: nasmlib/zerobuf.o] Error 1
      In file included from nasmlib/badenum.c:34:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      In file included from ./include/perfhash.h:38,
      from asm/directiv.h:9,
      from asm/directbl.c:6:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      In file included from nasmlib/filename.c:39:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      In file included from stdlib/snprintf.c:13:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: stdlib/snprintf.o] Error 1
      make[5]: *** [Makefile:75: asm/directbl.o] Error 1
      make[5]: *** [Makefile:75: nasmlib/filename.o] Error 1
      make[5]: *** [Makefile:75: nasmlib/badenum.o] Error 1
      In file included from nasmlib/srcfile.c:43:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: nasmlib/srcfile.o] Error 1
      In file included from nasmlib/ilog2.c:35:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      In file included from nasmlib/raa.c:34:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: nasmlib/ilog2.o] Error 1
      In file included from ./include/perfhash.h:38,
      from nasmlib/perfhash.c:34:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      In file included from nasmlib/file.h:38,
      from nasmlib/mmap.c:34:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: nasmlib/perfhash.o] Error 1
      make[5]: *** [Makefile:75: nasmlib/raa.o] Error 1
      make[5]: *** [Makefile:75: nasmlib/mmap.o] Error 1
      In file included from nasmlib/path.c:42:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      In file included from nasmlib/bsi.c:42:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: nasmlib/path.o] Error 1
      In file included from nasmlib/crc64.c:35:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: nasmlib/crc64.o] Error 1
      make[5]: *** [Makefile:75: nasmlib/bsi.o] Error 1
      In file included from nasmlib/realpath.c:50:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      In file included from ./include/strlist.h:45,
      from nasmlib/strlist.c:42:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      In file included from ./include/nasm.h:44,
      from common/common.c:39:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: nasmlib/realpath.o] Error 1
      make[5]: *** [Makefile:75: common/common.o] Error 1
      make[5]: *** [Makefile:75: nasmlib/strlist.o] Error 1
      In file included from asm/pptok.c:6:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      In file included from nasmlib/file.h:38,
      from nasmlib/file.c:34:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      In file included from ./include/nasm.h:44,
      from x86/regflags.c:4:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: asm/pptok.o] Error 1
      In file included from asm/error.c:42:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      In file included from ./include/nasm.h:44,
      from nasmlib/hashtbl.c:43:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      In file included from ./include/nasm.h:44,
      from asm/exprdump.c:40:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: nasmlib/file.o] Error 1
      make[5]: *** [Makefile:75: x86/regflags.o] Error 1
      make[5]: *** [Makefile:75: asm/exprdump.o] Error 1
      make[5]: *** [Makefile:75: asm/error.o] Error 1
      make[5]: *** [Makefile:75: nasmlib/hashtbl.o] Error 1
      In file included from nasmlib/malloc.c:42:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      In file included from asm/rdstrnum.c:43:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: nasmlib/malloc.o] Error 1
      make[5]: *** [Makefile:75: asm/rdstrnum.o] Error 1
      In file included from ./include/nasm.h:44,
      from asm/exprlib.c:40:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: asm/exprlib.o] Error 1
      In file included from nasmlib/readnum.c:42:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: nasmlib/readnum.o] Error 1
      In file included from ./include/nasm.h:44,
      from ./include/disp8.h:41,
      from x86/disp8.c:38:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: x86/disp8.o] Error 1
      In file included from nasmlib/saa.c:35:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: nasmlib/saa.o] Error 1
      In file included from ./include/nasm.h:44,
      from asm/segalloc.c:39:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: asm/segalloc.o] Error 1
      In file included from nasmlib/string.c:43:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: nasmlib/string.o] Error 1
      In file included from ./include/nasm.h:44,
      from asm/labels.c:44:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: asm/labels.o] Error 1
      In file included from ./include/nasm.h:44,
      from asm/pragma.c:47:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: asm/pragma.o] Error 1
      In file included from ./include/nasm.h:44,
      from asm/preproc-nop.c:50:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: asm/preproc-nop.o] Error 1
      In file included from ./include/nasm.h:44,
      from x86/insnsb.c:3:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: x86/insnsb.o] Error 1
      In file included from ./include/nasm.h:44,
      from asm/directiv.c:45:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: asm/directiv.o] Error 1
      In file included from ./include/nasm.h:44,
      from asm/stdscan.c:41:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: asm/stdscan.o] Error 1
      In file included from asm/quote.c:42:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: asm/quote.o] Error 1
      In file included from ./include/nasm.h:44,
      from asm/listing.c:46:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: asm/listing.o] Error 1
      In file included from asm/strfunc.c:40:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: asm/strfunc.o] Error 1
      In file included from ./include/nasm.h:44,
      from asm/tokhash.c:8:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: asm/tokhash.o] Error 1
      In file included from ./include/nasm.h:44,
      from asm/parser.c:46:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      asm/parser.c: In function 'parse_line':
      asm/parser.c:447:5: warning: ISO C90 forbids mixed declarations and code [-Wc90-c99-compat]
      nasm_static_assert(P_none == 0);
      ^~~~~~~~~~~~~~~~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: asm/parser.o] Error 1
      In file included from ./include/nasm.h:44,
      from asm/eval.c:46:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: asm/eval.o] Error 1
      In file included from ./include/nasm.h:44,
      from asm/float.c:45:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: asm/float.o] Error 1
      In file included from ./include/nasm.h:44,
      from asm/nasm.c:48:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: asm/nasm.o] Error 1
      In file included from ./include/nasm.h:44,
      from x86/insnsa.c:3:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: x86/insnsa.o] Error 1
      In file included from ./include/nasm.h:44,
      from asm/assemble.c:184:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: asm/assemble.o] Error 1
      In file included from ./include/nasm.h:44,
      from x86/insnsd.c:3:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors
      make[5]: *** [Makefile:75: x86/insnsd.o] Error 1
      In file included from ./include/nasm.h:44,
      from asm/preproc.c:73:
      ./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void' [-Werror=attributes]
      void pure_func seg_init(void);
      ^~~~
      cc1: some warnings being treated as errors

            dmarion Damjan Marion
            jc-manciot jean-christophe manciot
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: