Nick: hell E-mail: NULL Board: TianoCore errors Contents: gcc -o ../bin/BrotliCompress BrotliCompress.o brotli/c/common/dictionary.o brotli/c/common/transform.o brotli/c/dec/bit_reader.o brotli/c/dec/decode.o brotli/c/dec/huffman.o brotli/c/dec/state.o brotli/c/enc/backward_references.o brotli/c/enc/backward_references_hq.o brotli/c/enc/bit_cost.o brotli/c/enc/block_splitter.o brotli/c/enc/brotli_bit_stream.o brotli/c/enc/cluster.o brotli/c/enc/compress_fragment.o brotli/c/enc/compress_fragment_two_pass.o brotli/c/enc/dictionary_hash.o brotli/c/enc/encode.o brotli/c/enc/encoder_dict.o brotli/c/enc/entropy_encode.o brotli/c/enc/histogram.o brotli/c/enc/literal_cost.o brotli/c/enc/memory.o brotli/c/enc/metablock.o brotli/c/enc/static_dict.o brotli/c/enc/utf8_util.o -L../libs -lm make[4]: Leaving directory '/home/usuario/coreboot/payloads/external/tianocore/mrchromebox/BaseTools/Source/C/BrotliCompress' make -C VfrCompile make[4]: Entering directory '/home/usuario/coreboot/payloads/external/tianocore/mrchromebox/BaseTools/Source/C/VfrCompile' g++ -c -DPCCTS_USE_NAMESPACE_STD -I Pccts/h -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/ -O2 Pccts/h/AParser.cpp -o AParser.o Pccts/h/AParser.cpp: In member function 'int ANTLRParser::set_deg(SetWordType*)': Pccts/h/AParser.cpp:475:31: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 475 | register SetWordType *p = a; | ^ Pccts/h/AParser.cpp:476:31: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 476 | register SetWordType *endp = &(a[bsetsize]); | ^~~~ Pccts/h/AParser.cpp:477:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 477 | register int degree = 0; | ^~~~~~ Pccts/h/AParser.cpp:482:38: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 482 | register SetWordType t = *p; | ^ Pccts/h/AParser.cpp:483:39: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 483 | register SetWordType *b = &(bitmask[0]); | ^ Pccts/h/AParser.cpp: In member function 'virtual void ANTLRParser::edecode(SetWordType*)': Pccts/h/AParser.cpp:496:31: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 496 | register SetWordType *p = a; | ^ Pccts/h/AParser.cpp:497:31: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 497 | register SetWordType *endp = &(p[bsetsize]); | ^~~~ Pccts/h/AParser.cpp:498:27: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 498 | register unsigned e = 0; | ^ Pccts/h/AParser.cpp:502:38: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 502 | register SetWordType t = *p; | ^ Pccts/h/AParser.cpp:503:39: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 503 | register SetWordType *b = &(bitmask[0]); | ^ g++ -c -DPCCTS_USE_NAMESPACE_STD -I Pccts/h -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/ -O2 Pccts/h/DLexerBase.cpp -o DLexerBase.o Pccts/h/DLexerBase.cpp: In member function 'void DLGLexerBase::replstr(const DLGChar*)': Pccts/h/DLexerBase.cpp:196:27: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 196 | register DLGChar *l= &_lextext[_bufsize -1]; | ^ g++ -c -DPCCTS_USE_NAMESPACE_STD -I Pccts/h -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/ -O2 Pccts/h/ATokenBuffer.cpp -o ATokenBuffer.o g++ -c -I Pccts/h -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/ -Wno-unused-result -O2 EfiVfrParser.cpp -o EfiVfrParser.o g++ -c -I Pccts/h -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/ -Wno-unused-result -O2 VfrLexer.cpp -o VfrLexer.o In file included from VfrLexer.cpp:22124: Pccts/h/DLexer.h: In member function 'virtual ANTLRTokenType VfrLexer::nextTokenType()': Pccts/h/DLexer.h:68:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 68 | register int state, newstate; | ^~~~~ Pccts/h/DLexer.h:68:29: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 68 | register int state, newstate; | ^~~~~~~~ Pccts/h/DLexer.h:70:27: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 70 | register DLGChar *lastpos; | ^~~~~~~ g++ -c -DPCCTS_USE_NAMESPACE_STD -I Pccts/h -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/ -O2 VfrSyntax.cpp -o VfrSyntax.o g++ -c -I Pccts/h -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/ -Wno-unused-result -O2 VfrFormPkg.cpp -o VfrFormPkg.o g++ -c -I Pccts/h -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/ -Wno-unused-result -O2 VfrError.cpp -o VfrError.o g++ -c -I Pccts/h -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/ -Wno-unused-result -O2 VfrUtilityLib.cpp -o VfrUtilityLib.o g++ -c -I Pccts/h -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/ -Wno-unused-result -O2 VfrCompiler.cpp -o VfrCompiler.o g++ -o ../bin/VfrCompile AParser.o DLexerBase.o ATokenBuffer.o EfiVfrParser.o VfrLexer.o VfrSyntax.o VfrFormPkg.o VfrError.o VfrUtilityLib.o VfrCompiler.o -L../libs -lCommon make[4]: Leaving directory '/home/usuario/coreboot/payloads/external/tianocore/mrchromebox/BaseTools/Source/C/VfrCompile' make -C EfiRom make[4]: Entering directory '/home/usuario/coreboot/payloads/external/tianocore/mrchromebox/BaseTools/Source/C/EfiRom' gcc -c -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/ -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2 EfiRom.c -o EfiRom.o gcc -o ../bin/EfiRom EfiRom.o -L../libs -lCommon make[4]: Leaving directory '/home/usuario/coreboot/payloads/external/tianocore/mrchromebox/BaseTools/Source/C/EfiRom' make -C GenFfs make[4]: Entering directory '/home/usuario/coreboot/payloads/external/tianocore/mrchromebox/BaseTools/Source/C/GenFfs' gcc -c -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/ -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2 GenFfs.c -o GenFfs.o In function 'GetAlignmentFromFile', inlined from 'main' at GenFfs.c:816:20: GenFfs.c:545:5: error: pointer 'InFileHandle' used after 'fclose' [-Werror=use-after-free] 545 | Error(NULL, 0, 4001, "Resource", "memory cannot be allocated of %s", InFileHandle); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ GenFfs.c:544:5: note: call to 'fclose' here 544 | fclose (InFileHandle); | ^~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[4]: *** [../Makefiles/footer.makefile:21: GenFfs.o] Error 1 make[4]: Leaving directory '/home/usuario/coreboot/payloads/external/tianocore/mrchromebox/BaseTools/Source/C/GenFfs' make[3]: *** [GNUmakefile:76: GenFfs] Error 2 make[3]: Leaving directory '/home/usuario/coreboot/payloads/external/tianocore/mrchromebox/BaseTools/Source/C' make[2]: *** [GNUmakefile:19: Source/C] Error 2 make[2]: Leaving directory '/home/usuario/coreboot/payloads/external/tianocore/mrchromebox/BaseTools' make[1]: *** [Makefile:155: build] Error 2 make: *** [payloads/external/Makefile.inc:158: build/UEFIPAYLOAD.fd] Error 2