[Buildroot] [uboot tools] BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SUPPORT is broken?

Masahiro Yamada yamada.masahiro at socionext.com
Sun Jul 17 03:14:43 UTC 2016


Hi.


If I enable BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SUPPORT,
it fails to build.


Am I missing something?
If it is a bug, anybody who can fix it?





>>> host-uboot-tools 2016.07 Patching

Applying 0001-drop-configh-from-tools.patch using patch:
patching file tools/env/fw_env.h

Applying 0002-tools-only-in-no-dot-config-targets.patch using patch:
patching file Makefile

Applying 0003-Make-FIT-support-really-optional.patch using patch:
patching file common/bootm.c
patching file include/bootm.h
patching file tools/Makefile
>>> host-uboot-tools 2016.07 Configuring
mkdir -p /home/masahiro/workspace/buildroot-yamada/output/build/host-uboot-tools-2016.07/include/config
touch /home/masahiro/workspace/buildroot-yamada/output/build/host-uboot-tools-2016.07/include/config/auto.conf
>>> host-uboot-tools 2016.07 Building
/usr/bin/make -j1 -C
/home/masahiro/workspace/buildroot-yamada/output/build/host-uboot-tools-2016.07
HOSTCC="/usr/bin/gcc" HOSTCFLAGS="-O2
-I/home/masahiro/workspace/buildroot-yamada/output/host/usr/include"
HOSTLDFLAGS="-L/home/masahiro/workspace/buildroot-yamada/output/host/lib
-L/home/masahiro/workspace/buildroot-yamada/output/host/usr/lib
-Wl,-rpath,/home/masahiro/workspace/buildroot-yamada/output/host/usr/lib"
CONFIG_FIT=y tools-only
  HOSTCC  scripts/basic/fixdep
  CHK     include/config/uboot.release
  UPD     include/config/uboot.release
  CHK     include/generated/version_autogenerated.h
  UPD     include/generated/version_autogenerated.h
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  HOSTCC  tools/mkenvimage.o
  HOSTCC  tools/os_support.o
  WRAP    tools/lib/crc32.c
  HOSTCC  tools/lib/crc32.o
  HOSTLD  tools/mkenvimage
  HOSTCC  tools/aisimage.o
  HOSTCC  tools/atmelimage.o
  HOSTCC  tools/fit_common.o
  HOSTCC  tools/fit_image.o
  HOSTCC  tools/image-host.o
  WRAP    tools/common/image-fit.c
  HOSTCC  tools/common/image-fit.o
  WRAP    tools/common/bootm.c
  HOSTCC  tools/common/bootm.o
  HOSTCC  tools/default_image.o
  WRAP    tools/lib/fdtdec_common.c
  HOSTCC  tools/lib/fdtdec_common.o
  WRAP    tools/lib/fdtdec.c
  HOSTCC  tools/lib/fdtdec.o
  WRAP    tools/common/image.c
  HOSTCC  tools/common/image.o
  HOSTCC  tools/imagetool.o
  HOSTCC  tools/imximage.o
  HOSTCC  tools/kwbimage.o
  WRAP    tools/lib/md5.c
  HOSTCC  tools/lib/md5.o
  HOSTCC  tools/lpc32xximage.o
  HOSTCC  tools/mxsimage.o
  HOSTCC  tools/omapimage.o
  HOSTCC  tools/pblimage.o
  HOSTCC  tools/pbl_crc32.o
  WRAP    tools/lib/rc4.c
  HOSTCC  tools/lib/rc4.o
  HOSTCC  tools/rkcommon.o
  HOSTCC  tools/rkimage.o
  HOSTCC  tools/rksd.o
  HOSTCC  tools/rkspi.o
  HOSTCC  tools/socfpgaimage.o
  WRAP    tools/lib/sha1.c
  HOSTCC  tools/lib/sha1.o
  WRAP    tools/lib/sha256.c
  HOSTCC  tools/lib/sha256.o
  WRAP    tools/common/hash.c
  HOSTCC  tools/common/hash.o
  HOSTCC  tools/ublimage.o
  HOSTCC  tools/zynqimage.o
  HOSTCC  tools/zynqmpimage.o
  WRAP    tools/lib/libfdt/fdt.c
  HOSTCC  tools/lib/libfdt/fdt.o
  WRAP    tools/lib/libfdt/fdt_ro.c
  HOSTCC  tools/lib/libfdt/fdt_ro.o
  WRAP    tools/lib/libfdt/fdt_rw.c
  HOSTCC  tools/lib/libfdt/fdt_rw.o
  WRAP    tools/lib/libfdt/fdt_strerror.c
  HOSTCC  tools/lib/libfdt/fdt_strerror.o
  WRAP    tools/lib/libfdt/fdt_wip.c
  HOSTCC  tools/lib/libfdt/fdt_wip.o
  WRAP    tools/lib/libfdt/fdt_region.c
  HOSTCC  tools/lib/libfdt/fdt_region.o
  WRAP    tools/lib/libfdt/fdt_sw.c
  HOSTCC  tools/lib/libfdt/fdt_sw.o
  HOSTCC  tools/gpimage.o
  HOSTCC  tools/gpimage-common.o
  HOSTCC  tools/dumpimage.o
  HOSTLD  tools/dumpimage
