Build of mtd-utils with clang_glibc toolchain

The build took 00h 01m 18s and was SUCCESSFUL.

The program in this build is written in the following languages, according to sloccount:

SLOCLanguage
31,661 ansic
521 sh
248 makefile
32,430 total

The process tree of the build process is here.

Several sub-process invocations were improper; see the process tree for details. Summary:

Log

To avoid scrolling, you may jump to the last line of the invocation of makepkg that was used to build this package.

Removed vanilla repositories from pacman.conf and added:
# [tuscan]
# Server = file:///var/cache/pacman/pkg/

CMD: pacman -Syy --noconfirm
# :: Synchronizing package databases...
# downloading tuscan.db...

Copied permanent toolchain into container-local sysroot
# /toolchain_root/sysroot --> /sysroot/sysroot
# /toolchain_root/lib --> /sysroot/lib
# /toolchain_root/sbin --> /sysroot/sbin
# /toolchain_root/lib64 --> /sysroot/lib64
# /toolchain_root/etc --> /sysroot/etc
# /toolchain_root/share --> /sysroot/share
# /toolchain_root/bin --> /sysroot/bin
# /toolchain_root/var --> /sysroot/var
# /toolchain_root/usr --> /sysroot/usr
# /toolchain_root/glibc-build --> /sysroot/glibc-build
# /toolchain_root/x86_64-pc-linux-gnu --> /sysroot/x86_64-pc-linux-gnu
# /toolchain_root/include --> /sysroot/include
# /toolchain_root/libexec --> /sysroot/libexec

