[U-Boot] [PATCH 2/5] kbuild: sync mixed targets handling with Linux 3.16-rc1

Masahiro Yamada yamada.m at jp.panasonic.com
Fri Jun 20 04:17:05 CEST 2014


Hi Jeroen,

On Tue, 17 Jun 2014 20:45:05 +0200
Jeroen Hofstee <dasuboot at myspectrum.nl> wrote:

> >> There is some issue with this in current master I guess. I haven't
> >> bothered too much, but I think the one liner cause gcc to be called even
> >> if both compilers are set to clang. With a separate config and make step
> >> I have never seen such behavior. I only noticed it on FreeBSD though
> >> since gcc is not installed there and actually errors, so it might be
> >> awk / sed related as well.
> >>
> >> Anyway, perhaps rings a bell...
> >
> > Could you tell me how to reproduce the problem?
> >
> > As far as I tested on FreeBSD where gcc is not installed,
> > I do not see that problem.
> >
> > This is my repeat steps.
> > It fails on the halfway, but at least Clang is used for both HOSTCC and CC.
> 
> Weird, below is my build output on current master with some floating
> patches to make the build succeed [1] (well I didn't send the time.h yet
> since I don't understand how linux gets away with that at the moment)
> 
> As mentioned I have no clue why it fails and haven't looked into it.
> Just noticed it didn't work.
> 
> [1] https://github.com/jhofstee/u-boot/tree/FreeBSD
> 



I followd the same steps as you did,
using your GitHub repository.

In my test, gcc was not called during the build.


My log is as follows:


$ git clone  git at github.com:jhofstee/u-boot.git u-boot-bsd
$ cd u-boot-bsd
$ git checkout -b FreeBSD origin/FreeBSD
$ git branch
* FreeBSD
   master
$ git rev-parse HEAD
91882055567ee0c5581ee7c5b9e707dd5ad99142
$ uname -a
FreeBSD collie.diag.org 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     root at snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
$ gcc -v
-bash: gcc: command not found
$ cc -v
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
Target: x86_64-unknown-freebsd10.0
Thread model: posix
$ gmake -v
GNU Make 3.82
Built for amd64-portbld-freebsd10.0
Copyright (C) 2010  Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ gmake CC="cc" HOSTCC="cc" V=1 NO_SDL=1 sandbox_config tools
set -e; \
for i in sandbox_config tools; do \
	gmake -f /usr/home/yamada/workspace/u-boot-bsd/Makefile $i; \
done
Configuring for sandbox board...
  cc -x c -DDO_DEPS_ONLY -M -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -Os  -fno-stack-protector -g -Wno-format-nonliteral   -D__KERNEL__   -DCONFIG_SANDBOX -D__SANDBOX__ -U_FORTIFY_SOURCE -DCONFIG_ARCH_MAP_SYSMEM -DCONFIG_SYS_GENERIC_BOARD -DSANDBOX_NO_SDL  -pipe -Iinclude  -I/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include  -nostdinc -isystem /usr/lib/include -MQ include/autoconf.mk /usr/home/yamada/workspace/u-boot-bsd/include/common.h > include/autoconf.mk.dep || rm include/autoconf.mk.dep
  cc -E -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -Os  -fno-stack-protector -g -Wno-format-nonliteral   -D__KERNEL__   -DCONFIG_SANDBOX -D__SANDBOX__ -U_FORTIFY_SOURCE -DCONFIG_ARCH_MAP_SYSMEM -DCONFIG_SYS_GENERIC_BOARD -DSANDBOX_NO_SDL  -pipe -Iinclude  -I/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include  -nostdinc -isystem /usr/lib/include -DDO_DEPS_ONLY -dM /usr/home/yamada/workspace/u-boot-bsd/include/common.h > include/autoconf.mk.tmp && sed -n -f /usr/home/yamada/workspace/u-boot-bsd/tools/scripts/define2mk.sed include/autoconf.mk.tmp > include/autoconf.mk; rm include/autoconf.mk.tmp
set -e; : '  CHK     include/config/uboot.release'; mkdir -p include/config/; 	echo "2014.07-rc3$(sh /usr/home/yamada/workspace/u-boot-bsd/scripts/setlocalversion /usr/home/yamada/workspace/u-boot-bsd)" < Makefile > include/config/uboot.release.tmp; if [ -r include/config/uboot.release ] && cmp -s include/config/uboot.release include/config/uboot.release.tmp; then rm -f include/config/uboot.release.tmp; else : '  UPD     include/config/uboot.release'; mv -f include/config/uboot.release.tmp include/config/uboot.release; fi
set -e; : '  CHK     include/generated/version_autogenerated.h'; mkdir -p include/generated/; 	(echo \#define PLAIN_VERSION \"2014.07-rc3-g9188205\"; echo \#define U_BOOT_VERSION \"U-Boot \" PLAIN_VERSION; echo \#define CC_VERSION_STRING \"$(cc --version | head -n 1)\"; echo \#define LD_VERSION_STRING \"$(ld --version | head -n 1)\"; ) < include/config/uboot.release > include/generated/version_autogenerated.h.tmp; if [ -r include/generated/version_autogenerated.h ] && cmp -s include/generated/version_autogenerated.h include/generated/version_autogenerated.h.tmp; then rm -f include/generated/version_autogenerated.h.tmp; else : '  UPD     include/generated/version_autogenerated.h'; mv -f include/generated/version_autogenerated.h.tmp include/generated/version_autogenerated.h; fi
set -e; : '  CHK     include/generated/timestamp_autogenerated.h'; mkdir -p include/generated/; 	(LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"'; LC_ALL=C date +'#define U_BOOT_TIME "%T"') < /usr/home/yamada/workspace/u-boot-bsd/Makefile > include/generated/timestamp_autogenerated.h.tmp; if [ -r include/generated/timestamp_autogenerated.h ] && cmp -s include/generated/timestamp_autogenerated.h include/generated/timestamp_autogenerated.h.tmp; then rm -f include/generated/timestamp_autogenerated.h.tmp; else : '  UPD     include/generated/timestamp_autogenerated.h'; mv -f include/generated/timestamp_autogenerated.h.tmp include/generated/timestamp_autogenerated.h; fi
gmake -f scripts/Makefile.build obj=scripts/basic
  cc -Wp,-MD,scripts/basic/.fixdep.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer     -o scripts/basic/fixdep scripts/basic/fixdep.c  
rm -f .tmp_quiet_recordmcount
gmake -f scripts/Makefile.build obj=.
mkdir -p lib/
  cc -Wp,-MD,lib/.asm-offsets.s.d  -nostdinc -isystem /usr/lib/include -Iinclude  -I/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0 -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -Os -fno-stack-protector -g -Wno-format-nonliteral -DCONFIG_SANDBOX -D__SANDBOX__ -U_FORTIFY_SOURCE -DCONFIG_ARCH_MAP_SYSMEM -DCONFIG_SYS_GENERIC_BOARD -DSANDBOX_NO_SDL -pipe -DDO_DEPS_ONLY    -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(asm_offsets)"  -D"KBUILD_MODNAME=KBUILD_STR(asm_offsets)"  -fverbose-asm -S -o lib/asm-offsets.s lib/asm-offsets.c
mkdir -p include/generated/
  	(set -e; echo "#ifndef __GENERIC_ASM_OFFSETS_H__"; echo "#define __GENERIC_ASM_OFFSETS_H__"; echo "/*"; echo " * DO NOT MODIFY."; echo " *"; echo " * This file was generated by Kbuild"; echo " *"; echo " */"; echo ""; sed -ne 	"s:[[:space:]]*\.ascii[[:space:]]*\"\(.*\)\":\1:; /^->/{s:->#\(.*\):/* \1 */:; s:^->\([^ ]*\) [\$#]*\([-0-9]*\) \(.*\):#define \1 \2 /* \3 */:; s:^->\([^ ]*\) [\$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}" lib/asm-offsets.s; echo ""; echo "#endif" ) > include/generated/generic-asm-offsets.h
gmake -f scripts/Makefile.build obj=tools
  cc -Wp,-MD,tools/.img2srec.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE -pedantic -o tools/img2srec tools/img2srec.c  
  cc -Wp,-MD,tools/.aisimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/aisimage.o tools/aisimage.c
  cc -Wp,-MD,tools/.atmelimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/atmelimage.o tools/atmelimage.c
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/common/image-fit.c>" >tools/common/image-fit.c
  cc -Wp,-MD,tools/common/.image-fit.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/common/image-fit.o tools/common/image-fit.c
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/common/image-sig.c>" >tools/common/image-sig.c
  cc -Wp,-MD,tools/common/.image-sig.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/common/image-sig.o tools/common/image-sig.c
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/common/image.c>" >tools/common/image.c
  cc -Wp,-MD,tools/common/.image.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/common/image.o tools/common/image.c
  cc -Wp,-MD,tools/.default_image.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/default_image.o tools/default_image.c
  cc -Wp,-MD,tools/.dumpimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/dumpimage.o tools/dumpimage.c
  cc -Wp,-MD,tools/.fit_check_sign.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/fit_check_sign.o tools/fit_check_sign.c
  cc -Wp,-MD,tools/.fit_common.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/fit_common.o tools/fit_common.c
  cc -Wp,-MD,tools/.fit_image.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/fit_image.o tools/fit_image.c
  cc -Wp,-MD,tools/.fit_info.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/fit_info.o tools/fit_info.c
  cc -Wp,-MD,tools/.gpimage-common.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/gpimage-common.o tools/gpimage-common.c
  cc -Wp,-MD,tools/.gpimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/gpimage.o tools/gpimage.c
  cc -Wp,-MD,tools/.image-host.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/image-host.o tools/image-host.c
  cc -Wp,-MD,tools/.imagetool.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/imagetool.o tools/imagetool.c
  cc -Wp,-MD,tools/.imximage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/imximage.o tools/imximage.c
  cc -Wp,-MD,tools/.kwbimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/kwbimage.o tools/kwbimage.c
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/lib/crc32.c>" >tools/lib/crc32.c
  cc -Wp,-MD,tools/lib/.crc32.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE -pedantic -c -o tools/lib/crc32.o tools/lib/crc32.c
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/lib/fdtdec.c>" >tools/lib/fdtdec.c
  cc -Wp,-MD,tools/lib/.fdtdec.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/lib/fdtdec.o tools/lib/fdtdec.c
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/lib/libfdt/fdt.c>" >tools/lib/libfdt/fdt.c
  cc -Wp,-MD,tools/lib/libfdt/.fdt.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/lib/libfdt/fdt.o tools/lib/libfdt/fdt.c
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/lib/libfdt/fdt_ro.c>" >tools/lib/libfdt/fdt_ro.c
  cc -Wp,-MD,tools/lib/libfdt/.fdt_ro.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/lib/libfdt/fdt_ro.o tools/lib/libfdt/fdt_ro.c
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/lib/libfdt/fdt_rw.c>" >tools/lib/libfdt/fdt_rw.c
  cc -Wp,-MD,tools/lib/libfdt/.fdt_rw.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/lib/libfdt/fdt_rw.o tools/lib/libfdt/fdt_rw.c
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/lib/libfdt/fdt_strerror.c>" >tools/lib/libfdt/fdt_strerror.c
  cc -Wp,-MD,tools/lib/libfdt/.fdt_strerror.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/lib/libfdt/fdt_strerror.o tools/lib/libfdt/fdt_strerror.c
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/lib/libfdt/fdt_wip.c>" >tools/lib/libfdt/fdt_wip.c
  cc -Wp,-MD,tools/lib/libfdt/.fdt_wip.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/lib/libfdt/fdt_wip.o tools/lib/libfdt/fdt_wip.c
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/lib/md5.c>" >tools/lib/md5.c
  cc -Wp,-MD,tools/lib/.md5.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE -pedantic -c -o tools/lib/md5.o tools/lib/md5.c
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/lib/rsa/rsa-checksum.c>" >tools/lib/rsa/rsa-checksum.c
  cc -Wp,-MD,tools/lib/rsa/.rsa-checksum.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/lib/rsa/rsa-checksum.o tools/lib/rsa/rsa-checksum.c
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/lib/rsa/rsa-sign.c>" >tools/lib/rsa/rsa-sign.c
  cc -Wp,-MD,tools/lib/rsa/.rsa-sign.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/lib/rsa/rsa-sign.o tools/lib/rsa/rsa-sign.c
In file included from tools/lib/rsa/rsa-sign.c:1:
/usr/home/yamada/workspace/u-boot-bsd/lib/rsa/rsa-sign.c:77:6: warning: variable 'ret' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
        if (!rsa) {
            ^~~~
/usr/home/yamada/workspace/u-boot-bsd/lib/rsa/rsa-sign.c:94:9: note: uninitialized use occurs here
        return ret;
               ^~~
/usr/home/yamada/workspace/u-boot-bsd/lib/rsa/rsa-sign.c:77:2: note: remove the 'if' if its condition is always false
        if (!rsa) {
        ^~~~~~~~~~~
/usr/home/yamada/workspace/u-boot-bsd/lib/rsa/rsa-sign.c:48:9: note: initialize the variable 'ret' to silence this warning
        int ret;
               ^
                = 0
1 warning generated.
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/lib/rsa/rsa-verify.c>" >tools/lib/rsa/rsa-verify.c
  cc -Wp,-MD,tools/lib/rsa/.rsa-verify.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/lib/rsa/rsa-verify.o tools/lib/rsa/rsa-verify.c
In file included from tools/lib/rsa/rsa-verify.c:1:
/usr/home/yamada/workspace/u-boot-bsd/lib/rsa/rsa-verify.c:59:27: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
        for (i = key->len - 1; i >= 0; i--) {
                               ~ ^  ~
1 warning generated.
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/lib/sha1.c>" >tools/lib/sha1.c
  cc -Wp,-MD,tools/lib/.sha1.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE -pedantic -c -o tools/lib/sha1.o tools/lib/sha1.c
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/lib/sha256.c>" >tools/lib/sha256.c
  cc -Wp,-MD,tools/lib/.sha256.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE -pedantic -c -o tools/lib/sha256.o tools/lib/sha256.c
  cc -Wp,-MD,tools/.mkenvimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/mkenvimage.o tools/mkenvimage.c
  cc -Wp,-MD,tools/.mkimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/mkimage.o tools/mkimage.c
  cc -Wp,-MD,tools/.mxsimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/mxsimage.o tools/mxsimage.c
  cc -Wp,-MD,tools/.omapimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/omapimage.o tools/omapimage.c
  cc -Wp,-MD,tools/.os_support.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/os_support.o tools/os_support.c
  cc -Wp,-MD,tools/.pbl_crc32.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/pbl_crc32.o tools/pbl_crc32.c
  cc -Wp,-MD,tools/.pblimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/pblimage.o tools/pblimage.c
  cc -Wp,-MD,tools/.ublimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/ublimage.o tools/ublimage.c
  cc  -o tools/mkenvimage tools/mkenvimage.o tools/os_support.o tools/lib/crc32.o  
  cc  -o tools/dumpimage tools/aisimage.o tools/atmelimage.o tools/common/image-sig.o tools/lib/crc32.o tools/default_image.o tools/lib/fdtdec.o tools/fit_common.o tools/fit_image.o tools/gpimage.o tools/gpimage-common.o tools/common/image-fit.o tools/image-host.o tools/common/image.o tools/imagetool.o tools/imximage.o tools/kwbimage.o tools/lib/md5.o tools/mxsimage.o tools/omapimage.o tools/os_support.o tools/pblimage.o tools/pbl_crc32.o tools/lib/sha1.o tools/lib/sha256.o tools/ublimage.o tools/lib/libfdt/fdt.o tools/lib/libfdt/fdt_ro.o tools/lib/libfdt/fdt_rw.o tools/lib/libfdt/fdt_strerror.o tools/lib/libfdt/fdt_wip.o tools/lib/rsa/rsa-sign.o tools/lib/rsa/rsa-verify.o tools/lib/rsa/rsa-checksum.o tools/dumpimage.o  -lssl -lcrypto
  cc  -o tools/mkimage tools/aisimage.o tools/atmelimage.o tools/common/image-sig.o tools/lib/crc32.o tools/default_image.o tools/lib/fdtdec.o tools/fit_common.o tools/fit_image.o tools/gpimage.o tools/gpimage-common.o tools/common/image-fit.o tools/image-host.o tools/common/image.o tools/imagetool.o tools/imximage.o tools/kwbimage.o tools/lib/md5.o tools/mxsimage.o tools/omapimage.o tools/os_support.o tools/pblimage.o tools/pbl_crc32.o tools/lib/sha1.o tools/lib/sha256.o tools/ublimage.o tools/lib/libfdt/fdt.o tools/lib/libfdt/fdt_ro.o tools/lib/libfdt/fdt_rw.o tools/lib/libfdt/fdt_strerror.o tools/lib/libfdt/fdt_wip.o tools/lib/rsa/rsa-sign.o tools/lib/rsa/rsa-verify.o tools/lib/rsa/rsa-checksum.o tools/mkimage.o  -lssl -lcrypto
  cc  -o tools/fit_info tools/aisimage.o tools/atmelimage.o tools/common/image-sig.o tools/lib/crc32.o tools/default_image.o tools/lib/fdtdec.o tools/fit_common.o tools/fit_image.o tools/gpimage.o tools/gpimage-common.o tools/common/image-fit.o tools/image-host.o tools/common/image.o tools/imagetool.o tools/imximage.o tools/kwbimage.o tools/lib/md5.o tools/mxsimage.o tools/omapimage.o tools/os_support.o tools/pblimage.o tools/pbl_crc32.o tools/lib/sha1.o tools/lib/sha256.o tools/ublimage.o tools/lib/libfdt/fdt.o tools/lib/libfdt/fdt_ro.o tools/lib/libfdt/fdt_rw.o tools/lib/libfdt/fdt_strerror.o tools/lib/libfdt/fdt_wip.o tools/lib/rsa/rsa-sign.o tools/lib/rsa/rsa-verify.o tools/lib/rsa/rsa-checksum.o tools/fit_info.o  -lssl -lcrypto
  cc  -o tools/fit_check_sign tools/aisimage.o tools/atmelimage.o tools/common/image-sig.o tools/lib/crc32.o tools/default_image.o tools/lib/fdtdec.o tools/fit_common.o tools/fit_image.o tools/gpimage.o tools/gpimage-common.o tools/common/image-fit.o tools/image-host.o tools/common/image.o tools/imagetool.o tools/imximage.o tools/kwbimage.o tools/lib/md5.o tools/mxsimage.o tools/omapimage.o tools/os_support.o tools/pblimage.o tools/pbl_crc32.o tools/lib/sha1.o tools/lib/sha256.o tools/ublimage.o tools/lib/libfdt/fdt.o tools/lib/libfdt/fdt_ro.o tools/lib/libfdt/fdt_rw.o tools/lib/libfdt/fdt_strerror.o tools/lib/libfdt/fdt_wip.o tools/lib/rsa/rsa-sign.o tools/lib/rsa/rsa-verify.o tools/lib/rsa/rsa-checksum.o tools/fit_check_sign.o  -lssl -lcrypto
  cc -Wp,-MD,tools/.proftool.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -o tools/proftool tools/proftool.c  




Best Regards
Masahiro Yamada



More information about the U-Boot mailing list