Loading repository data... Reading installed packages... 'qt5-qttools-kmap2qmap >= 5.1.0+git5' is already installed. No update candidate for 'qt5-qttools-kmap2qmap-5.6.3+git2-1.3.2.jolla.armv7hl'. The highest available version is already installed. 'oneshot' is already installed. No update candidate for 'oneshot-0.6.8-1.3.1.jolla.noarch'. The highest available version is already installed. 'systemd' is already installed. No update candidate for 'systemd-238+git4-1.4.9.jolla.armv7hl'. The highest available version is already installed. 'pkgconfig(zlib)' not found in package names. Trying capabilities. 'zlib-devel' providing 'pkgconfig(zlib)' is already installed. 'python' is already installed. No update candidate for 'python-2.7.17+git6-1.2.6.jolla.armv7hl'. The highest available version is already installed. 'rsync' is already installed. No update candidate for 'rsync-3.1.3+git1-1.2.1.jolla.armv7hl'. The highest available version is already installed. Resolving package dependencies... Nothing to do. Building target platforms: armv7hl-meego-linux Building for target armv7hl-meego-linux Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.pMsOzs + umask 022 + cd /home/sandy/Sailfish/src + LANG=C + export LANG + unset DISPLAY + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -fmessage-length=0 -march=armv7-a -mfloat-abi=hard -mfpu=neon -mthumb -Wno-psabi' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -fmessage-length=0 -march=armv7-a -mfloat-abi=hard -mfpu=neon -mthumb -Wno-psabi' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -fmessage-length=0 -march=armv7-a -mfloat-abi=hard -mfpu=neon -mthumb -Wno-psabi -I/usr/lib/gfortran/modules' + export FFLAGS + LD_AS_NEEDED=1 + export LD_AS_NEEDED + echo _target_cpu is armv7hl _target_cpu is armv7hl + rm -rf tmp + mkdir tmp + echo Verifying kernel config Verifying kernel config + hybris/mer-kernel-check/mer_verify_kernel_config ./out/target/product/enchilada/obj/KERNEL_OBJ/.config WARNING: CONFIG_NETFILTER_XT_MATCH_DCCP is invalid It is unset Allowed values : y, m, ! Comment says: connman: for iptables dccp match WARNING: CONFIG_BTRFS_FS is invalid It is unset Allowed values : y, ! Comment says: optional extra filesystem (BTRFS) WARNING: CONFIG_NFS_ACL_SUPPORT is invalid It is unset Allowed values : y, m, ! Comment says: optional, for NFS support WARNING: CONFIG_NET_CLS_CGROUP is invalid It is unset Allowed values : y, ! Comment says: systemd (optional): http://0pointer.de/blog/projects/cgroups-vs-cgroups.html WARNING: CONFIG_BT_HCIUART is invalid It is unset Allowed values : y, ! Comment says: Bluez (optional): Needed if bluez used as bluetooth stack WARNING: CONFIG_NFS_V3 is invalid It is unset Allowed values : y, ! Comment says: optional, for NFS support WARNING: CONFIG_NFS_V4_1 is invalid It is unset Allowed values : y, ! Comment says: optional, for NFS support WARNING: CONFIG_BT_HCIUART_H4 is invalid It is unset Allowed values : y, ! Comment says: Bluez (optional): Needed if bluez used as bluetooth stack WARNING: CONFIG_SUNRPC_GSS is invalid It is unset Allowed values : y, m, ! Comment says: optional, for NFS support WARNING: CONFIG_MEMCG_KMEM is invalid It is unset Allowed values : y, !, >=3.6 Comment says: systemd (optional, but recommended): http://0pointer.de/blog/projects/cgroups-vs-cgroups.html, only valid if kernel version >= 3.6 WARNING: CONFIG_IP6_NF_MATCH_FRAG is invalid It is unset Allowed values : y, m, ! Comment says: connman: for ip6tables frag match WARNING: CONFIG_AUDIT is invalid Value is: y Allowed values : n, ! Comment says: This will disable SELinux! That's ok, because hybris adaptations must not have SELinux, but if your device needs its support in kernel, set AUDIT=y and SELINUX_BOOTPARAM=y. Then disable them via kernel cmdline: audit=0 selinux=0. You can also leave audit enabled, if you don't plan to use systemd's containers: http://cgit.freedesktop.org/systemd/systemd/commit/README?id=77b6e19458f37cfde127ec6aa9494c0ac45ad890 WARNING: CONFIG_SECURITY_SELINUX_BOOTPARAM is invalid It is unset Allowed values : y, ! Comment says: Required by hybris, SELinux needs to be disabled. Leave as not set, if you have unset AUDIT (read more about the CONFIG_AUDIT flag) WARNING: CONFIG_IP6_NF_MATCH_AH is invalid It is unset Allowed values : y, m, ! Comment says: connman: for ip6tables ah match WARNING: CONFIG_NFS_FS is invalid It is unset Allowed values : y, m, ! Comment says: optional, for NFS support WARNING: CONFIG_CIFS is invalid It is unset Allowed values : y, m, ! Comment says: optional extra filesystem (CIFS - Windows net fs) WARNING: CONFIG_NFS_V4 is invalid It is unset Allowed values : y, ! Comment says: optional, for NFS support WARNING: CONFIG_WATCHDOG_NOWAYOUT is invalid It is unset Allowed values : y, ! Comment says: If device uses watchdogs with dsme (https://github.com/nemomobile/dsme), this option should be enabled or watchdog does not protect the device in case dsme crashes. WARNING: CONFIG_CGROUP_DEVICE is invalid It is unset Allowed values : y, ! Comment says: systemd (optional): http://0pointer.de/blog/projects/cgroups-vs-cgroups.html WARNING: CONFIG_NETFILTER_XT_MATCH_RECENT is invalid It is unset Allowed values : y, m, ! Comment says: connman: for iptables recent match WARNING: CONFIG_NF_NAT_IPV6 is invalid It is unset Allowed values : y, m, ! Comment says: connman: to enable IPv6 NAT WARNING: CONFIG_IP6_NF_MATCH_MH is invalid It is unset Allowed values : y, m, ! Comment says: connman: for ip6tables mh match WARNING: CONFIG_BLK_DEV_NBD is invalid It is unset Allowed values : y, m, ! Comment says: optional, for NFS & CIFS support WARNING: CONFIG_CGROUP_PERF is invalid It is unset Allowed values : y, ! Comment says: systemd (optional): http://0pointer.de/blog/projects/cgroups-vs-cgroups.html WARNING: CONFIG_CHECKPOINT_RESTORE is invalid It is unset Allowed values : y, ! Comment says: rich-core-dumper (https://github.com/mer-tools/sp-rich-core/) needs this to collect all data for environment recreation. WARNING: CONFIG_FANOTIFY is invalid It is unset Allowed values : y, ! Comment says: optional, required for systemd readahead. WARNING: CONFIG_HIDRAW is invalid It is unset Allowed values : y, m, ! Comment says: optional: Support HID devices WARNING: CONFIG_UDF_FS is invalid It is unset Allowed values : y, m, ! Comment says: optional extra filesystem (DVD & portable USB) WARNING: CONFIG_RTC_DRV_CMOS is invalid It is unset Allowed values : y, ! Comment says: optional, but highly recommended WARNING: CONFIG_NETPRIO_CGROUP is invalid It is unset Allowed values : y, ! Comment says: systemd (optional): http://0pointer.de/blog/projects/cgroups-vs-cgroups.html WARNING: CONFIG_NFS_USE_KERNEL_DNS is invalid It is unset Allowed values : y, ! Comment says: optional, for NFS support WARNING: CONFIG_ISO9660_FS is invalid It is unset Allowed values : y, m, ! Comment says: optional extra filesystem (CD-ROM) WARNING: CONFIG_LOCKD_V4 is invalid It is unset Allowed values : y, ! Comment says: optional, for NFS support WARNING: CONFIG_NFS_COMMON is invalid It is unset Allowed values : y, ! Comment says: optional, for NFS support WARNING: CONFIG_SECURITY_YAMA_STACKED is invalid It is unset Allowed values : y, !, <4.3 Comment says: optional, only valid for kernel < 4.3 WARNING: CONFIG_NFS_V3_ACL is invalid It is unset Allowed values : y, ! Comment says: optional, for NFS support WARNING: CONFIG_LOCKD is invalid It is unset Allowed values : y, m, ! Comment says: optional, for NFS support WARNING: CONFIG_NETFILTER_XT_MATCH_SCTP is invalid It is unset Allowed values : y, m, ! Comment says: connman: for iptables sctp match WARNING: CONFIG_AUTOFS4_FS is invalid It is unset Allowed values : y, m, ! Comment says: systemd (optional): http://cgit.freedesktop.org/systemd/systemd/commit/README?id=713bc0cfa477ca1df8769041cb3dbc83c10eace2 WARNING: CONFIG_BLK_CGROUP is invalid It is unset Allowed values : y, ! Comment says: systemd (optional): http://0pointer.de/blog/projects/cgroups-vs-cgroups.html WARNING: CONFIG_FW_LOADER_USER_HELPER is invalid Value is: y Allowed values : n, ! Comment says: it's actually needed by some Lollipop based devices; systemd(optional): http://cgit.freedesktop.org/systemd/systemd/commit/README?id=713bc0cfa477ca1df8769041cb3dbc83c10eace2 WARNING: CONFIG_LBDAF is invalid It is unset Allowed values : y, ! Comment says: ext4 filesystem requires this in order to support filesysetms with huge_file feature, which is enabled by default by mke2fs.ext4 WARNING: CONFIG_SUNRPC is invalid It is unset Allowed values : y, m, ! Comment says: optional, for NFS support ++ awk -F. '{print $1}' ++ awk '/PLATFORM_VERSION[A-Z0-9.]* := ([0-9.]+)/ { print $3; }' + ANDROID_VERSION_MAJOR=10 + test -f rpm/helpers/mkbootimg.mk + '[' 10 -lt 7 ']' + test -f rpm/helpers/simg2img.mk + test -f rpm/helpers/img2simg.mk + echo Building local tools Building local tools ++ readlink -e . + ANDROID_ROOT=/home/sandy/Sailfish/src + '[' 10 -ge 8 ']' + /home/sandy/Sailfish/src/build/make/tools/fs_config/fs_config_generator.py aidarray /home/sandy/Sailfish/src/system/core/libcutils/include/private/android_filesystem_config.h + '[' 10 -ge 8 ']' + echo '#include ' + echo '#include "sparse_read.cpp"' + IMG2SIMG_SOURCES='backed_block.c output_file.c sparse.c sparse_crc32.c sparse_err.c sparse_read_fix.cpp img2simg.c ../base/stringprintf.cpp' + SIMG2IMG_SOURCES='backed_block.c output_file.c sparse.c sparse_crc32.c sparse_err.c sparse_read_fix.cpp simg2img.c ../base/stringprintf.cpp' + pushd rpm/dhd/helpers ~/Sailfish/src/rpm/dhd/helpers ~/Sailfish/src + make ANDROID_ROOT=/home/sandy/Sailfish/src 'IMG2SIMG_SOURCES=backed_block.c output_file.c sparse.c sparse_crc32.c sparse_err.c sparse_read_fix.cpp img2simg.c ../base/stringprintf.cpp' 'SIMG2IMG_SOURCES=backed_block.c output_file.c sparse.c sparse_crc32.c sparse_err.c sparse_read_fix.cpp simg2img.c ../base/stringprintf.cpp' make -f /home/sandy/Sailfish/src/rpm/dhd/helpers/img2simg.mk -C /home/sandy/Sailfish/src/system/core/libsparse/ make[1]: Entering directory '/home/sandy/Sailfish/src/system/core/libsparse' g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -fmessage-length=0 -march=armv7-a -mfloat-abi=hard -mfpu=neon -mthumb -Wno-psabi -std=c++0x -Iinclude -I../base/include -c -o backed_block.o backed_block.cpp g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -fmessage-length=0 -march=armv7-a -mfloat-abi=hard -mfpu=neon -mthumb -Wno-psabi -std=c++0x -Iinclude -I../base/include -c -o output_file.o output_file.cpp output_file.cpp: In function ‘int gz_file_write(output_file*, void*, size_t)’: output_file.cpp:53:5: error: ‘typeof’ was not declared in this scope typeof(a) _a = (a); \ ^~~~~~ output_file.cpp:234:39: note: in expansion of macro ‘min’ ret = gzwrite(outgz->gz_fd, data, min(len, (unsigned int)INT_MAX)); ^~~ output_file.cpp:53:5: note: suggested alternative: ‘feof’ typeof(a) _a = (a); \ ^~~~~~ output_file.cpp:234:39: note: in expansion of macro ‘min’ ret = gzwrite(outgz->gz_fd, data, min(len, (unsigned int)INT_MAX)); ^~~ output_file.cpp:55:6: error: ‘_a’ was not declared in this scope (_a < _b) ? _a : _b; \ ^~ output_file.cpp:234:39: note: in expansion of macro ‘min’ ret = gzwrite(outgz->gz_fd, data, min(len, (unsigned int)INT_MAX)); ^~~ output_file.cpp:55:11: error: ‘_b’ was not declared in this scope (_a < _b) ? _a : _b; \ ^~ output_file.cpp:234:39: note: in expansion of macro ‘min’ ret = gzwrite(outgz->gz_fd, data, min(len, (unsigned int)INT_MAX)); ^~~ output_file.cpp:234:70: error: invalid use of void expression ret = gzwrite(outgz->gz_fd, data, min(len, (unsigned int)INT_MAX)); ^ output_file.cpp: In function ‘int callback_file_skip(output_file*, int64_t)’: output_file.cpp:53:5: error: ‘typeof’ was not declared in this scope typeof(a) _a = (a); \ ^~~~~~ output_file.cpp:271:16: note: in expansion of macro ‘min’ to_write = min(off, (int64_t)INT_MAX); ^~~ output_file.cpp:53:5: note: suggested alternative: ‘feof’ typeof(a) _a = (a); \ ^~~~~~ output_file.cpp:271:16: note: in expansion of macro ‘min’ to_write = min(off, (int64_t)INT_MAX); ^~~ output_file.cpp:55:6: error: ‘_a’ was not declared in this scope (_a < _b) ? _a : _b; \ ^~ output_file.cpp:271:16: note: in expansion of macro ‘min’ to_write = min(off, (int64_t)INT_MAX); ^~~ output_file.cpp:55:11: error: ‘_b’ was not declared in this scope (_a < _b) ? _a : _b; \ ^~ output_file.cpp:271:16: note: in expansion of macro ‘min’ to_write = min(off, (int64_t)INT_MAX); ^~~ output_file.cpp:56:4: error: void value not ignored as it ought to be }) ^ output_file.cpp:271:16: note: in expansion of macro ‘min’ to_write = min(off, (int64_t)INT_MAX); ^~~ output_file.cpp: In function ‘int write_normal_fill_chunk(output_file*, unsigned int, uint32_t)’: output_file.cpp:53:5: error: ‘typeof’ was not declared in this scope typeof(a) _a = (a); \ ^~~~~~ output_file.cpp:473:17: note: in expansion of macro ‘min’ write_len = min(len, out->block_size); ^~~ output_file.cpp:53:5: note: suggested alternative: ‘feof’ typeof(a) _a = (a); \ ^~~~~~ output_file.cpp:473:17: note: in expansion of macro ‘min’ write_len = min(len, out->block_size); ^~~ output_file.cpp:55:6: error: ‘_a’ was not declared in this scope (_a < _b) ? _a : _b; \ ^~ output_file.cpp:473:17: note: in expansion of macro ‘min’ write_len = min(len, out->block_size); ^~~ output_file.cpp:55:11: error: ‘_b’ was not declared in this scope (_a < _b) ? _a : _b; \ ^~ output_file.cpp:473:17: note: in expansion of macro ‘min’ write_len = min(len, out->block_size); ^~~ output_file.cpp:56:4: error: void value not ignored as it ought to be }) ^ output_file.cpp:473:17: note: in expansion of macro ‘min’ write_len = min(len, out->block_size); ^~~ make[1]: *** [: output_file.o] Error 1 make[1]: Leaving directory '/home/sandy/Sailfish/src/system/core/libsparse' make: *** [makefile:24: image_tools] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.pMsOzs (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.pMsOzs (%build) No journal files were found. Failed to seek to cursor: Invalid argument mv: cannot stat 'RPMS.saved/*.rpm': No such file or directory