You probably need to update VFR compiler. REST_STYLE token was introduced in below commit long time ago.

 

https://github.com/tianocore/edk2/commit/1b840718f72711d442ecd7b7e54256a31df8bd20

 

Regards,

Nickle

 

From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of ritul guru via groups.io
Sent: Thursday, March 30, 2023 4:40 AM
To: edk2-devel-groups-io <devel@edk2.groups.io>
Subject: [edk2-devel] edk2 MdeModulePkg build error

 

External email: Use caution opening links or attachments

 

Hi,

getting below error while building MdeModulePkg, help is appreciated.

 

build cmd:

build -p "MdeModulePkg/MdeModulePkg.dsc" -b DEBUG -t GCC5

 

 

MdeModulePkg/Include -I/home/a/src/opensource/edk2/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/c/include /home/a/src/opensource/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdeModulePkg/Universal/Disk/CdExpressPei/CdExpressPei/DEBUG/AutoGen.c
VfrCompile...
/home/a/src/opensource/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe/OUTPUT/Vfr.i(164): WARNING: default
        : default value re-defined with different value

VfrCompile...
/home/a/src/opensource/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe/OUTPUT/Vfr.i(238): ERROR 12288: REST_STYLE
        : unexpected token

VfrCompile...
/home/a/src/opensource/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe/OUTPUT/Vfr.i(246): ERROR 12288: REST_STYLE
        : unexpected token

VfrCompile: ERROR 0003: Error parsing
  compile error in file /home/a/src/opensource/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe/OUTPUT/Vfr.i
make: *** [GNUmakefile:461: /home/a/src/opensource/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe/DEBUG/Vfr.c] Error 2


build.py...
 : error 7000: Failed to execute command
        make tbuild [/home/a/src/opensource/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe]

 

Thanks & Regards
Ritul Guru
+91-9916513186