[ipxe-devel] Errors when compiling iPXE with GCC 4.7.0

Brandon Penglase bpenglase-ipxe at Spaceservices.net
Sun May 27 03:49:57 UTC 2012


Just wanted to let you guys know that I'm getting the following errors
when compiling with 'gcc version 4.7.0 (Gentoo 4.7.0 p1.0, pie-0.5.3)':

  [BUILD] bin/isa.o
drivers/bus/isa.c: In function 'isabus_probe':
drivers/bus/isa.c:112:18: error: array subscript is above array bounds
[-Werror=array-bounds] cc1: all warnings being treated as errors
make: *** [bin/isa.o] Error 1

  [BUILD] bin/qib7322.o
drivers/infiniband/qib7322.c: In function 'qib7322_probe':
drivers/infiniband/qib7322.c:2141:28: error: 'old_value' may be used
  uninitialized in this function [-Werror=maybe-uninitialized]
  drivers/infiniband/qib7322.c:2123:11: note: 'old_value' was declared
  here cc1: all warnings being treated as errors make: ***
  [bin/qib7322.o] Error 1

If I add NO_WERROR=1, then everything seems to compile.

	Brandon Penglase




More information about the ipxe-devel mailing list