Source: edk2
Version: 2025.02-10
Severity: serious
Tags: ftbfs
Justification: fails to build from source
Control: affects -1 + nasm

After the nasm update to 3.01-1, edk2 no longer builds. It can be
reproduced with:

$ make -f debian/rules build-ovmf-secboot

Relevant portion of the log follows:

[...]
make[1]: Leaving directory 
'/tmp/edk2-2025.02/build/ovmf/secboot/Build/OvmfX64/RELEASE_GCC5/X64/OvmfPkg/Library/PxeBcPcdProducerLib/PxeBcPcdProducerLib'
Building ... 
/tmp/edk2-2025.02/build/ovmf/secboot/SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.inf
 [X64]
make[1]: Leaving directory 
'/tmp/edk2-2025.02/build/ovmf/secboot/Build/OvmfX64/RELEASE_GCC5/X64/UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib'
Trim --asm-file -o 
/tmp/edk2-2025.02/build/ovmf/secboot/Build/OvmfX64/RELEASE_GCC5/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib/OUTPUT/X64/ExceptionHandlerAsm.i
 -i 
/tmp/edk2-2025.02/build/ovmf/secboot/Build/OvmfX64/RELEASE_GCC5/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib/OUTPUT/inc.lst
 
/tmp/edk2-2025.02/build/ovmf/secboot/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ExceptionHandlerAsm.nasm
"gcc" -MMD -MF 
/tmp/edk2-2025.02/build/ovmf/secboot/Build/OvmfX64/RELEASE_GCC5/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib/OUTPUT/PeiDxeSmmCpuException.obj.deps
 -g -Os -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Werror 
-Wno-array-bounds -include AutoGen.h -fno-common -fstack-protector 
-ffunction-sections -fdata-sections -fno-stack-protector 
-DSTRING_ARRAY_NAME=PeiCpuExceptionHandlerLibStrings 
-mstack-protector-guard=global -m64 -march=x86-64 
"-DEFIAPI=__attribute__((ms_abi))" -maccumulate-outgoing-args -mno-red-zone 
-Wno-address -mcmodel=small -fpie -fno-asynchronous-unwind-tables -Wno-address 
-fno-omit-frame-pointer -flto -DUSING_LTO -Wno-unused-but-set-variable 
-Wno-unused-const-variable -DMDEPKG_NDEBUG -mno-mmx -mno-sse -D 
DISABLE_NEW_DEPRECATED_INTERFACES -D TDX_GUEST_SUPPORTED -D 
ENABLE_MD5_DEPRECATED_INTERFACES -c -o 
/tmp/edk2-2025.02/build/ovmf/secboot/Build/OvmfX64/RELEASE_GCC5/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib/OUTPUT/./PeiDxeSmmCpuException.obj
 
-I/tmp/edk2-2025.02/build/ovmf/secboot/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64
 
-I/tmp/edk2-2025.02/build/ovmf/secboot/UefiCpuPkg/Library/CpuExceptionHandlerLib
 
-I/tmp/edk2-2025.02/build/ovmf/secboot/Build/OvmfX64/RELEASE_GCC5/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib/DEBUG
 -I/tmp/edk2-2025.02/build/ovmf/secboot/MdePkg 
-I/tmp/edk2-2025.02/build/ovmf/secboot/MdePkg/Include 
-I/tmp/edk2-2025.02/build/ovmf/secboot/MdePkg/Test/UnitTest/Include 
-I/tmp/edk2-2025.02/build/ovmf/secboot/MdePkg/Test/Mock/Include 
-I/tmp/edk2-2025.02/build/ovmf/secboot/MdePkg/Library/MipiSysTLib/mipisyst/library/include
 -I/tmp/edk2-2025.02/build/ovmf/secboot/MdePkg/Include/X64 
-I/tmp/edk2-2025.02/build/ovmf/secboot/MdeModulePkg 
-I/tmp/edk2-2025.02/build/ovmf/secboot/MdeModulePkg/Test/Mock/Include 
-I/tmp/edk2-2025.02/build/ovmf/secboot/MdeModulePkg/Include 
-I/tmp/edk2-2025.02/build/ovmf/secboot/UefiCpuPkg 
-I/tmp/edk2-2025.02/build/ovmf/secboot/UefiCpuPkg/Include 
/tmp/edk2-2025.02/build/ovmf/secboot/UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiDxeSmmCpuException.c
/tmp/edk2-2025.02/build/ovmf/secboot/Build/OvmfX64/RELEASE_GCC5/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib/OUTPUT/X64/ExceptionHandlerAsm.iii:60:
 error: instruction not valid with 32-bit operand size
/tmp/edk2-2025.02/build/ovmf/secboot/Build/OvmfX64/RELEASE_GCC5/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib/OUTPUT/X64/ExceptionHandlerAsm.iii:60:
 error: instruction not valid with 32-bit operand size
[... repeats ...]
/tmp/edk2-2025.02/build/ovmf/secboot/Build/OvmfX64/RELEASE_GCC5/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib/OUTPUT/X64/ExceptionHandlerAsm.iii:60:
 error: instruction not valid with 32-bit operand size
/tmp/edk2-2025.02/build/ovmf/secboot/Build/OvmfX64/RELEASE_GCC5/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib/OUTPUT/X64/ExceptionHandlerAsm.iii:60:
 error: instruction not valid with 32-bit operand size
/tmp/edk2-2025.02/build/ovmf/secboot/Build/OvmfX64/RELEASE_GCC5/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib/OUTPUT/X64/ExceptionHandlerAsm.iii:73:
 error: instruction not valid with 32-bit operand size
make[1]: *** [GNUmakefile:343: 
/tmp/edk2-2025.02/build/ovmf/secboot/Build/OvmfX64/RELEASE_GCC5/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib/OUTPUT/X64/ExceptionHandlerAsm.obj]
 Error 1
make[1]: Leaving directory 
'/tmp/edk2-2025.02/build/ovmf/secboot/Build/OvmfX64/RELEASE_GCC5/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib'


build.py...
 : error 7000: Failed to execute command
        make tbuild 
[/tmp/edk2-2025.02/build/ovmf/secboot/Build/OvmfX64/RELEASE_GCC5/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib]


build.py...
 : error 7000: Failed to execute command
        make tbuild 
[/tmp/edk2-2025.02/build/ovmf/secboot/Build/OvmfX64/RELEASE_GCC5/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib]

-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.17.2-amd64 (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to