[edk2] Build error: DisablePaging64.iii:46: Error: operand type mismatch for `and'

Subject: [edk2] Build error: DisablePaging64.iii:46: Error: operand type mismatch for `and'

From: William Marone <wjmarone@gmail.com>

To: edk2-devel@lists.sourceforge.net

Date: 2011-06-24 02:10:56


I encountered the following error when attempting to build MdeModulePkg on Linux, 
in the process of setting up a fresh EDK2 install (UDK2010.UP4.) I am using GCC to 
build an x86_64 target (X64) and the test is failing in a similar fashion 
regardless of the host being 64-bit or doing a 32-bit -> 64-bit cross-compile.

Error: operand type mismatch for `and'

The above file is generated from:


after executing build (on a clean directory,) and line 46 of the file contains the 
following code:

     and $0x0fffffffc, %rax

This file is unmodified from when I initially decompressed it, and there is no 
custom code present in the build.

Build environment:


Ubuntu 10.10 Desktop x86_64

GCC settings:

Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 
4.4.4-14ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs 
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 
--enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib 
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix 
--with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls 
--with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc 
--enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic 
--enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu 
Thread model: posix
gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5)

Any assistance would be appreciated.

Will Marone

All the data continuously generated in your IT infrastructure contains a 
definitive record of customers, application performance, security 
threats, fraudulent activity and more. Splunk takes this data and makes 
sense of it. Business sense. IT sense. Common sense.. 
edk2-devel mailing list