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

202411: ArmVirtQemu.dsc build fails #6469

Closed
dvzrv opened this issue Nov 25, 2024 · 2 comments
Closed

202411: ArmVirtQemu.dsc build fails #6469

dvzrv opened this issue Nov 25, 2024 · 2 comments

Comments

@dvzrv
Copy link

dvzrv commented Nov 25, 2024

Hi! 👋

I maintain this project as a package for Arch Linux.
With 202411, there are issues building ArmVirtQemu.dsc:

Build environment: Linux-6.11.9-hardened1-1-hardened-x86_64-with-glibc2.40
Build start time: 22:30:21, Nov.25 2024

WORKSPACE        = /build/edk2/src/edk2
EDK_TOOLS_PATH   = /build/edk2/src/edk2/BaseTools
CONF_PATH        = /build/edk2/src/edk2/Conf
PYTHON_COMMAND   = python3


Processing meta-data .
Architecture(s)  = ARM
Build target     = RELEASE
Toolchain        = GCC5

Active Platform          = /build/edk2/src/edk2/ArmVirtPkg/ArmVirtQemu.dsc


build.py...
/build/edk2/src/edk2/ArmVirtPkg/ArmVirtQemu.dsc(...): error 4000: Instance of library class [TlsLib] is not found
        in [/build/edk2/src/edk2/NetworkPkg/TlsDxe/TlsDxe.inf] [ARM]
        consumed by module [/build/edk2/src/edk2/NetworkPkg/TlsDxe/TlsDxe.inf]


- Failed -
Build end time: 22:30:22, Nov.25 2024
Build total time: 00:00:01

The current build script (for the previous version) can be found here: https://gitlab.archlinux.org/archlinux/packaging/packages/edk2/-/blob/f3f9acaeff606985883f5df178f402e14aef8a94/PKGBUILD

The build fails specifically for https://gitlab.archlinux.org/archlinux/packaging/packages/edk2/-/blob/f3f9acaeff606985883f5df178f402e14aef8a94/PKGBUILD#L296-309 but appears to work fine for the other architectures.

Any hints would be much appreciated! 🙏

@YangGangUEFI
Copy link
Contributor

Refer to this commit: #6147

move the TlsLib resolution to a AARCH64-only section to force the build to fail early when attempting to build 32-bit ARM targets with NETWORK_TLS_ENABLE set.

So NETWORK_TLS_ENABLE is not supported on ARM build right now.

I think -D NETWORK_TLS_ENABLE should be removed for ARM building in PKGBUILD

cc @ardbiesheuvel I've provided a PR that directly reports the error message when building for 32-bit ARM with NETWORK_TLS_ENABLE set to TRUE , please review and give some comments when you have time.

@dvzrv
Copy link
Author

dvzrv commented Nov 28, 2024

So NETWORK_TLS_ENABLE is not supported on ARM build right now.

Thank you for the quick reply! I have removed NETWORK_TLS_ENABLE from the target as suggested.

@dvzrv dvzrv closed this as completed Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants