Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/hfsplus-tools.spec'], chrootPath='/var/lib/mock/hfsplus-tools-540.1.linux3-4.el7-20171219225645-26183/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0logger=uid=1002) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/hfsplus-tools.spec'] with env {'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/hfsplus-tools-540.1.linux3-4.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/hfsplus-tools.spec'], chrootPath='/var/lib/mock/hfsplus-tools-540.1.linux3-4.el7-20171219225645-26183/root'shell=Falseuid=1002env={'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0private_network=Truelogger=printOutput=False) Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/hfsplus-tools.spec'] with env {'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.bKkjaR + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf diskdev_cmds-540.1.linux3 + /usr/bin/gzip -dc /builddir/build/SOURCES/diskdev_cmds-540.1.linux3.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd diskdev_cmds-540.1.linux3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + find . -type f -name '*.[ch]' -exec chmod -c -x '{}' + mode of './fsck_hfs.tproj/dfalib/BTreeScanner.c' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './fsck_hfs.tproj/dfalib/HardLinkCheck.c' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './fsck_hfs.tproj/dfalib/hfs_endian.h' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './fsck_hfs.tproj/dfalib/BTreeScanner.h' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './fsck_hfs.tproj/dfalib/SRebuildBTree.c' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './fsck_hfs.tproj/dfalib/hfs_endian.c' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) + cp /builddir/build/SOURCES/apsl-2.0.txt . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.uDWTMD + umask 022 + cd /builddir/build/BUILD + cd diskdev_cmds-540.1.linux3 + export 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches ' + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches ' + make -j8 -f Makefile for d in BlocksRunTime newfs_hfs.tproj fsck_hfs.tproj; do make -C $d -f Makefile.lnx all; done make[1]: Entering directory `/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime' clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o data.o data.c clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o runtime.o runtime.c runtime.c:72:22: warning: unused function 'OSAtomicCompareAndSwapLong' [-Wunused-function] static __inline bool OSAtomicCompareAndSwapLong(long oldl, long newl, long volatile *dst) { ^ 1 warning generated. ar rc libBlocksRunTime.a data.o runtime.o make[1]: Leaving directory `/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime' make[1]: Entering directory `/builddir/build/BUILD/diskdev_cmds-540.1.linux3/newfs_hfs.tproj' clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o hfs_endian.o hfs_endian.c clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o makehfs.o makehfs.c clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o newfs_hfs.o newfs_hfs.c newfs_hfs.c:206:17: warning: format specifies type 'long long' but the argument has type 'unsigned long' [-Wformat] progname, gJournalSize/1024, JOURNAL_DEFAULT_SIZE/1024); ^~~~~~~~~~~~~~~~~ newfs_hfs.c:907:20: warning: format specifies type 'long long' but the argument has type 'unsigned long' [-Wformat] progname, gJournalSize/1024, JOURNAL_DEFAULT_SIZE/1024); ^~~~~~~~~~~~~~~~~ newfs_hfs.c:1057:51: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat] printf("%llu sectors (%u bytes per sector)\n", dip->physTotalSectors, dip->physSectorSize); ~~~~ ^~~~~~~~~~~~~~~~~~~~~ %lu makehfs.c:1383:32: warning: format specifies type 'unsigned long long' but the argument has type 'off_t' (aka 'long') [-Wformat] err(1, "read (sector %llu)", physSector); ~~~~ ^~~~~~~~~~ %ld makehfs.c:1386:33: warning: format specifies type 'unsigned long long' but the argument has type 'off_t' (aka 'long') [-Wformat] err(1, "write (sector %llu)", physSector); ~~~~ ^~~~~~~~~~ %ld 3 warnings generated. 2 warnings generated. clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -Wl,--build-id -L/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -o newfs_hfs hfs_endian.o makehfs.o newfs_hfs.o -lcrypto /usr/bin/ld: cannot find crtbegin.o: No such file or directory /usr/bin/ld: cannot find -lgcc /usr/bin/ld: cannot find -lgcc_s clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [newfs_hfs] Error 1 make[1]: Leaving directory `/builddir/build/BUILD/diskdev_cmds-540.1.linux3/newfs_hfs.tproj' make[1]: Entering directory `/builddir/build/BUILD/diskdev_cmds-540.1.linux3/fsck_hfs.tproj' clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o fsck_hfs.o fsck_hfs.c clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o utilities.o utilities.c clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o cache.o cache.c clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o fsck_messages.o fsck_messages.c clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o fsck_debug.o fsck_debug.c clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o fsck_hfs_strings.o fsck_hfs_strings.c clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o fsck_strings.o fsck_strings.c make -C dfalib -f Makefile.lnx libdfa.a make[2]: Entering directory `/builddir/build/BUILD/diskdev_cmds-540.1.linux3/fsck_hfs.tproj/dfalib' clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o hfs_endian.o hfs_endian.c clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o BlockCache.o BlockCache.c clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o BTree.o BTree.c clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o BTreeAllocate.o BTreeAllocate.c cache.c:1241:13: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if (result < 0) return (errno); ~~~~~~ ^ ~ cache.c:1245:13: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if (result < 0) return (errno); ~~~~~~ ^ ~ cache.c:1269:13: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if (result < 0) return (errno); ~~~~~~ ^ ~ cache.c:1274:13: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if (result < 0) return (errno); ~~~~~~ ^ ~ utilities.c:228:29: warning: the value of the size argument in 'strncat' is too large, might lead to a buffer overflow [-Wstrncat-size] (void)strncat(rawbuf, "/", sizeof(rawbuf)); ^~~~~~~~~~~~~~ utilities.c:228:29: note: change the argument to be the free space in the destination buffer minus the terminating null byte (void)strncat(rawbuf, "/", sizeof(rawbuf)); ^~~~~~~~~~~~~~ sizeof(rawbuf) - strlen(rawbuf) - 1 utilities.c:232:32: warning: the value of the size argument in 'strncat' is too large, might lead to a buffer overflow [-Wstrncat-size] (void)strncat(rawbuf, &dp[1], sizeof(rawbuf)); ^~~~~~~~~~~~~~ utilities.c:232:32: note: change the argument to be the free space in the destination buffer minus the terminating null byte (void)strncat(rawbuf, &dp[1], sizeof(rawbuf)); ^~~~~~~~~~~~~~ sizeof(rawbuf) - strlen(rawbuf) - 1 fsck_hfs.c:315:17: warning: unused variable 'fsinfo' [-Wunused-variable] struct statfs *fsinfo; ^ fsck_hfs.c:317:6: warning: unused variable 'result' [-Wunused-variable] int result; ^ fsck_hfs.c:318:6: warning: unused variable 'i' [-Wunused-variable] int i; ^ fsck_hfs.c:721:10: warning: unused variable 'dsize' [-Wunused-variable] size_t dsize = sizeof(memSize); ^ fsck_hfs.c:722:7: warning: unused variable 'rv' [-Wunused-variable] int rv; ^ utilities.c:550:71: error: passing 'void *' to parameter of incompatible type 'va_list' (aka '__builtin_va_list') print_to_mem(DO_STR, "\n%s: ", cdevname ? cdevname : "UNKNOWN-DEV", NULL); ^~~~ /usr/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL' # define NULL ((void*)0) ^~~~~~~~~~ utilities.c:299:71: note: passing argument to parameter 'ap' here void print_to_mem(int type, const char *fmt, const char *str, va_list ap); ^ utilities.c:551:57: error: passing 'void *' to parameter of incompatible type 'va_list' (aka '__builtin_va_list') print_to_mem(DO_STR, "fsck_hfs run at %s", ctime(&t), NULL); ^~~~ /usr/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL' # define NULL ((void*)0) ^~~~~~~~~~ utilities.c:299:71: note: passing argument to parameter 'ap' here void print_to_mem(int type, const char *fmt, const char *str, va_list ap); ^ utilities.c:713:2: error: passing 'void *' to parameter of incompatible type 'va_list' (aka '__builtin_va_list') FLOG("%s: ", cdevname); ^~~~~~~~~~~~~~~~~~~~~~ utilities.c:673:33: note: expanded from macro 'FLOG' print_to_mem(DO_STR, fmt, str, NULL); \ ^~~~ /usr/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL' # define NULL ((void*)0) ^~~~~~~~~~ utilities.c:579:66: note: passing argument to parameter 'ap' here print_to_mem(int type, const char *fmt, const char *str, va_list ap) ^ utilities.c:723:2: error: passing 'void *' to parameter of incompatible type 'va_list' (aka '__builtin_va_list') FLOG("\n%s: UNEXPECTED INCONSISTENCY; RUN fsck_hfs MANUALLY.\n", cdevname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utilities.c:673:33: note: expanded from macro 'FLOG' print_to_mem(DO_STR, fmt, str, NULL); \ ^~~~ /usr/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL' # define NULL ((void*)0) ^~~~~~~~~~ utilities.c:579:66: note: passing argument to parameter 'ap' here print_to_mem(int type, const char *fmt, const char *str, va_list ap) ^ utilities.c:752:3: error: passing 'void *' to parameter of incompatible type 'va_list' (aka '__builtin_va_list') FLOG("%s: ", cdevname); ^~~~~~~~~~~~~~~~~~~~~~ utilities.c:673:33: note: expanded from macro 'FLOG' print_to_mem(DO_STR, fmt, str, NULL); \ ^~~~ /usr/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL' # define NULL ((void*)0) ^~~~~~~~~~ utilities.c:579:66: note: passing argument to parameter 'ap' here print_to_mem(int type, const char *fmt, const char *str, va_list ap) ^ clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o BTreeMiscOps.o BTreeMiscOps.c 2 warnings and 5 errors generated. make[1]: *** [utilities.o] Error 1 make[1]: *** Waiting for unfinished jobs.... 4 warnings generated. clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o BTreeNodeOps.o BTreeNodeOps.c clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o BTreeScanner.o BTreeScanner.c 5 warnings generated. clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o BTreeTreeOps.o BTreeTreeOps.c clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o CatalogCheck.o CatalogCheck.c clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o HardLinkCheck.o HardLinkCheck.c clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o SBTree.o SBTree.c BTreeTreeOps.c:441:13: warning: passing 'char [69]' to parameter of type 'ConstStr255Param' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] DebugStr("InsertLevel: New root from primary key, update from secondary key..."); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./SRuntime.h:139:27: note: passing argument to parameter 'debuggerMsg' here DebugStr(ConstStr255Param debuggerMsg); ^ clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o SControl.o SControl.c clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o SVerify1.o SVerify1.c clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o SVerify2.o SVerify2.c CatalogCheck.c:1696:29: warning: format specifies type 'long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat] sprintf(oldSizeStr, "%qd", oldSize); ~~~ ^~~~~~~ %lu CatalogCheck.c:1697:29: warning: format specifies type 'long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat] sprintf(newSizeStr, "%qd", newSize); ~~~ ^~~~~~~ %lu SBTree.c:105:13: warning: passing 'char [31]' to parameter of type 'ConstStr255Param' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] DebugStr("SearchBTreeRecord: bad record?"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./SRuntime.h:139:27: note: passing argument to parameter 'debuggerMsg' here DebugStr(ConstStr255Param debuggerMsg); ^ clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o SRepair.o SRepair.c SBTree.c:213:13: warning: passing 'char [28]' to parameter of type 'ConstStr255Param' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] DebugStr("GetBTreeRecord: bad record?"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./SRuntime.h:139:27: note: passing argument to parameter 'debuggerMsg' here DebugStr(ConstStr255Param debuggerMsg); ^ SBTree.c:245:12: warning: passing 'char [31]' to parameter of type 'ConstStr255Param' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] DebugStr("InsertBTreeRecord: bad record?"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./SRuntime.h:139:27: note: passing argument to parameter 'debuggerMsg' here DebugStr(ConstStr255Param debuggerMsg); ^ SBTree.c:307:12: warning: passing 'char [32]' to parameter of type 'ConstStr255Param' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] DebugStr("ReplaceBTreeRecord: bad record?"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./SRuntime.h:139:27: note: passing argument to parameter 'debuggerMsg' here DebugStr(ConstStr255Param debuggerMsg); ^ SBTree.c:346:13: warning: passing 'char [55]' to parameter of type 'ConstStr255Param' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] DebugStr("SetEndOfForkProc: minEOF is smaller than current size!"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./SRuntime.h:139:27: note: passing argument to parameter 'debuggerMsg' here DebugStr(ConstStr255Param debuggerMsg); ^ SBTree.c:444:13: warning: passing 'char [31]' to parameter of type 'ConstStr255Param' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] DebugStr("CheckBTreeKey: bad key length!"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./SRuntime.h:139:27: note: passing argument to parameter 'debuggerMsg' here DebugStr(ConstStr255Param debuggerMsg); ^ SBTree.c:505:46: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand] if ( (catalogRecord->hfsPlusFolder.flags && (kHFSFileLockedMask | kHFSThreadExistsMask)) != 0 ) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SBTree.c:505:46: note: use '&' for a bitwise operation if ( (catalogRecord->hfsPlusFolder.flags && (kHFSFileLockedMask | kHFSThreadExistsMask)) != 0 ) ^~ & SBTree.c:505:46: note: remove constant to silence this warning if ( (catalogRecord->hfsPlusFolder.flags && (kHFSFileLockedMask | kHFSThreadExistsMask)) != 0 ) ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. SControl.c:324:78: warning: comparison between pointer and integer ('char *' and 'unsigned long') if (strncpy(dataArea.deviceNode, rdevnode, sizeof(dataArea.deviceNode)) != strlen(rdevnode)) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~ clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o dirhardlink.o dirhardlink.c 7 warnings generated. clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o SRebuildBTree.o SRebuildBTree.c 2 warnings generated. clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o SUtils.o SUtils.c clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o SKeyCompare.o SKeyCompare.c 1 warning generated. clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o SDevice.o SDevice.c clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o SExtents.o SExtents.c SUtils.c:77:17: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if (utf8plen < 0) ~~~~~~~~ ^ ~ SUtils.c:83:17: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if (utf8plen < 0) ~~~~~~~~ ^ ~ clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o SAllocate.o SAllocate.c clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o SCatalog.o SCatalog.c clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o SStubs.o SStubs.c clang -g3 -Wall -fblocks -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/BlocksRunTime -I/builddir/build/BUILD/diskdev_cmds-540.1.linux3/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"540.1.linux3\" -c -o VolumeBitmapCheck.o VolumeBitmapCheck.c SStubs.c:121:16: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if (byteCount < 0) ~~~~~~~~~ ^ ~ SStubs.c:160:20: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if (!h || newSize < 0) ~~~~~~~ ^ ~ VolumeBitmapCheck.c:1091:13: warning: unused function 'TrimInit' [-Wunused-function] static void TrimInit(void) ^ VolumeBitmapCheck.c:1099:13: warning: unused function 'TrimFlush' [-Wunused-function] static void TrimFlush(void) ^ VolumeBitmapCheck.c:1119:13: warning: unused function 'TrimExtent' [-Wunused-function] static void TrimExtent(SGlobPtr g, UInt32 startBlock, UInt32 blockCount) ^ 2 warnings generated. 2 warnings generated. 3 warnings generated. ar rc libdfa.a hfs_endian.o BlockCache.o BTree.o BTreeAllocate.o BTreeMiscOps.o BTreeNodeOps.o BTreeScanner.o BTreeTreeOps.o CatalogCheck.o HardLinkCheck.o SBTree.o SControl.o SVerify1.o SVerify2.o SRepair.o dirhardlink.o SRebuildBTree.o SUtils.o SKeyCompare.o SDevice.o SExtents.o SAllocate.o SCatalog.o SStubs.o VolumeBitmapCheck.o make[2]: Leaving directory `/builddir/build/BUILD/diskdev_cmds-540.1.linux3/fsck_hfs.tproj/dfalib' make[1]: Leaving directory `/builddir/build/BUILD/diskdev_cmds-540.1.linux3/fsck_hfs.tproj' make: *** [all] Error 2 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.uDWTMD (%build) Bad exit status from /var/tmp/rpm-tmp.uDWTMD (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 88, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 547, in do raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/hfsplus-tools.spec