SpecialistOff.NET / Вопросы / Статьи / Фрагменты кода / Резюме / Метки / Помощь / Файлы

Список вопросов Печать

ipxe: make: *** [Makefile.housekeeping:1215: bin-x86_64-efi/version.ipxe.efi.o] Error 1


Метки: ipxe make makefile git 

Ошибка сборки

  [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: 'f887' undeclared here (not in a function)
include/ipxe/dhcp.h:551:58: note: in definition of macro 'DHCP_OPTION'
  551 | #define DHCP_OPTION( ... ) VA_ARG_COUNT ( __VA_ARGS__ ), __VA_ARGS__
      |                                                          ^~~~~~~~~~~
include/ipxe/features.h:71:9: note: in expansion of macro '__DHCP_FEATURE'
   71 |         __DHCP_FEATURE ( _name, feature_opt, __VA_ARGS__ )
      |         ^~~~~~~~~~~~~~
include/ipxe/features.h:69:9: note: in expansion of macro '_DHCP_FEATURE'
   69 |         _DHCP_FEATURE ( OBJECT, feature_opt, __VA_ARGS__ )
      |         ^~~~~~~~~~~~~
include/ipxe/features.h:106:9: note: in expansion of macro 'DHCP_FEATURE'
  106 |         DHCP_FEATURE ( DHCP_ENCAPSULATED ( DHCP_EB_VERSION ), __VA_ARGS__ )
      |         ^~~~~~~~~~~~
core/version.c:49:1: note: in expansion of macro 'FEATURE_VERSION'
   49 | FEATURE_VERSION ( VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH );
      | ^~~~~~~~~~~~~~~
core/version.c:49:19: note: in expansion of macro 'VERSION_MAJOR'
   49 | FEATURE_VERSION ( VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH );
      |                   ^~~~~~~~~~~~~
core/version.c:49:47: error: expected expression before ',' token
   49 | FEATURE_VERSION ( VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH );
      |                                               ^
include/ipxe/dhcp.h:551:58: note: in definition of macro 'DHCP_OPTION'
  551 | #define DHCP_OPTION( ... ) VA_ARG_COUNT ( __VA_ARGS__ ), __VA_ARGS__
      |                                                          ^~~~~~~~~~~
include/ipxe/features.h:71:9: note: in expansion of macro '__DHCP_FEATURE'
   71 |         __DHCP_FEATURE ( _name, feature_opt, __VA_ARGS__ )
      |         ^~~~~~~~~~~~~~
include/ipxe/features.h:69:9: note: in expansion of macro '_DHCP_FEATURE'
   69 |         _DHCP_FEATURE ( OBJECT, feature_opt, __VA_ARGS__ )
      |         ^~~~~~~~~~~~~
include/ipxe/features.h:106:9: note: in expansion of macro 'DHCP_FEATURE'
  106 |         DHCP_FEATURE ( DHCP_ENCAPSULATED ( DHCP_EB_VERSION ), __VA_ARGS__ )
      |         ^~~~~~~~~~~~
core/version.c:49:1: note: in expansion of macro 'FEATURE_VERSION'
   49 | FEATURE_VERSION ( VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH );
      | ^~~~~~~~~~~~~~~
core/version.c:67:48: error: expected expression before ';' token
   67 | const int product_minor_version = VERSION_MINOR;
      |                                                ^
make: *** [Makefile.housekeeping:1215: bin-x86_64-efi/version.ipxe.efi.o] Error 1

Ответы

RemiZOffAlex  Создано: 2024-09-08 03:43:56.534461  Обновлено: 2024-09-08 03:45:32.335129

Возможное решение

https://github.com/ipxe/ipxe/discussions/454

When you have a git clone, the build process will presume the ability to use git describe in order to determine the version number. This will fail if you have a shallow clone (which you will have due to --depth=1).

You can avoid this problem by using either a full (non-shallow) git clone, or a non-git source archive such as https://github.com/ipxe/ipxe/archive/refs/heads/master.zip

Возможно будут интересны и другие вопросы