Build of ivtv-utils with clang_glibc toolchain

The build took 00h 03m 51s and was SUCCESSFUL.

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

SLOCLanguage
13,733 ansic
2,913 cpp
2,593 perl
71 makefile
19,310 total

The process tree of the build process is here.

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: ivtv-utils 1.4.1-7 (Thu Apr 13 12:50:31 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# make -C utils all
# make[1]: Entering directory '/tmp/ivtv-utils/src/ivtv-utils-1.4.1/utils'
# clang++ -D_GNU_SOURCE -O2 -Wall -g -I. -c -o v4l2-ctl.o v4l2-ctl.cpp
# v4l2-ctl.cpp:793:33: warning: format specifies type 'unsigned long' but the argument has type '__u32' (aka 'unsigned int') [-Wformat]
# printf("\tMarkers: 0x%08lx\n", jc.jpeg_markers);
# ~~~~~ ^~~~~~~~~~~~~~~
# %08x
# v4l2-ctl.cpp:1152:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
# while (ep = readdir(dp))
# ~~~^~~~~~~~~~~~~
# v4l2-ctl.cpp:1152:12: note: place parentheses around the assignment to silence this warning
# while (ep = readdir(dp))
# ^
# ( )
# v4l2-ctl.cpp:1152:12: note: use '==' to turn this assignment into an equality comparison
# while (ep = readdir(dp))
# ^
# ==
# v4l2-ctl.cpp:896:14: warning: unused function 'pts_to_string' [-Wunused-function]
# static char *pts_to_string(char *str, unsigned long pts)
# ^
# 3 warnings generated.
# clang++ -lm -o v4l2-ctl v4l2-ctl.o
# clang -D_GNU_SOURCE -O2 -Wall -g -I. -c -o ivtv-ctl.o ivtv-ctl.c
# ivtv-ctl.c:257:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
# fprintf(f, buf);
# ^~~
# 1 warning generated.
# clang -lm -o ivtv-ctl ivtv-ctl.o
# clang -D_GNU_SOURCE -O2 -Wall -g -I. ivtv-radio.c -o ivtv-radio
# clang++ -D_GNU_SOURCE -O2 -Wall -g -I. -lm -lpthread -o ivtvplay ivtvplay.cc
# ivtvplay.cc:177:17: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
# if (index_size < 0) {
# ~~~~~~~~~~ ^ ~
# ivtvplay.cc:144:28: warning: unused function 'make_timestamp' [-Wunused-function]
# static inline gop_header_t make_timestamp(int hour, int minute, int second, int frame)
# ^
# 2 warnings generated.
# clang -D_GNU_SOURCE -O2 -Wall -g -I. ivtv-mpegindex.c -o ivtv-mpegindex
# ivtv-mpegindex.c:135:10: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
# if (got < 0) {
# ~~~ ^ ~
# ivtv-mpegindex.c:260:28: warning: unused function 'make_timestamp' [-Wunused-function]
# static inline gop_header_t make_timestamp(int hour, int minute, int second,
# ^
# 2 warnings generated.
# make CFLAGS="-D_GNU_SOURCE -O2 -Wall -g -I." -C ivtv-tune
# make[2]: Entering directory '/tmp/ivtv-utils/src/ivtv-utils-1.4.1/utils/ivtv-tune'
# clang -D_GNU_SOURCE -O2 -Wall -g -I. -c -o ivtv-tune.o ivtv-tune.c
# clang -D_GNU_SOURCE -O2 -Wall -g -I. -c -o frequencies.o frequencies.c
# clang -D_GNU_SOURCE -O2 -Wall -g -I. -c -o xawtv_parseconfig.o xawtv_parseconfig.c
# clang -D_GNU_SOURCE -O2 -Wall -g -I. -c -o cmdline.o cmdline.c
# clang ivtv-tune.o frequencies.o xawtv_parseconfig.o cmdline.o -o ivtv-tune
# make[2]: Leaving directory '/tmp/ivtv-utils/src/ivtv-utils-1.4.1/utils/ivtv-tune'
# make CFLAGS="-D_GNU_SOURCE -O2 -Wall -g -I." -C cx25840ctl
# make[2]: Entering directory '/tmp/ivtv-utils/src/ivtv-utils-1.4.1/utils/cx25840ctl'
# clang -D_GNU_SOURCE -O2 -Wall -g -I. -c -o cx25840ctl.o cx25840ctl.c
# clang -D_GNU_SOURCE -O2 -Wall -g -I. -c -o cx25840-registers.o cx25840-registers.c
# cx25840-registers.c:3186:133: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
# DEFINE_SETTING_ENTRY("AC_OUT_SEL", Pin_Configuration_6, 2, 1, RW, 0x0000, AC_OUT_SEL_value_map, "Selects which data is output on AC<86>97 output pins of AC_RSTN,"),
# ^~~~~~~~
# cx25840-registers.c:3086:183: note: expanded from macro 'DEFINE_SETTING_ENTRY'
# #define DEFINE_SETTING_ENTRY(name, rname, sbit, bitl, type, default, vptr, des) { (((rname)&0x1ff)<<0)|(((sbit)&0x7)<<9)|(((bitl)&0x1f)<<12)|(((type)&0xf)<<17), default, name, vptr, des }
# ^
# cx25840-registers.c:3583:127: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
# DEFINE_SETTING_ENTRY("DE_EMPHASIS_TIME", Preferred_Decode_Mode, 5, 1, RW, 0x0000, DE_EMPHASIS_TIME_value_map, "+++VALUE 0 75 <81>s"),
# ^~~~~~~~
# cx25840-registers.c:3086:183: note: expanded from macro 'DEFINE_SETTING_ENTRY'
# #define DEFINE_SETTING_ENTRY(name, rname, sbit, bitl, type, default, vptr, des) { (((rname)&0x1ff)<<0)|(((sbit)&0x7)<<9)|(((bitl)&0x1f)<<12)|(((type)&0xf)<<17), default, name, vptr, des }
# ^
# cx25840-registers.c:3635:122: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
# DEFINE_SETTING_ENTRY("PATH1_VOLUME", Path1_Volume, 0, 8, RW, 0x0024, 0, "Volume control in dB steps. +18 dB to 96 dB in <81> dB"),
# ^~~~~~~~
# cx25840-registers.c:3086:183: note: expanded from macro 'DEFINE_SETTING_ENTRY'
# #define DEFINE_SETTING_ENTRY(name, rname, sbit, bitl, type, default, vptr, des) { (((rname)&0x1ff)<<0)|(((sbit)&0x7)<<9)|(((bitl)&0x1f)<<12)|(((type)&0xf)<<17), default, name, vptr, des }
# ^
# cx25840-registers.c:3658:122: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
# DEFINE_SETTING_ENTRY("PATH2_VOLUME", Path2_Volume, 0, 8, RW, 0x0024, 0, "Volume control in dB steps. +18 dB to 96 dB in <81> dB steps"),
# ^~~~~~~~
# cx25840-registers.c:3086:183: note: expanded from macro 'DEFINE_SETTING_ENTRY'
# #define DEFINE_SETTING_ENTRY(name, rname, sbit, bitl, type, default, vptr, des) { (((rname)&0x1ff)<<0)|(((sbit)&0x7)<<9)|(((bitl)&0x1f)<<12)|(((type)&0xf)<<17), default, name, vptr, des }
# ^
# 4 warnings generated.
# clang -D_GNU_SOURCE -O2 -Wall -g -I. -c -o cmdline.o cmdline.c
# clang cx25840ctl.o cx25840-registers.o cmdline.o -o cx25840ctl
# make[2]: Leaving directory '/tmp/ivtv-utils/src/ivtv-utils-1.4.1/utils/cx25840ctl'
# make[1]: Leaving directory '/tmp/ivtv-utils/src/ivtv-utils-1.4.1/utils'
# make -C test all
# make[1]: Entering directory '/tmp/ivtv-utils/src/ivtv-utils-1.4.1/test'
# clang -I../utils -D_GNU_SOURCE -O2 -Wall -lm vbi.c -o vbi
# clang -I../utils -D_GNU_SOURCE -O2 -Wall -lm wss.c -o wss
# clang -I../utils -D_GNU_SOURCE -O2 -Wall -lm vbi-passthrough.c -o vbi-passthrough
# clang -I../utils -D_GNU_SOURCE -O2 -Wall -lm vbi-detect.c -o vbi-detect
# clang -I../utils -D_GNU_SOURCE -O2 -Wall -lm ivtv-pcm-tester.c -o ivtv-pcm-tester
# clang -I../utils -D_GNU_SOURCE -O2 -Wall -lm mpeg-read-test.c -o mpeg-read-test
# clang -I../utils -D_GNU_SOURCE -O2 -Wall -lm mpeg-freq-test.c -o mpeg-freq-test
# clang -I../utils -D_GNU_SOURCE -O2 -Wall -lm mpeg-read-sleep-test.c -o mpeg-read-sleep-test
# mpeg-read-sleep-test.c:48:50: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat]
# fprintf(stderr, "read %d, expected %u\n", sz, sizeof(buf));
# ~~ ^~~~~~~~~~~
# %lu
# 1 warning generated.
# clang -I../utils -D_GNU_SOURCE -O2 -Wall -lm mpeg-enc-stop-start-test.c -o mpeg-enc-stop-start-test
# mpeg-enc-stop-start-test.c:51:51: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat]
# fprintf(stderr, "read %d, expected %u\n", sz, sizeof(buf));
# ~~ ^~~~~~~~~~~
# %lu
# 1 warning generated.
# clang -I../utils -D_GNU_SOURCE -O2 -Wall -lm ivtv-yuv-dma-test.c -o ivtv-yuv-dma-test
# clang -I../utils -D_GNU_SOURCE -O2 -Wall -lm ivtv-osd-dma-test.c -o ivtv-osd-dma-test
# In file included from ivtv-osd-dma-test.c:9:
# ../utils/linux/ivtvfb.h:35:9: warning: 'FBIO_WAITFORVSYNC' macro redefined [-Wmacro-redefined]
# #define FBIO_WAITFORVSYNC _IOW('F', 0x20, u_int32_t)
# ^
# /usr/include/linux/fb.h:34:9: note: previous definition is here
# #define FBIO_WAITFORVSYNC _IOW('F', 0x20, __u32)
# ^
# 1 warning generated.
# clang -I../utils -D_GNU_SOURCE -O2 -Wall -lm ivtv-fb-colormap-test.c -o ivtv-fb-colormap-test
# In file included from ivtv-fb-colormap-test.c:10:
# ../utils/linux/ivtvfb.h:35:9: warning: 'FBIO_WAITFORVSYNC' macro redefined [-Wmacro-redefined]
# #define FBIO_WAITFORVSYNC _IOW('F', 0x20, u_int32_t)
# ^
# /usr/include/linux/fb.h:34:9: note: previous definition is here
# #define FBIO_WAITFORVSYNC _IOW('F', 0x20, __u32)
# ^
# 1 warning generated.
# clang -I../utils -D_GNU_SOURCE -O2 -Wall -lm ivtv-fb-16-bit-test.c -o ivtv-fb-16-bit-test
# In file included from ivtv-fb-16-bit-test.c:10:
# ../utils/linux/ivtvfb.h:35:9: warning: 'FBIO_WAITFORVSYNC' macro redefined [-Wmacro-redefined]
# #define FBIO_WAITFORVSYNC _IOW('F', 0x20, u_int32_t)
# ^
# /usr/include/linux/fb.h:34:9: note: previous definition is here
# #define FBIO_WAITFORVSYNC _IOW('F', 0x20, __u32)
# ^
# 1 warning generated.
# clang++ -I../utils -D_GNU_SOURCE -O2 -Wall -lm ps-analyzer.cpp -o ps-analyzer
# make[1]: Leaving directory '/tmp/ivtv-utils/src/ivtv-utils-1.4.1/test'
# ==> Entering fakeroot environment...
# ==> Starting package()...
# make -C utils install
# make[1]: Entering directory '/tmp/ivtv-utils/src/ivtv-utils-1.4.1/utils'
# make CFLAGS="-D_GNU_SOURCE -O2 -Wall -g -I." -C ivtv-tune
# make[2]: Entering directory '/tmp/ivtv-utils/src/ivtv-utils-1.4.1/utils/ivtv-tune'
# make[2]: Nothing to be done for 'all'.
# make[2]: Leaving directory '/tmp/ivtv-utils/src/ivtv-utils-1.4.1/utils/ivtv-tune'
# make CFLAGS="-D_GNU_SOURCE -O2 -Wall -g -I." -C cx25840ctl
# make[2]: Entering directory '/tmp/ivtv-utils/src/ivtv-utils-1.4.1/utils/cx25840ctl'
# make[2]: Nothing to be done for 'all'.
# make[2]: Leaving directory '/tmp/ivtv-utils/src/ivtv-utils-1.4.1/utils/cx25840ctl'
# install -d /tmp/ivtv-utils/pkg/ivtv-utils//usr/include/linux
# install -m 0644 linux/ivtv.h linux/ivtvfb.h /tmp/ivtv-utils/pkg/ivtv-utils//usr/include/linux
# install -d /tmp/ivtv-utils/pkg/ivtv-utils//usr/bin
# install -m 0755 v4l2-ctl ivtv-ctl ivtv-radio ivtvplay ivtv-mpegindex ivtv-tune/ivtv-tune cx25840ctl/cx25840ctl /tmp/ivtv-utils/pkg/ivtv-utils//usr/bin
# make[1]: Leaving directory '/tmp/ivtv-utils/src/ivtv-utils-1.4.1/utils'
# make -C test install
# make[1]: Entering directory '/tmp/ivtv-utils/src/ivtv-utils-1.4.1/test'
# make[1]: Nothing to be done for 'install'.
# make[1]: Leaving directory '/tmp/ivtv-utils/src/ivtv-utils-1.4.1/test'
# ==> Tidying install...
# -> Removing doc files...
# -> Purging unwanted files...
# ==> Checking for packaging issue...
# ==> Creating package "ivtv-utils"...
# -> Generating .PKGINFO file...
# -> Generating .BUILDINFO file...
# error: invalid option '--noprogressbar'
# -> Generating .MTREE file...
# -> Compressing package...
# ==> Leaving fakeroot environment.
# ==> Finished making: ivtv-utils 1.4.1-7 (Thu Apr 13 12:51:00 UTC 2017)

CMD: pacman --query --file ivtv-utils-1.4.1-7-x86_64.pkg.tar.xz
# ivtv-utils 1.4.1-7

Creating hybrid package for 'ivtv-utils'

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

CMD: pacman --query --file /mirror/ivtv-utils-1.4.1-7.pkg.tar.xz
# ivtv-utils 1.4.1-7

Package file has the following structure:
# /.PKGINFO
# /.MTREE
# /usr/bin/ivtv-ctl
# /usr/bin/ivtv-radio
# /usr/bin/ivtvplay
# /usr/bin/ivtv-mpegindex
# /usr/bin/ivtv-tune
# /usr/bin/cx25840ctl
# /usr/lib/firmware/v4l-cx2341x-dec.fw
# /usr/lib/firmware/v4l-cx2341x-enc.fw
# /usr/lib/firmware/v4l-pvrusb2-24xxx-01.fw
# /usr/lib/firmware/v4l-pvrusb2-29xxx-01.fw
# /usr/lib/firmware/v4l-cx2341x-init.mpg
# /sysroot/usr/lib/firmware/v4l-cx2341x-dec.fw
# /sysroot/usr/lib/firmware/v4l-cx2341x-enc.fw
# /sysroot/usr/lib/firmware/v4l-pvrusb2-24xxx-01.fw
# /sysroot/usr/lib/firmware/v4l-pvrusb2-29xxx-01.fw
# /sysroot/usr/lib/firmware/v4l-cx2341x-init.mpg

Generating .MTREE

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

Tar-ing up files

CMD: bsdtar -cf - .PKGINFO usr sysroot .MTREE

CMD: xz -c -z

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

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

Created package at path /var/cache/pacman/pkg/ivtv-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/ivtv-utils.pkg.tar.xz
# ==> Extracting database to a temporary location...
# ==> Extracting database to a temporary location...
# ==> Adding package '/var/cache/pacman/pkg/ivtv-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'