CMD: sudo -u tuscan PATH=/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=clang CXX=clang++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
# ==> Making package: mtd-utils 1.5.2-1 (Thu Apr 13 16:08:57 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# make: Entering directory '/tmp/mtd-utils/src/mtd-utils-1.5.2'
# CHK include/version.h
# CC ftl_format.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# CC lib/libmtd.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# lib/libmtd.c:749:46: warning: passing 'const char (*)[128]' to parameter of type 'void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
# 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:755:46: warning: passing 'const char (*)[65]' to parameter of type 'void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
# 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)
# ^
# 2 warnings generated.
# CC lib/libmtd_legacy.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# CC lib/libcrc32.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# CC lib/libfec.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# AR lib/libmtd.a
# LD ftl_format
# CC flash_erase.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD flash_erase
# CC nanddump.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD nanddump
# CC doc_loadbios.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD doc_loadbios
# CC ftl_check.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD ftl_check
# CC mkfs.jffs2.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# mkfs.jffs2.c:424:5: warning: format specifies type 'float *' but the argument has type 'char **' [-Wformat]
# SCANF_STRING(name), &type, &mode, &uid, &gid, &major, &minor,
# ^~~~~~~~~~~~~~~~~~
# mkfs.jffs2.c:380:25: note: expanded from macro 'SCANF_STRING'
# #define SCANF_STRING(s) (&s)
# ^~~~
# 1 warning generated.
# CC compr_rtime.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# CC compr_zlib.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# CC compr_lzo.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# CC compr.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# CC rbtree.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD mkfs.jffs2
# CC flash_lock.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD flash_lock
# CC flash_unlock.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD flash_unlock
# CC flash_otp_info.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD flash_otp_info
# CC flash_otp_dump.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD flash_otp_dump
# CC flash_otp_lock.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD flash_otp_lock
# CC flash_otp_write.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD flash_otp_write
# CC mtd_debug.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD mtd_debug
# CC flashcp.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# 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-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD nandwrite
# CC nandtest.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD nandtest
# CC mtdpart.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD mtdpart
# CC jffs2dump.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD jffs2dump
# CC nftldump.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD nftldump
# CC nftl_format.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD nftl_format
# CC docfdisk.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD docfdisk
# CC rfddump.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD rfddump
# CC rfdformat.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD rfdformat
# CC serve_image.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD serve_image
# CC recv_image.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# In file included from recv_image.c:6:
# In file included from /usr/include/errno.h:28:
# /usr/include/features.h:148:3: warning: "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-W#warnings]
# # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
# ^
# 1 warning generated.
# LD recv_image
# CC sumtool.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD sumtool
# CC jffs2reader.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD jffs2reader
# CC mkfs.ubifs/mkfs.ubifs.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# In file included from mkfs.ubifs/mkfs.ubifs.c:25:
# In file included from mkfs.ubifs/mkfs.ubifs.h:59:
# mkfs.ubifs/key.h:66:6: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign]
# len = len;
# ~~~ ^ ~~~
# 1 warning generated.
# CC mkfs.ubifs/crc16.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# CC mkfs.ubifs/lpt.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# In file included from mkfs.ubifs/lpt.c:23:
# In file included from mkfs.ubifs/mkfs.ubifs.h:59:
# mkfs.ubifs/key.h:66:6: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign]
# len = len;
# ~~~ ^ ~~~
# 1 warning generated.
# CC mkfs.ubifs/compr.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# In file included from mkfs.ubifs/compr.c:35:
# In file included from mkfs.ubifs/mkfs.ubifs.h:59:
# mkfs.ubifs/key.h:66:6: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign]
# len = len;
# ~~~ ^ ~~~
# 1 warning generated.
# CC mkfs.ubifs/devtable.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# In file included from mkfs.ubifs/devtable.c:47:
# In file included from mkfs.ubifs/mkfs.ubifs.h:59:
# mkfs.ubifs/key.h:66:6: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign]
# len = len;
# ~~~ ^ ~~~
# 1 warning generated.
# CC mkfs.ubifs/hashtable/hashtable.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# CC mkfs.ubifs/hashtable/hashtable_itr.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# CC ubi-utils/libubi.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# ubi-utils/libubi.c:844:7: warning: explicitly assigning value of variable of type 'libubi_t' (aka 'void *') to itself [-Wself-assign]
# desc = desc;
# ~~~~ ^ ~~~~
# ubi-utils/libubi.c:1010:7: warning: explicitly assigning value of variable of type 'libubi_t' (aka 'void *') to itself [-Wself-assign]
# desc = desc;
# ~~~~ ^ ~~~~
# ubi-utils/libubi.c:1023:7: warning: explicitly assigning value of variable of type 'libubi_t' (aka 'void *') to itself [-Wself-assign]
# desc = desc;
# ~~~~ ^ ~~~~
# ubi-utils/libubi.c:1050:7: warning: explicitly assigning value of variable of type 'libubi_t' (aka 'void *') to itself [-Wself-assign]
# desc = desc;
# ~~~~ ^ ~~~~
# ubi-utils/libubi.c:1076:7: warning: explicitly assigning value of variable of type 'libubi_t' (aka 'void *') to itself [-Wself-assign]
# desc = desc;
# ~~~~ ^ ~~~~
# ubi-utils/libubi.c:1103:7: warning: explicitly assigning value of variable of type 'libubi_t' (aka 'void *') to itself [-Wself-assign]
# desc = desc;
# ~~~~ ^ ~~~~
# ubi-utils/libubi.c:1128:7: warning: explicitly assigning value of variable of type 'libubi_t' (aka 'void *') to itself [-Wself-assign]
# desc = desc;
# ~~~~ ^ ~~~~
# ubi-utils/libubi.c:1138:7: warning: explicitly assigning value of variable of type 'libubi_t' (aka 'void *') to itself [-Wself-assign]
# desc = desc;
# ~~~~ ^ ~~~~
# 8 warnings generated.
# AR ubi-utils/libubi.a
# LD mkfs.ubifs/mkfs.ubifs
# CC ubi-utils/ubiupdatevol.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# CC ubi-utils/ubiutils-common.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD ubi-utils/ubiupdatevol
# CC ubi-utils/ubimkvol.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD ubi-utils/ubimkvol
# CC ubi-utils/ubirmvol.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD ubi-utils/ubirmvol
# CC ubi-utils/ubicrc32.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD ubi-utils/ubicrc32
# CC ubi-utils/ubinfo.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD ubi-utils/ubinfo
# CC ubi-utils/ubiattach.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD ubi-utils/ubiattach
# CC ubi-utils/ubidetach.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD ubi-utils/ubidetach
# CC ubi-utils/ubinize.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# CC ubi-utils/libubigen.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# AR ubi-utils/libubigen.a
# CC ubi-utils/libiniparser.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# CC ubi-utils/dictionary.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# AR ubi-utils/libiniparser.a
# LD ubi-utils/ubinize
# CC ubi-utils/ubiformat.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# CC ubi-utils/libscan.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# AR ubi-utils/libscan.a
# LD ubi-utils/ubiformat
# CC ubi-utils/ubirename.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD ubi-utils/ubirename
# CC ubi-utils/mtdinfo.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD ubi-utils/mtdinfo
# CC ubi-utils/ubirsvol.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD ubi-utils/ubirsvol
# CC ubi-utils/ubiblock.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# LD ubi-utils/ubiblock
# make: Leaving directory '/tmp/mtd-utils/src/mtd-utils-1.5.2'
# ==> Entering fakeroot environment...
# ==> Starting package()...
# make: Entering directory '/tmp/mtd-utils/src/mtd-utils-1.5.2'
# CHK include/version.h
# mkdir -p /tmp/mtd-utils/pkg/mtd-utils//usr/sbin
# install -m 0755 /tmp/mtd-utils/src/mtd-utils-1.5.2/ftl_format /tmp/mtd-utils/src/mtd-utils-1.5.2/flash_erase /tmp/mtd-utils/src/mtd-utils-1.5.2/nanddump /tmp/mtd-utils/src/mtd-utils-1.5.2/doc_loadbios /tmp/mtd-utils/src/mtd-utils-1.5.2/ftl_check /tmp/mtd-utils/src/mtd-utils-1.5.2/mkfs.jffs2 /tmp/mtd-utils/src/mtd-utils-1.5.2/flash_lock /tmp/mtd-utils/src/mtd-utils-1.5.2/flash_unlock /tmp/mtd-utils/src/mtd-utils-1.5.2/flash_otp_info /tmp/mtd-utils/src/mtd-utils-1.5.2/flash_otp_dump /tmp/mtd-utils/src/mtd-utils-1.5.2/flash_otp_lock /tmp/mtd-utils/src/mtd-utils-1.5.2/flash_otp_write /tmp/mtd-utils/src/mtd-utils-1.5.2/mtd_debug /tmp/mtd-utils/src/mtd-utils-1.5.2/flashcp /tmp/mtd-utils/src/mtd-utils-1.5.2/nandwrite /tmp/mtd-utils/src/mtd-utils-1.5.2/nandtest /tmp/mtd-utils/src/mtd-utils-1.5.2/mtdpart /tmp/mtd-utils/src/mtd-utils-1.5.2/jffs2dump /tmp/mtd-utils/src/mtd-utils-1.5.2/nftldump /tmp/mtd-utils/src/mtd-utils-1.5.2/nftl_format /tmp/mtd-utils/src/mtd-utils-1.5.2/docfdisk /tmp/mtd-utils/src/mtd-utils-1.5.2/rfddump /tmp/mtd-utils/src/mtd-utils-1.5.2/rfdformat /tmp/mtd-utils/src/mtd-utils-1.5.2/serve_image /tmp/mtd-utils/src/mtd-utils-1.5.2/recv_image /tmp/mtd-utils/src/mtd-utils-1.5.2/sumtool /tmp/mtd-utils/src/mtd-utils-1.5.2/jffs2reader /tmp/mtd-utils/src/mtd-utils-1.5.2/mkfs.ubifs/mkfs.ubifs /tmp/mtd-utils/src/mtd-utils-1.5.2/ubi-utils/ubiupdatevol /tmp/mtd-utils/src/mtd-utils-1.5.2/ubi-utils/ubimkvol /tmp/mtd-utils/src/mtd-utils-1.5.2/ubi-utils/ubirmvol /tmp/mtd-utils/src/mtd-utils-1.5.2/ubi-utils/ubicrc32 /tmp/mtd-utils/src/mtd-utils-1.5.2/ubi-utils/ubinfo /tmp/mtd-utils/src/mtd-utils-1.5.2/ubi-utils/ubiattach /tmp/mtd-utils/src/mtd-utils-1.5.2/ubi-utils/ubidetach /tmp/mtd-utils/src/mtd-utils-1.5.2/ubi-utils/ubinize /tmp/mtd-utils/src/mtd-utils-1.5.2/ubi-utils/ubiformat /tmp/mtd-utils/src/mtd-utils-1.5.2/ubi-utils/ubirename /tmp/mtd-utils/src/mtd-utils-1.5.2/ubi-utils/mtdinfo /tmp/mtd-utils/src/mtd-utils-1.5.2/ubi-utils/ubirsvol /tmp/mtd-utils/src/mtd-utils-1.5.2/ubi-utils/ubiblock flash_eraseall /tmp/mtd-utils/pkg/mtd-utils//usr/sbin/
# mkdir -p /tmp/mtd-utils/pkg/mtd-utils//usr/share/man/man1
# install -m 0644 mkfs.jffs2.1 /tmp/mtd-utils/pkg/mtd-utils//usr/share/man/man1/
# gzip -9f /tmp/mtd-utils/pkg/mtd-utils//usr/share/man/man1/*.1
# make: Leaving directory '/tmp/mtd-utils/src/mtd-utils-1.5.2'
# ==> Tidying install...
# -> Removing doc files...
# -> Purging unwanted files...
# ==> Checking for packaging issue...
# ==> Creating package "mtd-utils"...
# -> Generating .PKGINFO file...
# -> Generating .BUILDINFO file...
# error: invalid option '--noprogressbar'
# -> Generating .MTREE file...
# -> Compressing package...
# ==> Leaving fakeroot environment.
# ==> Finished making: mtd-utils 1.5.2-1 (Thu Apr 13 16:09:27 UTC 2017)

