Build of toolame with clang_glibc toolchain

The build took 00h 01m 13s 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.

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: toolame 02l-10 (Thu Apr 13 17:18:21 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
# 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 */
# ^
# 1 warning generated.
# 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 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);
# ^
# 2 warnings generated.
# 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
# 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;
# ^
# 1 warning generated.
# clang -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c psycho_4.c -o psycho_4.o
# 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
# 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: In function `encode_info':
# encode.c:(.text+0x18): undefined reference to `putbits'
# encode.c:(.text+0x39): undefined reference to `putbits'
# encode.c:(.text+0x5d): undefined reference to `putbits'
# encode.c:(.text+0x6e): undefined reference to `putbits'
# encode.c:(.text+0x97): undefined reference to `putbits'
# encode.o:encode.c:(.text+0xa8): more undefined references to `putbits' follow
# 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...