>>> host-vboot-utils bbdd62f9b030db7ad8eef789aaf58a7ff9a25656 Downloading Doing full clone Cloning into 'vboot-utils-bbdd62f9b030db7ad8eef789aaf58a7ff9a25656'... warning: refname 'bbdd62f9b030db7ad8eef789aaf58a7ff9a25656' is ambiguous. Git normally never creates a ref that ends with 40 hex characters because it will be ignored when you just specify 40-hex. These refs may be created by mistake. For example, git checkout -b $br $(git rev-parse ...) where "$br" is somehow empty and a 40-hex ref is created. Please examine these refs and maybe delete them. Turn this message off by running "git config advice.objectNameWarning false" vboot-utils-bbdd62f9b030db7ad8eef789aaf58a7ff9a25656.tar.gz: OK (sha256: d95b64b1f1de4a3ffa5c2e446d7c8e92aa197aee10de24206b2ea2deb5a8b947) >>> host-vboot-utils bbdd62f9b030db7ad8eef789aaf58a7ff9a25656 Extracting gzip -d -c /data/buildroot/buildroot-test/instance-1/dl/vboot-utils-bbdd62f9b030db7ad8eef789aaf58a7ff9a25656.tar.gz | /data/buildroot/buildroot-test/instance-1/output/host/bin/tar --strip-components=1 -C /data/buildroot/buildroot-test/instance-1/output/build/host-vboot-utils-bbdd62f9b030db7ad8eef789aaf58a7ff9a25656 -xf - >>> host-vboot-utils bbdd62f9b030db7ad8eef789aaf58a7ff9a25656 Patching Applying 0001-Add-missing-definition-of-MTD_CHAR_MAJOR.patch using patch: patching file cgpt/cgpt_wrapper.c Applying 0002-Add-missing-header-include-for-ssize_t.patch using patch: patching file host/lib/fmap.c Applying 0003-Avoid-RSA-type-redefinition.patch using patch: patching file host/lib/include/host_key.h Applying 0004-Disable-static-futility.patch using patch: patching file Makefile >>> host-vboot-utils bbdd62f9b030db7ad8eef789aaf58a7ff9a25656 Configuring >>> host-vboot-utils bbdd62f9b030db7ad8eef789aaf58a7ff9a25656 Building PATH="/data/buildroot/buildroot-test/instance-1/output/host/bin:/data/buildroot/buildroot-test/instance-1/output/host/sbin:/data/buildroot/buildroot-test/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" PKG_CONFIG="/data/buildroot/buildroot-test/instance-1/output/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/data/buildroot/buildroot-test/instance-1/output/host/lib/pkgconfig:/data/buildroot/buildroot-test/instance-1/output/host/share/pkgconfig" /usr/bin/make -j4 -C /data/buildroot/buildroot-test/instance-1/output/build/host-vboot-utils-bbdd62f9b030db7ad8eef789aaf58a7ff9a25656 CC="/usr/bin/gcc" CFLAGS="-O2 -I/data/buildroot/buildroot-test/instance-1/output/host/include -D_LARGEFILE64_SOURCE -D_GNU_SOURCE" LDFLAGS="-L/data/buildroot/buildroot-test/instance-1/output/host/lib -Wl,-rpath,/data/buildroot/buildroot-test/instance-1/output/host/lib" ARCH=arm futil cgpt make[1]: Entering directory '/data/buildroot/buildroot-test/instance-1/output/build/host-vboot-utils-bbdd62f9b030db7ad8eef789aaf58a7ff9a25656' Using qemu for testing. Package liblzma was not found in the pkg-config search path. Perhaps you should add the directory containing `liblzma.pc' to the PKG_CONFIG_PATH environment variable Package 'liblzma', required by 'world', not found Package yaml-0.1 was not found in the pkg-config search path. Perhaps you should add the directory containing `yaml-0.1.pc' to the PKG_CONFIG_PATH environment variable Package 'yaml-0.1', required by 'world', not found CC futility/cmd_gbb_utility.o CC futility/misc.o CC futility/futility.o CC futility/cmd_dump_fmap.o CC futility/ryu_root_header.o CC futility/cmd_create.o CC futility/cmd_dump_kernel_config.o CC futility/cmd_load_fmap.o CC futility/cmd_pcr.o futility/cmd_create.c: In function 'vb1_make_keypair': futility/cmd_create.c:122:27: warning: assignment to 'struct rsa_rt *' from incompatible pointer type 'RSA *' {aka 'struct rsa_st *'} [-Wincompatible-pointer-types] privkey->rsa_private_key = rsa_key; ^ CC futility/cmd_show.o CC futility/cmd_sign.o CC futility/cmd_vbutil_firmware.o futility/cmd_show.c: In function 'ft_show_privkey': futility/cmd_show.c:115:22: warning: assignment to 'struct rsa_rt *' from incompatible pointer type 'RSA *' {aka 'struct rsa_st *'} [-Wincompatible-pointer-types] key.rsa_private_key = d2i_RSAPrivateKey(NULL, &start, len); ^ futility/cmd_show.c:125:15: warning: passing argument 1 of 'RSA_free' from incompatible pointer type [-Wincompatible-pointer-types] RSA_free(key.rsa_private_key); ~~~^~~~~~~~~~~~~~~~ In file included from futility/cmd_show.c:8: /data/buildroot/buildroot-test/instance-1/output/host/include/openssl/rsa.h:343:20: note: expected 'RSA *' {aka 'struct rsa_st *'} but argument is of type 'struct rsa_rt *' void RSA_free(RSA *r); ~~~~~^ CC futility/cmd_vbutil_kernel.o CC futility/cmd_vbutil_key.o CC futility/cmd_vbutil_keyblock.o CC futility/file_type.o CC futility/file_type_bios.o CC futility/file_type_rwsig.o CC futility/file_type_usbpd1.o CC futility/vb1_helper.o CC futility/vb2_helper.o GEN gen/futility_cmds.c futility/vb1_helper.c: In function 'ft_recognize_vb1_key': futility/vb1_helper.c:764:22: warning: assignment to 'struct rsa_rt *' from incompatible pointer type 'RSA *' {aka 'struct rsa_st *'} [-Wincompatible-pointer-types] key.rsa_private_key = d2i_RSAPrivateKey(NULL, &start, ^ futility/vb1_helper.c:768:15: warning: passing argument 1 of 'RSA_free' from incompatible pointer type [-Wincompatible-pointer-types] RSA_free(key.rsa_private_key); ~~~^~~~~~~~~~~~~~~~ In file included from futility/vb1_helper.c:12: /data/buildroot/buildroot-test/instance-1/output/host/include/openssl/rsa.h:343:20: note: expected 'RSA *' {aka 'struct rsa_st *'} but argument is of type 'struct rsa_rt *' void RSA_free(RSA *r); ~~~~~^ CC cgpt/cgpt_create.o CC cgpt/cgpt_add.o CC cgpt/cgpt_boot.o CC cgpt/cgpt_show.o CC cgpt/cgpt_repair.o CC cgpt/cgpt_prioritize.o CC cgpt/cgpt_common.o CC futility/dump_kernel_config_lib.o CC host/arch/arm/lib/crossystem_arch.o CC host/lib/crossystem.o CC host/lib/file_keys.o CC host/lib/fmap.o CC host/lib/host_common.o CC host/lib/host_key.o CC host/lib/host_keyblock.o CC host/lib/host_misc.o CC host/lib/util_misc.o host/lib/util_misc.c: In function 'PrintPrivKeySha1Sum': host/lib/util_misc.c:38:26: warning: passing argument 1 of 'vb_keyb_from_rsa' from incompatible pointer type [-Wincompatible-pointer-types] if (vb_keyb_from_rsa(key->rsa_private_key, &buf, &buflen)) { ~~~^~~~~~~~~~~~~~~~~ In file included from host/lib/util_misc.c:18: host/lib/include/util_misc.h:42:37: note: expected 'struct rsa_st *' but argument is of type 'struct rsa_rt *' int vb_keyb_from_rsa(struct rsa_st *rsa_private_key, ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ host/lib/host_key.c: In function 'PrivateKeyReadPem': host/lib/host_key.c:54:24: warning: assignment to 'struct rsa_rt *' from incompatible pointer type 'RSA *' {aka 'struct rsa_st *'} [-Wincompatible-pointer-types] key->rsa_private_key = rsa_key; ^ host/lib/host_key.c: In function 'PrivateKeyFree': host/lib/host_key.c:66:17: warning: passing argument 1 of 'RSA_free' from incompatible pointer type [-Wincompatible-pointer-types] RSA_free(key->rsa_private_key); ~~~^~~~~~~~~~~~~~~~~ In file included from /data/buildroot/buildroot-test/instance-1/output/host/include/openssl/x509.h:96, from /data/buildroot/buildroot-test/instance-1/output/host/include/openssl/pem.h:70, from host/lib/host_key.c:10: /data/buildroot/buildroot-test/instance-1/output/host/include/openssl/rsa.h:343:20: note: expected 'RSA *' {aka 'struct rsa_st *'} but argument is of type 'struct rsa_rt *' void RSA_free(RSA *r); ~~~~~^ host/lib/host_key.c: In function 'PrivateKeyWrite': host/lib/host_key.c:77:33: warning: passing argument 1 of 'i2d_RSAPrivateKey' from incompatible pointer type [-Wincompatible-pointer-types] buflen = i2d_RSAPrivateKey(key->rsa_private_key, &outbuf); ~~~^~~~~~~~~~~~~~~~~ In file included from /data/buildroot/buildroot-test/instance-1/output/host/include/openssl/objects.h:965, from /data/buildroot/buildroot-test/instance-1/output/host/include/openssl/evp.h:94, from /data/buildroot/buildroot-test/instance-1/output/host/include/openssl/pem.h:69, from host/lib/host_key.c:10: /data/buildroot/buildroot-test/instance-1/output/host/include/openssl/asn1.h:323:36: note: expected 'const RSA *' {aka 'const struct rsa_st *'} but argument is of type 'struct rsa_rt * const' int i2d_##name(const type *a, unsigned char **out); \ ~~~~~~~~~~~~^ /data/buildroot/buildroot-test/instance-1/output/host/include/openssl/rsa.h:363:1: note: in expansion of macro 'DECLARE_ASN1_ENCODE_FUNCTIONS_const' DECLARE_ASN1_ENCODE_FUNCTIONS_const(RSA, RSAPrivateKey) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ host/lib/host_key.c: In function 'PrivateKeyRead': host/lib/host_key.c:131:24: warning: assignment to 'struct rsa_rt *' from incompatible pointer type 'RSA *' {aka 'struct rsa_st *'} [-Wincompatible-pointer-types] key->rsa_private_key = d2i_RSAPrivateKey(0, &start, ^ CC host/lib/host_signature.o CC host/lib/signature_digest.o CC firmware/lib/cryptolib/padding.o CC firmware/lib/cryptolib/rsa.o CC firmware/lib/cryptolib/rsa_utility.o host/lib/host_signature.c: In function 'CalculateSignature': host/lib/host_signature.c:146:31: warning: passing argument 4 of 'RSA_private_encrypt' from incompatible pointer type [-Wincompatible-pointer-types] key->rsa_private_key, /* Key to use */ ~~~^~~~~~~~~~~~~~~~~ In file included from host/lib/host_signature.c:10: /data/buildroot/buildroot-test/instance-1/output/host/include/openssl/rsa.h:338:49: note: expected 'RSA *' {aka 'struct rsa_st *'} but argument is of type 'struct rsa_rt * const' unsigned char *to, RSA *rsa, int padding); ~~~~~^~~ CC firmware/lib/cryptolib/sha1.o CC firmware/lib/cryptolib/sha256.o CC firmware/lib/cryptolib/sha512.o CC firmware/lib/cryptolib/sha_utility.o CC firmware/lib/stateful_util.o CC firmware/lib/vboot_api_firmware.o CC firmware/lib/vboot_common.o CC firmware/lib/vboot_firmware.o CC firmware/lib/region-fw.o CC firmware/lib/tpm_bootmode.o CC firmware/stub/vboot_api_stub_sf.o CC firmware/lib/crc8.o CC firmware/lib/utility.o CC firmware/lib/vboot_api_init.o CC firmware/lib/vboot_common_init.o CC firmware/lib/vboot_nvstorage.o CC firmware/lib/vboot_nvstorage_rollback.o CC firmware/lib/region-init.o CC firmware/lib/rollback_index.o CC firmware/lib/tpm_lite/tlcl.o CC firmware/stub/tpm_lite_stub.o CC firmware/stub/utility_stub.o firmware/stub/tpm_lite_stub.c: In function 'VbExTpmSendReceive': firmware/stub/tpm_lite_stub.c:239:3: warning: implicit declaration of function 'assert' [-Wimplicit-function-declaration] assert( ^~~~~~ firmware/stub/tpm_lite_stub.c:239:3: note: 'assert' is defined in header ''; did you forget to '#include '? firmware/stub/tpm_lite_stub.c:28:1: +#include firmware/stub/tpm_lite_stub.c:239:3: assert( ^~~~~~ CC firmware/stub/vboot_api_stub_init.o CC firmware/stub/vboot_api_stub_region.o CC firmware/lib/cgptlib/cgptlib.o CC firmware/lib/cgptlib/cgptlib_internal.o CC firmware/lib/cgptlib/crc32.o CC firmware/lib/gpt_misc.o CC firmware/lib/utility_string.o CC firmware/lib/vboot_api_kernel.o CC firmware/lib/vboot_audio.o CC firmware/lib/vboot_display.o CC firmware/lib/vboot_kernel.o CC firmware/lib/region-kernel.o CC firmware/stub/vboot_api_stub.o CC firmware/stub/vboot_api_stub_disk.o CC firmware/stub/vboot_api_stub_stream.o CC host/lib21/host_fw_preamble.o CC host/lib21/host_key.o CC host/lib21/host_keyblock.o CC host/lib21/host_misc.o CC host/lib21/host_signature.o CC firmware/2lib/2api.o CC firmware/2lib/2common.o CC firmware/2lib/2crc8.o CC firmware/2lib/2misc.o CC firmware/2lib/2nvstorage.o CC firmware/2lib/2rsa.o CC firmware/2lib/2secdata.o CC firmware/2lib/2secdatak.o CC firmware/2lib/2sha1.o CC firmware/2lib/2sha256.o CC firmware/2lib/2sha512.o CC firmware/2lib/2sha_utility.o CC firmware/2lib/2tpm_bootmode.o CC firmware/2lib/2stub.o CC firmware/lib21/api.o CC firmware/lib21/common.o CC firmware/lib21/misc.o CC firmware/lib21/packed_key.o CC cgpt/cgpt.o CC cgpt/cgpt_find.o CC cgpt/cgpt_legacy.o CC cgpt/cgpt_nor.o CC cgpt/cmd_add.o CC cgpt/cmd_boot.o CC cgpt/cmd_create.o CC cgpt/cmd_find.o CC cgpt/cmd_legacy.o CC cgpt/cmd_prioritize.o CC cgpt/cmd_repair.o CC cgpt/cmd_show.o RM libvboot_util.a AR libvboot_util.a CC cgpt/cgpt_wrapper.o CC gen/futility_cmds.o RM libvboot_util21.a LDcgpt cgpt/cgpt AR libvboot_util21.a cgpt/cgpt_wrapper.c: In function 'is_mtd': cgpt/cgpt_wrapper.c:52:7: warning: implicit declaration of function 'major' [-Wimplicit-function-declaration] if (major(stat.st_rdev) != MTD_CHAR_MAJOR) { ^~~~~ LD futility/futility LD cgpt/cgpt_wrapper /usr/bin/ld: /data/buildroot/buildroot-test/instance-1/output/build/host-vboot-utils-bbdd62f9b030db7ad8eef789aaf58a7ff9a25656/build/cgpt/cgpt_wrapper.o: in function `main': cgpt_wrapper.c:(.text.startup+0x161): undefined reference to `major' collect2: error: ld returned 1 exit status make[1]: *** [Makefile:1017: /data/buildroot/buildroot-test/instance-1/output/build/host-vboot-utils-bbdd62f9b030db7ad8eef789aaf58a7ff9a25656/build/cgpt/cgpt_wrapper] Error 1 make[1]: Leaving directory '/data/buildroot/buildroot-test/instance-1/output/build/host-vboot-utils-bbdd62f9b030db7ad8eef789aaf58a7ff9a25656' make: *** [package/pkg-generic.mk:226: /data/buildroot/buildroot-test/instance-1/output/build/host-vboot-utils-bbdd62f9b030db7ad8eef789aaf58a7ff9a25656/.stamp_built] Error 2 make: Leaving directory '/data/buildroot/buildroot-test/instance-1/buildroot'