public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Build failure
@ 2022-03-08 14:08 Lendacky, Thomas
  2022-03-08 15:47 ` [edk2-devel] " Michael D Kinney
  0 siblings, 1 reply; 3+ messages in thread
From: Lendacky, Thomas @ 2022-03-08 14:08 UTC (permalink / raw)
  To: devel@edk2.groups.io

Is there a new minimum version of NASM required for the build? The
following commit causes the build to fail on my Ubuntu 20.04 system:

d3febfd9ade3 ("MdePkg: Replace Opcode with the corresponding instructions.")

Specifically the opcode changes in LongJump.nasm:

/root/kernels/ovmf-build-X64/Build/OvmfX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.iii:44: error: parser: instruction expected
/root/kernels/ovmf-build-X64/Build/OvmfX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.iii:49: error: parser: instruction expected
make: *** [GNUmakefile:742: /root/kernels/ovmf-build-X64/Build/OvmfX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.obj] Error 1

The most recent NASM version available on Ubuntu 20.04 is:

# nasm -v
NASM version 2.14.02

Thanks,
Tom

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

* Re: [edk2-devel] Build failure
  2022-03-08 14:08 Build failure Lendacky, Thomas
@ 2022-03-08 15:47 ` Michael D Kinney
  2022-03-08 16:35   ` Vincent Zimmer
  0 siblings, 1 reply; 3+ messages in thread
From: Michael D Kinney @ 2022-03-08 15:47 UTC (permalink / raw)
  To: devel@edk2.groups.io, thomas.lendacky@amd.com, Kinney, Michael D

NASM 2.15.05 is required.

Mike

> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Lendacky, Thomas via groups.io
> Sent: Tuesday, March 8, 2022 6:08 AM
> To: devel@edk2.groups.io
> Subject: [edk2-devel] Build failure
> 
> Is there a new minimum version of NASM required for the build? The
> following commit causes the build to fail on my Ubuntu 20.04 system:
> 
> d3febfd9ade3 ("MdePkg: Replace Opcode with the corresponding instructions.")
> 
> Specifically the opcode changes in LongJump.nasm:
> 
> /root/kernels/ovmf-build-X64/Build/OvmfX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.iii:44: error:
> parser: instruction expected
> /root/kernels/ovmf-build-X64/Build/OvmfX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.iii:49: error:
> parser: instruction expected
> make: *** [GNUmakefile:742: /root/kernels/ovmf-build-
> X64/Build/OvmfX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.obj] Error 1
> 
> The most recent NASM version available on Ubuntu 20.04 is:
> 
> # nasm -v
> NASM version 2.14.02
> 
> Thanks,
> Tom
> 
> 
> 
> 


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

* Re: [edk2-devel] Build failure
  2022-03-08 15:47 ` [edk2-devel] " Michael D Kinney
@ 2022-03-08 16:35   ` Vincent Zimmer
  0 siblings, 0 replies; 3+ messages in thread
From: Vincent Zimmer @ 2022-03-08 16:35 UTC (permalink / raw)
  To: devel@edk2.groups.io, Kinney, Michael D, thomas.lendacky@amd.com

This surprised me.  Maybe edksetup.sh can do something like "nasm -v" and flag this compat issue?

I used the following to update my Debian-based OS's like Ubuntu (bare-metal, WSL, etc).

	wget http://www.nasm.us/pub/nasm/releasebuilds/2.15.05/nasm-2.15.05.tar.bz2
	tar xfj nasm-2.15.05.tar.bz2
	cd nasm-2.15.05/
	./autogen.sh
	./configure --prefix=/usr/local/ 
	make 
	sudo make install

Vincent

-----Original Message-----
From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Michael D Kinney
Sent: Tuesday, March 8, 2022 7:48 AM
To: devel@edk2.groups.io; thomas.lendacky@amd.com; Kinney, Michael D <michael.d.kinney@intel.com>
Subject: Re: [edk2-devel] Build failure

NASM 2.15.05 is required.

Mike

> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of 
> Lendacky, Thomas via groups.io
> Sent: Tuesday, March 8, 2022 6:08 AM
> To: devel@edk2.groups.io
> Subject: [edk2-devel] Build failure
> 
> Is there a new minimum version of NASM required for the build? The 
> following commit causes the build to fail on my Ubuntu 20.04 system:
> 
> d3febfd9ade3 ("MdePkg: Replace Opcode with the corresponding 
> instructions.")
> 
> Specifically the opcode changes in LongJump.nasm:
> 
> /root/kernels/ovmf-build-X64/Build/OvmfX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.iii:44: error:
> parser: instruction expected
> /root/kernels/ovmf-build-X64/Build/OvmfX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.iii:49: error:
> parser: instruction expected
> make: *** [GNUmakefile:742: /root/kernels/ovmf-build- 
> X64/Build/OvmfX64/DEBUG_GCC5/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT
> /X64/LongJump.obj] Error 1
> 
> The most recent NASM version available on Ubuntu 20.04 is:
> 
> # nasm -v
> NASM version 2.14.02
> 
> Thanks,
> Tom
> 
> 
> 
> 







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

end of thread, other threads:[~2022-03-08 16:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-08 14:08 Build failure Lendacky, Thomas
2022-03-08 15:47 ` [edk2-devel] " Michael D Kinney
2022-03-08 16:35   ` Vincent Zimmer

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