iPXE discussion forum

Full Version: Compilation error in validator.c
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
lubuntu@lubuntu:~/ipxe/src$ make bin-x86_64-efi/10ec8169.efirom
[BUILD] bin-x86_64-efi/validator.o
net/validator.c: In function ‘validator_step’:
net/validator.c:458:20: error: variable ‘previous’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make: *** [bin-x86_64-efi/validator.o] Error 1

lubuntu@lubuntu:~/ipxe/src$ gcc --version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright © 2011 Free Software Foundation, Inc.

lubuntu@lubuntu:~/ipxe/src$ make --version
GNU Make 3.81
I believe this compilation warning has been fixed in this commit, https://git.ipxe.org/ipxe.git/commit/5af...e4ac3ce314 dated 24th May 2012.
Thanks for a reply, but...

lubuntu@lubuntu:~/ipxe/src$ make bin-x86_64-efi/10ec8169.efirom
[HOSTCC] util/elf2efi64
util/elf2efi.c:29:17: fatal error: bfd.h: No such file or directory
compilation terminated.
make: *** [util/elf2efi64] Error 1

Moreover,

lubuntu@lubuntu:~/ipxe/src$ make bin/ipxe.usb
[HOSTCC] util/zbin
In file included from util/zbin.c:6:0:
util/nrv2b.c: In function ‘find_match’:
util/nrv2b.c:633:17: error: array subscript is above array bounds [-Werror=array-bounds]
util/nrv2b.c:634:14: error: array subscript is above array bounds [-Werror=array-bounds]
cc1: all warnings being treated as errors
make: *** [util/zbin] Error 1
Try to add NO_WERROR=1 to the make command line to ignore those warnings while the developers figure how to solve it properly.
Reference URL's