Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Build parsing non target architecture PcdsFeatureFlag configuration #10605

Open
2 of 5 tasks
anandhkrishna opened this issue Jan 10, 2025 · 0 comments
Open
2 of 5 tasks
Assignees
Labels
package:armvirtpkg priority:medium Moderate impact. Should be prioritized over lower priority issues. type:bug Something isn't working

Comments

@anandhkrishna
Copy link

Is there an existing issue for this?

  • I have searched existing issues

Bug Type

  • Firmware
  • Tool
  • Unit Test

Code first?

  • Yes

What packages are impacted?

ArmVirtPkg

Which targets are impacted by this bug?

No response

Current Behavior

Edk2 build parsing the non-target architecture pcds in dsc file .

what i did :

  1. added
[PcdsFeatureFlag.IA32]
!error ERROR parsing IA32

inside the ArmVirtQemu.dsc file

Build command :
build -p ArmVirtPkg/ArmVirtQemu.dsc -b DEBUG -a AARCH64 -t GCC5

Error log :

Build environment: Linux-5.15.0-127-generic-x86_64-with-glibc2.29
Build start time: 15:00:06, Jan.10 2025

WORKSPACE        = /home/ubuntu/Desktop/Anandh/testing/Edk2_test/edk2
EDK_TOOLS_PATH   = /home/ubuntu/Desktop/Anandh/testing/Edk2_test/edk2/BaseTools
CONF_PATH        = /home/ubuntu/Desktop/Anandh/testing/Edk2_test/edk2/Conf
PYTHON_COMMAND   = python3


build.py...
/home/ubuntu/Desktop/Anandh/testing/Edk2_test/edk2/ArmVirtPkg/ArmVirtQemu.dsc(59): error FFFD: ERROR parsing IA32
	

- Failed -
Build end time: 15:00:06, Jan.10 2025
Build total time: 00:00:00

Expected Behavior

AARCH64 build should not parse the IA32 configuration

Steps To Reproduce

Environment :

  • OS(s):Ubuntu 20.04.6 LTS
  • Tool Chain(s): GCC5
  • GCC5_AARCH64_PREFIX=aarch64-linux-gnu-

Source :

1 . Code copied using git : https://github.com/tianocore/edk2.git

  1. Added the below code https://github.com/tianocore/edk2/blob/edk2-stable202411/ArmVirtPkg/ArmVirtQemu.dsc#L55

[PcdsFeatureFlag.IA32] !error ERROR parsing IA32

  1. Open terminal in root of Edk2 .

4 . ran
$ . edksetup.sh $ make -C BaseTools $ export GCC5_AARCH64_PREFIX=aarch64-linux-gnu- $ build -p ArmVirtPkg/ArmVirtQemu.dsc -b DEBUG -a AARCH64 -t GCC5

Error Log :
`Build environment: Linux-5.15.0-127-generic-x86_64-with-glibc2.29
Build start time: 15:00:06, Jan.10 2025

WORKSPACE = /home/ubuntu/Desktop/Anandh/testing/Edk2_test/edk2
EDK_TOOLS_PATH = /home/ubuntu/Desktop/Anandh/testing/Edk2_test/edk2/BaseTools
CONF_PATH = /home/ubuntu/Desktop/Anandh/testing/Edk2_test/edk2/Conf
PYTHON_COMMAND = python3

build.py...
/home/ubuntu/Desktop/Anandh/testing/Edk2_test/edk2/ArmVirtPkg/ArmVirtQemu.dsc(59): error FFFD: ERROR parsing IA32

  • Failed -
    Build end time: 15:00:06, Jan.10 2025
    Build total time: 00:00:00`

Build Environment

- OS(s):Ubuntu 20.04.6 LTS
- Tool Chain(s): GCC5

Version Information

tag : edk2-stable202411

Urgency

Medium

Are you going to fix this?

Someone else needs to fix it

Do you need maintainer feedback?

No maintainer feedback needed

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:armvirtpkg priority:medium Moderate impact. Should be prioritized over lower priority issues. type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants