bin-x86_64-efi/ipxe.efi build fails - Printable Version +- iPXE discussion forum (https://forum.ipxe.org) +-- Forum: iPXE user forums (/forumdisplay.php?fid=1) +--- Forum: General (/forumdisplay.php?fid=2) +--- Thread: bin-x86_64-efi/ipxe.efi build fails (/showthread.php?tid=24667) |
bin-x86_64-efi/ipxe.efi build fails - jusson-pd - 2020-07-13 13:17 Hi, When I try to build using the following command: jusson@debian10:~/ipxe$ make -C src bin-x86_64-efi/ipxe.efi I get the following output: [VERSION] bin-x86_64-efi/version.ipxe.efi.o In file included from include/ipxe/features.h:6, from core/version.c:33: <command-line>: error: unsigned conversion from ‘int’ to ‘unsigned char’ changes value from ‘31707’ to ‘219’ [-Werror=overflow] include/ipxe/dhcp.h:529:58: note: in definition of macro ‘DHCP_OPTION’ #define DHCP_OPTION( ... ) VA_ARG_COUNT ( __VA_ARGS__ ), __VA_ARGS__ ^~~~~~~~~~~ include/ipxe/features.h:71:2: note: in expansion of macro ‘__DHCP_FEATURE’ __DHCP_FEATURE ( _name, feature_opt, __VA_ARGS__ ) ^~~~~~~~~~~~~~ include/ipxe/features.h:69:2: note: in expansion of macro ‘_DHCP_FEATURE’ _DHCP_FEATURE ( OBJECT, feature_opt, __VA_ARGS__ ) ^~~~~~~~~~~~~ include/ipxe/features.h:106:2: note: in expansion of macro ‘DHCP_FEATURE’ DHCP_FEATURE ( DHCP_ENCAPSULATED ( DHCP_EB_VERSION ), __VA_ARGS__ ) ^~~~~~~~~~~~ core/version.c:48:1: note: in expansion of macro ‘FEATURE_VERSION’ FEATURE_VERSION ( VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH ); ^~~~~~~~~~~~~~~ core/version.c:48:19: note: in expansion of macro ‘VERSION_MAJOR’ FEATURE_VERSION ( VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH ); ^~~~~~~~~~~~~ core/version.c:48:47: error: expected expression before ‘,’ token FEATURE_VERSION ( VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH ); ^ include/ipxe/dhcp.h:529:58: note: in definition of macro ‘DHCP_OPTION’ #define DHCP_OPTION( ... ) VA_ARG_COUNT ( __VA_ARGS__ ), __VA_ARGS__ ^~~~~~~~~~~ include/ipxe/features.h:71:2: note: in expansion of macro ‘__DHCP_FEATURE’ __DHCP_FEATURE ( _name, feature_opt, __VA_ARGS__ ) ^~~~~~~~~~~~~~ include/ipxe/features.h:69:2: note: in expansion of macro ‘_DHCP_FEATURE’ _DHCP_FEATURE ( OBJECT, feature_opt, __VA_ARGS__ ) ^~~~~~~~~~~~~ include/ipxe/features.h:106:2: note: in expansion of macro ‘DHCP_FEATURE’ DHCP_FEATURE ( DHCP_ENCAPSULATED ( DHCP_EB_VERSION ), __VA_ARGS__ ) ^~~~~~~~~~~~ core/version.c:48:1: note: in expansion of macro ‘FEATURE_VERSION’ FEATURE_VERSION ( VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH ); ^~~~~~~~~~~~~~~ core/version.c:66:48: error: expected expression before ‘;’ token const int product_minor_version = VERSION_MINOR; ^ core/version.c:66:48: error: initialization of ‘int’ from ‘uint8_t *’ {aka ‘unsigned char *’} makes integer from pointer without a cast [-Werror=int-conversion] core/version.c:66:48: error: initializer element is not constant cc1: error: unrecognized command line option ‘-Wno-address-of-packed-member’ [-Werror] cc1: all warnings being treated as errors make: *** [Makefile.housekeeping:1177: bin-x86_64-efi/version.ipxe.efi.o] Error 1 All I did was clone ipxe directly and try to build it. Any ideas? |