CMD: pacman --query --file mtd-utils-1.5.2-1-x86_64.pkg.tar.xz
# mtd-utils 1.5.2-1

Creating hybrid package for 'mtd-utils'

Trying to find vanilla package 'mtd-utils'...

CMD: pacman --query --file /mirror/mtd-utils-1.5.2-1.pkg.tar.xz
# mtd-utils 1.5.2-1

Package file has the following structure:
# /.PKGINFO
# /.MTREE
# /usr/bin/flash_eraseall
# /usr/bin/ftl_format
# /usr/bin/flash_erase
# /usr/bin/nanddump
# /usr/bin/doc_loadbios
# /usr/bin/ftl_check
# /usr/bin/mkfs.jffs2
# /usr/bin/flash_lock
# /usr/bin/flash_unlock
# /usr/bin/flash_otp_info
# /usr/bin/flash_otp_dump
# /usr/bin/flash_otp_lock
# /usr/bin/flash_otp_write
# /usr/bin/mtd_debug
# /usr/bin/flashcp
# /usr/bin/nandwrite
# /usr/bin/nandtest
# /usr/bin/mtdpart
# /usr/bin/jffs2dump
# /usr/bin/nftldump
# /usr/bin/nftl_format
# /usr/bin/docfdisk
# /usr/bin/rfddump
# /usr/bin/rfdformat
# /usr/bin/serve_image
# /usr/bin/recv_image
# /usr/bin/sumtool
# /usr/bin/jffs2reader
# /usr/bin/mkfs.ubifs
# /usr/bin/ubiupdatevol
# /usr/bin/ubimkvol
# /usr/bin/ubirmvol
# /usr/bin/ubicrc32
# /usr/bin/ubinfo
# /usr/bin/ubiattach
# /usr/bin/ubidetach
# /usr/bin/ubinize
# /usr/bin/ubiformat
# /usr/bin/ubirename
# /usr/bin/mtdinfo
# /usr/bin/ubirsvol
# /usr/bin/ubiblock
# /usr/share/man/man1/mkfs.jffs2.1.gz

Generating .MTREE

CMD: bsdtar -czf .MTREE --format=mtree --options=!all,use-set,type,uid,mode,time,size,md5,sha256,link .PKGINFO usr

Tar-ing up files

CMD: bsdtar -cf - .PKGINFO usr .MTREE

CMD: xz -c -z

Successfully ran bsdtar -cf - .PKGINFO usr .MTREE | xz -c -z

CMD: bsdtar -tqf mtd-utils.pkg.tar.xz .PKGINFO
# .PKGINFO

Created package at path /var/cache/pacman/pkg/mtd-utils.pkg.tar.xz

Attempting to access local repository, attempt 1

CMD: repo-add /var/cache/pacman/pkg/tuscan.db.tar /var/cache/pacman/pkg/mtd-utils.pkg.tar.xz
# ==> Extracting database to a temporary location...
# ==> Extracting database to a temporary location...
# ==> Adding package '/var/cache/pacman/pkg/mtd-utils.pkg.tar.xz'
# -> Computing checksums...
# -> Creating 'desc' db entry...
# -> Creating 'files' db entry...
# ==> Creating updated database file '/var/cache/pacman/pkg/tuscan.db.tar'