Repository: spack/spack

Issue:
nasm@2.13.03 [preferred version/latest release] build fails with gcc@8.1.0
### Expected Result

nasm@2.13.03 builds with gcc@8.1.0 on linux-x86_64

### Actual Result
```
[sajid@xrmlite ~]$ spack install nasm                                                                                                                                                           
==> Installing nasm                                                                                                                                                                             
==> Using cached archive: /home/sajid/packages/spack/var/spack/cache/nasm/nasm-2.13.03.tar.xz                                                                                                   
==> Staging archive: /home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03.tar.xz                                                               
==> Created stage in /home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt                                                                                   
==> No patches needed for nasm                                                                                                                                                                  
==> Building nasm [AutotoolsPackage]                                                                                                                                                            
==> Executing phase: 'autoreconf'                                                                                                                                                               
==> Executing phase: 'configure'                                                                                                                                                                
==> Executing phase: 'build'                                                                                                                                                                    
==> Error: ProcessError: Command exited with status 2:                                                                                                                                          
    'make' '-j32'                                                                                                                                                                               
                                                                                                                                                                                                
32 errors found in build log:                                                                                                                                                                   
     180    /home/sajid/packages/spack/lib/spack/env/gcc/gcc -c -g -O3 -fwrapv -U__STRICT_ANSI__ -fno-common -Werror=attributes -W -Wall -pedantic -Wc90-c99-compat -Wno-long-long -Werror=impl 
            icit -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/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03 -I. -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z 
            4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include -I./include -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/x86 -I./x86 - 
            I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/asm -I./asm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4n 
            wnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/disasm -I./disasm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/output -I./output 
             -o nasmlib/realpath.o nasmlib/realpath.c                                                                                                                                           
     181    /home/sajid/packages/spack/lib/spack/env/gcc/gcc -c -g -O3 -fwrapv -U__STRICT_ANSI__ -fno-common -Werror=attributes -W -Wall -pedantic -Wc90-c99-compat -Wno-long-long -Werror=impl 
            icit -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/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03 -I. -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z 
            4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include -I./include -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/x86 -I./x86 - 
            I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/asm -I./asm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4n 
            wnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/disasm -I./disasm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/output -I./output 
             -o nasmlib/path.o nasmlib/path.c                                                                                                                                                   
     182    /home/sajid/packages/spack/lib/spack/env/gcc/gcc -c -g -O3 -fwrapv -U__STRICT_ANSI__ -fno-common -Werror=attributes -W -Wall -pedantic -Wc90-c99-compat -Wno-long-long -Werror=impl 
            icit -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/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03 -I. -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z 
            4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include -I./include -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/x86 -I./x86 - 
            I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/asm -I./asm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4n 
            wnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/disasm -I./disasm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/output -I./output 
             -o nasmlib/filename.o nasmlib/filename.c                                                                                                                                           
     183    /home/sajid/packages/spack/lib/spack/env/gcc/gcc -c -g -O3 -fwrapv -U__STRICT_ANSI__ -fno-common -Werror=attributes -W -Wall -pedantic -Wc90-c99-compat -Wno-long-long -Werror=impl 
            icit -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/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03 -I. -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z 
            4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include -I./include -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/x86 -I./x86 - 
            I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/asm -I./asm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4n 
            wnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/disasm -I./disasm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/output -I./output 
             -o nasmlib/srcfile.o nasmlib/srcfile.c                                                                                                                                             
     184    /home/sajid/packages/spack/lib/spack/env/gcc/gcc -c -g -O3 -fwrapv -U__STRICT_ANSI__ -fno-common -Werror=attributes -W -Wall -pedantic -Wc90-c99-compat -Wno-long-long -Werror=impl 
            icit -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/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03 -I. -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z 
            4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include -I./include -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/x86 -I./x86 - 
            I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/asm -I./asm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4n 
            wnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/disasm -I./disasm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/output -I./output 
             -o nasmlib/zerobuf.o nasmlib/zerobuf.c                                                                                                                                             
     185    In file included from stdlib/vsnprintf.c:15:                                                                                                                                        
  >> 186    /home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning        
            void’ [-Werror=attributes]                                                                                                                                                          
     187     void pure_func seg_init(void);                                                                                                                                                     
     188     ^~~~                                                                                                                                                                               
     189    In file included from /home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasm.h:46,                                      
     190                     from asm/nasm.c:47:                                                                                                                                                
  >> 191    /home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning        
            void’ [-Werror=attributes]                                                                                                                                                          
     192     void pure_func seg_init(void);                                                                                                                                                     
     193     ^~~~                                                                                                                                                                               
     194    /home/sajid/packages/spack/lib/spack/env/gcc/gcc -c -g -O3 -fwrapv -U__STRICT_ANSI__ -fno-common -Werror=attributes -W -Wall -pedantic -Wc90-c99-compat -Wno-long-long -Werror=impl 
            icit -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/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03 -I. -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z 
            4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include -I./include -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/x86 -I./x86 - 
            I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/asm -I./asm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4n 
            wnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/disasm -I./disasm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/output -I./output 
             -o nasmlib/readnum.o nasmlib/readnum.c                                                                                                                                             
     195    cc1: some warnings being treated as errors                                                                                                                                          
     196    /home/sajid/packages/spack/lib/spack/env/gcc/gcc -c -g -O3 -fwrapv -U__STRICT_ANSI__ -fno-common -Werror=attributes -W -Wall -pedantic -Wc90-c99-compat -Wno-long-long -Werror=impl 
            icit -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/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03 -I. -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z 
            4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include -I./include -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/x86 -I./x86 - 
            I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/asm -I./asm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4n 
            wnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/disasm -I./disasm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/output -I./output 
             -o nasmlib/bsi.o nasmlib/bsi.c                                                                                                                                                     
  >> 197    make: *** [stdlib/vsnprintf.o] Error 1                                                                                                                                              
     198    make: *** Waiting for unfinished jobs....                                                                                                                                           
     199    In file included from stdlib/snprintf.c:13:                                                                                                                                         
  >> 200    /home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning        
            void’ [-Werror=attributes]                                                                                                                                                          
     201     void pure_func seg_init(void);                                                                                                                                                     
     202     ^~~~                                                                                                                                                                               
     203    cc1: some warnings being treated as errors                                                                                                                                          
  >> 204    make: *** [stdlib/snprintf.o] Error 1                                                                                                                                               
     205    In file included from nasmlib/file.h:38,                                                                                                                                            
     206                     from nasmlib/file.c:34:                                                                                                                                            
  >> 207    /home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning        
            void’ [-Werror=attributes]                                                                                                                                                          
     208     void pure_func seg_init(void);                                                                                                                                                     
     209     ^~~~                                                                                                                                                                               
     210    In file included from nasmlib/string.c:43:                                                                                                                                          
  >> 211    /home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning        
            void’ [-Werror=attributes]                                                                                                                                                          
     212     void pure_func seg_init(void);                                                                                                                                                     
     213     ^~~~                                                                                                                                                                               
     214    In file included from nasmlib/ilog2.c:35:                                                                                                                                           
  >> 215    /home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning        
            void’ [-Werror=attributes]                                                                                                                                                          
     216     void pure_func seg_init(void);                                                                                                                                                     
     217     ^~~~                                                                                                                                                                               
     218    In file included from nasmlib/file.h:38,                                                                                                                                            
     219                     from nasmlib/mmap.c:34:                                                                                                                                            
  >> 220    /home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning        
            void’ [-Werror=attributes]                                                                                                                                                          
     221     void pure_func seg_init(void);                                                                                                                                                     
     222     ^~~~                                                                                                                                                                               
     223    In file included from nasmlib/malloc.c:42:                                                                                                                                          
  >> 224    /home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning        
            void’ [-Werror=attributes]                                                                                                                                                          
     225     void pure_func seg_init(void);                                                                                                                                                     
     226     ^~~~                                                                                                                                                                               
     227    In file included from nasmlib/crc64.c:35:                                                                                                                                           
  >> 228    /home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning        
            void’ [-Werror=attributes]                                                                                                                                                          
     229     void pure_func seg_init(void);                                                                                                                                                     
     230     ^~~~                                                                                                                                                                               
     231    In file included from nasmlib/filename.c:39:                                                                                                                                        
  >> 232    /home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning        
            void’ [-Werror=attributes]                                                                                                                                                          
     233     void pure_func seg_init(void);                                                                                                                                                     
     234     ^~~~                                                                                                                                                                               
     235    In file included from nasmlib/zerobuf.c:39:                                                                                                                                         
  >> 236    /home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning        
            void’ [-Werror=attributes]                                                                                                                                                          
     237     void pure_func seg_init(void);                                                                                                                                                     
     238     ^~~~                                                                                                                                                                               
     239    cc1: some warnings being treated as errors                                                                                                                                          
  >> 240    make: *** [nasmlib/zerobuf.o] Error 1                                                                                                                                               
     241    In file included from nasmlib/path.c:42:                                                                                                                                            
  >> 242    /home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning        
            void’ [-Werror=attributes]                                                                                                                                                          
     243     void pure_func seg_init(void);                                                                                                                                                     
     244     ^~~~                                                                                                                                                                               
     245    In file included from nasmlib/bsi.c:42:                                                                                                                                             
  >> 246    /home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning        
            void’ [-Werror=attributes]                                                                                                                                                          
     247     void pure_func seg_init(void);                                                                                                                                                     
     248     ^~~~                                                                                                                                                                               
     249    In file included from nasmlib/srcfile.c:43:                                                                                                                                         
  >> 250    /home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning        
            void’ [-Werror=attributes]                                                                                                                                                          
     251     void pure_func seg_init(void);                                                                                                                                                     
     252     ^~~~                                                                                                                                                                               
     253    cc1: some warnings being treated as errors                                                                                                                                          
  >> 254    make: *** [nasmlib/ilog2.o] Error 1                                                                                                                                                 
     255    In file included from nasmlib/readnum.c:42:                                                                                                                                         
  >> 256    /home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning        
            void’ [-Werror=attributes]                                                                                                                                                          
     257     void pure_func seg_init(void);                                                                                                                                                     
     258     ^~~~                                                                                                                                                                               
     259    In file included from nasmlib/realpath.c:50:                                                                                                                                        
  >> 260    /home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning        
            void’ [-Werror=attributes]                                                                                                                                                          
     261     void pure_func seg_init(void);                                                                                                                                                     
     262     ^~~~                                                                                                                                                                               
     263    cc1: some warnings being treated as errors                                                                                                                                          
  >> 264    make: *** [nasmlib/crc64.o] Error 1                                                                                                                                                 
     265    cc1: some warnings being treated as errors                                                                                                                                          
  >> 266    make: *** [nasmlib/realpath.o] Error 1                                                                                                                                              
     267    cc1: some warnings being treated as errors                                                                                                                                          
     268    cc1: some warnings being treated as errors                                                                                                                                          
     269    cc1: some warnings being treated as errors                                                                                                                                          
  >> 270    make: *** [nasmlib/bsi.o] Error 1                                                                                                                                                   
     271    cc1: some warnings being treated as errors                                                                                                                                          
  >> 272    make: *** [nasmlib/filename.o] Error 1                                                                                                                                              
  >> 273    make: *** [nasmlib/mmap.o] Error 1                                                                                                                                                  
  >> 274    make: *** [nasmlib/malloc.o] Error 1                                                                                                                                                
     275    cc1: some warnings being treated as errors                                                                                                                                          
  >> 276    make: *** [nasmlib/srcfile.o] Error 1                                                                                                                                               
     277    cc1: some warnings being treated as errors                                                                                                                                          
     278    cc1: some warnings being treated as errors                                                                                                                                          
  >> 279    make: *** [nasmlib/readnum.o] Error 1                                                                                                                                               
  >> 280    make: *** [nasmlib/path.o] Error 1                                                                                                                                                  
     281    cc1: some warnings being treated as errors                                                                                                                                          
  >> 282    make: *** [nasmlib/file.o] Error 1                                                                                                                                                  
     283    cc1: some warnings being treated as errors                                                                                                                                          
  >> 284    make: *** [nasmlib/string.o] Error 1                                                                                                                                                
     285    cc1: some warnings being treated as errors                                                                                                                                          
  >> 286    make: *** [asm/nasm.o] Error 1                                                                                                                                                      
                                                                                                                                                                                                
See build log for details:                                                                                                                                                                      
  /home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/spack-build.out                                                                         
```
phase : build fails 