tools/fit_common.o: In function `fit_verify_header':
fit_common.c:(.text+0x0): multiple definition of `fit_verify_header'
tools/fit_common.o:fit_common.c:(.text+0x0): first defined here
tools/fit_common.o: In function `fit_check_image_types':
fit_common.c:(.text+0x10): multiple definition of `fit_check_image_types'
tools/fit_common.o:fit_common.c:(.text+0x10): first defined here
tools/fit_common.o: In function `mmap_fdt':
fit_common.c:(.text+0x20): multiple definition of `mmap_fdt'
tools/fit_common.o:fit_common.c:(.text+0x20): first defined here
tools/common/image-fit.o: In function `fit_get_subimage_count':
image-fit.c:(.text+0x80): multiple definition of `fit_get_subimage_count'
tools/common/image-fit.o:image-fit.c:(.text+0x80): first defined here
tools/common/image-fit.o: In function `fit_get_desc':
image-fit.c:(.text+0xf0): multiple definition of `fit_get_desc'
tools/common/image-fit.o:image-fit.c:(.text+0xf0): first defined here
tools/common/image-fit.o: In function `fit_get_timestamp':
image-fit.c:(.text+0x120): multiple definition of `fit_get_timestamp'
tools/common/image-fit.o:image-fit.c:(.text+0x120): first defined here
tools/common/image-fit.o: In function `fit_image_get_node':
image-fit.c:(.text+0x360): multiple definition of `fit_image_get_node'
tools/common/image-fit.o:image-fit.c:(.text+0x360): first defined here
tools/common/image-fit.o: In function `fit_image_get_os':
image-fit.c:(.text+0x3a0): multiple definition of `fit_image_get_os'
tools/common/image-fit.o:image-fit.c:(.text+0x3a0): first defined here
tools/common/image-fit.o: In function `fit_image_get_arch':
image-fit.c:(.text+0x3e0): multiple definition of `fit_image_get_arch'
tools/common/image-fit.o:image-fit.c:(.text+0x3e0): first defined here
tools/common/image-fit.o: In function `fit_image_get_type':
image-fit.c:(.text+0x420): multiple definition of `fit_image_get_type'
tools/common/image-fit.o:image-fit.c:(.text+0x420): first defined here
tools/common/image-fit.o: In function `fit_image_get_comp':
image-fit.c:(.text+0x460): multiple definition of `fit_image_get_comp'
tools/common/image-fit.o:image-fit.c:(.text+0x460): first defined here
tools/common/image-fit.o: In function `fit_image_print':
image-fit.c:(.text+0x4a0): multiple definition of `fit_image_print'
tools/common/image-fit.o:image-fit.c:(.text+0x4a0): first defined here
tools/common/image-fit.o: In function `fit_image_get_load':
image-fit.c:(.text+0x8a0): multiple definition of `fit_image_get_load'
tools/common/image-fit.o:image-fit.c:(.text+0x8a0): first defined here
tools/common/image-fit.o: In function `fit_image_get_entry':
image-fit.c:(.text+0x8b0): multiple definition of `fit_image_get_entry'
tools/common/image-fit.o:image-fit.c:(.text+0x8b0): first defined here
tools/common/image-fit.o: In function `fit_image_get_data':
image-fit.c:(.text+0x8c0): multiple definition of `fit_image_get_data'
tools/common/image-fit.o:image-fit.c:(.text+0x8c0): first defined here
tools/common/image-fit.o: In function `fit_image_hash_get_algo':
image-fit.c:(.text+0x910): multiple definition of `fit_image_hash_get_algo'
tools/common/image-fit.o:image-fit.c:(.text+0x910): first defined here
tools/common/image-fit.o: In function `fit_image_hash_get_value':
image-fit.c:(.text+0x940): multiple definition of `fit_image_hash_get_value'
tools/common/image-fit.o:image-fit.c:(.text+0x940): first defined here
tools/common/image-fit.o: In function `fit_get_end':
image-fit.c:(.text+0x990): multiple definition of `fit_get_end'
tools/common/image-fit.o:image-fit.c:(.text+0x990): first defined here
tools/common/image-fit.o: In function `fit_set_timestamp':
image-fit.c:(.text+0x9a0): multiple definition of `fit_set_timestamp'
tools/common/image-fit.o:image-fit.c:(.text+0x9a0): first defined here
tools/common/image-fit.o: In function `calculate_hash':
image-fit.c:(.text+0x9e0): multiple definition of `calculate_hash'
tools/common/image-fit.o:image-fit.c:(.text+0x9e0): first defined here
tools/common/image-fit.o: In function `fit_image_verify':
image-fit.c:(.text+0xaf0): multiple definition of `fit_image_verify'
tools/common/image-fit.o:image-fit.c:(.text+0xaf0): first defined here
tools/common/image-fit.o: In function `fit_all_image_verify':
image-fit.c:(.text+0xd00): multiple definition of `fit_all_image_verify'
tools/common/image-fit.o:image-fit.c:(.text+0xd00): first defined here
tools/common/image-fit.o: In function `fit_image_check_os':
image-fit.c:(.text+0xe10): multiple definition of `fit_image_check_os'
tools/common/image-fit.o:image-fit.c:(.text+0xe10): first defined here
tools/common/image-fit.o: In function `fit_image_check_arch':
image-fit.c:(.text+0xe40): multiple definition of `fit_image_check_arch'
tools/common/image-fit.o:image-fit.c:(.text+0xe40): first defined here
tools/common/image-fit.o: In function `fit_image_check_type':
image-fit.c:(.text+0xea0): multiple definition of `fit_image_check_type'
tools/common/image-fit.o:image-fit.c:(.text+0xea0): first defined here
tools/common/image-fit.o: In function `fit_image_check_comp':
image-fit.c:(.text+0xed0): multiple definition of `fit_image_check_comp'
tools/common/image-fit.o:image-fit.c:(.text+0xed0): first defined here
tools/common/image-fit.o: In function `fit_check_format':
image-fit.c:(.text+0xf00): multiple definition of `fit_check_format'
tools/common/image-fit.o:image-fit.c:(.text+0xf00): first defined here
tools/common/image-fit.o: In function `fit_conf_find_compat':
image-fit.c:(.text+0xf50): multiple definition of `fit_conf_find_compat'
tools/common/image-fit.o:image-fit.c:(.text+0xf50): first defined here
tools/common/image-fit.o: In function `fit_conf_get_node':
image-fit.c:(.text+0x1150): multiple definition of `fit_conf_get_node'
tools/common/image-fit.o:image-fit.c:(.text+0x1150): first defined here
tools/common/image-fit.o: In function `fit_conf_get_prop_node':
image-fit.c:(.text+0x11c0): multiple definition of `fit_conf_get_prop_node'
tools/common/image-fit.o:image-fit.c:(.text+0x11c0): first defined here
tools/common/image-fit.o: In function `fit_conf_print':
image-fit.c:(.text+0x1200): multiple definition of `fit_conf_print'
tools/common/image-fit.o:image-fit.c:(.text+0x1200): first defined here
tools/common/image-fit.o: In function `fit_print_contents':
image-fit.c:(.text+0x13d0): multiple definition of `fit_print_contents'
tools/common/image-fit.o:image-fit.c:(.text+0x13d0): first defined here
tools/common/image-fit.o: In function `fit_get_node_from_config':
image-fit.c:(.text+0x1650): multiple definition of `fit_get_node_from_config'
tools/common/image-fit.o:image-fit.c:(.text+0x1650): first defined here
tools/common/image-fit.o: In function `fit_image_load':
image-fit.c:(.text+0x16a0): multiple definition of `fit_image_load'
tools/common/image-fit.o:image-fit.c:(.text+0x16a0): first defined here
tools/common/image-fit.o: In function `boot_get_setup_fit':
image-fit.c:(.text+0x1c10): multiple definition of `boot_get_setup_fit'
tools/common/image-fit.o:image-fit.c:(.text+0x1c10): first defined here
tools/image-host.o: In function `fit_image_add_verification_data':
image-host.c:(.text+0x0): multiple definition of
`fit_image_add_verification_data'
tools/image-host.o:image-host.c:(.text+0x0): first defined here
tools/image-host.o: In function `fit_add_verification_data':
image-host.c:(.text+0x200): multiple definition of `fit_add_verification_data'
tools/image-host.o:image-host.c:(.text+0x200): first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [tools/dumpimage] Error 1
make[2]: *** [tools-only] Error 2
make[1]: *** [/home/masahiro/workspace/buildroot-yamada/output/build/host-uboot-tools-2016.07/.stamp_built]
Error 2
make: *** [_all] Error 2

-- 
Best Regards
Masahiro Yamada


More information about the buildroot mailing list