Build of webfs with musl toolchain

The build took 00h 02m 04s and was SUCCESSFUL.

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

SLOCLanguage
2,966 ansic
13 sh
7 perl
2,986 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: webfs 1.21-12 (Wed Apr 5 01:10:07 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Installing missing dependencies...
# resolving dependencies...
# looking for conflicting packages...
#
# Packages (1) mime-types-9-1
#
# Total Installed Size: 0.06 MiB
#
# :: Proceed with installation? [Y/n]
# checking keyring...
# checking package integrity...
# loading package files...
# checking for file conflicts...
# checking available disk space...
# :: Processing package changes...
# installing mime-types...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# patching file httpd.h
# patching file ls.c
# patching file webfsd.c
# patching file webfsd.man
# checking for libdir name ... lib64
# checking for system ... linux
# checking for openssl/ssl.h ... no
# checking for diet ... no
#
# Make.config written, edit if needed
#
# CC webfsd.o
# CC response.o
# CC request.o
# CC ls.o
# In file included from webfsd.c:15:
# /sysroot/include/sys/signal.h:1:2: warning: redirecting incorrect #include to [-W#warnings]
# #warning redirecting incorrect #include to
# ^
# response.c:222:33: warning: passing 'char [2049]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# req->hostname,tcp_port,quote(req->path,9999),
# ^~~~~~~~~
# ./httpd.h:225:29: note: passing argument to parameter 'path' here
# char* quote(unsigned char *path, int maxlength);
# ^
# ls.c:146:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# int i,j,n=strlen(path);
# ^~~~
# /sysroot/include/string.h:52:28: note: passing argument to parameter here
# size_t strlen (const char *);
# ^
# ls.c:156:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# sprintf(buf+j,"%%%02x",path[i]);
# ^~~~~
# /sysroot/include/stdio.h:104:29: note: passing argument to parameter here
# int sprintf(char *__restrict, const char *__restrict, ...);
# ^
# ls.c:160:12: warning: returning 'unsigned char [2048]' from a function with result type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# return buf;
# ^~~
# ls.c:296:16:request.c warning: :passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]392
# :13: warning: passing 'char [2049]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# quote(path,h2-path),
# ^~~~
# ls.c:143:22: note: passing argument to parameter 'path' here
# unquote(req->path,req->query,req->uri);quote(unsigned char *path, int maxlength)
#
# ^~~~~~~~~ ^
#
# request.c:219:24: note: passing argument to parameter 'path' here
# unquote(unsigned char *path, unsigned char *qs, unsigned char *src)
# ^
# request.c:392:23: warning: passing 'char [2049]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# unquote(req->path,req->query,req->uri);
# ^~~~~~~~~~
# request.c:219:45: note: passing argument to parameter 'qs' here
# unquote(unsigned char *path, unsigned char *qs, unsigned char *src)
# ^
# request.c:392:34: warning: passing 'char [2049]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# unquote(req->path,req->query,req->uri);
# ^~~~~~~~
# request.c:219:64: note: passing argument to parameter 'src' here
# unquote(unsigned char *path, unsigned char *qs, unsigned char *src)
# ^
# request.c:439:20: warning: passing 'char [64]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# decode_base64(req->auth,h+21,sizeof(req->auth)-1);
# ^~~~~~~~~
# request.c:281:30: note: passing argument to parameter 'dest' here
# decode_base64(unsigned char *dest, unsigned char *src, int maxlen)
# ^
# request.c:439:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# decode_base64(req->auth,h+21,sizeof(req->auth)-1);
# ^~~~
# ls.c:request.c376::28113::51 warning:: passing 'char [1]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]note
# : passing argument to parameter 'src' here
# quote(files[i]->n,9999),
# ^~~~~~~~~~~
# ls.c:143:22: note: decode_base64(unsigned char *dest, unsigned char *src, int maxlen)passing argument to parameter 'path' here
#
# ^
# quote(unsigned char *path, int maxlength)
# ^
# webfsd.c:512:68: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
# if (-1 == getpeername(req->fd,(struct sockaddr*)&(req->peer),&length)) {
# ^~~~~~~
# /sysroot/include/sys/socket.h:305:73: note: passing argument to parameter here
# int getpeername (int, struct sockaddr *__restrict, socklen_t *__restrict);
# ^
# 1 warning generated.
# 5 warnings generated.
# 5 warnings generated.
# CC mime.o
# CC cgi.o
# 2 warnings generated.
# cgi.c:115:49: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
# getsockname(req->fd,(struct sockaddr*)&addr,&length);
# ^~~~~~~
# /sysroot/include/sys/socket.h:304:73: note: passing argument to parameter here
# int getsockname (int, struct sockaddr *__restrict, socklen_t *__restrict);
# ^
# 1 warning generated.
# LD webfsd
# ==> Entering fakeroot environment...
# ==> Starting package()...
# install -d /tmp/webfs/pkg/webfs/usr/bin
# install -s webfsd /tmp/webfs/pkg/webfs/usr/bin
# install -d /tmp/webfs/pkg/webfs/usr/share/man/man1
# install -m 644 webfsd.man /tmp/webfs/pkg/webfs/usr/share/man/man1/webfsd.1
# ==> Tidying install...
# -> Removing doc files...
# -> Purging unwanted files...
# ==> Checking for packaging issue...
# ==> Creating package "webfs"...
# -> Generating .PKGINFO file...
# -> Generating .BUILDINFO file...
# error: invalid option '--noprogressbar'
# -> Generating .MTREE file...
# -> Compressing package...
# ==> Leaving fakeroot environment.
# ==> Finished making: webfs 1.21-12 (Wed Apr 5 01:10:10 UTC 2017)

CMD: pacman --query --file webfs-1.21-12-x86_64.pkg.tar.xz
# webfs 1.21-12

Creating hybrid package for 'webfs'

Trying to find vanilla package 'webfs'...

CMD: pacman --query --file /mirror/webfs-1.21-12.pkg.tar.xz
# webfs 1.21-12

Package file has the following structure:
# /.PKGINFO
# /.BUILDINFO
# /.MTREE
# /etc/conf.d/webfsd
# /usr/bin/webfsd
# /usr/share/man/man1/webfsd.1.gz
# /usr/lib/systemd/system/webfsd.service
# /sysroot/usr/lib/systemd/system/webfsd.service

Generating .MTREE

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

Tar-ing up files

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

CMD: xz -c -z

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

CMD: bsdtar -tqf webfs.pkg.tar.xz .PKGINFO
# .PKGINFO

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

Attempting to access local repository, attempt 1

CMD: repo-add /var/cache/pacman/pkg/tuscan.db.tar /var/cache/pacman/pkg/webfs.pkg.tar.xz
# ==> ERROR: Failed to acquire lockfile: /var/cache/pacman/pkg/tuscan.db.tar.lck.
# ==> ERROR: Held by process 3618

Attempting to access local repository, attempt 2

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