### Steps to reproduce the issue

```
$ spack install nasm %gcc@8.1.0

```

### Information on your system

This includes:

 1. Linux-x86-64, centos7
 2. I can build nasm@2.12.03rc1, anything newer than that fails. Maybe something changed @2.13 
 3. The same pacakge installs withearlier versions of gcc

### Output of spack-built.out

```
==> Executing phase: 'autoreconf'
==> Executing phase: 'configure'
==> '/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/configure' '--prefix=/home/sajid/packages/spack/opt/spack/linux-centos7-x86_64/gcc-8.1.0/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt'
checking for gcc... /home/sajid/packages/spack/lib/spack/env/gcc/gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /home/sajid/packages/spack/lib/spack/env/gcc/gcc accepts -g... yes
checking for /home/sajid/packages/spack/lib/spack/env/gcc/gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... /home/sajid/packages/spack/lib/spack/env/gcc/gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for gcc... (cached) /home/sajid/packages/spack/lib/spack/env/gcc/gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether /home/sajid/packages/spack/lib/spack/env/gcc/gcc accepts -g... (cached) yes
checking for /home/sajid/packages/spack/lib/spack/env/gcc/gcc option to accept ISO C89... (cached) none needed
checking for /home/sajid/packages/spack/lib/spack/env/gcc/gcc option to accept ISO C99... none needed
checking for /home/sajid/packages/spack/lib/spack/env/gcc/gcc option to accept ISO Standard C... (cached) none needed
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for suffix of library files... a
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for C/C++ restrict keyword... __restrict
checking for size_t... yes
checking whether byte ordering is bigendian... no
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc accepts -fwrapv... yes
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc accepts -U__STRICT_ANSI__... yes
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc accepts -fno-common... yes
checking for nroff... nroff
checking for asciidoc... no
checking for xmlto... no
configure: WARNING: No asciidoc package found
configure: WARNING: No xmlto package found
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for ANSI C header files... (cached) yes
checking for inttypes.h... (cached) yes
checking for strings.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking stdnoreturn.h usability... yes
checking stdnoreturn.h presence... yes
checking for stdnoreturn.h... yes
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for strcasecmp... yes
checking for stricmp... no
checking for strncasecmp... yes
checking for strnicmp... no
checking for strsep... yes
checking for strnlen... yes
checking for getuid... yes
checking for getgid... yes
checking for realpath... yes
checking for canonicalize_file_name... yes
checking for _fullpath... no
checking for pathconf... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for _fseeki64... no
checking for ftruncate... yes
checking for _chsize... no
checking for _chsize_s... no
checking for fileno... yes
checking for _fileno... no
checking for _filelengthi64... no
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for getpagesize... (cached) yes
checking for sysconf... yes
checking for access... yes
checking for _access... no
checking for faccessat... yes
checking for __builtin_clz... yes
checking for __builtin_clzl... yes
checking for __builtin_clzll... yes
checking for __builtin_expect... yes
checking for vsnprintf... yes
checking for _vsnprintf... no
checking for snprintf... yes
checking for _snprintf... no
checking for strlcpy... no
checking for struct _stati64... no
checking for struct stat... yes
checking for stat... yes
checking for _stati64... no
checking for fstat... yes
checking for _fstati64... no
checking whether strcasecmp is declared... yes
checking whether stricmp is declared... no
checking whether strncasecmp is declared... yes
checking whether strnicmp is declared... no
checking whether strsep is declared... yes
checking whether strlcpy is declared... no
checking whether strnlen is declared... yes
checking for uintptr_t... yes
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc accepts -Werror=attributes... yes
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc supports the noreturn function attribute... yes
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc supports the returns_nonnull function attribute... yes
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc supports the malloc function attribute... yes
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc supports the alloc_size function attribute... yes
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc supports the format function attribute... yes
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc supports the const function attribute... yes
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc supports the pure function attribute... yes
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc supports the error function attribute... yes
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc accepts -W... yes
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc accepts -Wall... yes
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc accepts -pedantic... yes
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc accepts -Werror=unknown-warning-option... no
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc accepts -Wpedantic-ms-format... no
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc accepts -Wc90-c99-compat... yes
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc accepts -Wlong-long... yes
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc accepts -Werror=implicit... yes
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc accepts -Werror=missing-braces... yes
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc accepts -Werror=return-type... yes
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc accepts -Werror=trigraphs... yes
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc accepts -Werror=pointer-arith... yes
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc accepts -Werror=strict-prototypes... no
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc accepts -Werror=missing-prototypes... yes
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc accepts -Werror=missing-declarations... yes
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc accepts -Werror=comment... yes
checking if /home/sajid/packages/spack/lib/spack/env/gcc/gcc accepts -Werror=vla... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating config/config.h
config.status: executing default-1 commands
==> Executing phase: 'build'
==> 'make' '-j32'
/home/sajid/packages/spack/lib/spack/env/gcc/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/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03 -I. -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include -I./include -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/x86 -I./x86 -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/asm -I./asm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/disasm -I./disasm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/output -I./output -o asm/nasm.o asm/nasm.c
/home/sajid/packages/spack/lib/spack/env/gcc/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/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03 -I. -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include -I./include -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/x86 -I./x86 -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/asm -I./asm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/disasm -I./disasm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/output -I./output -o stdlib/snprintf.o stdlib/snprintf.c
/home/sajid/packages/spack/lib/spack/env/gcc/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/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03 -I. -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include -I./include -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/x86 -I./x86 -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/asm -I./asm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/disasm -I./disasm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/output -I./output -o stdlib/vsnprintf.o stdlib/vsnprintf.c
/home/sajid/packages/spack/lib/spack/env/gcc/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/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03 -I. -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include -I./include -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/x86 -I./x86 -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/asm -I./asm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/disasm -I./disasm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/output -I./output -o stdlib/strlcpy.o stdlib/strlcpy.c
/home/sajid/packages/spack/lib/spack/env/gcc/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/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03 -I. -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include -I./include -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/x86 -I./x86 -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/asm -I./asm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/disasm -I./disasm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/output -I./output -o stdlib/strnlen.o stdlib/strnlen.c
/home/sajid/packages/spack/lib/spack/env/gcc/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/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03 -I. -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include -I./include -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/x86 -I./x86 -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/asm -I./asm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/disasm -I./disasm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/output -I./output -o nasmlib/ver.o nasmlib/ver.c
/home/sajid/packages/spack/lib/spack/env/gcc/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/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03 -I. -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include -I./include -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/x86 -I./x86 -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/asm -I./asm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/disasm -I./disasm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/output -I./output -o nasmlib/crc64.o nasmlib/crc64.c
/home/sajid/packages/spack/lib/spack/env/gcc/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/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03 -I. -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include -I./include -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/x86 -I./x86 -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/asm -I./asm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/disasm -I./disasm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/output -I./output -o nasmlib/malloc.o nasmlib/malloc.c
/home/sajid/packages/spack/lib/spack/env/gcc/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/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03 -I. -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include -I./include -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/x86 -I./x86 -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/asm -I./asm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/disasm -I./disasm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/output -I./output -o nasmlib/md5c.o nasmlib/md5c.c
/home/sajid/packages/spack/lib/spack/env/gcc/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/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03 -I. -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include -I./include -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/x86 -I./x86 -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/asm -I./asm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/disasm -I./disasm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/output -I./output -o nasmlib/string.o nasmlib/string.c
/home/sajid/packages/spack/lib/spack/env/gcc/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/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03 -I. -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include -I./include -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/x86 -I./x86 -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/asm -I./asm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/disasm -I./disasm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/output -I./output -o nasmlib/file.o nasmlib/file.c
/home/sajid/packages/spack/lib/spack/env/gcc/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/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03 -I. -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include -I./include -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/x86 -I./x86 -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/asm -I./asm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/disasm -I./disasm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/output -I./output -o nasmlib/mmap.o nasmlib/mmap.c
/home/sajid/packages/spack/lib/spack/env/gcc/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/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03 -I. -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include -I./include -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/x86 -I./x86 -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/asm -I./asm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/disasm -I./disasm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/output -I./output -o nasmlib/ilog2.o nasmlib/ilog2.c
/home/sajid/packages/spack/lib/spack/env/gcc/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/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03 -I. -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include -I./include -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/x86 -I./x86 -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/asm -I./asm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/disasm -I./disasm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/output -I./output -o nasmlib/realpath.o nasmlib/realpath.c
/home/sajid/packages/spack/lib/spack/env/gcc/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/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03 -I. -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include -I./include -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/x86 -I./x86 -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/asm -I./asm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/disasm -I./disasm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/output -I./output -o nasmlib/path.o nasmlib/path.c
/home/sajid/packages/spack/lib/spack/env/gcc/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/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03 -I. -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include -I./include -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/x86 -I./x86 -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/asm -I./asm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/disasm -I./disasm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/output -I./output -o nasmlib/filename.o nasmlib/filename.c
/home/sajid/packages/spack/lib/spack/env/gcc/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/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03 -I. -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include -I./include -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/x86 -I./x86 -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/asm -I./asm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/disasm -I./disasm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/output -I./output -o nasmlib/srcfile.o nasmlib/srcfile.c
/home/sajid/packages/spack/lib/spack/env/gcc/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/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03 -I. -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include -I./include -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/x86 -I./x86 -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/asm -I./asm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/disasm -I./disasm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/output -I./output -o nasmlib/zerobuf.o nasmlib/zerobuf.c
In file included from stdlib/vsnprintf.c:15:
/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning ‘void’ [-Werror=attributes]
 void pure_func seg_init(void);
 ^~~~
In file included from /home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasm.h:46,
                 from asm/nasm.c:47:
/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning ‘void’ [-Werror=attributes]
 void pure_func seg_init(void);
 ^~~~
/home/sajid/packages/spack/lib/spack/env/gcc/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/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03 -I. -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include -I./include -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/x86 -I./x86 -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/asm -I./asm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/disasm -I./disasm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/output -I./output -o nasmlib/readnum.o nasmlib/readnum.c
cc1: some warnings being treated as errors
/home/sajid/packages/spack/lib/spack/env/gcc/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/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03 -I. -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include -I./include -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/x86 -I./x86 -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/asm -I./asm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/disasm -I./disasm -I/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/output -I./output -o nasmlib/bsi.o nasmlib/bsi.c
make: *** [stdlib/vsnprintf.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from stdlib/snprintf.c:13:
/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/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: *** [stdlib/snprintf.o] Error 1
In file included from nasmlib/file.h:38,
                 from nasmlib/file.c:34:
/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning ‘void’ [-Werror=attributes]
 void pure_func seg_init(void);
 ^~~~
In file included from nasmlib/string.c:43:
/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning ‘void’ [-Werror=attributes]
 void pure_func seg_init(void);
 ^~~~
In file included from nasmlib/ilog2.c:35:
/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning ‘void’ [-Werror=attributes]
 void pure_func seg_init(void);
 ^~~~
In file included from nasmlib/file.h:38,
                 from nasmlib/mmap.c:34:
/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning ‘void’ [-Werror=attributes]
 void pure_func seg_init(void);
 ^~~~
In file included from nasmlib/malloc.c:42:
/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning ‘void’ [-Werror=attributes]
 void pure_func seg_init(void);
 ^~~~
In file included from nasmlib/crc64.c:35:
/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning ‘void’ [-Werror=attributes]
 void pure_func seg_init(void);
 ^~~~
In file included from nasmlib/filename.c:39:
/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning ‘void’ [-Werror=attributes]
 void pure_func seg_init(void);
 ^~~~
In file included from nasmlib/zerobuf.c:39:
/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/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: *** [nasmlib/zerobuf.o] Error 1
In file included from nasmlib/path.c:42:
/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning ‘void’ [-Werror=attributes]
 void pure_func seg_init(void);
 ^~~~
In file included from nasmlib/bsi.c:42:
/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning ‘void’ [-Werror=attributes]
 void pure_func seg_init(void);
 ^~~~
In file included from nasmlib/srcfile.c:43:
/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/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: *** [nasmlib/ilog2.o] Error 1
In file included from nasmlib/readnum.c:42:
/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning ‘void’ [-Werror=attributes]
 void pure_func seg_init(void);
 ^~~~
In file included from nasmlib/realpath.c:50:
/home/sajid/packages/spack/var/spack/stage/nasm-2.13.03-4v2z4nwnwb2wx6u4zvnv32i4wlxgw2xt/nasm-2.13.03/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: *** [nasmlib/crc64.o] Error 1
cc1: some warnings being treated as errors
make: *** [nasmlib/realpath.o] Error 1
cc1: some warnings being treated as errors
cc1: some warnings being treated as errors
cc1: some warnings being treated as errors
make: *** [nasmlib/bsi.o] Error 1
cc1: some warnings being treated as errors
make: *** [nasmlib/filename.o] Error 1
make: *** [nasmlib/mmap.o] Error 1
make: *** [nasmlib/malloc.o] Error 1
cc1: some warnings being treated as errors
make: *** [nasmlib/srcfile.o] Error 1
cc1: some warnings being treated as errors
cc1: some warnings being treated as errors
make: *** [nasmlib/readnum.o] Error 1
make: *** [nasmlib/path.o] Error 1
cc1: some warnings being treated as errors
make: *** [nasmlib/file.o] Error 1
cc1: some warnings being treated as errors
make: *** [nasmlib/string.o] Error 1
cc1: some warnings being treated as errors
make: *** [asm/nasm.o] Error 1
```


Discussion:

Resolving patch:
diff --git a/var/spack/repos/builtin/packages/nasm/package.py b/var/spack/repos/builtin/packages/nasm/package.py
--- a/var/spack/repos/builtin/packages/nasm/package.py
+++ b/var/spack/repos/builtin/packages/nasm/package.py
@@ -36,3 +36,7 @@ class Nasm(AutotoolsPackage):
 
     version('2.13.03', 'd5ca2ad7121ccbae69dd606b1038532c')
     version('2.11.06', '2b958e9f5d200641e6fc9564977aecc5')
+
+    # Fix compilation with GCC 8
+    # https://bugzilla.nasm.us/show_bug.cgi?id=3392461
+    patch('https://src.fedoraproject.org/rpms/nasm/raw/0cc3eb244bd971df81a7f02bc12c5ec259e1a5d6/f/0001-Remove-invalid-pure_func-qualifiers.patch', level=1, sha256='ac9f315d204afa6b99ceefa1fe46d4eed2b8a23c7315d32d33c0f378d930e950', when='@2.13.03 %gcc@8:')


Test patch: