public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Compilation error in ArmVExpress-FVP-AArch64.dsc
@ 2021-09-06  7:59 ishii.shuuichir
  2021-09-07 15:28 ` [edk2-devel] " Sami Mujawar
  0 siblings, 1 reply; 8+ messages in thread
From: ishii.shuuichir @ 2021-09-06  7:59 UTC (permalink / raw)
  To: devel

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

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@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@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

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [edk2-devel] Compilation error in ArmVExpress-FVP-AArch64.dsc
  2021-09-06  7:59 Compilation error in ArmVExpress-FVP-AArch64.dsc ishii.shuuichir
@ 2021-09-07 15:28 ` Sami Mujawar
  2021-09-07 16:27   ` PierreGondois
                     ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Sami Mujawar @ 2021-09-07 15:28 UTC (permalink / raw)
  To: devel@edk2.groups.io, ishii.shuuichir@fujitsu.com; +Cc: Sunny Wang, nd

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

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: <devel@edk2.groups.io> on behalf of "ishii.shuuichir via groups.io" <ishii.shuuichir=fujitsu.com@groups.io>
Reply to: "devel@edk2.groups.io" <devel@edk2.groups.io>, "ishii.shuuichir@fujitsu.com" <ishii.shuuichir@fujitsu.com>
Date: Tuesday, 7 September 2021 at 16:15
To: "devel@edk2.groups.io" <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 <pete@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@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


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [edk2-devel] Compilation error in ArmVExpress-FVP-AArch64.dsc
  2021-09-07 15:28 ` [edk2-devel] " Sami Mujawar
@ 2021-09-07 16:27   ` PierreGondois
  2021-09-09  0:05     ` ishii.shuuichir
  2021-09-09  0:26     ` ishii.shuuichir
  2021-09-08 23:52   ` ishii.shuuichir
  2021-09-09  0:25   ` ishii.shuuichir
  2 siblings, 2 replies; 8+ messages in thread
From: PierreGondois @ 2021-09-07 16:27 UTC (permalink / raw)
  To: Sami Mujawar, devel

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

Hi Shuuichrou,
I would have some suggestions/questions:
1. Is it only the ConfigurationManager module which doesn't build or is it also other modules ?
For information, '-m Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManagerDxe.inf' allows to build only this module and its dependencies, and '-n 1' allows you to run on one core to have logs following the build order. You can try building modules from other platforms.
2. Is the command working on the edk2's latest master branch ? Or on more recent tags (like edk2-stable202108)
3. Reset the configuration files
- Run 'git clean -x Conf/' in edk2/ (assuming you have nothing important there)
- Set your environment again to re-create them
- Re-build the FVP
4. Rebuild the BaseTools:
- cd edk2/BaseTools && make clean && make

Regards,
Pierre

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [edk2-devel] Compilation error in ArmVExpress-FVP-AArch64.dsc
  2021-09-07 15:28 ` [edk2-devel] " Sami Mujawar
  2021-09-07 16:27   ` PierreGondois
@ 2021-09-08 23:52   ` ishii.shuuichir
  2021-09-08 23:56     ` ishii.shuuichir
  2021-09-09  0:25   ` ishii.shuuichir
  2 siblings, 1 reply; 8+ messages in thread
From: ishii.shuuichir @ 2021-09-08 23:52 UTC (permalink / raw)
  To: Sami Mujawar, devel

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

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.

Thank you for the advice.

Best regards, Shuuichrou.

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [edk2-devel] Compilation error in ArmVExpress-FVP-AArch64.dsc
  2021-09-08 23:52   ` ishii.shuuichir
@ 2021-09-08 23:56     ` ishii.shuuichir
  0 siblings, 0 replies; 8+ messages in thread
From: ishii.shuuichir @ 2021-09-08 23:56 UTC (permalink / raw)
  To: ishii.shuuichir, devel

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

I forgot to mention that there may be problems with older python,
so I will basically use the newer versions of python as advised.

Best regards,
Shuuichrou.

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [edk2-devel] Compilation error in ArmVExpress-FVP-AArch64.dsc
  2021-09-07 16:27   ` PierreGondois
@ 2021-09-09  0:05     ` ishii.shuuichir
  2021-09-09  0:26     ` ishii.shuuichir
  1 sibling, 0 replies; 8+ messages in thread
From: ishii.shuuichir @ 2021-09-09  0:05 UTC (permalink / raw)
  To: PierreGondois, devel

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

Hi, Pierre.

Thank you very much for quickly reply.

Based on Pierre's advice,
I deleted the edk2 directory that I had been using and ran the git clone of edk2 again,
,also used the master branch to specify the latest commit as of yesterday.
I also took Sami's advice and specified Python 3.7.

Under these conditions, the build finished successfully without any problems.

Thank you very much for your help.

Best regrads,
Shuuichrou.

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [edk2-devel] Compilation error in ArmVExpress-FVP-AArch64.dsc
  2021-09-07 15:28 ` [edk2-devel] " Sami Mujawar
  2021-09-07 16:27   ` PierreGondois
  2021-09-08 23:52   ` ishii.shuuichir
@ 2021-09-09  0:25   ` ishii.shuuichir
  2 siblings, 0 replies; 8+ messages in thread
From: ishii.shuuichir @ 2021-09-09  0:25 UTC (permalink / raw)
  To: 'Sami Mujawar', devel@edk2.groups.io; +Cc: Sunny Wang, nd

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

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 <Sami.Mujawar@arm.com>
Sent: Wednesday, September 8, 2021 12:29 AM
To: devel@edk2.groups.io; Ishii, Shuuichirou/石井 周一郎 <ishii.shuuichir@fujitsu.com>
Cc: Sunny Wang <Sunny.Wang@arm.com>; nd <nd@arm.com>
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: <devel@edk2.groups.io<mailto:devel@edk2.groups.io>> on behalf of "ishii.shuuichir via groups.io" <ishii.shuuichir=fujitsu.com@groups.io<mailto:ishii.shuuichir=fujitsu.com@groups.io>>
Reply to: "devel@edk2.groups.io<mailto:devel@edk2.groups.io>" <devel@edk2.groups.io<mailto:devel@edk2.groups.io>>, "ishii.shuuichir@fujitsu.com<mailto:ishii.shuuichir@fujitsu.com>" <ishii.shuuichir@fujitsu.com<mailto:ishii.shuuichir@fujitsu.com>>
Date: Tuesday, 7 September 2021 at 16:15
To: "devel@edk2.groups.io<mailto:devel@edk2.groups.io>" <devel@edk2.groups.io<mailto: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 <pete@akeo.ie<mailto:pete@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@intel.com<mailto:Robert.Moore@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


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [edk2-devel] Compilation error in ArmVExpress-FVP-AArch64.dsc
  2021-09-07 16:27   ` PierreGondois
  2021-09-09  0:05     ` ishii.shuuichir
@ 2021-09-09  0:26     ` ishii.shuuichir
  1 sibling, 0 replies; 8+ messages in thread
From: ishii.shuuichir @ 2021-09-09  0:26 UTC (permalink / raw)
  To: devel@edk2.groups.io, 'pierre.gondois@arm.com',
	Sami Mujawar
  Cc: ishii.shuuichir@fujitsu.com

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

Hi, Pierre.

Thank you very much for quickly reply.

Based on Pierre's advice,
I deleted the edk2 directory that I had been using and ran the git clone of edk2 again,
also used the master branch to specify the latest commit as of yesterday.
I also took Sami's advice and specified Python 3.7.

Under these conditions, the build finished successfully without any problems.

Thank you very much for your help.

Best regrads,
Shuuichrou.


From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of PierreGondois
Sent: Wednesday, September 8, 2021 1:28 AM
To: Sami Mujawar <sami.mujawar@arm.com>; devel@edk2.groups.io
Subject: Re: [edk2-devel] Compilation error in ArmVExpress-FVP-AArch64.dsc

Hi Shuuichrou,
I would have some suggestions/questions:
1. Is it only the ConfigurationManager module which doesn't build or is it also other modules ?
For information, '-m Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManagerDxe.inf' allows to build only this module and its dependencies, and '-n 1' allows you to run on one core to have logs following the build order. You can try building modules from other platforms.
2. Is the command working on the edk2's latest master branch ? Or on more recent tags (like edk2-stable202108)
3. Reset the configuration files
- Run 'git clean -x Conf/' in edk2/ (assuming you have nothing important there)
- Set your environment again to re-create them
- Re-build the FVP
4. Rebuild the BaseTools:
- cd edk2/BaseTools && make clean && make

Regards,
Pierre


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-09-09  0:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-06  7:59 Compilation error in ArmVExpress-FVP-AArch64.dsc ishii.shuuichir
2021-09-07 15:28 ` [edk2-devel] " Sami Mujawar
2021-09-07 16:27   ` PierreGondois
2021-09-09  0:05     ` ishii.shuuichir
2021-09-09  0:26     ` ishii.shuuichir
2021-09-08 23:52   ` ishii.shuuichir
2021-09-08 23:56     ` ishii.shuuichir
2021-09-09  0:25   ` ishii.shuuichir

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