lede/tools
peeweep 2e4a3b69d3 tools: mkimage: fix __u64 typedef conflict with new glibc (#1721)
tools: mkimage: fix __u64 typedef conflict with new glibc

Including "sys/stat.h" from newer glibc will cause __u64 from linux uapi
header to be included, causing compilation failure for u-boot tools
USE_HOSTCC

Remove typedef for __u64 in include/compiler.h to fix the issue.  It should be
safe because as of u-boot-2018.03, no ref to __u64 is found under u-boot tools/
directory

Error message snippet follows

	  HOSTCC  tools/mkenvimage.o
	In file included from /usr/include/asm-generic/types.h:7,
			 from /usr/include/asm/types.h:5,
			 from /usr/include/linux/types.h:5,
			 from /usr/include/linux/stat.h:5,
			 from /usr/include/bits/statx.h:30,
			 from /usr/include/sys/stat.h:446,
			 from tools/mkenvimage.c:21:
	/usr/include/asm-generic/int-ll64.h:31:42: error: conflicting types for '__u64'
	   31 | __extension__ typedef unsigned long long __u64;
	      |                                          ^~~~~
	In file included from <command-line>:
	././include/compiler.h:69:18: note: previous declaration of '__u64' was here
	   69 | typedef uint64_t __u64;
	      |                  ^~~~~
	make[5]: *** [scripts/Makefile.host:116: tools/mkenvimage.o] Error 1

Ref: https://forum.openwrt.org/t/compile-error-19-07/44423
Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1699194
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Signed-off-by: peeweep <peeweep@0x0.ee>
2019-10-09 15:20:59 +08:00
..
autoconf update source 2017-09-06 19:19:45 +08:00
automake Merge branch 'master' of https://github.com/lede-project/source 2018-01-09 14:38:15 +08:00
b43-tools sync with OpenWrt trunk 2018-09-07 13:43:55 +08:00
bc update source 2017-09-06 19:19:45 +08:00
bison Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
ccache Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
cmake Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
coreutils Merge branch 'master' of https://github.com/lede-project/source 2018-01-09 14:38:15 +08:00
dosfstools Merge branch 'master' of https://github.com/lede-project/source 2018-01-09 14:38:15 +08:00
e2fsprogs Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
elftosb update source 2017-09-06 19:19:45 +08:00
expat Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
findutils sync with OpenWrt v18.06.1 stable new R8.1 version 2018-08-23 17:40:23 +08:00
firmware-utils Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
flex Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
flock update source 2017-09-06 19:19:45 +08:00
genext2fs update source 2017-09-06 19:19:45 +08:00
gengetopt update source 2017-09-06 19:19:45 +08:00
gmp update source 2017-09-06 19:19:45 +08:00
gptfdisk fix vhdx and kvm qcow2 support 2019-01-03 21:06:34 +08:00
include Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
isl update source 2017-09-06 19:19:45 +08:00
kernel2minor sync with OpenWrt trunk 2018-09-07 13:43:55 +08:00
libelf update source 2017-09-06 19:19:45 +08:00
libressl Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
libtool Merge branch 'master' of https://github.com/lede-project/source 2018-01-09 14:38:15 +08:00
lzma update source 2017-09-06 19:19:45 +08:00
lzma-old sync with OpenWrt v18.06.1 stable new R8.1 version 2018-08-23 17:40:23 +08:00
m4 sync with OpenWrt v18.06.1 stable new R8.1 version 2018-08-23 17:40:23 +08:00
make-ext4fs sync with OpenWrt v18.06.1 stable new R8.1 version 2018-08-23 17:40:23 +08:00
missing-macros update source 2017-09-06 19:19:45 +08:00
mkimage tools: mkimage: fix __u64 typedef conflict with new glibc (#1721) 2019-10-09 15:20:59 +08:00
mklibs update source 2017-09-06 19:19:45 +08:00
mm-macros sync with OpenWrt v18.06.1 stable new R8.1 version 2018-08-23 17:40:23 +08:00
mpc Merge branch 'master' of github.com:lede-project/source 2018-04-23 18:50:49 +08:00
mpfr Merge branch 'master' of github.com:lede-project/source 2018-04-23 18:50:49 +08:00
mtd-utils sync with OpenWrt v18.06.1 stable new R8.1 version 2018-08-23 17:40:23 +08:00
mtools Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
padjffs2 update source 2017-09-06 19:19:45 +08:00
patch Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
patch-image update source 2017-09-06 19:19:45 +08:00
patchelf update source 2017-09-06 19:19:45 +08:00
pkg-config Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
popt fix vhdx and kvm qcow2 support 2019-01-03 21:06:34 +08:00
qemu Merge branch 'master' of https://github.com/lede-project/source 2018-01-09 14:38:15 +08:00
quilt update source 2017-09-06 19:19:45 +08:00
scons Merge branch 'master' of github.com:lede-project/source 2018-04-23 18:50:49 +08:00
sdimage Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
sed sync with OpenWrt v18.06.1 stable new R8.1 version 2018-08-23 17:40:23 +08:00
sparse sync with OpenWrt trunk 2018-09-07 13:43:55 +08:00
squashfs Merge branch 'master' of https://github.com/lede-project/source 2018-01-09 14:38:15 +08:00
squashfs4 sync with OpenWrt v18.06.1 stable new R8.1 version 2018-08-23 17:40:23 +08:00
sstrip Merge branch 'master' of https://github.com/lede-project/source 2018-01-09 14:38:15 +08:00
tar Merge branch 'master' of github.com:lede-project/source 2018-04-23 18:50:49 +08:00
upslug2 update source 2017-09-06 19:19:45 +08:00
wrt350nv2-builder update source 2017-09-06 19:19:45 +08:00
xz Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
zlib sync with OpenWrt v18.06.1 stable new R8.1 version 2018-08-23 17:40:23 +08:00
Makefile fix vhdx and kvm qcow2 support 2019-01-03 21:06:34 +08:00