Date
1 - 2 of 2
edk2-vUDK2018 Mdk build failure
I am getting this failure during build:
``` In file included from /home/edk2/edk2/MdePkg/Library/BasePrintLib/PrintLibInternal.h:22, from /home/edk2/edk2/MdePkg/Library/BasePrintLib/PrintLibInternal.c:15: /home/edk2/edk2/MdePkg/Library/BasePrintLib/PrintLibInternal.c: In function 'BasePrintLibConvertValueToStringS': /home/edk2/edk2/MdePkg/Include/Library/PcdLib.h:388:45: error: '_PCD_GET_MODE_32_PcdMaximumAsciiStringLength' undeclared (first use in this function) 388 | #define PcdGet32(TokenName) _PCD_GET_MODE_32_##TokenName | ^~~~~~~~~~~~~~~~~ /home/edk2/edk2/MdePkg/Library/BasePrintLib/PrintLibInternal.c:24:32: note: in expansion of macro 'PcdGet32' 24 | #define ASCII_RSIZE_MAX (PcdGet32 (PcdMaximumAsciiStringLength)) | ^~~~~~~~ /home/edk2/edk2/MdePkg/Library/BasePrintLib/PrintLibInternal.c:377:9: note: in expansion of macro 'ASCII_RSIZE_MAX' 377 | if (ASCII_RSIZE_MAX != 0) { | ^~~~~~~~~~~~~~~ /home/edk2/edk2/MdePkg/Include/Library/PcdLib.h:388:45: note: each undeclared identifier is reported only once for each function it appears in 388 | #define PcdGet32(TokenName) _PCD_GET_MODE_32_##TokenName | ^~~~~~~~~~~~~~~~~ /home/edk2/edk2/MdePkg/Library/BasePrintLib/PrintLibInternal.c:24:32: note: in expansion of macro 'PcdGet32' 24 | #define ASCII_RSIZE_MAX (PcdGet32 (PcdMaximumAsciiStringLength)) | ^~~~~~~~ /home/edk2/edk2/MdePkg/Library/BasePrintLib/PrintLibInternal.c:377:9: note: in expansion of macro 'ASCII_RSIZE_MAX' 377 | if (ASCII_RSIZE_MAX != 0) { | ^~~~~~~~~~~~~~~ /home/edk2/edk2/MdePkg/Include/Library/PcdLib.h:388:45: error: '_PCD_GET_MODE_32_PcdMaximumUnicodeStringLength' undeclared (first use in this function) 388 | #define PcdGet32(TokenName) _PCD_GET_MODE_32_##TokenName | ^~~~~~~~~~~~~~~~~ /home/edk2/edk2/MdePkg/Library/BasePrintLib/PrintLibInternal.c:23:32: note: in expansion of macro 'PcdGet32' 23 | #define RSIZE_MAX (PcdGet32 (PcdMaximumUnicodeStringLength)) | ^~~~~~~~ /home/edk2/edk2/MdePkg/Library/BasePrintLib/PrintLibInternal.c:384:9: note: in expansion of macro 'RSIZE_MAX' 384 | if (RSIZE_MAX != 0) { | ^~~~~~~~~ /home/edk2/edk2/MdePkg/Library/BasePrintLib/PrintLibInternal.c: In function 'BasePrintLibSPrintMarker': /home/edk2/edk2/MdePkg/Include/Library/PcdLib.h:388:45: error: '_PCD_GET_MODE_32_PcdMaximumUnicodeStringLength' undeclared (first use in this function) 388 | #define PcdGet32(TokenName) _PCD_GET_MODE_32_##TokenName | ^~~~~~~~~~~~~~~~~ /home/edk2/edk2/MdePkg/Library/BasePrintLib/PrintLibInternal.c:23:32: note: in expansion of macro 'PcdGet32' 23 | #define RSIZE_MAX (PcdGet32 (PcdMaximumUnicodeStringLength)) | ^~~~~~~~ /home/edk2/edk2/MdePkg/Library/BasePrintLib/PrintLibInternal.c:594:9: note: in expansion of macro 'RSIZE_MAX' 594 | if (RSIZE_MAX != 0) { | ^~~~~~~~~ /home/edk2/edk2/MdePkg/Include/Library/PcdLib.h:388:45: error: '_PCD_GET_MODE_32_PcdMaximumAsciiStringLength' undeclared (first use in this function) 388 | #define PcdGet32(TokenName) _PCD_GET_MODE_32_##TokenName | ^~~~~~~~~~~~~~~~~ /home/edk2/edk2/MdePkg/Library/BasePrintLib/PrintLibInternal.c:24:32: note: in expansion of macro 'PcdGet32' 24 | #define ASCII_RSIZE_MAX (PcdGet32 (PcdMaximumAsciiStringLength)) | ^~~~~~~~ /home/edk2/edk2/MdePkg/Library/BasePrintLib/PrintLibInternal.c:599:9: note: in expansion of macro 'ASCII_RSIZE_MAX' 599 | if (ASCII_RSIZE_MAX != 0) { | ^~~~~~~~~~~~~~~ make: *** [GNUmakefile:309: /home/edk2/Build/Refind/DEBUG_GCC5/X64/MdePkg/Library/BasePrintLib/BasePrintLib/OUTPUT/PrintLibInternal.obj] Error 1 build.py... : error 7000: Failed to execute command make tbuild [/home/edk2/Build/Refind/DEBUG_GCC5/X64/MdePkg/Library/BasePrintLib/BasePrintLib] build.py... : error 7000: Failed to execute command make tbuild [/home/edk2/Build/Refind/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib] build.py... : error F002: Failed to build module /home/edk2/edk2/MdePkg/Library/BasePrintLib/BasePrintLib.inf [X64, GCC5, DEBUG] - Failed - Build end time: 22:32:04, Dec.07 2021 Build total time: 00:00:11 + exit make: *** [all] Error 1 ``` Steps to recreate the error: git clone https://github.com/startergo/edk2-builder-docker.git cd /edk2-builder-docker/edk2-builder-docker-main/examples/sourceforge.net-srs5694-Refind sudo make |
|
Guomin Jiang
Have you tried the lastest master?
toggle quoted message
Show quoted text
Thanks Guomin -----Original Message----- |
|