You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/tools
Yousong Zhou f54bc3985a 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>
5 years ago
..
autoconf treewide: clean up download hashes 8 years ago
automake add PKG_CPE_ID ids to package and tools 7 years ago
b43-tools b43-tools: update to latest git HEAD 6 years ago
bc Revert "bc: update to 1.07.1" 5 years ago
bison tools/bison: Update to 3.4.1 5 years ago
cbootimage tools: add cbootimage for tegra 5 years ago
cbootimage-configs tools: add cbootimage-configs for tegra 5 years ago
ccache ccache: update to 3.7.2 5 years ago
cmake tools/cmake: Update to 3.15.1 5 years ago
coreutils add PKG_CPE_ID ids to package and tools 7 years ago
dosfstools add PKG_CPE_ID ids to package and tools 7 years ago
e2fsprogs tools/e2fsprogs: Update to 1.45.3 5 years ago
elftosb treewide: clean up download hashes 8 years ago
expat expat: Update to 2.2.7 5 years ago
findutils tools: findutils: fix compilation with glibc 2.28 6 years ago
firmware-utils firmware-utils: jcgimage: add support for 4MiB+ images 5 years ago
flex flex: Add a lex symlink 6 years ago
flock tools: flock: add NFSv4 compatibility 8 years ago
genext2fs treewide: clean up download hashes 8 years ago
gengetopt tools/gengetopt: Update to 2.23 5 years ago
gmp tools: gmp: Update to 6.1.2 7 years ago
include tools: Update endian definitions for Mac OSX 5 years ago
isl tools/isl: update to 0.20 5 years ago
kernel2minor tools: kernel2minor: update to latest version 6 years ago
libelf tools: libelf: fix headers to trigger -Wundef warnings 5 years ago
libressl tools: libressl: fix compilation for non-glibc clib (FS#2400) 5 years ago
libtool add PKG_CPE_ID ids to package and tools 7 years ago
lzma treewide: clean up download hashes 8 years ago
lzma-old tools/zlib: move zlib build to tools 6 years ago
m4 tools: m4: fix compilation with glibc 2.28 6 years ago
make-ext4fs tools/make-ext4fs: Fix build on MacOSX 6 years ago
missing-macros tools: remove a bunch of unused automake macros 9 years ago
mkimage tools: mkimage: fix __u64 typedef conflict with new glibc 5 years ago
mklibs treewide: clean up download hashes 8 years ago
mm-macros tools/mm-macros: Update to 0.9.12 6 years ago
mpc tools/mpc: Update to 1.1.0 6 years ago
mpfr tools/mpfr: Update to 4.0.2 5 years ago
mtd-utils tools/mtd-utils: update to 2.1.1 5 years ago
mtools tools/mtools: Update to 4.0.23 5 years ago
padjffs2 tools: padjffs2: add option to output padding data to stdout 8 years ago
patch tools/patch: apply upstream patch for cve-2019-13638 5 years ago
patch-image tools: patch-image: fix file descriptor leak. 7 years ago
patchelf treewide: clean up download hashes 8 years ago
pkg-config tools/pkg-config: Handle variable substitution of 'bindir' to redirect to STAGING_DIR/bin 6 years ago
qemu add PKG_CPE_ID ids to package and tools 7 years ago
quilt treewide: clean up download hashes 8 years ago
scons scons: update to 3.0.5 5 years ago
sdimage tools/sdimage: Fix build with host Linux headers < 3.18 5 years ago
sed tools/sed: Update to 4.7 5 years ago
sparse sparse: updated to version 0.5.2 6 years ago
squashfs add PKG_CPE_ID ids to package and tools 7 years ago
squashfskit4 tools/squashfskit: fix version detection on non-linux system 5 years ago
sstrip tools/sstrip: Fix compile under standard linux. 7 years ago
tar tools: tar: update to version 1.32 5 years ago
upslug2 upslug2: Update to git repository 5 years ago
wrt350nv2-builder tools: remove static linking support 9 years ago
xz tools/xz: Compile with PIC to fix linking errors 5 years ago
zip tools: zip: add option for reproducible archives 5 years ago
zlib tools: zlib: do not hardcode the install prefix in zlib.pc 6 years ago
Makefile tools: cbootimage: depend on automake 5 years ago