Build of toolame with musl toolchain

The build took 00h 01m 03s and was NOT successful.

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

SLOCLanguage
10,298 ansic
53 makefile
10,351 total

The process tree of the build process is here.

List of Errors

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: toolame 02l-10 (Wed Apr 5 00:50:11 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# patching file Makefile
# patching file audio_read.c
# patching file fft.c
# clang -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c common.c -o common.o
# clang -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c encode.c -o encode.o
# clang -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c ieeefloat.c -o ieeefloat.o
# clang -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c toolame.c -o toolame.o
# toolame.c:155:7: warning: variable 'num_samples' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
# if (argc == 1) /* no command-line args */
# ^~~~~~~~~
# toolame.c:167:38: note: uninitialized use occurs here
# while (get_audio (musicin, buffer, num_samples, nch, &header) > 0) {
# ^~~~~~~~~~~
# toolame.c:155:3: note: remove the 'if' if its condition is always false
# if (argc == 1) /* no command-line args */
# ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# toolame.c:118:28: note: initialize the variable 'num_samples' to silence this warning
# unsigned long num_samples;
# ^
# = 0
# In file included from encode.c:6:
# ./bitstream.h:12:13: warning: inline function 'putbits' is not defined [-Wundefined-inline]
# INLINE void putbits (Bit_stream_struc *, unsigned int, int);
# ^
# encode.c:34:3: note: used here
# putbits (bs, 0xfff, 12); /* syncword 12 bits */
# ^
# In file included from toolame.c:9:
# ./bitstream.h:12:13: warning: inline function 'putbits' is not defined [-Wundefined-inline]
# INLINE void putbits (Bit_stream_struc *, unsigned int, int);
# ^
# toolame.c:364:7: note: used here
# putbits (&bs, crc, 16);
# ^
# clang -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c portableio.c -o portableio.o
# clang -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c psycho_n1.c -o psycho_n1.o
# clang -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c psycho_0.c -o psycho_0.o
# clang -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c psycho_1.c -o psycho_1.o
# clang -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c psycho_2.c -o psycho_2.o
# 2 warnings generated.
# clang -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c psycho_3.c -o psycho_3.o
# psycho_3.c:75:7: warning: unused variable 'sblimit' [-Wunused-variable]
# int sblimit = frame->sblimit;
# ^
# clang -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c psycho_4.c -o psycho_4.o
# 1 warning generated.
# clang -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c fft.c -o fft.o
# clang -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c subband.c -o subband.o
# clang -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c audio_read.c -o audio_read.o
# clang -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c bitstream.c -o bitstream.o
# clang -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c mem.c -o mem.o
# clang -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c crc.c -o crc.o
# clang -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c tables.c -o tables.o
# clang -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c availbits.c -o availbits.o
# clang -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c ath.c -o ath.o
# 1 warning generated.
# clang -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c encode_new.c -o encode_new.o
# In file included from encode_new.c:6:
# ./bitstream.h:12:13: warning: inline function 'putbits' is not defined [-Wundefined-inline]
# INLINE void putbits (Bit_stream_struc *, unsigned int, int);
# ^
# encode_new.c:360:3: note: used here
# putbits (bs, 0xfff, 12); /* syncword 12 bits */
# ^
# 1 warning generated.
# clang -o toolame common.o encode.o ieeefloat.o toolame.o portableio.o psycho_n1.o psycho_0.o psycho_1.o psycho_2.o psycho_3.o psycho_4.o fft.o subband.o audio_read.o bitstream.o mem.o crc.o tables.o availbits.o ath.o encode_new.o -lm
# encode.o:encode.c:function encode_info: error: undefined reference to 'putbits'
# encode.o:encode.c:function encode_info: error: undefined reference to 'putbits'
# encode.o:encode.c:function encode_info: error: undefined reference to 'putbits'
# encode.o:encode.c:function encode_info: error: undefined reference to 'putbits'
# clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
# make: *** [Makefile:75: toolame] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...