iPXE discussion forum
Compilation error in validator.c - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Compilation error in validator.c (/showthread.php?tid=3459)



Compilation error in validator.c - _angus_ - 2012-05-23 16:42

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


RE: Compilation error in validator.c - robinsmidsrod - 2012-05-26 10:37

I believe this compilation warning has been fixed in this commit, https://git.ipxe.org/ipxe.git/commit/5af9ad51c8804d7992d14bbadf3ca4e4ac3ce314 dated 24th May 2012.


RE: Compilation error in validator.c - _angus_ - 2012-06-05 14:15

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


RE: Compilation error in validator.c - robinsmidsrod - 2012-06-11 16:30

Try to add NO_WERROR=1 to the make command line to ignore those warnings while the developers figure how to solve it properly.