Build of procstatd with musl toolchain

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

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

SLOCLanguage
2,711 ansic
27 makefile
2,738 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...

There were existing files in /sysroot, using those
# /sysroot/lib
# /sysroot/share
# /sysroot/bin
# /sysroot/include
# /sysroot/libexec

CMD: sudo -u tuscan PATH=/sysroot/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: procstatd 1.4.2-9 (Tue Apr 4 23:56:06 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# gcc -c -O3 procstatd.c -o procstatd.o
# gcc -c -O3 parsecl.c -o parsecl.o
# gcc -c -O3 parse.c -o parse.o
# gcc -c -O3 statlist.c -o statlist.o
# statlist.c:23:46: warning: '/*' within block comment [-Wcomment]
# * and transmit statistics derived from /proc/* or various systems calls.
# ^
# statlist.c:60:2: warning: implicit declaration of function 'init_identity' is invalid in C99 [-Wimplicit-function-declaration]
# init_identity();
# ^
# statlist.c:62:2: warning: implicit declaration of function 'init_proc_version' is invalid in C99 [-Wimplicit-function-declaration]
# init_proc_version();
# ^
# statlist.c:64:2: warning: implicit declaration of function 'init_proc_stat' is invalid in C99 [-Wimplicit-function-declaration]
# init_proc_stat();
# ^
# statlist.c:66:2: warning: implicit declaration of function 'init_proc_loadavg' is invalid in C99 [-Wimplicit-function-declaration]
# init_proc_loadavg();
# ^
# statlist.c:68:2: warning: implicit declaration of function 'init_proc_meminfo' is invalid in C99 [-Wimplicit-function-declaration]
# init_proc_meminfo();
# ^
# statlist.c:70:2: warning: implicit declaration of function 'init_proc_net_dev' is invalid in C99 [-Wimplicit-function-declaration]
# init_proc_net_dev();
# ^
# statlist.c:72:2: warning: implicit declaration of function 'init_proc_lm78' is invalid in C99 [-Wimplicit-function-declaration]
# init_proc_lm78();
# ^
# statlist.c:78:4: warning: implicit declaration of function 'init_proc_sensors' is invalid in C99 [-Wimplicit-function-declaration]
# init_proc_sensors();
# ^
# statlist.c:81:2: warning: implicit declaration of function 'init_proc_uptime' is invalid in C99 [-Wimplicit-function-declaration]
# init_proc_uptime();
# ^
# statlist.c:83:2: warning: implicit declaration of function 'init_time' is invalid in C99 [-Wimplicit-function-declaration]
# init_time();
# ^
# statlist.c:85:2: warning: implicit declaration of function 'init_users' is invalid in C99 [-Wimplicit-function-declaration]
# init_users();
# ^
# statlist.c:88:2: warning: implicit declaration of function 'init_ipcstuff' is invalid in C99 [-Wimplicit-function-declaration]
# init_ipcstuff();
# ^
# statlist.c:91:2: warning: implicit declaration of function 'init_filestuff' is invalid in C99 [-Wimplicit-function-declaration]
# init_filestuff();
# ^
# procstatd.c:197:51: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
# client_fd = accept(server_fd,clientSockAddrPtr,&clientlen);
# ^~~~~~~~~~
# /sysroot/include/sys/socket.h:301:68: note: passing argument to parameter here
# int accept (int, struct sockaddr *__restrict, socklen_t *__restrict);
# ^
# statlist.c:125:2: warning: implicit declaration of function 'get_proc_stat' is invalid in C99 [-Wimplicit-function-declaration]
# get_proc_stat();
# ^
# statlist.c:127:2: warning: implicit declaration of function 'get_proc_loadavg' is invalid in C99 [-Wimplicit-function-declaration]
# get_proc_loadavg();
# ^
# statlist.c:129:2: warning: implicit declaration of function 'get_proc_meminfo' is invalid in C99 [-Wimplicit-function-declaration]
# get_proc_meminfo();
# ^
# statlist.c:131:2: warning: implicit declaration of function 'get_proc_net_dev' is invalid in C99 [-Wimplicit-function-declaration]
# get_proc_net_dev();
# ^
# statlist.c:134:4: warning: implicit declaration of function 'get_proc_lm78' is invalid in C99 [-Wimplicit-function-declaration]
# get_proc_lm78();
# ^
# statlist.c:138:4: warning: implicit declaration of function 'get_proc_sensors' is invalid in C99 [-Wimplicit-function-declaration]
# get_proc_sensors();
# ^
# statlist.c:141:2: warning: implicit declaration of function 'get_proc_uptime' is invalid in C99 [-Wimplicit-function-declaration]
# get_proc_uptime();
# ^
# statlist.c:143:2: warning: implicit declaration of function 'get_time' is invalid in C99 [-Wimplicit-function-declaration]
# get_time();
# ^
# statlist.c:145:2: warning: implicit declaration of function 'get_users' is invalid in C99 [-Wimplicit-function-declaration]
# get_users();
# ^
# statlist.c:148:2: warning: implicit declaration of function 'get_ipcstuff' is invalid in C99 [-Wimplicit-function-declaration]
# get_ipcstuff();
# ^
# statlist.c:151:2: warning: implicit declaration of function 'get_filestuff' is invalid in C99 [-Wimplicit-function-declaration]
# get_filestuff();
# ^
# statlist.c:171:2: warning: implicit declaration of function 'eval_proc_stat' is invalid in C99 [-Wimplicit-function-declaration]
# eval_proc_stat();
# ^
# statlist.c:173:2: warning: implicit declaration of function 'eval_proc_loadavg' is invalid in C99 [-Wimplicit-function-declaration]
# eval_proc_loadavg();
# ^
# statlist.c:175:2: warning: implicit declaration of function 'eval_proc_meminfo' is invalid in C99 [-Wimplicit-function-declaration]
# eval_proc_meminfo();
# ^
# statlist.c:177:2: warning: implicit declaration of function 'eval_proc_net_dev' is invalid in C99 [-Wimplicit-function-declaration]
# eval_proc_net_dev();
# ^
# statlist.c:180:4: warning: implicit declaration of function 'eval_proc_lm78' is invalid in C99 [-Wimplicit-function-declaration]
# eval_proc_lm78();
# ^
# statlist.c:183:4: warning: implicit declaration of function 'eval_proc_sensors' is invalid in C99 [-Wimplicit-function-declaration]
# eval_proc_sensors();
# ^
# statlist.c:186:2: warning: implicit declaration of function 'eval_proc_uptime' is invalid in C99 [-Wimplicit-function-declaration]
# eval_proc_uptime();
# ^
# statlist.c:188:2: warning: implicit declaration of function 'eval_time' is invalid in C99 [-Wimplicit-function-declaration]
# eval_time();
# ^
# statlist.c:190:2: warning: implicit declaration of function 'eval_users' is invalid in C99 [-Wimplicit-function-declaration]
# eval_users();
# ^
# statlist.c:193:2: warning: implicit declaration of function 'eval_ipcstuff' is invalid in C99 [-Wimplicit-function-declaration]
# eval_ipcstuff();
# ^
# statlist.c:196:2: warning: implicit declaration of function 'eval_filestuff' is invalid in C99 [-Wimplicit-function-declaration]
# eval_filestuff();
# ^
# procstatd.c:294:8: warning: implicit declaration of function 'readline' is invalid in C99 [-Wimplicit-function-declaration]
# n = readline(client_fd,inbuf,BUFLEN);
# ^
# gcc -c -O3 senddata.c -o senddata.o
# 36 warnings generated.
# gcc -c -O3 procutils.c -o procutils.o
# senddata.c:51:2: warning: implicit declaration of function 'sendline' is invalid in C99 [-Wimplicit-function-declaration]
# sendline(client_fd,outbuf,buflen);
# ^
# senddata.c:71:45: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
# fprintf(stdout,"# interval = %d seconds\n",interval);
# ~~ ^~~~~~~~
# %ld
# gcc -c -O3 proc_stat.c -o proc_stat.o
# procutils.c:27:2: warning: implicit declaration of function 'sendline' is invalid in C99 [-Wimplicit-function-declaration]
# sendline(client_fd,outbuf,buflen);
# ^
# procutils.c:118:3: warning: implicit declaration of function 'wait' is invalid in C99 [-Wimplicit-function-declaration]
# wait(&status);
# ^
# 2 warnings generated.
# gcc -c -O3 proc_loadavg.c -o proc_loadavg.o
# 2 warnings generated.
# gcc -c -O3 proc_meminfo.c -o proc_meminfo.o
# 2 warnings generated.
# gcc -c -O3 proc_net_dev.c -o proc_net_dev.o
# gcc -c -O3 proc_sensors.c -o proc_sensors.o
# gcc -c -O3 proc_lm78.c -o proc_lm78.o
# gcc -c -O3 proc_uptime.c -o proc_uptime.o
# gcc -c -O3 proc_version.c -o proc_version.o
# proc_uptime.c:93:36: warning: '/*' within block comment [-Wcomment]
# /*rewind(stat_fd[PROC_UPTIME]); /* void, so tough to check errors */
# ^
# gcc -c -O3 time.c -o time.o
# 1 warning generated.
# gcc -c -O3 users.c -o users.o
# gcc -c -O3 identity.c -o identity.o
# gcc -c -O3 ipcstuff.c -o ipcstuff.o
# gcc -c -O3 filestuff.c -o filestuff.o
# gcc -c -O3 jobslist.c -o jobslist.o
# gcc -c -O3 quiklist.c -o quiklist.o
# jobslist.c:133:2: warning: implicit declaration of function 'sendline' is invalid in C99 [-Wimplicit-function-declaration]
# sendline( client_fd, outbuf, buflen );
# ^
# quiklist.c:63:2: warning: implicit declaration of function 'sendline' is invalid in C99 [-Wimplicit-function-declaration]
# sendline( client_fd, outbuf, i );
# ^
# 1 warning generated.
# 1 warning generated.
# gcc procstatd.o parsecl.o parse.o statlist.o senddata.o procutils.o proc_stat.o proc_loadavg.o proc_meminfo.o proc_net_dev.o proc_sensors.o proc_lm78.o proc_uptime.o proc_version.o time.o users.o identity.o ipcstuff.o filestuff.o jobslist.o quiklist.o -o procstatd
# ==> Entering fakeroot environment...
# ==> Starting package()...
# (strip procstatd;\
# install -d /tmp/procstatd/pkg/procstatd/usr/bin; \
# install -d /tmp/procstatd/pkg/procstatd/usr/man/man8; \
# install -m 755 procstatd /tmp/procstatd/pkg/procstatd/usr/bin; \
# install -m 644 procstatd.8 /tmp/procstatd/pkg/procstatd/usr/man/man8; \
# echo; \
# echo)
#
#
# ==> Tidying install...
# -> Removing doc files...
# -> Purging unwanted files...
# ==> Checking for packaging issue...
# ==> Creating package "procstatd"...
# -> Generating .PKGINFO file...
# -> Generating .BUILDINFO file...
# error: invalid option '--noprogressbar'
# -> Generating .MTREE file...
# -> Compressing package...
# ==> Leaving fakeroot environment.
# ==> Finished making: procstatd 1.4.2-9 (Tue Apr 4 23:56:08 UTC 2017)

CMD: pacman --query --file procstatd-1.4.2-9-x86_64.pkg.tar.xz
# procstatd 1.4.2-9

Creating hybrid package for 'procstatd'

Trying to find vanilla package 'procstatd'...

CMD: pacman --query --file /mirror/procstatd-1.4.2-9.pkg.tar.xz
# procstatd 1.4.2-9

Package file has the following structure:
# /.PKGINFO
# /.MTREE
# /usr/bin/procstatd
# /usr/share/man/man8/procstatd.8.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 procstatd.pkg.tar.xz .PKGINFO
# .PKGINFO

Created package at path /var/cache/pacman/pkg/procstatd.pkg.tar.xz

Attempting to access local repository, attempt 1

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