[edk2-devel] Compilation error of ArmVExpress-FVP-AArch64.dsc in x86_64 Linux

ishii.shuuichir at fujitsu.com ishii.shuuichir at fujitsu.com
Mon Sep 6 08:37:45 UTC 2021


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 <pete at akeo.ie>
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 <Robert.Moore at intel.com>
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


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#80305): https://edk2.groups.io/g/devel/message/80305
Mute This Topic: https://groups.io/mt/85437215/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/edk2-devel-archive/attachments/20210906/46423906/attachment.htm>


More information about the edk2-devel-archive mailing list