Build of recoverdm with android 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
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...

Copied permanent toolchain into container-local sysroot
# /toolchain_root/arm-linux-androideabi --> /sysroot/arm-linux-androideabi
# /toolchain_root/COPYING3.LIB --> /sysroot/COPYING3.LIB
# /toolchain_root/sysroot --> /sysroot/sysroot
# /toolchain_root/COPYING.RUNTIME --> /sysroot/COPYING.RUNTIME
# /toolchain_root/lib --> /sysroot/lib
# /toolchain_root/SOURCES --> /sysroot/SOURCES
# /toolchain_root/lib64 --> /sysroot/lib64
# /toolchain_root/share --> /sysroot/share
# /toolchain_root/bin --> /sysroot/bin
# /toolchain_root/COPYING --> /sysroot/COPYING
# /toolchain_root/COPYING3 --> /sysroot/COPYING3
# /toolchain_root/COPYING.LIB --> /sysroot/COPYING.LIB
# /toolchain_root/include --> /sysroot/include
# /toolchain_root/libexec --> /sysroot/libexec

CMD: sudo -u tuscan PATH=/sysroot/bin:/sysroot/libexec/gcc/arm-linux-androideabi/4.8:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=arm-linux-androideabi-gcc CXX=arm-linux-androideabi-g++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
# ==> Making package: recoverdm 0.20-4 (Tue Apr 4 21:13:40 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# arm-linux-androideabi-gcc -Wall -Wshadow -Wconversion -Wwrite-strings -Winline -O2 -DVERSION=\"0.20\" -c -o recoverdm.o recoverdm.c
# arm-linux-androideabi-gcc -Wall -Wshadow -Wconversion -Wwrite-strings -Winline -O2 -DVERSION=\"0.20\" -c -o dev.o dev.c
# arm-linux-androideabi-gcc -Wall -Wshadow -Wconversion -Wwrite-strings -Winline -O2 -DVERSION=\"0.20\" -c -o io.o io.c
# arm-linux-androideabi-gcc -Wall -Wshadow -Wconversion -Wwrite-strings -Winline -O2 -DVERSION=\"0.20\" -c -o utils.o utils.c
# dev.c:17:22: fatal error: scsi/sg.h: No such file or directory
# #include
# ^
# compilation terminated.
# make: *** [: dev.o] Error 1
# make: *** Waiting for unfinished jobs....
# utils.c: In function 'mymalloc':
# utils.c:21:3: warning: passing argument 1 of 'error_exit' discards 'const' qualifier from pointer target type [enabled by default]
# error_exit("failed to allocate %d bytes for %s\n", size, what);
# ^
# In file included from utils.c:15:0:
# error.h:1:6: note: expected 'char *' but argument is of type 'const char *'
# void error_exit(char *format, ...);
# ^
# utils.c: In function 'myrealloc':
# utils.c:30:3: warning: passing argument 1 of 'error_exit' discards 'const' qualifier from pointer target type [enabled by default]
# error_exit("failed to reallocate to %d bytes for %s\n", newsize, what);
# ^
# In file included from utils.c:15:0:
# error.h:1:6: note: expected 'char *' but argument is of type 'const char *'
# void error_exit(char *format, ...);
# ^
# utils.c: In function 'get_filesize':
# utils.c:40:3: warning: passing argument 1 of 'error_exit' discards 'const' qualifier from pointer target type [enabled by default]
# error_exit("Failed to retrieve length of file %s: %s (%d)\n", filename, strerror(errno), errno);
# ^
# In file included from utils.c:15:0:
# error.h:1:6: note: expected 'char *' but argument is of type 'const char *'
# void error_exit(char *format, ...);
# ^
# In file included from utils.c:13:0:
# utils.c: In function 'copy_block':
# gen.h:1:37: warning: conversion to 'size_t' from 'off64_t' may alter its value [-Wconversion]
# #define min(x, y) ((x)<(y)?(x):(y))
# ^
# utils.c:51:24: note: in expansion of macro 'min'
# size_t sector_size = min(block_size, 512);
# ^
# utils.c: In function 'myseek':
# utils.c:78:3: warning: passing argument 1 of 'error_exit' discards 'const' qualifier from pointer target type [enabled by default]
# error_exit("Failed to seek in file to offset %lld: %s (%d)\n", offset, strerror(errno), errno);
# ^
# In file included from utils.c:15:0:
# error.h:1:6: note: expected 'char *' but argument is of type 'const char *'
# void error_exit(char *format, ...);
# ^
# recoverdm.c: In function 'lba_to_msf':
# recoverdm.c:55:25: warning: conversion to 'unsigned char' from 'off64_t' may alter its value [-Wconversion]
# *minute = (lba + 150) / (60 * 75);
# ^
# recoverdm.c:57:25: warning: conversion to 'unsigned char' from 'off64_t' may alter its value [-Wconversion]
# *second = (lba + 150) / 75;
# ^
# recoverdm.c:59:17: warning: conversion to 'unsigned char' from 'off64_t' may alter its value [-Wconversion]
# *frame = (lba + 150);
# ^
# recoverdm.c:63:28: warning: conversion to 'unsigned char' from 'off64_t' may alter its value [-Wconversion]
# *minute = (lba + 450150) / (60 * 75);
# ^
# recoverdm.c:65:28: warning: conversion to 'unsigned char' from 'off64_t' may alter its value [-Wconversion]
# *second = (lba + 450150) / 75;
# ^
# recoverdm.c:67:17: warning: conversion to 'unsigned char' from 'off64_t' may alter its value [-Wconversion]
# *frame = (lba + 450150);
# ^
# recoverdm.c: In function 'create_sector':
# recoverdm.c:75:2: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [enabled by default]
# char *sector_out = (char *)mymalloc(block_size, "sector");
# ^
# In file included from recoverdm.c:13:0:
# utils.h:1:8: note: expected 'char *' but argument is of type 'const char *'
# void * mymalloc(size_t size, char *what);
# ^
# recoverdm.c:107:30: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion]
# chosen_byte_count = count[loop2];
# ^
# recoverdm.c:108:5: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion]
# chosen_byte = loop2;
# ^
# recoverdm.c:126:4: warning: conversion to 'char' from 'short int' may alter its value [-Wconversion]
# sector_out[loop] = chosen_byte;
# ^
# recoverdm.c: In function 'get_raw_cd':
# recoverdm.c:169:3: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion]
# char **sector_list = (char **)mymalloc(sizeof(char *) * n_raw_retries, "sectorlist");
# ^
# recoverdm.c:169:3: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [enabled by default]
# In file included from recoverdm.c:13:0:
# utils.h:1:8: note: expected 'char *' but argument is of type 'const char *'
# void * mymalloc(size_t size, char *what);
# ^
# recoverdm.c:174:4: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [enabled by default]
# sector_list[loop] = (char *)mymalloc(block_size, "sector");
# ^
# In file included from recoverdm.c:13:0:
# utils.h:1:8: note: expected 'char *' but argument is of type 'const char *'
# void * mymalloc(size_t size, char *what);
# ^
# recoverdm.c:184:4: warning: passing argument 1 of 'create_sector' from incompatible pointer type [enabled by default]
# if (create_sector(sector_list, n_raw_retries, block_size, &dummy) == -1)
# ^
# recoverdm.c:71:5: note: expected 'unsigned char **' but argument is of type 'char **'
# int create_sector(unsigned char **sectors, int n_sectors, size_t block_size, char **psector_out)
# ^
# recoverdm.c: In function 'main':
# recoverdm.c:215:2: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion]
# char dev_type=-1, cd_speed=DEFAULT_CD_SPEED;
# ^
# recoverdm.c:235:19: warning: conversion to 'char' from 'int' may alter its value [-Wconversion]
# dev_type = atoi(optarg);
# ^
# recoverdm.c:256:20: warning: conversion to 'char' from 'int' may alter its value [-Wconversion]
# n_retries = atoi(optarg);
# ^
# recoverdm.c:262:19: warning: conversion to 'char' from 'int' may alter its value [-Wconversion]
# cd_speed = atoi(optarg);
# ^
# recoverdm.c:265:27: warning: conversion to 'char' from 'int' may alter its value [-Wconversion]
# n_raw_cd_retries = atoi(optarg);
# ^
# recoverdm.c:307:2: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [enabled by default]
# buffer = (char *)mymalloc(block_size, "sectorbuffer");
# ^
# In file included from recoverdm.c:13:0:
# utils.h:1:8: note: expected 'char *' but argument is of type 'const char *'
# void * mymalloc(size_t size, char *what);
# ^
# recoverdm.c:308:2: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [enabled by default]
# buffer2 = (char *)mymalloc(block_size, "sectorbuffer for retries");
# ^
# In file included from recoverdm.c:13:0:
# utils.h:1:8: note: expected 'char *' but argument is of type 'const char *'
# void * mymalloc(size_t size, char *what);
# ^
# io.c: In function 'READ':
# io.c:30:6: warning: passing argument 1 of 'error_exit' discards 'const' qualifier from pointer target type [enabled by default]
# error_exit("unexpected error while reading: %s (%d)\n", strerror(errno), errno);
# ^
# In file included from io.c:12:0:
# error.h:1:6: note: expected 'char *' but argument is of type 'const char *'
# void error_exit(char *format, ...);
# ^
# io.c:42:4: warning: conversion to 'size_t' from 'ssize_t' may change the sign of the result [-Wsign-conversion]
# len -= rc;
# ^
# io.c: In function 'WRITE':
# io.c:75:4: warning: conversion to 'size_t' from 'ssize_t' may change the sign of the result [-Wsign-conversion]
# len -= rc;
# ^
# recoverdm.c:445:6: warning: conversion to 'size_t' from 'int' may change the sign of the result [-Wsign-conversion]
# fprintf(dsecfile, "%lld %ld\n", curpos, block_size*skip_value);
# ^
# recoverdm.c:445:6: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'size_t' [-Wformat=]
# io.c: In function 'phantom_write':
# io.c:111:22: warning: conversion to 'size_t' from 'off64_t' may alter its value [-Wconversion]
# move_a_little = 512 - (curpos & 511);
# ^
# io.c:132:4: warning: conversion to 'size_t' from 'int' may change the sign of the result [-Wsign-conversion]
# move_a_little -= rc;
# ^
# recoverdm.c:440:10: warning: variable 'ok' set but not used [-Wunused-but-set-variable]
# char ok = 1;
# ^
# io.c:181:3: warning: conversion to 'size_t' from 'int' may change the sign of the result [-Wsign-conversion]
# nbytes -= rc;
# ^
# ==> ERROR: A failure occurred in build().
# Aborting...