Hi,

 

I was trying to build the Linux UEFI Validation (LUV) image for 32 bit systems. The LUV image incorporates the CHIPSEC test suite as well.

 

I get the following warnings and errors during build time:

------------------------------------------------------------------------------------------------------------

CC

[M]  /home/megha/luv_new/build/tmp/work/qemux86-oe-linux/chipsec/git-r0/git/source/drivers/linux/chipsec_km.o

/home/megha/luv_new/build/tmp/work/qemux86-oe-linux/chipsec/git-r0/git/source/drivers/linux/chipsec_km.c: In function 'patch_apply_ucode':

/home/megha/luv_new/build/tmp/work/qemux86-oe-linux/chipsec/git-r0/git/source/drivers/linux/chipsec_km.c:573:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

  ucode_start=(unsigned long long) ucode_buf;

              ^

/home/megha/luv_new/build/tmp/work/qemux86-oe-linux/chipsec/git-r0/git/source/drivers/linux/chipsec_km.c: In function 'd_ioctl':

/home/megha/luv_new/build/tmp/work/qemux86-oe-linux/chipsec/git-r0/git/source/drivers/linux/chipsec_km.c:946:3: warning: right shift count >= width of type

   ptr[1] = (uint32_t)(dtr.base >> 32);

   ^

/home/megha/luv_new/build/tmp/work/qemux86-oe-linux/chipsec/git-r0/git/source/drivers/linux/chipsec_km.c:1365:17: warning: left shift count >= width of type

                 ptr[0] = first | (second << 32);

                 ^

/home/megha/luv_new/build/tmp/work/qemux86-oe-linux/chipsec/git-r0/git/source/drivers/linux/chipsec_km.c:1405:17: warning: right shift count >= width of type

                 iowrite32( ( value >> 32 ) & 0xFFFFFFFF, ioaddr );

                 ^

/home/megha/luv_new/build/tmp/work/qemux86-oe-linux/chipsec/git-r0/git/source/drivers/linux/chipsec_km.c:951:10: warning: 'dt_pa.u.high' may be used uninitialized in this function [-Wmaybe-uninitialized]

   ptr[3] = dt_pa.u.high;

          ^

  LD

[M]  /home/megha/luv_new/build/tmp/work/qemux86-oe-linux/chipsec/git-r0/git/source/drivers/linux/chipsec.o

i586-oe-linux-ld.bfd: i386:x86-64 architecture of input file `/home/megha/luv_new/build/tmp/work/qemux86-oe-linux/chipsec/git-r0/git/source/drivers/linux/amd64/cpu.o' is incompatible with i386 output

make[3]: ***

[/home/megha/luv_new/build/tmp/work/qemux86-oe-linux/chipsec/git-r0/git/source/drivers/linux/chipsec.o] Error 1

make[2]: ***

[_module_/home/megha/luv_new/build/tmp/work/qemux86-oe-linux/chipsec/git-r0/git/source/drivers/linux] Error 2

make[2]: Leaving directory

`/home/megha/luv_new/build/tmp/work-shared/qemux86/kernel-build-artifacts'

make[1]: *** [sub-make] Error 2

make[1]: Leaving directory

`/home/megha/luv_new/build/tmp/work-shared/qemux86/kernel-source'

make: *** [chipsec] Error 2

------------------------------------------------------------------------------------------------------------------------

 

I wanted to know if the CHIPSEC test suite builds and runs on 32 bit platforms? (in which case there is a problem with the CHIPSEC recipe in LUV).

Else, any pointers as to why I see these warnings and errors?

Any help would be appreciated!!

 

Thanks,

Megha