Build of recoverdm with musl toolchain

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

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

SLOCLanguage
1,170 ansic
21 makefile
1,191 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: recoverdm 0.20-4 (Wed Apr 5 00:54:56 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# clang -Wall -Wshadow -Wconversion -Wwrite-strings -Winline -O2 -DVERSION=\"0.20\" -c -o recoverdm.o recoverdm.c
# clang -Wall -Wshadow -Wconversion -Wwrite-strings -Winline -O2 -DVERSION=\"0.20\" -c -o dev.o dev.c
# clang -Wall -Wshadow -Wconversion -Wwrite-strings -Winline -O2 -DVERSION=\"0.20\" -c -o io.o io.c
# clang -Wall -Wshadow -Wconversion -Wwrite-strings -Winline -O2 -DVERSION=\"0.20\" -c -o utils.o utils.c
# dev.c:14:11: fatal error: 'linux/fd.h' file not found
# #include
# ^
# utils.c:21:14: warning: passing 'const char [36]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
# error_exit("failed to allocate %d bytes for %s\n", size, what);
# ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ./error.h:1:23: note: passing argument to parameter 'format' here
# void error_exit(char *format, ...);
# ^
# 1 error generated.
# io.c:30:17: warning: passing 'const char [41]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
# error_exit("unexpected error while reading: %s (%d)\n", strerror(errno), errno);
# ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ./error.h:1:23: note: passing argument to parameter 'format' here
# void error_exit(char *format, ...);
# ^
# io.c:42:11: warning: implicit conversion changes signedness: 'ssize_t' (aka 'long') to 'unsigned long' [-Wsign-conversion]
# len -= rc;
# ~~ ^~
# utils.c:30:14: warning: passing 'const char [41]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
# error_exit("failed to reallocate to %d bytes for %s\n", newsize, what);
# ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ./error.h:1:23: note: passing argument to parameter 'format' here
# void error_exit(char *format, ...);
# ^
# utils.c:40:14: warning: passing 'const char [47]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
# error_exit("Failed to retrieve length of file %s: %s (%d)\n", filename, strerror(errno), errno);
# ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ./error.h:1:23: note: passing argument to parameter 'format' here
# void error_exit(char *format, ...);
# ^
# utils.c:51:28: warning: operand of ? changes signedness: 'off_t' (aka 'long') to 'size_t' (aka 'unsigned long') [-Wsign-conversion]
# size_t sector_size = min(block_size, 512);
# ~~~~~~~~~~~ ^~~~~~~~~~
# ./gen.h:1:35: note: expanded from macro 'min'
# #define min(x, y) ((x)<(y)?(x):(y))
# ^
# io.c:utils.c75:56:73: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
# :11: fprintf(stderr, "Failed to read %d bytes from inputfile: %s (%d)\n", sector_size, strerror(errno), errno);
# ~~ ^~~~~~~~~~~
# %zu
# warning: implicit conversion changes signedness: 'ssize_t' (aka 'long') to 'unsigned long' [-Wsign-conversion]
# len -= rc;
# ~~ ^~
# utils.c:78:14: warning: passing 'const char [48]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
# error_exit("Failed to seek in file to offset %lld: %s (%d)\n", offset, strerror(errno), errno);
# ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ./error.h:1:23: note: passing argument to parameter 'format' here
# void error_exit(char *format, ...);
# ^
# io.c:132:21: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion]
# move_a_little -= rc;
# ~~ ^~
# io.c:181:13: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion]
# nbytes -= rc;
# ~~ ^~
# io.c:126:14: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
# if ((rc = WRITE(fd, in, move_a_little)) <= 0)
# make: *** [: dev.o] Error 1
# ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~make: *** Waiting for unfinished jobs....
#
# io.c:163:15: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
# if ((rc = WRITE(fd, in, 512)) <= 0)
# ~ ^~~~~~~~~~~~~~~~~~
# io.c:172:14: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
# if ((rc = WRITE(fd, in, nbytes)) <= 0)
# ~ ^~~~~~~~~~~~~~~~~~~~~
# recoverdm.c:55:25: warning: implicit conversion loses integer precision: 'long' to 'unsigned char' [-Wconversion]
# *minute = (lba + 150) / (60 * 75);
# ~ ~~~~~~~~~~~~^~~~~~~~~~~
# recoverdm.c:57:25: warning: implicit conversion loses integer precision: 'long' to 'unsigned char' [-Wconversion]
# *second = (lba + 150) / 75;
# ~ ~~~~~~~~~~~~^~~~
# recoverdm.c:59:17: warning: implicit conversion loses integer precision: 'long' to 'unsigned char' [-Wconversion]
# *frame = (lba + 150);
# ~ ~~~~^~~~~
# recoverdm.c:63:28: warning: implicit conversion loses integer precision: 'long' to 'unsigned char' [-Wconversion]
# *minute = (lba + 450150) / (60 * 75);
# ~ ~~~~~~~~~~~~~~~^~~~~~~~~~~
# recoverdm.c:65:28: warning: implicit conversion loses integer precision: 'long' to 'unsigned char' [-Wconversion]
# *second = (lba + 450150) / 75;
# ~ ~~~~~~~~~~~~~~~^~~~
# recoverdm.c:67:17: warning: implicit conversion loses integer precision: 'long' to 'unsigned char' [-Wconversion]
# *frame = (lba + 450150);
# ~ ~~~~^~~~~~~~
# recoverdm.c:75:50: warning: passing 'const char [7]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
# char *sector_out = (char *)mymalloc(block_size, "sector");
# ^~~~~~~~
# ./utils.h:1:36: note: passing argument to parameter 'what' here
# void * mymalloc(size_t size, char *what);
# ^
# recoverdm.c:107:25: warning: implicit conversion loses integer precision: 'int' to 'short' [-Wconversion]
# chosen_byte_count = count[loop2];
# ~ ^~~~~~~~~~~~
# recoverdm.c:108:19: warning: implicit conversion loses integer precision: 'int' to 'short' [-Wconversion]
# chosen_byte = loop2;
# ~ ^~~~~
# recoverdm.c:126:23: warning: implicit conversion loses integer precision: 'short' to 'char' [-Wconversion]
# sector_out[loop] = chosen_byte;
# ~ ^~~~~~~~~~~
# recoverdm.c:149:23: warning: implicit conversion changes signedness: 'unsigned char' to 'char' [-Wsign-conversion]
# sector_out[loop] = sectors[max_n_ok_index][loop];
# ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# recoverdm.c:169:74: warning: passing 'const char [11]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
# char **sector_list = (char **)mymalloc(sizeof(char *) * n_raw_retries, "sectorlist");
# ^~~~~~~~~~~~
# ./utils.h:1:36: note: passing argument to parameter 'what' here
# void * mymalloc(size_t size, char *what);
# ^
# recoverdm.c:169:59: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion]
# char **sector_list = (char **)mymalloc(sizeof(char *) * n_raw_retries, "sectorlist");
# ~ ^~~~~~~~~~~~~
# recoverdm.c:174:53: warning: passing 'const char [7]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
# sector_list[loop] = (char *)mymalloc(block_size, "sector");
# ^~~~~~~~
# ./utils.h:1:36: note: passing argument to parameter 'what' here
# void * mymalloc(size_t size, char *what);
# ^
# recoverdm.c:184:22: warning: incompatible pointer types passing 'char **' to parameter of type 'unsigned char **' [-Wincompatible-pointer-types]
# if (create_sector(sector_list, n_raw_retries, block_size, &dummy) == -1)
# ^~~~~~~~~~~
# recoverdm.c:71:35: note: passing argument to parameter 'sectors' here
# int create_sector(unsigned char **sectors, int n_sectors, size_t block_size, char **psector_out)
# ^
# recoverdm.c:235:15: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wconversion]
# dev_type = atoi(optarg);
# ~ ^~~~~~~~~~~~
# recoverdm.c:256:16: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wconversion]
# n_retries = atoi(optarg);
# ~ ^~~~~~~~~~~~
# recoverdm.c:262:15: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wconversion]
# cd_speed = atoi(optarg);
# ~ ^~~~~~~~~~~~
# recoverdm.c:265:23: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wconversion]
# n_raw_cd_retries = atoi(optarg);
# ~ ^~~~~~~~~~~~
# recoverdm.c:307:40: warning: passing 'const char [13]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
# buffer = (char *)mymalloc(block_size, "sectorbuffer");
# ^~~~~~~~~~~~~~
# ./utils.h:1:36: note: passing argument to parameter 'what' here
# void * mymalloc(size_t size, char *what);
# ^
# recoverdm.c:308:41: warning: passing 'const char [25]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
# buffer2 = (char *)mymalloc(block_size, "sectorbuffer for retries");
# ^~~~~~~~~~~~~~~~~~~~~~~~~~
# ./utils.h:1:36: note: passing argument to parameter 'what' here
# void * mymalloc(size_t size, char *what);
# ^
# recoverdm.c:361:20: warning: format specifies type 'long long' but the argument has type 'off_t' (aka 'long') [-Wformat]
# printf("%lld\r", curpos);
# ~~~~ ^~~~~~
# %ld
# recoverdm.c:388:50: warning: format specifies type 'long long' but the argument has type 'off_t' (aka 'long') [-Wformat]
# printf("error at %lld bytes, retrying: %d\n", curpos, n);
# ~~~~ ^~~~~~
# %ld
# recoverdm.c:445:38: warning: format specifies type 'long long' but the argument has type 'off_t' (aka 'long') [-Wformat]
# fprintf(dsecfile, "%lld %ld\n", curpos, block_size*skip_value);
# ~~~~ ^~~~~~
# %ld
# recoverdm.c:445:57: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion]
# fprintf(dsecfile, "%lld %ld\n", curpos, block_size*skip_value);
# ~^~~~~~~~~~
# 6 warnings generated.
# 8 warnings generated.
# 25 warnings generated.
# ==> ERROR: A failure occurred in build().
# Aborting...