DC-Build-Header: mtd-utils 1:1.5.0-1 / Sat Jun 23 16:42:31 +0000 2012 DC-Task: logfile:/tmp/mtd-utils_1.5.0-1_unstable_clang.log version:1:1.5.0-1 chroot:unstable modes:binary-only:clang source:mtd-utils architecture:any esttime:41 DC-Sbuild-call: su user -c 'sbuild -n --apt-update -d unstable -v --chroot-setup-commands=/tmp/switch-to-clang mtd-utils_1:1.5.0-1' sbuild (Debian sbuild) 0.62.5 (13 Jul 2011) on ip-10-28-191-237.ec2.internal ╔══════════════════════════════════════════════════════════════════════════════╗ ║ mtd-utils 1:1.5.0-1 (amd64) 23 Jun 2012 16:42 ║ ╚══════════════════════════════════════════════════════════════════════════════╝ Package: mtd-utils Version: 1:1.5.0-1 Source Version: 1:1.5.0-1 Distribution: unstable Architecture: amd64 I: NOTICE: Log filtering will replace 'build/mtd-utils-Ckc8Ee/mtd-utils-1.5.0' with '«PKGBUILDDIR»' I: NOTICE: Log filtering will replace 'build/mtd-utils-Ckc8Ee' with '«BUILDDIR»' I: NOTICE: Log filtering will replace 'var/lib/schroot/mount/unstable-amd64-sbuild-4fb2c20d-65d1-4428-b411-c454a87e477d' with '«CHROOT»' ┌──────────────────────────────────────────────────────────────────────────────┐ │ Update chroot │ └──────────────────────────────────────────────────────────────────────────────┘ Ign http://localhost unstable InRelease Get:1 http://localhost unstable Release.gpg [836 B] Get:2 http://localhost unstable Release [233 kB] Get:3 http://localhost unstable/main Sources/DiffIndex [7876 B] Get:4 http://localhost unstable/main amd64 Packages/DiffIndex [7876 B] Get:5 http://localhost unstable/main Translation-en/DiffIndex [7876 B] Get:6 http://localhost unstable/main 2012-06-23-0814.36.pdiff [8967 B] Get:7 http://localhost unstable/main 2012-06-23-0814.36.pdiff [8967 B] Get:8 http://localhost unstable/main amd64 2012-06-23-0814.36.pdiff [6101 B] Get:9 http://localhost unstable/main 2012-06-23-0814.36.pdiff [1297 B] Get:10 http://localhost unstable/main amd64 2012-06-23-0814.36.pdiff [6101 B] Get:11 http://localhost unstable/main 2012-06-23-1414.42.pdiff [10.6 kB] Get:12 http://localhost unstable/main 2012-06-23-0814.36.pdiff [1297 B] Get:13 http://localhost unstable/main amd64 2012-06-23-1414.42.pdiff [11.3 kB] Get:14 http://localhost unstable/main 2012-06-23-1414.42.pdiff [10.6 kB] Get:15 http://localhost unstable/main 2012-06-23-1414.42.pdiff [696 B] Get:16 http://localhost unstable/main amd64 2012-06-23-1414.42.pdiff [11.3 kB] Get:17 http://localhost unstable/main 2012-06-23-1414.42.pdiff [696 B] Fetched 296 kB in 7s (41.5 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... The following packages will be upgraded: base-passwd bsdutils libblkid1 libmount1 libuuid1 mount util-linux 7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 1300 kB of archives. After this operation, 308 kB disk space will be freed. Get:1 http://localhost/debian/ unstable/main mount amd64 2.20.1-5.1 [213 kB] Get:2 http://localhost/debian/ unstable/main util-linux amd64 2.20.1-5.1 [659 kB] Get:3 http://localhost/debian/ unstable/main base-passwd amd64 3.5.26 [46.3 kB] Get:4 http://localhost/debian/ unstable/main bsdutils amd64 1:2.20.1-5.1 [85.3 kB] Get:5 http://localhost/debian/ unstable/main libuuid1 amd64 2.20.1-5.1 [56.9 kB] Get:6 http://localhost/debian/ unstable/main libblkid1 amd64 2.20.1-5.1 [120 kB] Get:7 http://localhost/debian/ unstable/main libmount1 amd64 2.20.1-5.1 [120 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 1300 kB in 0s (22.1 MB/s) (Reading database ... 11730 files and directories currently installed.) Preparing to replace mount 2.20.1-5 (using .../mount_2.20.1-5.1_amd64.deb) ... Unpacking replacement mount ... Setting up mount (2.20.1-5.1) ... (Reading database ... 11730 files and directories currently installed.) Preparing to replace util-linux 2.20.1-5 (using .../util-linux_2.20.1-5.1_amd64.deb) ... Unpacking replacement util-linux ... Setting up util-linux (2.20.1-5.1) ... (Reading database ... 11730 files and directories currently installed.) Preparing to replace base-passwd 3.5.25 (using .../base-passwd_3.5.26_amd64.deb) ... Unpacking replacement base-passwd ... Setting up base-passwd (3.5.26) ... (Reading database ... 11730 files and directories currently installed.) Preparing to replace bsdutils 1:2.20.1-5 (using .../bsdutils_1%3a2.20.1-5.1_amd64.deb) ... Unpacking replacement bsdutils ... Setting up bsdutils (1:2.20.1-5.1) ... (Reading database ... 11730 files and directories currently installed.) Preparing to replace libuuid1:amd64 2.20.1-5 (using .../libuuid1_2.20.1-5.1_amd64.deb) ... Unpacking replacement libuuid1:amd64 ... Setting up libuuid1:amd64 (2.20.1-5.1) ... (Reading database ... 11730 files and directories currently installed.) Preparing to replace libblkid1:amd64 2.20.1-5 (using .../libblkid1_2.20.1-5.1_amd64.deb) ... Unpacking replacement libblkid1:amd64 ... Setting up libblkid1:amd64 (2.20.1-5.1) ... (Reading database ... 11730 files and directories currently installed.) Preparing to replace libmount1 2.20.1-5 (using .../libmount1_2.20.1-5.1_amd64.deb) ... Unpacking replacement libmount1 ... Setting up libmount1 (2.20.1-5.1) ... ┌──────────────────────────────────────────────────────────────────────────────┐ │ Fetch source files │ └──────────────────────────────────────────────────────────────────────────────┘ Check APT ───────── Checking available source versions... Download source files with APT ────────────────────────────── Reading package lists... Building dependency tree... Reading state information... NOTICE: 'mtd-utils' packaging is maintained in the 'Git' version control system at: git://git.debian.org/git/collab-maint/mtd-utils.git Need to get 342 kB of source archives. Get:1 http://localhost/debian/ unstable/main mtd-utils 1:1.5.0-1 (dsc) [1266 B] Get:2 http://localhost/debian/ unstable/main mtd-utils 1:1.5.0-1 (tar) [335 kB] Get:3 http://localhost/debian/ unstable/main mtd-utils 1:1.5.0-1 (diff) [5886 B] Fetched 342 kB in 0s (1348 kB/s) Download complete and in download only mode Check arch ────────── ┌──────────────────────────────────────────────────────────────────────────────┐ │ Chroot Setup Commands │ └──────────────────────────────────────────────────────────────────────────────┘ /tmp/switch-to-clang ──────────────────── + echo 'Entering customization script...' Entering customization script... + apt-get update Ign http://localhost unstable InRelease Hit http://localhost unstable Release.gpg Hit http://localhost unstable Release Hit http://localhost unstable/main Sources/DiffIndex Hit http://localhost unstable/main amd64 Packages/DiffIndex Hit http://localhost unstable/main Translation-en/DiffIndex Reading package lists... + echo 'Install of clang' Install of clang + apt-get update Ign http://localhost unstable InRelease Hit http://localhost unstable Release.gpg Hit http://localhost unstable Release Hit http://localhost unstable/main Sources/DiffIndex Hit http://localhost unstable/main amd64 Packages/DiffIndex Hit http://localhost unstable/main Translation-en/DiffIndex Reading package lists... + apt-get install --yes --no-install-recommends clang -t unstable Reading package lists... Building dependency tree... Reading state information... The following extra packages will be installed: libclang-common-dev libffi5 libllvm3.1 Recommended packages: llvm-3.1-dev python The following NEW packages will be installed: clang libclang-common-dev libffi5 libllvm3.1 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. Need to get 13.1 MB of archives. After this operation, 35.6 MB of additional disk space will be used. Get:1 http://localhost/debian/ unstable/main libffi5 amd64 3.0.10-3 [24.8 kB] Get:2 http://localhost/debian/ unstable/main libllvm3.1 amd64 3.1-1 [7276 kB] Get:3 http://localhost/debian/ unstable/main libclang-common-dev amd64 3.1-6 [84.0 kB] Get:4 http://localhost/debian/ unstable/main clang amd64 3.1-6 [5755 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 13.1 MB in 0s (30.1 MB/s) Selecting previously unselected package libffi5:amd64. (Reading database ... 11730 files and directories currently installed.) Unpacking libffi5:amd64 (from .../libffi5_3.0.10-3_amd64.deb) ... Selecting previously unselected package libllvm3.1:amd64. Unpacking libllvm3.1:amd64 (from .../libllvm3.1_3.1-1_amd64.deb) ... Selecting previously unselected package libclang-common-dev. Unpacking libclang-common-dev (from .../libclang-common-dev_3.1-6_amd64.deb) ... Selecting previously unselected package clang. Unpacking clang (from .../archives/clang_3.1-6_amd64.deb) ... Setting up libffi5:amd64 (3.0.10-3) ... Setting up libllvm3.1:amd64 (3.1-1) ... Setting up libclang-common-dev (3.1-6) ... Setting up clang (3.1-6) ... + echo 'Replace gcc, g++ & cpp by clang' Replace gcc, g++ & cpp by clang + VERSION=4.7 + cd /usr/bin + rm g++-4.7 gcc-4.7 cpp-4.7 + ln -s clang++ g++-4.7 + ln -s clang gcc-4.7 + ln -s clang cpp-4.7 + cd - /«BUILDDIR» + echo 'Block the installation of new gcc version' Block the installation of new gcc version + dpkg --set-selections + echo 'gcc-4.6 hold' + dpkg --set-selections + echo 'cpp-4.6 hold' + dpkg --set-selections + echo 'g++-4.6 hold' + dpkg --set-selections + echo 'gcc-4.7 hold' + dpkg --set-selections + echo 'cpp-4.7 hold' + dpkg --set-selections + echo 'g++-4.7 hold' + echo 'Check if gcc, g++ & cpp are actually clang' Check if gcc, g++ & cpp are actually clang + grep clang + gcc --version I: Finished running '/tmp/switch-to-clang'. Finished processing commands. ──────────────────────────────────────────────────────────────────────────────── Merged Build-Depends: build-essential, fakeroot Filtered Build-Depends: build-essential, fakeroot dpkg-deb: building package `sbuild-build-depends-core-dummy' in `/«BUILDDIR»/resolver-eqSxtc/apt_archive/sbuild-build-depends-core-dummy.deb'. OK Reading package lists... ┌──────────────────────────────────────────────────────────────────────────────┐ │ Install core build dependencies (apt-based resolver) │ └──────────────────────────────────────────────────────────────────────────────┘ Installing build dependencies Reading package lists... Building dependency tree... Reading state information... The following NEW packages will be installed: sbuild-build-depends-core-dummy debconf: delaying package configuration, since apt-utils is not installed 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/706 B of archives. After this operation, 0 B of additional disk space will be used. Selecting previously unselected package sbuild-build-depends-core-dummy. (Reading database ... 11810 files and directories currently installed.) Unpacking sbuild-build-depends-core-dummy (from .../sbuild-build-depends-core-dummy.deb) ... Setting up sbuild-build-depends-core-dummy (0.invalid.0) ... Merged Build-Depends: base-files, base-passwd, bash, coreutils, dash, debianutils, diffutils, dpkg, e2fsprogs, findutils, grep, gzip, hostname, ncurses-base, ncurses-bin, perl-base, sed, login, sysvinit-utils, sysvinit, tar, bsdutils, mount, util-linux, libc6-dev | libc-dev, gcc (>= 4:4.4.3), g++ (>= 4:4.4.3), make, dpkg-dev (>= 1.13.5), debhelper (>= 5.0), zlib1g-dev, libacl1-dev, liblzo2-dev, uuid-dev Filtered Build-Depends: base-files, base-passwd, bash, coreutils, dash, debianutils, diffutils, dpkg, e2fsprogs, findutils, grep, gzip, hostname, ncurses-base, ncurses-bin, perl-base, sed, login, sysvinit-utils, sysvinit, tar, bsdutils, mount, util-linux, libc6-dev, gcc (>= 4:4.4.3), g++ (>= 4:4.4.3), make, dpkg-dev (>= 1.13.5), debhelper (>= 5.0), zlib1g-dev, libacl1-dev, liblzo2-dev, uuid-dev dpkg-deb: building package `sbuild-build-depends-mtd-utils-dummy' in `/«BUILDDIR»/resolver-4To5wu/apt_archive/sbuild-build-depends-mtd-utils-dummy.deb'. OK Reading package lists... ┌──────────────────────────────────────────────────────────────────────────────┐ │ Install mtd-utils build dependencies (apt-based resolver) │ └──────────────────────────────────────────────────────────────────────────────┘ Installing build dependencies Reading package lists... Building dependency tree... Reading state information... The following extra packages will be installed: bsdmainutils debhelper file gettext gettext-base groff-base html2text intltool-debian libacl1-dev libasprintf0c2 libattr1-dev libcroco3 libgettextpo0 libglib2.0-0 liblzo2-2 liblzo2-dev libmagic1 libpcre3 libpipeline1 libunistring0 libxml2 man-db po-debconf uuid-dev zlib1g-dev Suggested packages: wamerican wordlist whois vacation dh-make gettext-doc groff less www-browser libmail-box-perl Recommended packages: curl wget lynx-cur autopoint libglib2.0-data shared-mime-info xml-core libmail-sendmail-perl The following NEW packages will be installed: bsdmainutils debhelper file gettext gettext-base groff-base html2text intltool-debian libacl1-dev libasprintf0c2 libattr1-dev libcroco3 libgettextpo0 libglib2.0-0 liblzo2-2 liblzo2-dev libmagic1 libpcre3 libpipeline1 libunistring0 libxml2 man-db po-debconf sbuild-build-depends-mtd-utils-dummy uuid-dev zlib1g-dev 0 upgraded, 26 newly installed, 0 to remove and 0 not upgraded. Need to get 10.6 MB/10.6 MB of archives. After this operation, 27.1 MB of additional disk space will be used. Get:1 http://localhost/debian/ unstable/main libpipeline1 amd64 1.2.1-1 [39.2 kB] Get:2 http://localhost/debian/ unstable/main libasprintf0c2 amd64 0.18.1.1-9 [26.8 kB] Get:3 http://localhost/debian/ unstable/main libmagic1 amd64 5.11-1 [250 kB] Get:4 http://localhost/debian/ unstable/main libpcre3 amd64 1:8.30-5 [242 kB] Get:5 http://localhost/debian/ unstable/main libxml2 amd64 2.8.0+dfsg1-4 [903 kB] Get:6 http://localhost/debian/ unstable/main libglib2.0-0 amd64 2.32.3-1 [2081 kB] Get:7 http://localhost/debian/ unstable/main libcroco3 amd64 0.6.5-1 [151 kB] Get:8 http://localhost/debian/ unstable/main libunistring0 amd64 0.9.3-5 [434 kB] Get:9 http://localhost/debian/ unstable/main libgettextpo0 amd64 0.18.1.1-9 [145 kB] Get:10 http://localhost/debian/ unstable/main liblzo2-2 amd64 2.06-1 [57.7 kB] Get:11 http://localhost/debian/ unstable/main bsdmainutils amd64 9.0.3 [209 kB] Get:12 http://localhost/debian/ unstable/main groff-base amd64 1.21-8 [1152 kB] Get:13 http://localhost/debian/ unstable/main man-db amd64 2.6.2-1 [1061 kB] Get:14 http://localhost/debian/ unstable/main file amd64 5.11-1 [53.2 kB] Get:15 http://localhost/debian/ unstable/main gettext-base amd64 0.18.1.1-9 [154 kB] Get:16 http://localhost/debian/ unstable/main html2text amd64 1.3.2a-15 [103 kB] Get:17 http://localhost/debian/ unstable/main gettext amd64 0.18.1.1-9 [1975 kB] Get:18 http://localhost/debian/ unstable/main intltool-debian all 0.35.0+20060710.1 [30.8 kB] Get:19 http://localhost/debian/ unstable/main po-debconf all 1.0.16+nmu2 [224 kB] Get:20 http://localhost/debian/ unstable/main debhelper all 9.20120608 [700 kB] Get:21 http://localhost/debian/ unstable/main liblzo2-dev amd64 2.06-1 [148 kB] Get:22 http://localhost/debian/ unstable/main zlib1g-dev amd64 1:1.2.7.dfsg-13 [215 kB] Get:23 http://localhost/debian/ unstable/main libattr1-dev amd64 1:2.4.46-8 [43.4 kB] Get:24 http://localhost/debian/ unstable/main libacl1-dev amd64 2.2.51-8 [91.8 kB] Get:25 http://localhost/debian/ unstable/main uuid-dev amd64 2.20.1-5.1 [72.2 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 10.6 MB in 0s (11.2 MB/s) Selecting previously unselected package libpipeline1:amd64. (Reading database ... 11810 files and directories currently installed.) Unpacking libpipeline1:amd64 (from .../libpipeline1_1.2.1-1_amd64.deb) ... Selecting previously unselected package libasprintf0c2:amd64. Unpacking libasprintf0c2:amd64 (from .../libasprintf0c2_0.18.1.1-9_amd64.deb) ... Selecting previously unselected package libmagic1:amd64. Unpacking libmagic1:amd64 (from .../libmagic1_5.11-1_amd64.deb) ... Selecting previously unselected package libpcre3:amd64. Unpacking libpcre3:amd64 (from .../libpcre3_1%3a8.30-5_amd64.deb) ... Selecting previously unselected package libxml2:amd64. Unpacking libxml2:amd64 (from .../libxml2_2.8.0+dfsg1-4_amd64.deb) ... Selecting previously unselected package libglib2.0-0:amd64. Unpacking libglib2.0-0:amd64 (from .../libglib2.0-0_2.32.3-1_amd64.deb) ... Selecting previously unselected package libcroco3:amd64. Unpacking libcroco3:amd64 (from .../libcroco3_0.6.5-1_amd64.deb) ... Selecting previously unselected package libunistring0:amd64. Unpacking libunistring0:amd64 (from .../libunistring0_0.9.3-5_amd64.deb) ... Selecting previously unselected package libgettextpo0:amd64. Unpacking libgettextpo0:amd64 (from .../libgettextpo0_0.18.1.1-9_amd64.deb) ... Selecting previously unselected package liblzo2-2:amd64. Unpacking liblzo2-2:amd64 (from .../liblzo2-2_2.06-1_amd64.deb) ... Selecting previously unselected package bsdmainutils. Unpacking bsdmainutils (from .../bsdmainutils_9.0.3_amd64.deb) ... Selecting previously unselected package groff-base. Unpacking groff-base (from .../groff-base_1.21-8_amd64.deb) ... Selecting previously unselected package man-db. Unpacking man-db (from .../man-db_2.6.2-1_amd64.deb) ... Selecting previously unselected package file. Unpacking file (from .../archives/file_5.11-1_amd64.deb) ... Selecting previously unselected package gettext-base. Unpacking gettext-base (from .../gettext-base_0.18.1.1-9_amd64.deb) ... Selecting previously unselected package html2text. Unpacking html2text (from .../html2text_1.3.2a-15_amd64.deb) ... Selecting previously unselected package gettext. Unpacking gettext (from .../gettext_0.18.1.1-9_amd64.deb) ... Selecting previously unselected package intltool-debian. Unpacking intltool-debian (from .../intltool-debian_0.35.0+20060710.1_all.deb) ... Selecting previously unselected package po-debconf. Unpacking po-debconf (from .../po-debconf_1.0.16+nmu2_all.deb) ... Selecting previously unselected package debhelper. Unpacking debhelper (from .../debhelper_9.20120608_all.deb) ... Selecting previously unselected package liblzo2-dev. Unpacking liblzo2-dev (from .../liblzo2-dev_2.06-1_amd64.deb) ... Selecting previously unselected package zlib1g-dev:amd64. Unpacking zlib1g-dev:amd64 (from .../zlib1g-dev_1%3a1.2.7.dfsg-13_amd64.deb) ... Selecting previously unselected package libattr1-dev:amd64. Unpacking libattr1-dev:amd64 (from .../libattr1-dev_1%3a2.4.46-8_amd64.deb) ... Selecting previously unselected package libacl1-dev. Unpacking libacl1-dev (from .../libacl1-dev_2.2.51-8_amd64.deb) ... Selecting previously unselected package uuid-dev. Unpacking uuid-dev (from .../uuid-dev_2.20.1-5.1_amd64.deb) ... Selecting previously unselected package sbuild-build-depends-mtd-utils-dummy. Unpacking sbuild-build-depends-mtd-utils-dummy (from .../sbuild-build-depends-mtd-utils-dummy.deb) ... Setting up libpipeline1:amd64 (1.2.1-1) ... Setting up libasprintf0c2:amd64 (0.18.1.1-9) ... Setting up libmagic1:amd64 (5.11-1) ... Setting up libpcre3:amd64 (1:8.30-5) ... Setting up libxml2:amd64 (2.8.0+dfsg1-4) ... Setting up libglib2.0-0:amd64 (2.32.3-1) ... No schema files found: doing nothing. Setting up libcroco3:amd64 (0.6.5-1) ... Setting up libunistring0:amd64 (0.9.3-5) ... Setting up libgettextpo0:amd64 (0.18.1.1-9) ... Setting up liblzo2-2:amd64 (2.06-1) ... Setting up bsdmainutils (9.0.3) ... update-alternatives: using /usr/bin/bsd-write to provide /usr/bin/write (write) in auto mode. update-alternatives: using /usr/bin/bsd-from to provide /usr/bin/from (from) in auto mode. Setting up groff-base (1.21-8) ... Setting up man-db (2.6.2-1) ... Building database of manual pages ... Setting up file (5.11-1) ... Setting up gettext-base (0.18.1.1-9) ... Setting up html2text (1.3.2a-15) ... Setting up gettext (0.18.1.1-9) ... Setting up intltool-debian (0.35.0+20060710.1) ... Setting up po-debconf (1.0.16+nmu2) ... Setting up debhelper (9.20120608) ... Setting up liblzo2-dev (2.06-1) ... Setting up zlib1g-dev:amd64 (1:1.2.7.dfsg-13) ... Setting up libattr1-dev:amd64 (1:2.4.46-8) ... Setting up libacl1-dev (2.2.51-8) ... Setting up uuid-dev (2.20.1-5.1) ... Setting up sbuild-build-depends-mtd-utils-dummy (0.invalid.0) ... ┌──────────────────────────────────────────────────────────────────────────────┐ │ Build environment │ └──────────────────────────────────────────────────────────────────────────────┘ Kernel: Linux 2.6.32-5-xen-amd64 amd64 (x86_64) Toolchain package versions: binutils_2.22-6.1 dpkg-dev_1.16.4.3 g++-4.6_4.6.3-7 g++-4.7_4.7.1-1 gcc-4.6_4.6.3-7 gcc-4.7_4.7.1-1 libc6-dev_2.13-33 libstdc++6_4.7.1-1 libstdc++6-4.6-dev_4.6.3-7 libstdc++6-4.7-dev_4.7.1-1 linux-libc-dev_3.2.20-1 Package versions: apt_0.9.7 base-files_6.11 base-passwd_3.5.26 bash_4.2-2 binutils_2.22-6.1 bsdmainutils_9.0.3 bsdutils_1:2.20.1-5.1 build-essential_11.5 bzip2_1.0.6-3 clang_3.1-6 coreutils_8.13-3.2 cpp_4:4.7.0-6 cpp-4.6_4.6.3-7 cpp-4.7_4.7.1-1 dash_0.5.7-3 debconf_1.5.44 debconf-i18n_1.5.44 debfoster_2.7-1.1 debhelper_9.20120608 debian-archive-keyring_2012.4 debianutils_4.3.1 diffutils_1:3.2-6 dpkg_1.16.4.3 dpkg-dev_1.16.4.3 e2fslibs_1.42.4-3 e2fsprogs_1.42.4-3 fakeroot_1.18.4-2 file_5.11-1 findutils_4.4.2-4 g++_4:4.7.0-6 g++-4.6_4.6.3-7 g++-4.7_4.7.1-1 gcc_4:4.7.0-6 gcc-4.4-base_4.4.7-1 gcc-4.5-base_4.5.3-12 gcc-4.6_4.6.3-7 gcc-4.6-base_4.6.3-7 gcc-4.7_4.7.1-1 gcc-4.7-base_4.7.1-1 gettext_0.18.1.1-9 gettext-base_0.18.1.1-9 gnupg_1.4.12-4 gpgv_1.4.12-4 grep_2.12-2 groff-base_1.21-8 gzip_1.5-1.1 hostname_3.11 html2text_1.3.2a-15 initscripts_2.88dsf-27 insserv_1.14.0-3 intltool-debian_0.35.0+20060710.1 libacl1_2.2.51-8 libacl1-dev_2.2.51-8 libapt-pkg4.12_0.9.7 libasprintf0c2_0.18.1.1-9 libattr1_1:2.4.46-8 libattr1-dev_1:2.4.46-8 libblkid1_2.20.1-5.1 libbz2-1.0_1.0.6-3 libc-bin_2.13-33 libc-dev-bin_2.13-33 libc6_2.13-33 libc6-dev_2.13-33 libclang-common-dev_3.1-6 libclass-isa-perl_0.36-3 libcomerr2_1.42.4-3 libcroco3_0.6.5-1 libdb5.1_5.1.29-4 libdpkg-perl_1.16.4.3 libffi5_3.0.10-3 libfile-fcntllock-perl_0.14-2 libgc1c2_1:7.1-8 libgcc1_1:4.7.1-1 libgdbm3_1.8.3-11 libgettextpo0_0.18.1.1-9 libglib2.0-0_2.32.3-1 libgmp10_2:5.0.5+dfsg-2 libgomp1_4.7.1-1 libitm1_4.7.1-1 libllvm3.1_3.1-1 liblocale-gettext-perl_1.05-7+b1 liblzma5_5.1.1alpha+20120614-1 liblzo2-2_2.06-1 liblzo2-dev_2.06-1 libmagic1_5.11-1 libmount1_2.20.1-5.1 libmpc2_0.9-4 libmpfr4_3.1.0-5 libncurses5_5.9-9 libpam-modules_1.1.3-7.1 libpam-modules-bin_1.1.3-7.1 libpam-runtime_1.1.3-7.1 libpam0g_1.1.3-7.1 libpcre3_1:8.30-5 libpipeline1_1.2.1-1 libquadmath0_4.7.1-1 libreadline6_6.2-8 libselinux1_2.1.9-5 libsemanage-common_2.1.6-6 libsemanage1_2.1.6-6 libsepol1_2.1.4-3 libslang2_2.2.4-13 libss2_1.42.4-3 libstdc++6_4.7.1-1 libstdc++6-4.6-dev_4.6.3-7 libstdc++6-4.7-dev_4.7.1-1 libswitch-perl_2.16-2 libtext-charwidth-perl_0.04-7+b1 libtext-iconv-perl_1.7-5 libtext-wrapi18n-perl_0.06-7 libtimedate-perl_1.2000-1 libtinfo5_5.9-9 libunistring0_0.9.3-5 libusb-0.1-4_2:0.1.12-23 libustr-1.0-1_1.0.4-3 libuuid1_2.20.1-5.1 libxml2_2.8.0+dfsg1-4 linux-libc-dev_3.2.20-1 login_1:4.1.5.1-1 lsb-base_4.1+Debian7 make_3.81-8.2 man-db_2.6.2-1 mawk_1.3.3-17 mount_2.20.1-5.1 multiarch-support_2.13-33 ncurses-base_5.9-9 ncurses-bin_5.9-9 passwd_1:4.1.5.1-1 patch_2.6.1-3 perl_5.14.2-12 perl-base_5.14.2-12 perl-modules_5.14.2-12 po-debconf_1.0.16+nmu2 readline-common_6.2-8 sbuild-build-depends-core-dummy_0.invalid.0 sbuild-build-depends-mtd-utils-dummy_0.invalid.0 sed_4.2.1-10 sensible-utils_0.0.7 sysv-rc_2.88dsf-27 sysvinit_2.88dsf-27 sysvinit-utils_2.88dsf-27 tar_1.26-4 tzdata_2012c-1 ucf_3.0025+nmu3 util-linux_2.20.1-5.1 uuid-dev_2.20.1-5.1 xz-utils_5.1.1alpha+20120614-1 zlib1g_1:1.2.7.dfsg-13 zlib1g-dev_1:1.2.7.dfsg-13 ┌──────────────────────────────────────────────────────────────────────────────┐ │ Build │ └──────────────────────────────────────────────────────────────────────────────┘ Unpack source ───────────── gpgv: keyblock resource `/sbuild-nonexistent/.gnupg/trustedkeys.gpg': file open error gpgv: Signature made Wed May 16 08:59:00 2012 UTC using DSA key ID CAEAAF03 gpgv: Can't check signature: public key not found dpkg-source: warning: failed to verify signature on ./mtd-utils_1.5.0-1.dsc dpkg-source: info: extracting mtd-utils in mtd-utils-1.5.0 dpkg-source: info: unpacking mtd-utils_1.5.0.orig.tar.gz dpkg-source: info: applying mtd-utils_1.5.0-1.diff.gz Check disc space ──────────────── Sufficient free space for build User Environment ──────────────── HOME=/sbuild-nonexistent LOGNAME=root PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11 SCHROOT_CHROOT_NAME=unstable-amd64-sbuild SCHROOT_COMMAND=env SCHROOT_GID=0 SCHROOT_GROUP=root SCHROOT_SESSION_ID=unstable-amd64-sbuild-4fb2c20d-65d1-4428-b411-c454a87e477d SCHROOT_UID=0 SCHROOT_USER=root SHELL=/bin/sh USER=root dpkg-buildpackage ───────────────── dpkg-buildpackage: warning: using a gain-root-command while being root dpkg-buildpackage: source package mtd-utils dpkg-buildpackage: source version 1:1.5.0-1 dpkg-buildpackage: source changed by Riku Voipio dpkg-source --before-build mtd-utils-1.5.0 dpkg-buildpackage: host architecture amd64 fakeroot debian/rules clean dh_testdir dh_testroot rm -f build-stamp # Add here commands to clean up after the build process. [ -f Makefile ] && /usr/bin/make clean make[1]: Entering directory `/«PKGBUILDDIR»' rm -f /«PKGBUILDDIR»/*.o /«PKGBUILDDIR»/ftl_format /«PKGBUILDDIR»/flash_erase /«PKGBUILDDIR»/nanddump /«PKGBUILDDIR»/doc_loadbios /«PKGBUILDDIR»/ftl_check /«PKGBUILDDIR»/mkfs.jffs2 /«PKGBUILDDIR»/flash_lock /«PKGBUILDDIR»/flash_unlock /«PKGBUILDDIR»/flash_otp_info /«PKGBUILDDIR»/flash_otp_dump /«PKGBUILDDIR»/mtd_debug /«PKGBUILDDIR»/flashcp /«PKGBUILDDIR»/nandwrite /«PKGBUILDDIR»/nandtest /«PKGBUILDDIR»/jffs2dump /«PKGBUILDDIR»/nftldump /«PKGBUILDDIR»/nftl_format /«PKGBUILDDIR»/docfdisk /«PKGBUILDDIR»/rfddump /«PKGBUILDDIR»/rfdformat /«PKGBUILDDIR»/serve_image /«PKGBUILDDIR»/recv_image /«PKGBUILDDIR»/sumtool /«PKGBUILDDIR»/jffs2reader /«PKGBUILDDIR»/mkfs.ubifs/mkfs.ubifs /«PKGBUILDDIR»/ubi-utils/ubiupdatevol /«PKGBUILDDIR»/ubi-utils/ubimkvol /«PKGBUILDDIR»/ubi-utils/ubirmvol /«PKGBUILDDIR»/ubi-utils/ubicrc32 /«PKGBUILDDIR»/ubi-utils/ubinfo /«PKGBUILDDIR»/ubi-utils/ubiattach /«PKGBUILDDIR»/ubi-utils/ubidetach /«PKGBUILDDIR»/ubi-utils/ubinize /«PKGBUILDDIR»/ubi-utils/ubiformat /«PKGBUILDDIR»/ubi-utils/ubirename /«PKGBUILDDIR»/ubi-utils/mtdinfo /«PKGBUILDDIR»/ubi-utils/ubirsvol /«PKGBUILDDIR»/lib/libmtd.a /«PKGBUILDDIR»/ubi-utils/libubi.a /«PKGBUILDDIR»/.*.c.dep rm -f /«PKGBUILDDIR»/include/version.h /usr/bin/make -C tests clean make[2]: Entering directory `/«PKGBUILDDIR»/tests' /usr/bin/make -C checkfs clean make[3]: Entering directory `/«PKGBUILDDIR»/tests/checkfs' rm -f /«PKGBUILDDIR»/tests/checkfs/*.o /«PKGBUILDDIR»/tests/checkfs/checkfs /«PKGBUILDDIR»/tests/checkfs/makefiles /«PKGBUILDDIR»/tests/checkfs/.*.c.dep make[3]: Leaving directory `/«PKGBUILDDIR»/tests/checkfs' /usr/bin/make -C fs-tests clean make[3]: Entering directory `/«PKGBUILDDIR»/tests/fs-tests' /usr/bin/make -C lib clean make[4]: Entering directory `/«PKGBUILDDIR»/tests/fs-tests/lib' rm -f *.o make[4]: Leaving directory `/«PKGBUILDDIR»/tests/fs-tests/lib' /usr/bin/make -C simple clean make[4]: Entering directory `/«PKGBUILDDIR»/tests/fs-tests/simple' rm -f *.o test_1 test_2 ftrunc orph perf make[4]: Leaving directory `/«PKGBUILDDIR»/tests/fs-tests/simple' /usr/bin/make -C stress clean make[4]: Entering directory `/«PKGBUILDDIR»/tests/fs-tests/stress' /usr/bin/make -C atoms clean make[5]: Entering directory `/«PKGBUILDDIR»/tests/fs-tests/stress/atoms' rm -f *.o stress_1 stress_2 stress_3 pdfrun rndwrite00 fwrite00 rmdir00 rndrm00 rndrm99 gcd_hupper run_pdf_test_file make[5]: Leaving directory `/«PKGBUILDDIR»/tests/fs-tests/stress/atoms' rm -rf run_pdf_test_file_* make[4]: Leaving directory `/«PKGBUILDDIR»/tests/fs-tests/stress' /usr/bin/make -C integrity clean make[4]: Entering directory `/«PKGBUILDDIR»/tests/fs-tests/integrity' rm -f *.o integck libubi.a make[4]: Leaving directory `/«PKGBUILDDIR»/tests/fs-tests/integrity' /usr/bin/make -C utils clean make[4]: Entering directory `/«PKGBUILDDIR»/tests/fs-tests/utils' rm -f *.o fstest_monitor free_space make[4]: Leaving directory `/«PKGBUILDDIR»/tests/fs-tests/utils' make[3]: Leaving directory `/«PKGBUILDDIR»/tests/fs-tests' /usr/bin/make -C jittertest clean make[3]: Entering directory `/«PKGBUILDDIR»/tests/jittertest' rm -rf *~ rm -rf core rm -rf *.o rm -rf JitterTest make[3]: Leaving directory `/«PKGBUILDDIR»/tests/jittertest' /usr/bin/make -C ubi-tests clean make[3]: Entering directory `/«PKGBUILDDIR»/tests/ubi-tests' rm -f /«PKGBUILDDIR»/tests/ubi-tests/*.o /«PKGBUILDDIR»/tests/ubi-tests/io_update /«PKGBUILDDIR»/tests/ubi-tests/volrefcnt /«PKGBUILDDIR»/tests/ubi-tests/integ /«PKGBUILDDIR»/tests/ubi-tests/io_paral /«PKGBUILDDIR»/tests/ubi-tests/io_read /«PKGBUILDDIR»/tests/ubi-tests/io_basic /«PKGBUILDDIR»/tests/ubi-tests/mkvol_basic /«PKGBUILDDIR»/tests/ubi-tests/mkvol_bad /«PKGBUILDDIR»/tests/ubi-tests/mkvol_paral /«PKGBUILDDIR»/tests/ubi-tests/rsvol /«PKGBUILDDIR»/tests/ubi-tests/.*.c.dep rm -f libubi.a make[3]: Leaving directory `/«PKGBUILDDIR»/tests/ubi-tests' make[2]: Leaving directory `/«PKGBUILDDIR»/tests' make[1]: Leaving directory `/«PKGBUILDDIR»' dh_clean dpkg-buildpackage: warning: debian/rules must be updated to support the 'build-arch' and 'build-indep' targets (at least 'build-arch' seems to be missing) debian/rules build dh_testdir touch build-stamp fakeroot debian/rules binary-arch dh_testdir dh_testroot dh_clean -k dh_clean: dh_clean -k is deprecated; use dh_prep instead dh_installdirs # Add here commands to install the package into debian/tmp. /usr/bin/make install DESTDIR=`pwd`/debian/mtd-utils make[1]: Entering directory `/«PKGBUILDDIR»' CHK include/version.h CC ftl_format.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present CC lib/libmtd.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present In file included from lib/libmtd.c:40: ./include/common.h:127:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtol, long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:128:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoll, long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:129:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoul, unsigned long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:130:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoull, unsigned long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from lib/libmtd.c:40: In file included from ./include/common.h:138: ./include/xalloc.h:44:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from lib/libmtd.c:40: In file included from ./include/common.h:138: ./include/xalloc.h:54:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from lib/libmtd.c:40: In file included from ./include/common.h:138: ./include/xalloc.h:69:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from lib/libmtd.c:40: In file included from ./include/common.h:138: ./include/xalloc.h:82:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:86:3: warning: expression result unused [-Wunused-value] sys_errmsg("cannot read \"%s\"", file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:86:3: warning: expression result unused [-Wunused-value] sys_errmsg("cannot read \"%s\"", file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:82:2: note: expanded from macro 'sys_errmsg' -1; \ ^~ lib/libmtd.c:91:3: warning: expression result unused [-Wunused-value] errmsg("contents of \"%s\" is too long", file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:101:3: warning: expression result unused [-Wunused-value] sys_errmsg("cannot read \"%s\"", file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:101:3: warning: expression result unused [-Wunused-value] sys_errmsg("cannot read \"%s\"", file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:82:2: note: expanded from macro 'sys_errmsg' -1; \ ^~ lib/libmtd.c:105:3: warning: expression result unused [-Wunused-value] errmsg("file \"%s\" contains too much data (> %d bytes)", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:112:3: warning: expression result unused [-Wunused-value] sys_errmsg("close failed on \"%s\"", file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:112:3: warning: expression result unused [-Wunused-value] sys_errmsg("close failed on \"%s\"", file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:82:2: note: expanded from macro 'sys_errmsg' -1; \ ^~ lib/libmtd.c:210:3: warning: expression result unused [-Wunused-value] sys_errmsg("cannot read \"%s\"", file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:210:3: warning: expression result unused [-Wunused-value] sys_errmsg("cannot read \"%s\"", file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:82:2: note: expanded from macro 'sys_errmsg' -1; \ ^~ lib/libmtd.c:214:3: warning: expression result unused [-Wunused-value] errmsg("contents of \"%s\" is too long", file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:221:3: warning: expression result unused [-Wunused-value] errmsg("cannot read integer from \"%s\"\n", file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:227:3: warning: expression result unused [-Wunused-value] errmsg("negative value %lld in \"%s\"", *value, file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:233:10: warning: expression result unused [-Wunused-value] return sys_errmsg("close failed on \"%s\"", file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:262:3: warning: expression result unused [-Wunused-value] sys_errmsg("cannot read \"%s\"", file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:262:3: warning: expression result unused [-Wunused-value] sys_errmsg("cannot read \"%s\"", file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:82:2: note: expanded from macro 'sys_errmsg' -1; \ ^~ lib/libmtd.c:266:3: warning: expression result unused [-Wunused-value] errmsg("contents of \"%s\" is too long", file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:272:3: warning: expression result unused [-Wunused-value] errmsg("cannot read integer from \"%s\"\n", file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:278:3: warning: expression result unused [-Wunused-value] errmsg("negative value %lld in \"%s\"", *value, file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:284:10: warning: expression result unused [-Wunused-value] return sys_errmsg("close failed on \"%s\"", file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:310:3: warning: expression result unused [-Wunused-value] errmsg("value %lld read from file \"%s\" is out of range", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:337:3: warning: expression result unused [-Wunused-value] errmsg("value %lld read from file \"%s\" is out of range", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:436:10: warning: expression result unused [-Wunused-value] return sys_errmsg("cannot get information about \"%s\"", node); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:439:3: warning: expression result unused [-Wunused-value] errmsg("\"%s\" is not a character device", node); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:501:10: warning: expression result unused [-Wunused-value] return sys_errmsg("cannot open \"%s\"", lib->sysfs_mtd); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:518:4: warning: expression result unused [-Wunused-value] errmsg("invalid entry in %s: \"%s\"", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:534:10: warning: expression result unused [-Wunused-value] return sys_errmsg("closedir failed on \"%s\"", lib->sysfs_mtd); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:546:3: warning: expression result unused [-Wunused-value] sys_errmsg("close failed on \"%s\"", file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:546:3: warning: expression result unused [-Wunused-value] sys_errmsg("close failed on \"%s\"", file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:82:2: note: expanded from macro 'sys_errmsg' -1; \ ^~ lib/libmtd.c:681:10: warning: expression result unused [-Wunused-value] return sys_errmsg("cannot open \"%s\"", lib->sysfs_mtd); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:695:4: warning: expression result unused [-Wunused-value] errmsg("invalid entry in %s: \"%s\"", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:713:3: warning: expression result unused [-Wunused-value] sys_errmsg("readdir failed on \"%s\"", lib->sysfs_mtd); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:713:3: warning: expression result unused [-Wunused-value] sys_errmsg("readdir failed on \"%s\"", lib->sysfs_mtd); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:82:2: note: expanded from macro 'sys_errmsg' -1; \ ^~ lib/libmtd.c:718:10: warning: expression result unused [-Wunused-value] return sys_errmsg("closedir failed on \"%s\"", lib->sysfs_mtd); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:747:46: warning: passing 'const char (*)[128]' to parameter of type 'void *' discards qualifiers [-Wincompatible-pointer-types] ret = dev_read_data(lib->mtd_name, mtd_num, &mtd->name, ^~~~~~~~~~ lib/libmtd.c:182:63: note: passing argument to parameter 'buf' here static int dev_read_data(const char *patt, int mtd_num, void *buf, int buf_len) ^ lib/libmtd.c:753:46: warning: passing 'const char (*)[65]' to parameter of type 'void *' discards qualifiers [-Wincompatible-pointer-types] ret = dev_read_data(lib->mtd_type, mtd_num, &mtd->type_str, ^~~~~~~~~~~~~~ lib/libmtd.c:182:63: note: passing argument to parameter 'buf' here static int dev_read_data(const char *patt, int mtd_num, void *buf, int buf_len) ^ lib/libmtd.c:799:9: warning: expression result unused [-Wunused-value] return sys_errmsg("%s ioctl failed for eraseblock %d (mtd%d)", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:806:3: warning: expression result unused [-Wunused-value] errmsg("bad eraseblock number %d, mtd%d has %d eraseblocks", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:878:3: warning: expression result unused [-Wunused-value] errmsg("this system can address only %u eraseblocks", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:903:10: warning: expression result unused [-Wunused-value] return sys_errmsg("%s ioctl failed for erase region %d", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:972:4: warning: expression result unused [-Wunused-value] errmsg("erased PEB %d, but a non-0xFF byte found", eb); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:991:4: warning: expression result unused [-Wunused-value] errmsg("pattern %x checking failed for PEB %d", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:1057:3: warning: expression result unused [-Wunused-value] errmsg("bad offset %d or length %d, mtd%d eraseblock size is %d", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:1066:10: warning: expression result unused [-Wunused-value] return sys_errmsg("cannot seek mtd%d to offset %llu", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:1072:11: warning: expression result unused [-Wunused-value] return sys_errmsg("cannot read %d bytes from mtd%d (eraseblock %d, offset %d)", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:1088:10: warning: expression result unused [-Wunused-value] return sys_errmsg("MEMGETOOBSEL failed"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:1129:3: warning: expression result unused [-Wunused-value] errmsg("bad offset %d or length %d, mtd%d eraseblock size is %d", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:1135:3: warning: expression result unused [-Wunused-value] errmsg("write offset %d is not aligned to mtd%d min. I/O size %d", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:1141:3: warning: expression result unused [-Wunused-value] errmsg("write length %d is not aligned to mtd%d min. I/O size %d", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:1169:11: warning: expression result unused [-Wunused-value] return sys_errmsg("cannot write to OOB"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:1174:11: warning: expression result unused [-Wunused-value] return sys_errmsg("cannot seek mtd%d to offset %llu", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:1178:11: warning: expression result unused [-Wunused-value] return sys_errmsg("cannot write %d bytes to mtd%d " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:1207:3: warning: expression result unused [-Wunused-value] errmsg("bad page address %" PRIu64 ", mtd%d has %d eraseblocks (%llu bytes)", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:1215:3: warning: expression result unused [-Wunused-value] errmsg("Cannot write %" PRIu64 " OOB bytes to address %" PRIu64 " (OOB offset %u) - mtd%d OOB size is only %d bytes", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:1233:4: warning: expression result unused [-Wunused-value] sys_errmsg("%s ioctl failed for mtd%d, offset %" PRIu64 " (eraseblock %" PRIu64 ")", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:1233:4: warning: expression result unused [-Wunused-value] sys_errmsg("%s ioctl failed for mtd%d, offset %" PRIu64 " (eraseblock %" PRIu64 ")", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:82:2: note: expanded from macro 'sys_errmsg' -1; \ ^~ lib/libmtd.c:1246:3: warning: expression result unused [-Wunused-value] errmsg("this system can address only up to address %lu", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:1258:3: warning: expression result unused [-Wunused-value] sys_errmsg("%s ioctl failed for mtd%d, offset %" PRIu64 " (eraseblock %" PRIu64 ")", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:1258:3: warning: expression result unused [-Wunused-value] sys_errmsg("%s ioctl failed for mtd%d, offset %" PRIu64 " (eraseblock %" PRIu64 ")", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:82:2: note: expanded from macro 'sys_errmsg' -1; \ ^~ lib/libmtd.c:1290:3: warning: expression result unused [-Wunused-value] errmsg("bad offset %d, mtd%d eraseblock size is %d", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:1296:3: warning: expression result unused [-Wunused-value] errmsg("write offset %d is not aligned to mtd%d min. I/O size %d", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:1304:10: warning: expression result unused [-Wunused-value] return sys_errmsg("cannot open \"%s\"", img_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:1307:3: warning: expression result unused [-Wunused-value] sys_errmsg("cannot stat %s", img_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:1307:3: warning: expression result unused [-Wunused-value] sys_errmsg("cannot stat %s", img_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:82:2: note: expanded from macro 'sys_errmsg' -1; \ ^~ lib/libmtd.c:1313:3: warning: expression result unused [-Wunused-value] errmsg("size of \"%s\" is %d byte, which is not aligned to " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:1321:3: warning: expression result unused [-Wunused-value] errmsg("\"%s\" image size is %d bytes, mtd%d size is %d " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:1332:3: warning: expression result unused [-Wunused-value] sys_errmsg("cannot seek mtd%d to offset %llu", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:1332:3: warning: expression result unused [-Wunused-value] sys_errmsg("cannot seek mtd%d to offset %llu", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:82:2: note: expanded from macro 'sys_errmsg' -1; \ ^~ lib/libmtd.c:1345:5: warning: expression result unused [-Wunused-value] sys_errmsg("cannot read \"%s\"", img_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:1345:5: warning: expression result unused [-Wunused-value] sys_errmsg("cannot read \"%s\"", img_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:82:2: note: expanded from macro 'sys_errmsg' -1; \ ^~ lib/libmtd.c:1353:4: warning: expression result unused [-Wunused-value] sys_errmsg("cannot write %d bytes to mtd%d (eraseblock %d, offset %d)", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:1353:4: warning: expression result unused [-Wunused-value] sys_errmsg("cannot write %d bytes to mtd%d (eraseblock %d, offset %d)", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:82:2: note: expanded from macro 'sys_errmsg' -1; \ ^~ lib/libmtd.c:1382:10: warning: expression result unused [-Wunused-value] return sys_errmsg("cannot get information about \"%s\"", node); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd.c:1385:3: warning: expression result unused [-Wunused-value] errmsg("\"%s\" is not a character device", node); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ 82 warnings generated. CC lib/libmtd_legacy.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present In file included from lib/libmtd_legacy.c:38: ./include/common.h:127:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtol, long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:128:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoll, long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:129:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoul, unsigned long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:130:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoull, unsigned long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from lib/libmtd_legacy.c:38: In file included from ./include/common.h:138: ./include/xalloc.h:44:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from lib/libmtd_legacy.c:38: In file included from ./include/common.h:138: ./include/xalloc.h:54:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from lib/libmtd_legacy.c:38: In file included from ./include/common.h:138: ./include/xalloc.h:69:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from lib/libmtd_legacy.c:38: In file included from ./include/common.h:138: ./include/xalloc.h:82:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd_legacy.c:82:3: warning: expression result unused [-Wunused-value] sys_errmsg("cannot read \"%s\"", MTD_PROC_FILE); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd_legacy.c:82:3: warning: expression result unused [-Wunused-value] sys_errmsg("cannot read \"%s\"", MTD_PROC_FILE); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:82:2: note: expanded from macro 'sys_errmsg' -1; \ ^~ lib/libmtd_legacy.c:88:3: warning: expression result unused [-Wunused-value] errmsg("\"%s\" does not start with \"%s\"", MTD_PROC_FILE, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd_legacy.c:241:3: warning: expression result unused [-Wunused-value] sys_errmsg("cannot open \"%s\"", node); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd_legacy.c:241:3: warning: expression result unused [-Wunused-value] sys_errmsg("cannot open \"%s\"", node); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:82:2: note: expanded from macro 'sys_errmsg' -1; \ ^~ lib/libmtd_legacy.c:267:10: warning: expression result unused [-Wunused-value] return sys_errmsg("cannot open \"%s\"", node); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd_legacy.c:270:3: warning: expression result unused [-Wunused-value] sys_errmsg("MEMGETINFO ioctl request failed"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd_legacy.c:270:3: warning: expression result unused [-Wunused-value] sys_errmsg("MEMGETINFO ioctl request failed"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:82:2: note: expanded from macro 'sys_errmsg' -1; \ ^~ lib/libmtd_legacy.c:277:4: warning: expression result unused [-Wunused-value] sys_errmsg("MEMGETBADBLOCK ioctl failed"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd_legacy.c:277:4: warning: expression result unused [-Wunused-value] sys_errmsg("MEMGETBADBLOCK ioctl failed"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:82:2: note: expanded from macro 'sys_errmsg' -1; \ ^~ lib/libmtd_legacy.c:292:3: warning: expression result unused [-Wunused-value] errmsg("mtd%d (%s) has insane min. I/O unit size %d", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd_legacy.c:297:3: warning: expression result unused [-Wunused-value] errmsg("mtd%d (%s) has insane eraseblock size %d", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd_legacy.c:302:3: warning: expression result unused [-Wunused-value] errmsg("mtd%d (%s) has insane size %lld", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd_legacy.c:310:3: warning: expression result unused [-Wunused-value] errmsg("mtd%d (%s) is removable and is not present", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ lib/libmtd_legacy.c:356:2: warning: expression result unused [-Wunused-value] errmsg("mtd%d not found in \"%s\"", mtd->mtd_num, MTD_PROC_FILE); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ 23 warnings generated. CC lib/libcrc32.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present CC lib/libfec.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present AR lib/libmtd.a LD ftl_format CC flash_erase.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present In file included from flash_erase.c:35: ./include/common.h:127:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtol, long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:128:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoll, long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:129:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoul, unsigned long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:130:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoull, unsigned long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from flash_erase.c:35: In file included from ./include/common.h:138: ./include/xalloc.h:44:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from flash_erase.c:35: In file included from ./include/common.h:138: ./include/xalloc.h:54:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from flash_erase.c:35: In file included from ./include/common.h:138: ./include/xalloc.h:69:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from flash_erase.c:35: In file included from ./include/common.h:138: ./include/xalloc.h:82:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ flash_erase.c:161:3: warning: expression result unused [-Wunused-value] errmsg("no MTD device specified"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ flash_erase.c:163:3: warning: expression result unused [-Wunused-value] errmsg("no start erase block specified"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ flash_erase.c:165:3: warning: expression result unused [-Wunused-value] errmsg("no erase block count specified"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ flash_erase.c:180:10: warning: expression result unused [-Wunused-value] return sys_errmsg("%s", mtd_device); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ flash_erase.c:198:12: warning: expression result unused [-Wunused-value] return sys_errmsg("%s: unable to get NAND oobinfo", mtd_device); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ flash_erase.c:251:13: warning: expression result unused [-Wunused-value] return sys_errmsg("%s: MTD get bad block failed", mtd_device); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ flash_erase.c:259:5: warning: expression result unused [-Wunused-value] sys_errmsg("%s: MTD unlock failure", mtd_device); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ flash_erase.c:259:5: warning: expression result unused [-Wunused-value] sys_errmsg("%s: MTD unlock failure", mtd_device); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:82:2: note: expanded from macro 'sys_errmsg' -1; \ ^~ flash_erase.c:265:4: warning: expression result unused [-Wunused-value] sys_errmsg("%s: MTD Erase failure", mtd_device); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ flash_erase.c:265:4: warning: expression result unused [-Wunused-value] sys_errmsg("%s: MTD Erase failure", mtd_device); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:82:2: note: expanded from macro 'sys_errmsg' -1; \ ^~ flash_erase.c:276:5: warning: expression result unused [-Wunused-value] sys_errmsg("%s: MTD writeoob failure", mtd_device); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ flash_erase.c:276:5: warning: expression result unused [-Wunused-value] sys_errmsg("%s: MTD writeoob failure", mtd_device); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:82:2: note: expanded from macro 'sys_errmsg' -1; \ ^~ flash_erase.c:281:5: warning: expression result unused [-Wunused-value] sys_errmsg("%s: MTD lseek failure", mtd_device); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ flash_erase.c:281:5: warning: expression result unused [-Wunused-value] sys_errmsg("%s: MTD lseek failure", mtd_device); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:82:2: note: expanded from macro 'sys_errmsg' -1; \ ^~ flash_erase.c:285:5: warning: expression result unused [-Wunused-value] sys_errmsg("%s: MTD write failure", mtd_device); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ flash_erase.c:285:5: warning: expression result unused [-Wunused-value] sys_errmsg("%s: MTD write failure", mtd_device); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:82:2: note: expanded from macro 'sys_errmsg' -1; \ ^~ 24 warnings generated. LD flash_erase CC nanddump.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present In file included from nanddump.c:34: ./include/common.h:127:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtol, long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:128:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoll, long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:129:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoul, unsigned long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:130:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoull, unsigned long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from nanddump.c:34: In file included from ./include/common.h:138: ./include/xalloc.h:44:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from nanddump.c:34: In file included from ./include/common.h:138: ./include/xalloc.h:54:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from nanddump.c:34: In file included from ./include/common.h:138: ./include/xalloc.h:69:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from nanddump.c:34: In file included from ./include/common.h:138: ./include/xalloc.h:82:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from nanddump.c:34: In file included from ./include/common.h:138: ./include/xalloc.h:100:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ nanddump.c:405:5: warning: expression result unused [-Wunused-value] errmsg("libmtd: mtd_is_bad"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ nanddump.c:423:5: warning: expression result unused [-Wunused-value] errmsg("mtd_read"); ^~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ nanddump.c:463:5: warning: expression result unused [-Wunused-value] errmsg("libmtd: mtd_read_oob"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ 12 warnings generated. LD nanddump CC doc_loadbios.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present LD doc_loadbios CC ftl_check.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present LD ftl_check CC mkfs.jffs2.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present In file included from mkfs.jffs2.c:78: ./include/common.h:127:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtol, long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:128:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoll, long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:129:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoul, unsigned long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:130:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoull, unsigned long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from mkfs.jffs2.c:78: In file included from ./include/common.h:138: ./include/xalloc.h:44:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from mkfs.jffs2.c:78: In file included from ./include/common.h:138: ./include/xalloc.h:54:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from mkfs.jffs2.c:78: In file included from ./include/common.h:138: ./include/xalloc.h:69:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from mkfs.jffs2.c:78: In file included from ./include/common.h:138: ./include/xalloc.h:82:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from mkfs.jffs2.c:78: In file included from ./include/common.h:138: ./include/xalloc.h:100:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ mkfs.jffs2.c:153:4: warning: expression result unused [-Wunused-value] sys_errmsg("%s:%s", PROGRAM_NAME, path); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ mkfs.jffs2.c:153:4: warning: expression result unused [-Wunused-value] sys_errmsg("%s:%s", PROGRAM_NAME, path); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:82:2: note: expanded from macro 'sys_errmsg' -1; \ ^~ mkfs.jffs2.c:167:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("%s", path); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ mkfs.jffs2.c:316:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("%s", hostpath); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ mkfs.jffs2.c:324:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("opening directory %s", hostpath); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ mkfs.jffs2.c:339:4: warning: expression result unused [-Wunused-value] sys_errmsg_die("%s", hpath); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ mkfs.jffs2.c:363:5: warning: expression result unused [-Wunused-value] errmsg("Unknown file type %o for %s", sb.st_mode, hpath); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ mkfs.jffs2.c:424:24: warning: format specifies type 'float *' but the argument has type 'char **' [-Wformat] if (sscanf (line, "%" SCANF_PREFIX "s %c %lo %lu %lu %lu %lu %lu %lu %lu", ~~~^ mkfs.jffs2.c:380:23: note: expanded from macro 'SCANF_PREFIX' #define SCANF_PREFIX "a" ^ mkfs.jffs2.c:478:4: warning: expression result unused [-Wunused-value] errmsg ("skipping device_table entry '%s': no parent directory!", name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ mkfs.jffs2.c:630:4: warning: expression result unused [-Wunused-value] sys_errmsg_die("write"); ^~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ mkfs.jffs2.c:633:4: warning: expression result unused [-Wunused-value] sys_errmsg_die("write returned zero"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ mkfs.jffs2.c:733:3: warning: expression result unused [-Wunused-value] errmsg("Skipping file \"%s\" too large.", e->path); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ mkfs.jffs2.c:738:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("%s: open file", e->hostname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ mkfs.jffs2.c:770:4: warning: expression result unused [-Wunused-value] sys_errmsg_die("read"); ^~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ mkfs.jffs2.c:861:3: warning: expression result unused [-Wunused-value] errmsg("symlink too large. Truncated to %d chars.", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ mkfs.jffs2.c:1302:5: warning: expression result unused [-Wunused-value] errmsg("Unknown mode %o for %s", e->sb.st_mode, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ mkfs.jffs2.c:1584:6: warning: expression result unused [-Wunused-value] sys_errmsg_die("%s", optarg); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ mkfs.jffs2.c:1608:6: warning: expression result unused [-Wunused-value] sys_errmsg_die("open output file"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ mkfs.jffs2.c:1737:9: warning: expression result unused [-Wunused-value] sys_errmsg_die("cannot open (incremental) file"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ mkfs.jffs2.c:1759:3: warning: expression result unused [-Wunused-value] errmsg("Page size for this system is by default %d", page_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ mkfs.jffs2.c:1760:3: warning: expression result unused [-Wunused-value] errmsg("Use the --pagesize=SIZE option if this is not what you want"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ mkfs.jffs2.c:1769:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("%s", rootdir); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ mkfs.jffs2.c:1772:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("%s", rootdir); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ mkfs.jffs2.c:1775:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("getcwd failed"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ 33 warnings generated. CC compr_rtime.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present CC compr_zlib.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present In file included from compr_zlib.c:44: ./include/common.h:127:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtol, long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:128:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoll, long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:129:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoul, unsigned long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:130:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoull, unsigned long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from compr_zlib.c:44: In file included from ./include/common.h:138: ./include/xalloc.h:44:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from compr_zlib.c:44: In file included from ./include/common.h:138: ./include/xalloc.h:54:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from compr_zlib.c:44: In file included from ./include/common.h:138: ./include/xalloc.h:69:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from compr_zlib.c:44: In file included from ./include/common.h:138: ./include/xalloc.h:82:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ 8 warnings generated. CC compr_lzo.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present CC compr.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present CC rbtree.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present LD mkfs.jffs2 CC flash_lock.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present In file included from flash_lock.c:8: In file included from ./flash_unlock.c:25: ./include/common.h:127:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtol, long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:128:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoll, long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:129:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoul, unsigned long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:130:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoull, unsigned long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from flash_lock.c:8: In file included from ./flash_unlock.c:25: In file included from ./include/common.h:138: ./include/xalloc.h:44:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from flash_lock.c:8: In file included from ./flash_unlock.c:25: In file included from ./include/common.h:138: ./include/xalloc.h:54:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from flash_lock.c:8: In file included from ./flash_unlock.c:25: In file included from ./include/common.h:138: ./include/xalloc.h:69:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from flash_lock.c:8: In file included from ./flash_unlock.c:25: In file included from ./include/common.h:138: ./include/xalloc.h:82:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from flash_lock.c:8: ./flash_unlock.c:57:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("could not open: %s", dev); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from flash_lock.c:8: ./flash_unlock.c:60:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("could not get mtd info: %s", dev); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from flash_lock.c:8: ./flash_unlock.c:86:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("could not %s device: %s\n", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ 11 warnings generated. LD flash_lock CC flash_unlock.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present In file included from flash_unlock.c:25: ./include/common.h:127:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtol, long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:128:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoll, long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:129:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoul, unsigned long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:130:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoull, unsigned long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from flash_unlock.c:25: In file included from ./include/common.h:138: ./include/xalloc.h:44:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from flash_unlock.c:25: In file included from ./include/common.h:138: ./include/xalloc.h:54:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from flash_unlock.c:25: In file included from ./include/common.h:138: ./include/xalloc.h:69:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from flash_unlock.c:25: In file included from ./include/common.h:138: ./include/xalloc.h:82:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ flash_unlock.c:57:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("could not open: %s", dev); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ flash_unlock.c:60:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("could not get mtd info: %s", dev); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ flash_unlock.c:86:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("could not %s device: %s\n", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ 11 warnings generated. LD flash_unlock CC flash_otp_info.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present LD flash_otp_info CC flash_otp_dump.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present LD flash_otp_dump CC mtd_debug.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present In file included from mtd_debug.c:42: ./include/common.h:127:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtol, long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:128:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoll, long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:129:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoul, unsigned long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:130:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoull, unsigned long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from mtd_debug.c:42: In file included from ./include/common.h:138: ./include/xalloc.h:44:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from mtd_debug.c:42: In file included from ./include/common.h:138: ./include/xalloc.h:54:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from mtd_debug.c:42: In file included from ./include/common.h:138: ./include/xalloc.h:69:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from mtd_debug.c:42: In file included from ./include/common.h:138: ./include/xalloc.h:82:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ 8 warnings generated. LD mtd_debug CC flashcp.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present flashcp.c:255:2: warning: "Check for smaller erase regions" [-W#warnings] #warning "Check for smaller erase regions" ^ 1 warning generated. LD flashcp CC nandwrite.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present In file included from nandwrite.c:43: ./include/common.h:127:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtol, long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:128:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoll, long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:129:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoul, unsigned long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:130:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoull, unsigned long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from nandwrite.c:43: In file included from ./include/common.h:138: ./include/xalloc.h:44:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from nandwrite.c:43: In file included from ./include/common.h:138: ./include/xalloc.h:54:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from nandwrite.c:43: In file included from ./include/common.h:138: ./include/xalloc.h:69:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from nandwrite.c:43: In file included from ./include/common.h:138: ./include/xalloc.h:82:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from nandwrite.c:43: In file included from ./include/common.h:138: ./include/xalloc.h:100:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ nandwrite.c:250:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("%s", mtd_device); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ nandwrite.c:286:5: warning: expression result unused [-Wunused-value] sys_errmsg_die("MTDFILEMODE"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ nandwrite.c:335:3: warning: expression result unused [-Wunused-value] sys_errmsg("Input file does not fit into device"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ nandwrite.c:335:3: warning: expression result unused [-Wunused-value] sys_errmsg("Input file does not fit into device"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:82:2: note: expanded from macro 'sys_errmsg' -1; \ ^~ nandwrite.c:390:6: warning: expression result unused [-Wunused-value] sys_errmsg("%s: MTD get bad block failed", mtd_device); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ nandwrite.c:390:6: warning: expression result unused [-Wunused-value] sys_errmsg("%s: MTD get bad block failed", mtd_device); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:82:2: note: expanded from macro 'sys_errmsg' -1; \ ^~ nandwrite.c:508:5: warning: expression result unused [-Wunused-value] sys_errmsg("%s: MTD write failure", mtd_device); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ nandwrite.c:508:5: warning: expression result unused [-Wunused-value] sys_errmsg("%s: MTD write failure", mtd_device); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:82:2: note: expanded from macro 'sys_errmsg' -1; \ ^~ nandwrite.c:520:6: warning: expression result unused [-Wunused-value] sys_errmsg("%s: MTD Erase failure", mtd_device); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ nandwrite.c:520:6: warning: expression result unused [-Wunused-value] sys_errmsg("%s: MTD Erase failure", mtd_device); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:82:2: note: expanded from macro 'sys_errmsg' -1; \ ^~ nandwrite.c:531:6: warning: expression result unused [-Wunused-value] sys_errmsg("%s: MTD Mark bad block failure", mtd_device); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ nandwrite.c:531:6: warning: expression result unused [-Wunused-value] sys_errmsg("%s: MTD Mark bad block failure", mtd_device); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:82:2: note: expanded from macro 'sys_errmsg' -1; \ ^~ nandwrite.c:553:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("Data was only partially written due to error"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ 22 warnings generated. LD nandwrite CC nandtest.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present LD nandtest CC jffs2dump.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present In file included from jffs2dump.c:38: ./include/common.h:127:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtol, long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:128:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoll, long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:129:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoul, unsigned long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:130:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoull, unsigned long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from jffs2dump.c:38: In file included from ./include/common.h:138: ./include/xalloc.h:44:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from jffs2dump.c:38: In file included from ./include/common.h:138: ./include/xalloc.h:54:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from jffs2dump.c:38: In file included from ./include/common.h:138: ./include/xalloc.h:69:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from jffs2dump.c:38: In file included from ./include/common.h:138: ./include/xalloc.h:82:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ 8 warnings generated. LD jffs2dump CC nftldump.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present LD nftldump CC nftl_format.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present LD nftl_format CC docfdisk.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present LD docfdisk CC rfddump.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present LD rfddump CC rfdformat.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present LD rfdformat CC serve_image.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present LD serve_image CC recv_image.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present In file included from recv_image.c:24: ./include/common.h:127:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtol, long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:128:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoll, long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:129:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoul, unsigned long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:130:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoull, unsigned long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from recv_image.c:24: In file included from ./include/common.h:138: ./include/xalloc.h:44:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from recv_image.c:24: In file included from ./include/common.h:138: ./include/xalloc.h:54:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from recv_image.c:24: In file included from ./include/common.h:138: ./include/xalloc.h:69:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from recv_image.c:24: In file included from ./include/common.h:138: ./include/xalloc.h:82:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ 8 warnings generated. LD recv_image CC sumtool.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present In file included from sumtool.c:51: ./include/common.h:127:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtol, long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:128:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoll, long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:129:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoul, unsigned long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:130:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoull, unsigned long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from sumtool.c:51: In file included from ./include/common.h:138: ./include/xalloc.h:44:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from sumtool.c:51: In file included from ./include/common.h:138: ./include/xalloc.h:54:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from sumtool.c:51: In file included from ./include/common.h:138: ./include/xalloc.h:69:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from sumtool.c:51: In file included from ./include/common.h:138: ./include/xalloc.h:82:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ sumtool.c:144:6: warning: expression result unused [-Wunused-value] sys_errmsg_die("open output file"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ sumtool.c:152:6: warning: expression result unused [-Wunused-value] sys_errmsg_die("open input file"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ sumtool.c:289:4: warning: expression result unused [-Wunused-value] sys_errmsg_die("write"); ^~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ sumtool.c:292:4: warning: expression result unused [-Wunused-value] sys_errmsg_die("write returned zero"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ 12 warnings generated. LD sumtool CC jffs2reader.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present In file included from jffs2reader.c:80: ./include/common.h:127:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtol, long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:128:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoll, long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:129:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoul, unsigned long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:130:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoull, unsigned long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from jffs2reader.c:80: In file included from ./include/common.h:138: ./include/xalloc.h:44:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from jffs2reader.c:80: In file included from ./include/common.h:138: ./include/xalloc.h:54:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from jffs2reader.c:80: In file included from ./include/common.h:138: ./include/xalloc.h:69:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from jffs2reader.c:80: In file included from ./include/common.h:138: ./include/xalloc.h:82:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ jffs2reader.c:892:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("%s", argv[optind]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ jffs2reader.c:895:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("%s", argv[optind]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ jffs2reader.c:900:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("%s", argv[optind]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ 11 warnings generated. LD jffs2reader CC mkfs.ubifs/mkfs.ubifs.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present In file included from mkfs.ubifs/mkfs.ubifs.c:25: In file included from mkfs.ubifs/mkfs.ubifs.h:56: mkfs.ubifs/key.h:66:6: warning: explicitly assigning a variable of type 'int' to itself [-Wself-assign] len = len; ~~~ ^ ~~~ In file included from mkfs.ubifs/mkfs.ubifs.c:27: ./include/common.h:127:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtol, long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:128:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoll, long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:129:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoul, unsigned long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:130:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoull, unsigned long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from mkfs.ubifs/mkfs.ubifs.c:27: In file included from ./include/common.h:138: ./include/xalloc.h:44:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from mkfs.ubifs/mkfs.ubifs.c:27: In file included from ./include/common.h:138: ./include/xalloc.h:54:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from mkfs.ubifs/mkfs.ubifs.c:27: In file included from ./include/common.h:138: ./include/xalloc.h:69:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from mkfs.ubifs/mkfs.ubifs.c:27: In file included from ./include/common.h:138: ./include/xalloc.h:82:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from mkfs.ubifs/mkfs.ubifs.c:27: In file included from ./include/common.h:138: ./include/xalloc.h:100:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ mkfs.ubifs/mkfs.ubifs.c:1289:5: warning: expression result unused [-Wunused-value] sys_err_msg("failed to read file '%s'", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkfs.ubifs/mkfs.ubifs.h:90:2: note: expanded from macro 'sys_err_msg' -1; \ ^~ mkfs.ubifs/mkfs.ubifs.c:1479:4: warning: expression result unused [-Wunused-value] sys_err_msg("error reading directory '%s'", dir_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkfs.ubifs/mkfs.ubifs.h:90:2: note: expanded from macro 'sys_err_msg' -1; \ ^~ mkfs.ubifs/mkfs.ubifs.c:1507:4: warning: expression result unused [-Wunused-value] sys_err_msg("lstat failed for file '%s'", name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkfs.ubifs/mkfs.ubifs.h:90:2: note: expanded from macro 'sys_err_msg' -1; \ ^~ mkfs.ubifs/mkfs.ubifs.c:1561:4: warning: expression result unused [-Wunused-value] err_msg("Bad device table entry %s/%s - it is " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkfs.ubifs/mkfs.ubifs.h:83:2: note: expanded from macro 'err_msg' -1; \ ^~ 14 warnings generated. CC mkfs.ubifs/crc16.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present CC mkfs.ubifs/lpt.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present In file included from mkfs.ubifs/lpt.c:23: In file included from mkfs.ubifs/mkfs.ubifs.h:56: mkfs.ubifs/key.h:66:6: warning: explicitly assigning a variable of type 'int' to itself [-Wself-assign] len = len; ~~~ ^ ~~~ mkfs.ubifs/lpt.c:156:4: warning: expression result unused [-Wunused-value] err_msg("LPT ltab too big"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mkfs.ubifs/mkfs.ubifs.h:83:2: note: expanded from macro 'err_msg' -1; \ ^~ mkfs.ubifs/lpt.c:144:3: warning: expression result unused [-Wunused-value] do_div(sz, c->leb_size); ^~~~~~~~~~~~~~~~~~~~~~~ mkfs.ubifs/defs.h:96:44: note: expanded from macro 'do_div' n = ((unsigned long) n) / (unsigned) base; \ ^ 3 warnings generated. CC mkfs.ubifs/compr.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present In file included from mkfs.ubifs/compr.c:36: In file included from mkfs.ubifs/mkfs.ubifs.h:56: mkfs.ubifs/key.h:66:6: warning: explicitly assigning a variable of type 'int' to itself [-Wself-assign] len = len; ~~~ ^ ~~~ 1 warning generated. CC mkfs.ubifs/devtable.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present In file included from mkfs.ubifs/devtable.c:47: In file included from mkfs.ubifs/mkfs.ubifs.h:56: mkfs.ubifs/key.h:66:6: warning: explicitly assigning a variable of type 'int' to itself [-Wself-assign] len = len; ~~~ ^ ~~~ mkfs.ubifs/devtable.c:196:4: warning: expression result unused [-Wunused-value] err_msg("cannot allocate %zd bytes of memory", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkfs.ubifs/mkfs.ubifs.h:83:2: note: expanded from macro 'err_msg' -1; \ ^~ mkfs.ubifs/devtable.c:202:4: warning: expression result unused [-Wunused-value] err_msg("cannot insert into path hash table"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkfs.ubifs/mkfs.ubifs.h:83:2: note: expanded from macro 'err_msg' -1; \ ^~ mkfs.ubifs/devtable.c:211:4: warning: expression result unused [-Wunused-value] err_msg("cannot create name hash table"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkfs.ubifs/mkfs.ubifs.h:83:2: note: expanded from macro 'err_msg' -1; \ ^~ mkfs.ubifs/devtable.c:229:4: warning: expression result unused [-Wunused-value] err_msg("cannot allocate %zd bytes of memory", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkfs.ubifs/mkfs.ubifs.h:83:2: note: expanded from macro 'err_msg' -1; \ ^~ mkfs.ubifs/devtable.c:247:4: warning: expression result unused [-Wunused-value] err_msg("cannot insert into name hash table"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkfs.ubifs/mkfs.ubifs.h:83:2: note: expanded from macro 'err_msg' -1; \ ^~ mkfs.ubifs/devtable.c:257:5: warning: expression result unused [-Wunused-value] err_msg("cannot allocate %zd bytes of memory", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkfs.ubifs/mkfs.ubifs.h:83:2: note: expanded from macro 'err_msg' -1; \ ^~ mkfs.ubifs/devtable.c:269:5: warning: expression result unused [-Wunused-value] err_msg("cannot allocate %d bytes of memory", len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkfs.ubifs/mkfs.ubifs.h:83:2: note: expanded from macro 'err_msg' -1; \ ^~ mkfs.ubifs/devtable.c:280:5: warning: expression result unused [-Wunused-value] err_msg("'%s' is referred twice", buf); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkfs.ubifs/mkfs.ubifs.h:83:2: note: expanded from macro 'err_msg' -1; \ ^~ mkfs.ubifs/devtable.c:286:5: warning: expression result unused [-Wunused-value] err_msg("cannot insert into name hash table"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkfs.ubifs/mkfs.ubifs.h:83:2: note: expanded from macro 'err_msg' -1; \ ^~ mkfs.ubifs/devtable.c:332:3: warning: expression result unused [-Wunused-value] sys_err_msg("cannot stat '%s'", tbl_file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkfs.ubifs/mkfs.ubifs.h:90:2: note: expanded from macro 'sys_err_msg' -1; \ ^~ mkfs.ubifs/devtable.c:337:3: warning: expression result unused [-Wunused-value] sys_err_msg("'%s' is too short", tbl_file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkfs.ubifs/mkfs.ubifs.h:90:2: note: expanded from macro 'sys_err_msg' -1; \ ^~ mkfs.ubifs/devtable.c:362:5: warning: expression result unused [-Wunused-value] err_msg("cannot parse '%s'", line); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkfs.ubifs/mkfs.ubifs.h:83:2: note: expanded from macro 'err_msg' -1; \ ^~ 13 warnings generated. CC mkfs.ubifs/hashtable/hashtable.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present In file included from mkfs.ubifs/hashtable/hashtable.c:5: ./include/common.h:127:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtol, long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:128:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoll, long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:129:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoul, unsigned long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ ./include/common.h:130:1: warning: expression result unused [-Wunused-value] simple_strtoX(strtoull, unsigned long long int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:121:3: note: expanded from macro 'simple_strtoX' errmsg("%s: unable to parse the number '%s'", #func, snum); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from mkfs.ubifs/hashtable/hashtable.c:5: In file included from ./include/common.h:138: ./include/xalloc.h:44:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from mkfs.ubifs/hashtable/hashtable.c:5: In file included from ./include/common.h:138: ./include/xalloc.h:54:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from mkfs.ubifs/hashtable/hashtable.c:5: In file included from ./include/common.h:138: ./include/xalloc.h:69:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ In file included from mkfs.ubifs/hashtable/hashtable.c:5: In file included from ./include/common.h:138: ./include/xalloc.h:82:3: warning: expression result unused [-Wunused-value] sys_errmsg_die("out of memory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/common.h:85:7: note: expanded from macro 'sys_errmsg_die' exit(sys_errmsg(fmt, ##__VA_ARGS__)); \ ^ ./include/common.h:79:2: note: expanded from macro 'sys_errmsg' errmsg(fmt, ##__VA_ARGS__); \ ^ ./include/common.h:70:2: note: expanded from macro 'errmsg' -1; \ ^~ 8 warnings generated. CC mkfs.ubifs/hashtable/hashtable_itr.o clang: warning: -Wl,--gc-sections: 'linker' input unused when '-c' is present mkfs.ubifs/hashtable/hashtable_itr.c:42:1: error: redefinition of a 'extern inline' function 'hashtable_iterator_key' is not supported in C99 mode hashtable_iterator_key(struct hashtable_itr *i) ^ mkfs.ubifs/hashtable/hashtable_itr.h:32:1: note: previous definition is here hashtable_iterator_key(struct hashtable_itr *i) ^ mkfs.ubifs/hashtable/hashtable_itr.c:46:1: error: redefinition of a 'extern inline' function 'hashtable_iterator_value' is not supported in C99 mode hashtable_iterator_value(struct hashtable_itr *i) ^ mkfs.ubifs/hashtable/hashtable_itr.h:41:1: note: previous definition is here hashtable_iterator_value(struct hashtable_itr *i) ^ 2 errors generated. make[1]: *** [/«PKGBUILDDIR»/mkfs.ubifs/hashtable/hashtable_itr.o] Error 1 make[1]: Leaving directory `/«PKGBUILDDIR»' make: *** [install] Error 2 dpkg-buildpackage: error: fakeroot debian/rules binary-arch gave error exit status 2 ──────────────────────────────────────────────────────────────────────────────── Build finished at 20120623-1643 Finished ──────── E: Build failure (dpkg-buildpackage died) ┌──────────────────────────────────────────────────────────────────────────────┐ │ Cleanup │ └──────────────────────────────────────────────────────────────────────────────┘ Purging /«BUILDDIR» Not cleaning session: cloned chroot in use ┌──────────────────────────────────────────────────────────────────────────────┐ │ Summary │ └──────────────────────────────────────────────────────────────────────────────┘ Architecture: amd64 Build-Space: 5016 Build-Time: 9 Distribution: unstable Fail-Stage: build Install-Time: 8 Job: mtd-utils_1:1.5.0-1 Package: mtd-utils Package-Time: 44 Source-Version: 1:1.5.0-1 Space: 5016 Status: attempted Version: 1:1.5.0-1 ──────────────────────────────────────────────────────────────────────────────── Finished at 20120623-1643 Build needed 00:00:44, 5016k disc space DC-Status: Failed 44.653606s