问题遇到的现象和发生背景
环境配置完成 运行build -p edk2/EmulatorPkg/EmulatorPkg.dsc -t GCC48 -a X64
问题相关代码,请勿粘贴截图
运行结果及报错内容
Build environment: Linux-5.13.0-39-generic-x86_64-with-Ubuntu-20.04-focal
Build start time: 23:09:02, Apr.03 2022
WORKSPACE = /opt
PACKAGES_PATH = /opt/edk2:/opt/edk2-libc
ECP_SOURCE = /opt/edk2/EdkCompatibilityPkg
EDK_SOURCE = /opt/edk2/EdkCompatibilityPkg
EFI_SOURCE = /opt/edk2/EdkCompatibilityPkg
EDK_TOOLS_PATH = /opt/edk2/BaseTools
CONF_PATH = /opt/edk2/Conf
Architecture(s) = X64
Build target = DEBUG
Toolchain = GCC5
Active Platform = /opt/edk2/EmulatorPkg/EmulatorPkg.dsc
Flash Image Definition = /opt/edk2/EmulatorPkg/EmulatorPkg.fdf
Processing meta-data .. done!
Building ... /opt/edk2/MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf [X64]
Building ... /opt/edk2/MdePkg/Library/BaseLib/BaseLib.inf [X64]
make: 对“tbuild”无需做任何事。
Building ... /opt/edk2/MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf [X64]
Trim --asm-file -o /opt/Build/Emulator/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/Thunk16.i -i /opt/Build/Emulator/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/inc.lst /opt/edk2/MdePkg/Library/BaseLib/X64/Thunk16.nasm
Building ... /opt/edk2/EmulatorPkg/Library/SecPpiListLib/SecPpiListLib.inf [X64]
Usage: Trim.py [-s|-r|-a|--Vfr-Uni-Offset] [-c] [-v|-d <debug_level>|-q] [-i <include_path_file>] [-o <output_file>] [--ModuleName <ModuleName>] [--DebugDir <DebugDir>] [<input_file>]
Trim.py: error: no such option: --asm-file
Building ... /opt/edk2/EmulatorPkg/Library/SecPeiServicesLib/SecPeiServicesLib.inf [X64]
make: *** [GNUmakefile:412:/opt/Build/Emulator/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/Thunk16.obj] 错误 2
make: 对“tbuild”无需做任何事。
build.py...
: error 7000: Failed to execute command
make tbuild [/opt/Build/Emulator/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib]
build.py...
: error F002: Failed to build module
/opt/edk2/MdePkg/Library/BaseLib/BaseLib.inf [X64, GCC5, DEBUG]
- Failed -
Build end time: 23:09:04, Apr.03 2022
Build total time: 00:00:02
我的解答思路和尝试过的方法
pip install brotli
sudo apt install build-essential uuid-dev
sudo apt install acpica-tools
环境都按照了,网上说出现这个错误需要下载这些,但是依然报错