Build of rubiks with musl toolchain

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

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

SLOCLanguage
7,384 cpp
7,349 ansic
284 makefile
15,017 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: rubiks 20070912-2 (Tue Apr 4 23:54:04 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Entering fakeroot environment...
# ==> Starting package()...
# for dir in dietz/cu2 dietz/mcube dietz/solver dik reid; do \
# (cd ${dir} && make all)\
# done
# make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
# make[1]: Entering directory '/tmp/rubiks/src/rubiks-20070912/dietz/cu2'
# g++ -O2 -c cu2.cpp
# g++ -O2 -c main.cpp
# g++ -o cu2 cu2.o main.o
# main.o:main.cpp:function _GLOBAL__sub_I_main.cpp: error: undefined reference to '__dso_handle'
# clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
# make[1]: *** [Makefile:22: build] Error 1
# make[1]: Leaving directory '/tmp/rubiks/src/rubiks-20070912/dietz/cu2'
# make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
# make[1]: Entering directory '/tmp/rubiks/src/rubiks-20070912/dietz/mcube'
# g++ -O2 -c mcube.cpp
# mcube.cpp:1966:38: warning: if statement has empty body [-Wempty-body]
# else if (fy == 3 && fz == 3) ;
# ^
# mcube.cpp:1966:38: note: put the semicolon on a separate line to silence this warning
# mcube.cpp:1977:38: warning: if statement has empty body [-Wempty-body]
# else if (fx == 3 && fy == 3) ;
# ^
# mcube.cpp:1977:38: note: put the semicolon on a separate line to silence this warning
# 2 warnings generated.
# g++ -O2 -c main.cpp
# g++ -o mcube mcube.o main.o
# main.o:main.cpp:function _GLOBAL__sub_I_main.cpp: error: undefined reference to '__dso_handle'
# clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
# make[1]: *** [Makefile:22: build] Error 1
# make[1]: Leaving directory '/tmp/rubiks/src/rubiks-20070912/dietz/mcube'
# make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
# make[1]: Entering directory '/tmp/rubiks/src/rubiks-20070912/dietz/solver'
# g++ -O2 -c cubex.cpp
# g++ -O2 -c main.cpp
# g++ -o cubex cubex.o main.o
# main.o:main.cpp:function _GLOBAL__sub_I_main.cpp: error: undefined reference to '__dso_handle'
# main.o:main.cpp:function _GLOBAL__sub_I_main.cpp: error: undefined reference to '__dso_handle'
# main.o:main.cpp:function _GLOBAL__sub_I_main.cpp: error: undefined reference to '__dso_handle'
# main.o:main.cpp:function _GLOBAL__sub_I_main.cpp: error: undefined reference to '__dso_handle'
# clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
# make[1]: *** [Makefile:13: build] Error 1
# make[1]: Leaving directory '/tmp/rubiks/src/rubiks-20070912/dietz/solver'
# make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
# make[1]: Entering directory '/tmp/rubiks/src/rubiks-20070912/dik'
# clang -O -DLARGE_MEM -DVERBOSE -c -o cube.o cube.c
# cube.c:9:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# main(argc, argv)
# ^
# cube.c:20:2: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
# exit(1);
# ^
# cube.c:20:2: note: include the header or explicitly provide a declaration for 'exit'
# cube.c:23:6: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration]
# if(!strcmp(argv[1], "-t")) {
# ^
# cube.c:23:6: note: include the header or explicitly provide a declaration for 'strcmp'
# cube.c:51:5: warning: implicit declaration of function 'init_phase1' is invalid in C99 [-Wimplicit-function-declaration]
# init_phase1();
# ^
# cube.c:53:5: warning: implicit declaration of function 'init_phase2' is invalid in C99 [-Wimplicit-function-declaration]
# init_phase2();
# ^
# cube.c:64:2: warning: implicit declaration of function 'set_cube' is invalid in C99 [-Wimplicit-function-declaration]
# set_cube();
# ^
# cube.c:68:17: warning: implicit declaration of function 'init_phase1_cube' is invalid in C99 [-Wimplicit-function-declaration]
# do_phase1 = init_phase1_cube();
# ^
# cube.c:75:6: warning: implicit declaration of function 'phase1' is invalid in C99 [-Wimplicit-function-declaration]
# phase1(i++);
# ^
# cube.c:81:2: warning: implicit declaration of function 'perm_cube' is invalid in C99 [-Wimplicit-function-declaration]
# perm_cube();
# ^
# cube.c:82:14: warning: implicit declaration of function 'init_phase2_cube' is invalid in C99 [-Wimplicit-function-declaration]
# do_phase2 = init_phase2_cube();
# ^
# cube.c:90:3: warning: implicit declaration of function 'phase2' is invalid in C99 [-Wimplicit-function-declaration]
# phase2(i++, -1, -1);
# ^
# 11 warnings generated.
# clang -O -DLARGE_MEM -DVERBOSE -c -o phase1.o phase1.c
# phase1.c:55:2: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
# exit(1);
# ^
# phase1.c:55:2: note: include the header or explicitly provide a declaration for 'exit'
# phase1.c:190:2: warning: implicit declaration of function 'perm_cube' is invalid in C99 [-Wimplicit-function-declaration]
# perm_cube();
# ^
# phase1.c:191:14: warning: implicit declaration of function 'init_phase2_cube' is invalid in C99 [-Wimplicit-function-declaration]
# do_phase2 = init_phase2_cube();
# ^
# phase1.c:198:3: warning: implicit declaration of function 'phase2' is invalid in C99 [-Wimplicit-function-declaration]
# phase2(i++ - cur_move, dont1, dont2);
# ^
# phase1.c:204:6: warning: implicit declaration of function 'prnt_sol' is invalid in C99 [-Wimplicit-function-declaration]
# prnt_sol();
# ^
# phase1.c:240:9: warning: implicitly declaring library function 'abs' with type 'int (int)' [-Wimplicit-function-declaration]
# if(abs(dont1 - i) == 3) {
# ^
# phase1.c:240:9: note: include the header or explicitly provide a declaration for 'abs'
# 6 warnings generated.
# clang -O -DLARGE_MEM -DVERBOSE -c -o phase2.o phase2.c
# phase2.c:107:2: warning: implicit declaration of function 'prnt_sol' is invalid in C99 [-Wimplicit-function-declaration]
# prnt_sol();
# ^
# phase2.c:140:9: warning: implicitly declaring library function 'abs' with type 'int (int)' [-Wimplicit-function-declaration]
# if(abs(i - dont1) == 3) {
# ^
# phase2.c:140:9: note: include the header or explicitly provide a declaration for 'abs'
# 2 warnings generated.
# clang -O -DLARGE_MEM -DVERBOSE -c -o setcube.o setcube.c
# setcube.c:27:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# static cube_found, orient_found;
# ~~~~~~ ^
# setcube.c:27:20: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# static cube_found, orient_found;
# ~~~~~~ ^
# setcube.c:36:10: warning: implicitly declaring library function 'strncmp' with type 'int (const char *, const char *, unsigned long)' [-Wimplicit-function-declaration]
# if(!strncmp(corners[i][j], c, 3)) {
# ^
# setcube.c:36:10: note: include the header or explicitly provide a declaration for 'strncmp'
# setcube.c:44:5: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
# exit(1);
# ^
# setcube.c:44:5: note: include the header or explicitly provide a declaration for 'exit'
# 4 warnings generated.
# clang -O -DLARGE_MEM -DVERBOSE -c -o permcube.o permcube.c
# permcube.c:3:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# perm_cube()
# ^
# permcube.c:96:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# 2 warnings generated.
# clang -O -DLARGE_MEM -DVERBOSE -c -o prntsol.o prntsol.c
# prntsol.c:5:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# prnt_sol()
# ^
# prntsol.c:19:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# 2 warnings generated.
# clang -O -DLARGE_MEM -DVERBOSE -c -o globals.o globals.c
# clang -O -DLARGE_MEM -DVERBOSE -o dikcube cube.o phase1.o phase2.o setcube.o permcube.o prntsol.o globals.o
# size dikcube
# text data bss dec hex filename
# 37117 608 9630352 9668077 9385ed dikcube
# clang -O -DLARGE_MEM -DVERBOSE -c -o size222.o size222.c
# size222.c:20:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# do_pr(turns, count)
# ^
# size222.c:30:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# size222.c:32:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# try_one(num, count)
# ^
# size222.c:67:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# try(count)
# ^
# size222.c:94:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# size222.c:96:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# main(argc, argv)
# ^
# size222.c:107:2: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
# exit(1);
# ^
# size222.c:107:2: note: include the header or explicitly provide a declaration for 'exit'
# size222.c:110:6: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration]
# if(!strcmp(argv[1], "-q")) {
# ^
# size222.c:110:6: note: include the header or explicitly provide a declaration for 'strcmp'
# 8 warnings generated.
# clang -O -DLARGE_MEM -DVERBOSE -o size222 size222.o
# size size222
# text data bss dec hex filename
# 6524 464 1871752 1878740 1caad4 size222
# clang -O -DLARGE_MEM -DVERBOSE -DCTWIST -c size333c.c
# size333c.c:41:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# do_pr(turns, count)
# ^
# size333c.c:51:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# size333c.c:53:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# try_one(num, count)
# ^
# size333c.c:125:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# try(count)
# ^
# size333c.c:152:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# size333c.c:154:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# main(argc, argv)
# ^
# size333c.c:165:2: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
# exit(1);
# ^
# size333c.c:165:2: note: include the header or explicitly provide a declaration for 'exit'
# size333c.c:168:6: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration]
# if(!strcmp(argv[1], "-q")) {
# ^
# size333c.c:168:6: note: include the header or explicitly provide a declaration for 'strcmp'
# 8 warnings generated.
# clang -O -DLARGE_MEM -DVERBOSE -o size333c size333c.o
# size size333c
# text data bss dec hex filename
# 14096 464 5227144 5241704 4ffb68 size333c
# clang -O -DLARGE_MEM -DVERBOSE -c -o sizesquare.o sizesquare.c
# In file included from sizesquare.c:6:
# ./trans/cperm2.a:64:35: warning: too few arguments in call to 'permcx_val'
# cperms2[i][0] = permcx_val(params);
# ~~~~~~~~~~ ^
# ./trans/cperm2.a:74:35: warning: too few arguments in call to 'permcx_val'
# cperms2[i][1] = permcx_val(params);
# ~~~~~~~~~~ ^
# ./trans/cperm2.a:84:35: warning: too few arguments in call to 'permcx_val'
# cperms2[i][2] = permcx_val(params);
# ~~~~~~~~~~ ^
# ./trans/cperm2.a:94:35: warning: too few arguments in call to 'permcx_val'
# cperms2[i][3] = permcx_val(params);
# ~~~~~~~~~~ ^
# ./trans/cperm2.a:104:35: warning: too few arguments in call to 'permcx_val'
# cperms2[i][4] = permcx_val(params);
# ~~~~~~~~~~ ^
# ./trans/cperm2.a:114:35: warning: too few arguments in call to 'permcx_val'
# cperms2[i][5] = permcx_val(params);
# ~~~~~~~~~~ ^
# sizesquare.c:19:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# do_pr(turns, count)
# ^
# sizesquare.c:29:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# sizesquare.c:31:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# try_one(num, count)
# ^
# sizesquare.c:59:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# try(count)
# ^
# sizesquare.c:86:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# sizesquare.c:88:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# main(argc, argv)
# ^
# sizesquare.c:98:2: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
# exit(1);
# ^
# sizesquare.c:98:2: note: include the header or explicitly provide a declaration for 'exit'
# sizesquare.c:101:6: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration]
# if(!strcmp(argv[1], "-m")) {
# ^
# sizesquare.c:101:6: note: include the header or explicitly provide a declaration for 'strcmp'
# 14 warnings generated.
# clang -O -DLARGE_MEM -DVERBOSE -o sizesquare sizesquare.o
# size sizesquare
# text data bss dec hex filename
# 9316 464 4154152 4163932 3f895c sizesquare
# clang -O -DLARGE_MEM -DVERBOSE -DCCPERM -DIPERM -c sizedom.c
# sizedom.c:42:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# do_pr(turns, count)
# ^
# sizedom.c:52:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# sizedom.c:54:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# try_one(num, count)
# ^
# sizedom.c:178:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# try(count)
# ^
# sizedom.c:205:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# sizedom.c:276:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# main(argc, argv)
# ^
# sizedom.c:288:2: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
# exit(1);
# ^
# sizedom.c:288:2: note: include the header or explicitly provide a declaration for 'exit'
# sizedom.c:291:6: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration]
# if(!strcmp(argv[1], "-q")) {
# ^
# sizedom.c:291:6: note: include the header or explicitly provide a declaration for 'strcmp'
# 8 warnings generated.
# clang -O -DLARGE_MEM -DVERBOSE -o sizedom sizedom.o
# size sizedom
# text data bss dec hex filename
# 26964 464 38792904 38820332 25059ec sizedom
# clang -O -DLARGE_MEM -DVERBOSE -c -o sizekoc1.o sizekoc1.c
# sizekoc1.c:31:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# do_pr(turns, count)
# ^
# sizekoc1.c:41:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# sizekoc1.c:43:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# try_one(num, count)
# ^
# sizekoc1.c:94:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# try(count)
# ^
# sizekoc1.c:121:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# sizekoc1.c:123:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# main(argc, argv)
# ^
# sizekoc1.c:134:2: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
# exit(1);
# ^
# sizekoc1.c:134:2: note: include the header or explicitly provide a declaration for 'exit'
# sizekoc1.c:137:6: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration]
# if(!strcmp(argv[1], "-q")) {
# ^
# sizekoc1.c:137:6: note: include the header or explicitly provide a declaration for 'strcmp'
# 8 warnings generated.
# clang -O -DLARGE_MEM -DVERBOSE -o sizekoc1 sizekoc1.o
# size sizekoc1
# text data bss dec hex filename
# 21372 464 164358696 164380532 9cc3f74 sizekoc1
# clang -O -DLARGE_MEM -DVERBOSE -DCCPERM -DIPERM -c sizekoc2.c
# sizekoc2.c:31:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# do_pr(turns, count)
# ^
# sizekoc2.c:41:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# sizekoc2.c:43:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# try_one(num, count)
# ^
# sizekoc2.c:131:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# try(count)
# ^
# sizekoc2.c:158:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# sizekoc2.c:160:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# main(argc, argv)
# ^
# sizekoc2.c:171:2: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
# exit(1);
# ^
# sizekoc2.c:171:2: note: include the header or explicitly provide a declaration for 'exit'
# sizekoc2.c:174:6: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration]
# if(!strcmp(argv[1], "-q")) {
# ^
# sizekoc2.c:174:6: note: include the header or explicitly provide a declaration for 'strcmp'
# 8 warnings generated.
# clang -O -DLARGE_MEM -DVERBOSE -o sizekoc2 sizekoc2.o
# size sizekoc2
# text data bss dec hex filename
# 55220 464 814067736 814123420 3086899c sizekoc2
# make[1]: Leaving directory '/tmp/rubiks/src/rubiks-20070912/dik'
# make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
# make[1]: Entering directory '/tmp/rubiks/src/rubiks-20070912/reid'
# clang -O2 -g optimal.c -o optimal
# clang -O2 -g twist.c -o twist
# make[1]: Leaving directory '/tmp/rubiks/src/rubiks-20070912/reid'
# mkdir -p /tmp/rubiks/pkg/rubiks/usr/bin
# /usr/bin/install reid/optimal /tmp/rubiks/pkg/rubiks/usr/bin
# /usr/bin/install dietz/solver/cubex /tmp/rubiks/pkg/rubiks/usr/bin
# /usr/bin/install: cannot stat 'dietz/solver/cubex': No such file or directory
# make: *** [Makefile:19: install] Error 1
# ==> ERROR: A failure occurred in package().
# Aborting...