>>> host-cramfs 1.1 Extracting gzip -d -c /data/buildroot/buildroot-test/instance-0/dl/cramfs-1.1.tar.gz | /data/buildroot/buildroot-test/instance-0/output/host/bin/tar --strip-components=1 -C /data/buildroot/buildroot-test/instance-0/output/build/host-cramfs-1.1 -xf - >>> host-cramfs 1.1 Patching Applying 0001-endian.patch using patch: patching file mkcramfs.c patching file cramfsck.c Applying 0002-cygwin_IO.patch using patch: patching file cramfsck.c Applying 0003-fix-missing-types.patch using patch: patching file mkcramfs.c >>> host-cramfs 1.1 Configuring >>> host-cramfs 1.1 Building PATH="/data/buildroot/buildroot-test/instance-0/output/host/bin:/data/buildroot/buildroot-test/instance-0/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-0/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-0/output/host/lib/pkgconfig:/data/buildroot/buildroot-test/instance-0/output/host/share/pkgconfig" /usr/bin/make -j4 CFLAGS="-O2 -I/data/buildroot/buildroot-test/instance-0/output/host/include -Wall -O2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" LDFLAGS="-L/data/buildroot/buildroot-test/instance-0/output/host/lib -Wl,-rpath,/data/buildroot/buildroot-test/instance-0/output/host/lib" -C /data/buildroot/buildroot-test/instance-0/output/build/host-cramfs-1.1 make[1]: Entering directory '/data/buildroot/buildroot-test/instance-0/output/build/host-cramfs-1.1' gcc -O2 -I/data/buildroot/buildroot-test/instance-0/output/host/include -Wall -O2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I. -L/data/buildroot/buildroot-test/instance-0/output/host/lib -Wl,-rpath,/data/buildroot/buildroot-test/instance-0/output/host/lib mkcramfs.c -lz -o mkcramfs gcc -O2 -I/data/buildroot/buildroot-test/instance-0/output/host/include -Wall -O2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I. -L/data/buildroot/buildroot-test/instance-0/output/host/lib -Wl,-rpath,/data/buildroot/buildroot-test/instance-0/output/host/lib cramfsck.c -lz -o cramfsck mkcramfs.c: In function 'parse_directory': mkcramfs.c:249:40: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] dircount = scandir(name, &dirlist, 0, cramsort); ^~~~~~~~ In file included from /usr/include/features.h:428, from /usr/include/sys/types.h:25, from mkcramfs.c:26: /usr/include/dirent.h:263:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int __REDIRECT (scandir, ^~~~~~~~~~ mkcramfs.c:291:15: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] entry->name = strdup(dirent->d_name); ^ mkcramfs.c: In function 'write_superblock': mkcramfs.c:447:16: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [-Wpointer-sign] strncpy(super->name, opt_name, sizeof(super->name)); ~~~~~^~~~~~ In file included from mkcramfs.c:35: /usr/include/string.h:124:14: note: expected 'char * restrict' but argument is of type 'u8 *' {aka 'unsigned char *'} extern char *strncpy (char *__restrict __dest, ^~~~~~~ mkcramfs.c:449:16: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [-Wpointer-sign] strncpy(super->name, "Compressed", sizeof(super->name)); ~~~~~^~~~~~ In file included from mkcramfs.c:35: /usr/include/string.h:124:14: note: expected 'char * restrict' but argument is of type 'u8 *' {aka 'unsigned char *'} extern char *strncpy (char *__restrict __dest, ^~~~~~~ mkcramfs.c: In function 'print_node': mkcramfs.c:497:33: warning: implicit declaration of function 'major' [-Wimplicit-function-declaration] snprintf(info, 10, "%4d,%4d", major(e->size), minor(e->size)); ^~~~~ mkcramfs.c:497:49: warning: implicit declaration of function 'minor'; did you mean 'mincore'? [-Wimplicit-function-declaration] snprintf(info, 10, "%4d,%4d", major(e->size), minor(e->size)); ^~~~~ mincore mkcramfs.c: In function 'write_directory_structure': mkcramfs.c:532:29: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] size_t len = strlen(entry->name); ~~~~~^~~~~~ In file included from mkcramfs.c:35: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^~~~~~ mkcramfs.c: In function 'do_compress': mkcramfs.c:651:25: warning: pointer targets in passing argument 1 of 'compress2' differ in signedness [-Wpointer-sign] err = compress2(base + curr, &len, uncompressed, input, Z_BEST_COMPRESSION); ~~~~~^~~~~~ In file included from mkcramfs.c:38: /data/buildroot/buildroot-test/instance-0/output/host/include/zlib.h:1242:21: note: expected 'Bytef *' {aka 'unsigned char *'} but argument is of type 'char *' ZEXTERN int ZEXPORT compress2 OF((Bytef *dest, uLongf *destLen, ^~~~~~~~~ mkcramfs.c:651:39: warning: pointer targets in passing argument 3 of 'compress2' differ in signedness [-Wpointer-sign] err = compress2(base + curr, &len, uncompressed, input, Z_BEST_COMPRESSION); ^~~~~~~~~~~~ In file included from mkcramfs.c:38: /data/buildroot/buildroot-test/instance-0/output/host/include/zlib.h:1242:21: note: expected 'const Bytef *' {aka 'const unsigned char *'} but argument is of type 'char *' ZEXTERN int ZEXPORT compress2 OF((Bytef *dest, uLongf *destLen, ^~~~~~~~~ mkcramfs.c: In function 'write_data': mkcramfs.c:701:45: warning: pointer targets in passing argument 3 of 'do_compress' differ in signedness [-Wpointer-sign] offset = do_compress(base, offset, entry->name, entry->uncompressed, entry->size); ~~~~~^~~~~~ mkcramfs.c:631:21: note: expected 'const char *' but argument is of type 'unsigned char *' static unsigned int do_compress(char *base, unsigned int offset, char const *name, char *uncompressed, unsigned int size) ^~~~~~~~~~~ mkcramfs.c: In function 'main': mkcramfs.c:837:59: warning: format '%Ld' expects argument of type 'long long int', but argument 3 has type 'loff_t' {aka 'long int'} [-Wformat=] "warning: estimate of required size (upper bound) is %LdMB, but maximum image size is %uMB, we might die prematurely\n", ~~^ %ld fslen_ub >> 20, ~~~~~~~~~~~~~~ mkcramfs.c:876:27: warning: format '%d' expects argument of type 'int', but argument 2 has type 'ssize_t' {aka 'long int'} [-Wformat=] printf("Directory data: %d bytes\n", offset); ~^ ~~~~~~ %ld mkcramfs.c:883:23: warning: format '%d' expects argument of type 'int', but argument 2 has type 'ssize_t' {aka 'long int'} [-Wformat=] printf("Everything: %d kilobytes\n", offset >> 10); ~^ ~~~~~~~~~~~~ %ld mkcramfs.c:887:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=] printf("Super block: %d bytes\n", sizeof(struct cramfs_super)); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ %ld mkcramfs.c:891:29: warning: pointer targets in passing argument 2 of 'crc32' differ in signedness [-Wpointer-sign] crc = crc32(crc, (rom_image+opt_pad), (offset-opt_pad)); ~~~~~~~~~~^~~~~~~~~ In file included from mkcramfs.c:38: /data/buildroot/buildroot-test/instance-0/output/host/include/zlib.h:1725:23: note: expected 'const Bytef *' {aka 'const unsigned char *'} but argument is of type 'char *' ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len)); ^~~~~ In function 'write_superblock', inlined from 'main' at mkcramfs.c:886:2: mkcramfs.c:447:3: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation] strncpy(super->name, opt_name, sizeof(super->name)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/bin/ld: /tmp/cc6JcgmL.o: in function `main': mkcramfs.c:(.text.startup+0x6a2): undefined reference to `minor' /usr/bin/ld: mkcramfs.c:(.text.startup+0x6b0): undefined reference to `major' collect2: error: ld returned 1 exit status make[1]: *** [: mkcramfs] Error 1 make[1]: Leaving directory '/data/buildroot/buildroot-test/instance-0/output/build/host-cramfs-1.1' make: *** [package/pkg-generic.mk:226: /data/buildroot/buildroot-test/instance-0/output/build/host-cramfs-1.1/.stamp_built] Error 2 make: Leaving directory '/data/buildroot/buildroot-test/instance-0/buildroot'