Hi, Sami. Thank you very much for quickly reply. > Please let me know if switching to Python 3.7 does not fix this issue for you. As advised, I compiled using Python-3.7 (Python-3.7.9). If I simply changed the Python version, the build did not finish successfully and the same error occurred. However, when I did a git clone of the edk2 source again and specified the latest master branch, the build finished successfully. Also, to avoid another problem due to the ptyhon version. follow the advice and Basically we will use a newer python version. Thank you for the advice. Best regards, Shuuichrou. - From: Sami Mujawar Sent: Wednesday, September 8, 2021 12:29 AM To: devel@edk2.groups.io; Ishii, Shuuichirou/石井 周一郎 Cc: Sunny Wang ; nd Subject: Re: [edk2-devel] Compilation error in ArmVExpress-FVP-AArch64.dsc Hi Shuuichir, Apparently, a recent patch for Basetools has introduced a regression with Python 2.7 builds (see https://edk2.groups.io/g/devel/topic/edk2_devel/85426586). Can you try using Python 3.7 instead, please? Please let me know if switching to Python 3.7 does not fix this issue for you. Regards, Sami Mujawar From: > on behalf of "ishii.shuuichir via groups.io" > Reply to: "devel@edk2.groups.io" >, "ishii.shuuichir@fujitsu.com" > Date: Tuesday, 7 September 2021 at 16:15 To: "devel@edk2.groups.io" > Subject: [edk2-devel] Compilation error in ArmVExpress-FVP-AArch64.dsc Hi, everyone. https://developer.arm.com/documentation/102571/0100/Set-up-the-development-environment https://developer.arm.com/documentation/102571/0100/Build-firmware-on-a-Linux-host When I followed the above steps to compile the FVP firmware for aarch64, got the following error. ■Error log ~snip.~ "/path/to/gcc-arm-9.2-2019.12-x86_64-aarch64-none-elf/bin/aarch64-none-elf-gcc" -MMD -MF /path/to/tianocore/edk2/Build/ArmVExpress-FVP-AArch64/RELEASE_GCC5/AARCH64/MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe/OUTPUT/AutoGen.obj.deps -g -Os -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Werror -Wno-array-bounds -include AutoGen.h -fno-common -ffunction-sections -fdata-sections -DSTRING_ARRAY_NAME=SataControllerStrings -g -Os -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Werror -Wno-array-bounds -include AutoGen.h -fno-common -mlittle-endian -fno-short-enums -fverbose-asm -funsigned-char -ffunction-sections -fdata-sections -Wno-address -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-pic -fno-pie -ffixed-x18 -mcmodel=small -flto -Wno-unused-but-set-variable -Wno-unused-const-variable -DDISABLE_NEW_DEPRECATED_INTERFACES -DMDEPKG_NDEBUG -DMDEPKG_NDEBUG -c -o /path/to/tianocore/edk2/Build/ArmVExpress-FVP-AArch64/RELEASE_GCC5/AARCH64/MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe/OUTPUT/./AutoGen.obj -I/path/to/tianocore/edk2/MdeModulePkg/Bus/Pci/SataControllerDxe -I/path/to/tianocore/edk2/Build/ArmVExpress-FVP-AArch64/RELEASE_GCC5/AARCH64/MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe/DEBUG -I/path/to/tianocore/edk2/MdePkg -I/path/to/tianocore/edk2/MdePkg/Include -I/path/to/tianocore/edk2/MdePkg/Test/UnitTest/Include -I/path/to/tianocore/edk2/MdePkg/Include/AArch64 -I/path/to/tianocore/edk2/../edk2-platforms/Platform/ARM/VExpressPkg/Include/Platform/RTSM /path/to/tianocore/edk2/Build/ArmVExpress-FVP-AArch64/RELEASE_GCC5/AARCH64/MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe/DEBUG/AutoGen.c cp -f /path/to/tianocore/edk2/Build/ArmVExpress-FVP-AArch64/RELEASE_GCC5/AARCH64/edk2-platforms/Platform/ARM/VExpressPkg/Drivers/ArmVExpressFastBootDxe/ArmVExpressFastBootDxe/OUTPUT/ArmVExpressFastBootDxe.efi /path/to/tianocore/edk2/Build/ArmVExpress-FVP-AArch64/RELEASE_GCC5/AARCH64/edk2-platforms/Platform/ARM/VExpressPkg/Drivers/ArmVExpressFastBootDxe/ArmVExpressFastBootDxe/DEBUG cp -f /path/to/tianocore/edk2/Build/ArmVExpress-FVP-AArch64/RELEASE_GCC5/AARCH64/ArmPkg/Drivers/ArmGic/ArmGicDxe/OUTPUT/ArmGicDxe.efi /path/to/tianocore/edk2/Build/ArmVExpress-FVP-AArch64/RELEASE_GCC5/AARCH64/ArmGicDxe.efi cp -f /path/to/tianocore/edk2/Build/ArmVExpress-FVP-AArch64/RELEASE_GCC5/AARCH64/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe/OUTPUT/PciHostBridgeDxe.efi /path/to/tianocore/edk2/Build/ArmVExpress-FVP-AArch64/RELEASE_GCC5/AARCH64/PciHostBridgeDxe.efi make: *** No rule to make target '/path/to/tianocore/edk2/Build/ArmVExpress-FVP-AArch64/RELEASE_GCC5/AARCH64/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManagerDxe/OUTPUT/ConfigurationManagerDxe.map', needed by '/path/to/tianocore/edk2/Build/ArmVExpress-FVP-AArch64/RELEASE_GCC5/FV/Ffs/29F45677-1920-4454-94A6-CF119C9491DBConfigurationManagerDxe/29F45677-1920-4454-94A6-CF119C9491DB.map'. Stop. build.py... : error 7000: Failed to execute command make tbuild [/path/to/tianocore/edk2/Build/ArmVExpress-FVP-AArch64/RELEASE_GCC5/AARCH64/edk2-platforms/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManagerDxe] build.py... : error 7000: Failed to execute command make tbuild [/path/to/tianocore/edk2/Build/ArmVExpress-FVP-AArch64/RELEASE_GCC5/AARCH64/edk2-platforms/Platform/ARM/VExpressPkg/Drivers/ArmVExpressDxe/ArmFvpDxe] build.py... : error F002: Failed to build module /path/to/tianocore/edk2-platforms/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManagerDxe.inf [AARCH64, GCC5, RELEASE] - Failed - Build end time: 10:29:41, Sep.06 2021 Build total time: 00:00:25 ■compile command log $ build -a AARCH64 -t GCC5 -p Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.dsc -b RELEASE Build environment: Linux-4.18.0-305.el8.x86_64-x86_64-with-redhat-8.4-Ootpa Build start time: 10:29:16, Sep.06 2021 WORKSPACE = /path/to/tianocore/edk2 PACKAGES_PATH = /path/to/tianocore/edk2:/path/to/tianocore/edk2-platforms EDK_TOOLS_PATH = /path/to/tianocore/edk2/BaseTools CONF_PATH = /path/to/tianocore/edk2/Conf PYTHON_COMMAND = /usr/bin/python2.7 Architecture(s) = AARCH64 Build target = RELEASE Processing meta-data .Toolchain = GCC5 Active Platform = /path/to/tianocore/edk2-platforms/Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.dsc ......... done! ~snip.~ The git sources we are using are as follows. ■edk2 git source using tag: edk2-stable202105 ■edk2-platforms git source commit 901d3c52ed23f8c341424d46b89d27051043ba07 (HEAD -> master, origin/master, origin/HEAD) Author: Pete Batard > Date: Wed Sep 1 17:46:10 2021 +0100 Platform/RaspberryPi/RPi4: Add _DSM ACPI method for 32-bit MMIO xHCI access ■acpica git source using branch: ffceba1df23f8dbbc64a1023314ec179b4f5331e commit ffceba1df23f8dbbc64a1023314ec179b4f5331e (HEAD -> master, tag: R06_04_21, origin/master, origin/HEAD) Author: Robert Moore > Date: Fri Jun 4 08:01:07 2021 -0700 Update version to 20210604 Version 20210604. If anyone knows how to solve this problem, or I'm posting in the wrong place, please let me know. Best regards, Shuuichrou Ishii