Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compilation error in validator.c
2012-05-23, 16:42
Post: #1
Compilation error in validator.c
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
Find all posts by this user
Quote this message in a reply
2012-05-26, 10:37
Post: #2
RE: Compilation error in validator.c
I believe this compilation warning has been fixed in this commit, https://git.ipxe.org/ipxe.git/commit/5af...e4ac3ce314 dated 24th May 2012.
Visit this user's website Find all posts by this user
Quote this message in a reply
2012-06-05, 14:15
Post: #3
RE: Compilation error in validator.c
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
Find all posts by this user
Quote this message in a reply
2012-06-11, 16:30
Post: #4
RE: Compilation error in validator.c
Try to add NO_WERROR=1 to the make command line to ignore those warnings while the developers figure how to solve it properly.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)