public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* HpPrep with perf build error.
@ 2022-04-18  8:51 Wang.Hughes 王嘉駿 IEC1
  0 siblings, 0 replies; only message in thread
From: Wang.Hughes 王嘉駿 IEC1 @ 2022-04-18  8:51 UTC (permalink / raw)
  To: devel@edk2.groups.io
  Cc: Cheng.Yun 鄭繇 IEC1,
	Wang.Hughes 王嘉駿 IEC1

[-- Attachment #1: Type: text/plain, Size: 10750 bytes --]

Hi, Devel:

We would like to build a code for perf but facing a error as below,
Please help give some suggestion to us , thanks a lot.

BIOS version: 004000_ULTRON.

-----------------------------------------------------------------------------------------

build.py...
: error C0DE: Unknown fatal error when processing [d:\git\u93_\u93\HpPlatformPkg\PlatformPkg.dsc]

(Please send email to devel@edk2.groups.io for help, attaching following call stack trace!)

(Python 3.9.7 on win32) Traceback (most recent call last):
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\GenFds\FdfParser.py", line 879, in _EvaluateConditional
    return ValueExpression(Expression, MacroPcdDict)(True)
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 391, in __call__
    Val = self._ConExpr()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 451, in _ConExpr
    return self._ExprFuncTemplate(self._OrExpr, {'?', ':'})
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 424, in _ExprFuncTemplate
    Val = EvalFunc()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 455, in _OrExpr
    return self._ExprFuncTemplate(self._AndExpr, {"OR", "or", "||"})
 File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 424, in _ExprFuncTemplate
    Val = EvalFunc()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 459, in _AndExpr
    return self._ExprFuncTemplate(self._BitOr, {"AND", "and", "&&"})
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 424, in _ExprFuncTemplate
    Val = EvalFunc()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 463, in _BitOr
    return self._ExprFuncTemplate(self._BitXor, {"|"})
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 424, in _ExprFuncTemplate
    Val = EvalFunc()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 467, in _BitXor
    return self._ExprFuncTemplate(self._BitAnd, {"XOR", "xor", "^"})
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 424, in _ExprFuncTemplate
    Val = EvalFunc()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 471, in _BitAnd
    return self._ExprFuncTemplate(self._EqExpr, {"&"})
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 424, in _ExprFuncTemplate
    Val = EvalFunc()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 475, in _EqExpr
    Val = self._RelExpr()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 491, in _RelExpr
    return self._ExprFuncTemplate(self._ShiftExpr, {"<=", ">=", "<", ">", "LE", "GE", "LT", "GT"})
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 424, in _ExprFuncTemplate
    Val = EvalFunc()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 494, in _ShiftExpr
    return self._ExprFuncTemplate(self._AddExpr, {"<<", ">>"})
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 424, in _ExprFuncTemplate
    Val = EvalFunc()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 498, in _AddExpr
    return self._ExprFuncTemplate(self._MulExpr, {"+", "-"})
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 424, in _ExprFuncTemplate
    Val = EvalFunc()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 502, in _MulExpr
    return self._ExprFuncTemplate(self._UnaryExpr, {TAB_STAR, "/", "%"})
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 424, in _ExprFuncTemplate
    Val = EvalFunc()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 520, in _UnaryExpr
    return self._IdenExpr()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 526, in _IdenExpr
    Val = self._ConExpr()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 451, in _ConExpr
    return self._ExprFuncTemplate(self._OrExpr, {'?', ':'})
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 424, in _ExprFuncTemplate
    Val = EvalFunc()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 455, in _OrExpr
    return self._ExprFuncTemplate(self._AndExpr, {"OR", "or", "||"})
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 424, in _ExprFuncTemplate
    Val = EvalFunc()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 459, in _AndExpr
    return self._ExprFuncTemplate(self._BitOr, {"AND", "and", "&&"})
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 424, in _ExprFuncTemplate
    Val = EvalFunc()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 463, in _BitOr
    return self._ExprFuncTemplate(self._BitXor, {"|"})
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 424, in _ExprFuncTemplate
    Val = EvalFunc()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 467, in _BitXor
    return self._ExprFuncTemplate(self._BitAnd, {"XOR", "xor", "^"})
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 424, in _ExprFuncTemplate
    Val = EvalFunc()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 471, in _BitAnd
    return self._ExprFuncTemplate(self._EqExpr, {"&"})
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 424, in _ExprFuncTemplate
    Val = EvalFunc()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 475, in _EqExpr
    Val = self._RelExpr()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 491, in _RelExpr
    return self._ExprFuncTemplate(self._ShiftExpr, {"<=", ">=", "<", ">", "LE", "GE", "LT", "GT"})
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 424, in _ExprFuncTemplate
    Val = EvalFunc()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 494, in _ShiftExpr
    return self._ExprFuncTemplate(self._AddExpr, {"<<", ">>"})
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 424, in _ExprFuncTemplate
    Val = EvalFunc()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 498, in _AddExpr
    return self._ExprFuncTemplate(self._MulExpr, {"+", "-"})
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 444, in _ExprFuncTemplate
    Val = self.Eval(Op, Val, EvalFunc())
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\Expression.py", line 257, in Eval
    raise BadExpression(ERR_STRING_EXPR % Operator)
CommonDataClass.Exceptions.BadExpression: This operator cannot be used in string expression: [+].

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\build\build.py", line 2739, in Main
    MyBuild.Launch()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\build\build.py", line 2534, in Launch
    self._MultiThreadBuildPlatform()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\build\build.py", line 2326, in _MultiThreadBuildPlatform
    Wa, self.BuildModules = self.PerformAutoGen(BuildTarget,ToolChain)
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\build\build.py", line 2177, in PerformAutoGen
    Wa = WorkspaceAutoGen(
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\AutoGen\WorkspaceAutoGen.py", line 43, in __init__
    self._InitWorker(Workspace, MetaFile, Target, Toolchain, Arch, *args, **kwargs)
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\AutoGen\WorkspaceAutoGen.py", line 116, in _InitWorker
    self.ProcessModuleFromPdf()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\AutoGen\WorkspaceAutoGen.py", line 212, in ProcessModuleFromPdf
    if self.FdfProfile:
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\Common\caching.py", line 28, in __get__
    Value = obj.__dict__[self._function.__name__] = self._function(obj)
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\AutoGen\WorkspaceAutoGen.py", line 188, in FdfProfile
    Fdf.ParseFile()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\GenFds\FdfParser.py", line 1314, in ParseFile
    self.Preprocess()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\GenFds\FdfParser.py", line 1296, in Preprocess
    self.PreprocessConditionalStatement()
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\GenFds\FdfParser.py", line 753, in PreprocessConditionalStatement
    Value = self._EvaluateConditional(Value, self.CurrentLineNumber, 'eval', True)
  File "D:\Git\U93_\U93\Edk2\BaseTools\Source\Python\GenFds\FdfParser.py", line 904, in _EvaluateConditional
    raise Warning(str(Excpt), self.FileName, Line)
GenFds.FdfParser.Warning: This operator cannot be used in string expression: [+]. near line 182, column 255: )


- Failed -
Build end time: 16:42:06, Apr.18 2022
Build total time: 00:00:36


The EDKII BIOS Build has failed!

0 minutes 37 seconds
Total time = 37 seconds

Mon 04/18/2022
04:42 PM
******* HpBld.bat FAILED ********
******* BUILD FAILED ********
PS D:\Git\U93_\U93\HpPlatformPkg>

Best regards,

王嘉駿 Hughes Wang
BIOS R&D Department 1A1
Inventec Corporation


________________________________

Confidentiality Note
本郵件含有英業達股?有限公司機密資訊、或受法律保護之資料,唯有原發信人指定之收信人得?讀或使用本郵件之?容。如?並非被指定之收信人,請立即將本郵件及所有附件予以刪除;請勿?露、儲存或使用本郵件之任何資訊,並請?立即告知原發信人本郵件的傳遞錯誤。謝謝?的合作。
This e-mail transmission and any attachments contain information from Inventec Corporation. The information is confidential and/or privileged and intended to be solely for the use of the individuals or entities named in this e-mail transmission. If you are not the intended recipient, be aware that any disclosure, saving or use of the content of this e-mail transmission and attachments is strictly prohibited. If you have received this email transmission in error, please notify us immediately, and delete the e-mail and attachments. We greatly appreciate your cooperation.

[-- Attachment #2: Type: text/html, Size: 25545 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-18  8:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-18  8:51 HpPrep with perf build error Wang.Hughes 王嘉駿 IEC1

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox