Build of ico2xpm with android 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
983 ansic
17 makefile
1,000 total

The process tree of the build process is here.

Several sub-process invocations were improper; see the process tree for details. Summary:

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: ico2xpm 1.3-2 (Tue Apr 4 19:41:11 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# gcc -O3 -Wall -pipe -s -o ico2xpm ico2xpm.c
# cc1: error: no include path in which to search for stdc-predef.h
# ico2xpm.c:29:19: error: no include path in which to search for stdio.h
# #include
# ^
# ico2xpm.c:30:20: error: no include path in which to search for stdlib.h
# #include
# ^
# ico2xpm.c:31:20: error: no include path in which to search for string.h
# #include
# ^
# ico2xpm.c:32:20: error: no include path in which to search for stdarg.h
# #include
# ^
# ico2xpm.c:129:4: error: unknown type name 'FILE'
# FILE *fres;
# ^
# ico2xpm.c:135:5: error: unknown type name 'FILE'
# FILE *fin;
# ^
# ico2xpm.c:148:47: error: unknown type name 'va_list'
# typedef int (*RESENTRYPROC)(RESENUMINFO *rei, va_list ap);
# ^
# ico2xpm.c:150:31: error: unknown type name 'FILE'
# typedef int (*RESENTRYPROC32)(FILE *fin, long resTblPos, va_list ap);
# ^
# ico2xpm.c:150:58: error: unknown type name 'va_list'
# typedef int (*RESENTRYPROC32)(FILE *fin, long resTblPos, va_list ap);
# ^
# ico2xpm.c:152:58: error: unknown type name 'va_list'
# typedef int (*ENUMCOLORPROC)(int xi, int yi, long color, va_list ap);
# ^
# ico2xpm.c: In function 'pal_get_entry':
# ico2xpm.c:198:6: warning: implicit declaration of function 'realloc' [-Wimplicit-function-declaration]
# xpmpal->Entries = realloc(xpmpal->Entries, xpmpal->Count * sizeof(XPMPALENTRY));
# ^
# ico2xpm.c:198:24: warning: incompatible implicit declaration of built-in function 'realloc' [enabled by default]
# xpmpal->Entries = realloc(xpmpal->Entries, xpmpal->Count * sizeof(XPMPALENTRY));
# ^
# ico2xpm.c: In function 'pal_init':
# ico2xpm.c:208:22: error: 'NULL' undeclared (first use in this function)
# xpmpal->Entries = NULL;
# ^
# ico2xpm.c:208:22: note: each undeclared identifier is reported only once for each function it appears in
# ico2xpm.c: In function 'pal_done':
# ico2xpm.c:212:4: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
# free(xpmpal->Entries);
# ^
# ico2xpm.c:212:4: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# ico2xpm.c: In function 'do_error':
# ico2xpm.c:222:4: warning: implicit declaration of function 'perror' [-Wimplicit-function-declaration]
# perror(msg);
# ^
# ico2xpm.c:223:4: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
# exit(1);
# ^
# ico2xpm.c:223:4: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# ico2xpm.c: At top level:
# ico2xpm.c:226:21: error: unknown type name 'size_t'
# static void *salloc(size_t size) {
# ^
# ico2xpm.c:235:25: error: unknown type name 'FILE'
# static BOOLEAN readBYTE(FILE *stream, BYTE *value) {
# ^
# ico2xpm.c:247:25: error: unknown type name 'FILE'
# static BOOLEAN readWORD(FILE *stream, WORD *value) {
# ^
# ico2xpm.c:255:26: error: unknown type name 'FILE'
# static BOOLEAN readDWORD(FILE *stream, DWORD *value) {
# ^
# ico2xpm.c:263:25: error: unknown type name 'FILE'
# static BOOLEAN readLONG(FILE *stream, LONG *value) {
# ^
# ico2xpm.c:271:37: error: unknown type name 'FILE'
# static BOOLEAN readBITMAPINFOHEADER(FILE *stream, BITMAPINFOHEADER *pbih) {
# ^
# ico2xpm.c:285:28: error: unknown type name 'FILE'
# static BOOLEAN readICONHDR(FILE *stream, ICONHDR *pih) {
# ^
# ico2xpm.c:291:33: error: unknown type name 'FILE'
# static BOOLEAN readICONDIRENTRY(FILE *stream, ICONDIRENTRY *pide) {
# ^
# ico2xpm.c:302:36: error: unknown type name 'FILE'
# static BOOLEAN readRESICONDIRENTRY(FILE *stream, RESICONDIRENTRY *pride) {
# ^
# ico2xpm.c:313:29: error: unknown type name 'FILE'
# static BOOLEAN readNAMEINFO(FILE *stream, NAMEINFO *pni) {
# ^
# ico2xpm.c:323:28: error: unknown type name 'FILE'
# static BOOLEAN readRGBQUAD(FILE *stream, RGBQUAD *prgb) {
# ^
# ico2xpm.c:330:28: error: unknown type name 'FILE'
# static BOOLEAN readPalette(FILE *stream, RGBQUAD *prgb, int num) {
# ^
# ico2xpm.c:339:23: error: unknown type name 'FILE'
# static BOOLEAN sfread(FILE *stream, void *ptr, size_t nmemb) {
# ^
# ico2xpm.c:339:48: error: unknown type name 'size_t'
# static BOOLEAN sfread(FILE *stream, void *ptr, size_t nmemb) {
# ^
# ico2xpm.c:345:24: error: unknown type name 'FILE'
# static BOOLEAN sfwrite(FILE *stream, void *ptr, size_t nmemb) {
# ^
# ico2xpm.c:345:49: error: unknown type name 'size_t'
# static BOOLEAN sfwrite(FILE *stream, void *ptr, size_t nmemb) {
# ^
# ico2xpm.c: In function 'trimOutExt':
# ico2xpm.c:354:10: error: 'NULL' undeclared (first use in this function)
# for (p=NULL; *fname; fname++) {
# ^
# ico2xpm.c: In function 'extractFname':
# ico2xpm.c:363:4: warning: implicit declaration of function 'strrchr' [-Wimplicit-function-declaration]
# char *p = strrchr(fname, '/');
# ^
# ico2xpm.c:363:14: warning: incompatible implicit declaration of built-in function 'strrchr' [enabled by default]
# char *p = strrchr(fname, '/');
# ^
# ico2xpm.c:370:4: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
# if (p != fname) strcpy(fname, p);
# ^
# ico2xpm.c:370:20: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# if (p != fname) strcpy(fname, p);
# ^
# ico2xpm.c: In function 'color_name':
# ico2xpm.c:396:7: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# strcpy(sname,"None");
# ^
# ico2xpm.c:398:7: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration]
# sprintf(sname,"#%06" PRI_DWORD_X, color);
# ^
# ico2xpm.c:398:7: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# ico2xpm.c: In function 'help':
# ico2xpm.c:422:3: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
# printf("ico2xpm 1.2 - Converts MS-Windows icon resources to X Pixmap\n"
# ^
# ico2xpm.c:422:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# ico2xpm.c:427:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# ico2xpm.c: At top level:
# ico2xpm.c:430:21: error: unknown type name 'FILE'
# static int sfprintf(FILE *fout, const char *format, ...) {
# ^
# ico2xpm.c:442:23: error: unknown type name 'ENUMCOLORPROC'
# RGBQUAD *palette, ENUMCOLORPROC enumProc, ...) {
# ^
# ico2xpm.c:494:52: error: unknown type name 'va_list'
# static int addPalEntry(int xi, int yi, long color, va_list ap) {
# ^
# ico2xpm.c:502:53: error: unknown type name 'va_list'
# static int adjustBorder(int xi, int yi, long color, va_list ap) {
# ^
# ico2xpm.c:513:51: error: unknown type name 'va_list'
# static int writePixel(int xi, int yi, long color, va_list ap) {
# ^
# ico2xpm.c:549:29: error: unknown type name 'FILE'
# static BOOLEAN writePallete(FILE *fxpm, int ccp, XPMPAL *xpmpal) {
# ^
# ico2xpm.c: In function 'setIconExt':
# ico2xpm.c:589:3: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# iconame += strlen(iconame);
# ^
# ico2xpm.c:589:14: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# iconame += strlen(iconame);
# ^
# ico2xpm.c:592:3: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# strcpy(iconame, ext);
# ^
# ico2xpm.c: At top level:
# ico2xpm.c:595:31: error: unknown type name 'FILE'
# static void extractOneIconBmp(FILE *fico, char *iconame, DWORD BytesInRes) {
# ^
# ico2xpm.c:689:31: error: unknown type name 'FILE'
# static void extractOneIconPng(FILE *fico, char *iconame, DWORD BytesInRes) {
# ^
# ico2xpm.c:714:28: error: unknown type name 'FILE'
# static void extractOneIcon(FILE *fico, char *iconame, DWORD BytesInRes) {
# ^
# ico2xpm.c:728:28: error: unknown type name 'FILE'
# static BOOLEAN readIconHdr(FILE *fico, ICONHDR *ihdr) {
# ^
# ico2xpm.c: In function 'fmtIconName':
# ico2xpm.c:738:10: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# if (n) sprintf(buff, "%s_%d" , iconame, n+1);
# ^
# ico2xpm.c:739:8: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# else strcpy(buff, iconame);
# ^
# ico2xpm.c: At top level:
# ico2xpm.c:742:25: error: unknown type name 'FILE'
# static void extractIcon(FILE *fico, char *iconame) {
# ^
# ico2xpm.c:764:29: error: unknown type name 'FILE'
# static FILETYPE getFileType(FILE *fin) {
# ^
# ico2xpm.c:799:28: error: unknown type name 'FILE'
# static int forEachResEntry(FILE *fin, WORD wTypeID, RESENTRYPROC ResEntryProc, ...) {
# ^
# ico2xpm.c:799:53: error: unknown type name 'RESENTRYPROC'
# static int forEachResEntry(FILE *fin, WORD wTypeID, RESENTRYPROC ResEntryProc, ...) {
# ^
# ico2xpm.c:839:23: error: unknown type name 'FILE'
# static void inGetName(FILE *fin, char *newname) {
# ^
# ico2xpm.c:850:38: error: unknown type name 'FILE'
# static void icoNameInit(ICONAME *in, FILE *fin, char *filename) {
# ^
# ico2xpm.c: In function 'icoNameDone':
# ico2xpm.c:880:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(in->filename);
# ^
# ico2xpm.c: In function 'icoNameGetName':
# ico2xpm.c:891:3: error: unknown type name 'FILE'
# FILE *fin = in->fin;
# ^
# ico2xpm.c:893:5: warning: implicit declaration of function 'ftell' [-Wimplicit-function-declaration]
# long svPos = ftell(fin);
# ^
# ico2xpm.c:894:5: warning: implicit declaration of function 'fseek' [-Wimplicit-function-declaration]
# fseek(fin, in->lastPos, SEEK_SET);
# ^
# ico2xpm.c:894:29: error: 'SEEK_SET' undeclared (first use in this function)
# fseek(fin, in->lastPos, SEEK_SET);
# ^
# ico2xpm.c:895:5: warning: implicit declaration of function 'inGetName' [-Wimplicit-function-declaration]
# inGetName(fin, iconame);
# ^
# ico2xpm.c:902:15: error: 'NULL' undeclared (first use in this function)
# in->fin = NULL;
# ^
# ico2xpm.c:906:5: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(iconame, "%s-%ld", in->filename, in->lastPos);
# ^
# ico2xpm.c:908:5: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# strcpy(iconame, in->filename);
# ^
# ico2xpm.c: At top level:
# ico2xpm.c:912:39: error: unknown type name 'va_list'
# static int EnumIcon(RESENUMINFO *rei, va_list ap) {
# ^
# ico2xpm.c:928:44: error: unknown type name 'va_list'
# static int EnumIconGroup(RESENUMINFO *rei, va_list ap) {
# ^
# ico2xpm.c:956:30: error: unknown type name 'FILE'
# static BOOLEAN seekNewHeader(FILE *fin) {
# ^
# ico2xpm.c:968:34: error: unknown type name 'FILE'
# static void extractIconFromNEEXE(FILE *fin, char *iconame) {
# ^
# ico2xpm.c:986:29: error: unknown type name 'FILE'
# static DWORD findResEntry32(FILE *fin, WORD entryID) {
# ^
# ico2xpm.c:1012:35: error: unknown type name 'FILE'
# static BOOLEAN getResourceTable32(FILE *fin, RESINFO *ri) {
# ^
# ico2xpm.c:1050:32: error: unknown type name 'FILE'
# static int doForEachResEntry32(FILE *fin, long resTblPos, RESENTRYPROC32 ResEntryProc, va_list ap) {
# ^
# ico2xpm.c:1050:59: error: unknown type name 'RESENTRYPROC32'
# static int doForEachResEntry32(FILE *fin, long resTblPos, RESENTRYPROC32 ResEntryProc, va_list ap) {
# ^
# ico2xpm.c:1050:88: error: unknown type name 'va_list'
# static int doForEachResEntry32(FILE *fin, long resTblPos, RESENTRYPROC32 ResEntryProc, va_list ap) {
# ^
# ico2xpm.c:1081:30: error: unknown type name 'FILE'
# static int forEachResEntry32(FILE *fin, long resTblPos, RESENTRYPROC32 ResEntryProc, ...) {
# ^
# ico2xpm.c:1081:57: error: unknown type name 'RESENTRYPROC32'
# static int forEachResEntry32(FILE *fin, long resTblPos, RESENTRYPROC32 ResEntryProc, ...) {
# ^
# ico2xpm.c:1092:22: error: unknown type name 'FILE'
# static int icoProc32(FILE *fin, long resTblPos, va_list ap) {
# ^
# ico2xpm.c:1092:49: error: unknown type name 'va_list'
# static int icoProc32(FILE *fin, long resTblPos, va_list ap) {
# ^
# ico2xpm.c:1109:27: error: unknown type name 'FILE'
# static int icoGroupProc32(FILE *fin, long resTblPos, va_list ap) {
# ^
# ico2xpm.c:1109:54: error: unknown type name 'va_list'
# static int icoGroupProc32(FILE *fin, long resTblPos, va_list ap) {
# ^
# ico2xpm.c:1147:34: error: unknown type name 'FILE'
# static void extractIconFromPEEXE(FILE *fin, char *iconame) {
# ^
# ico2xpm.c: In function 'parseArguments':
# ico2xpm.c:1171:4: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
# if (!strcmp(arg, "t"))
# ^
# ico2xpm.c:1178:8: warning: implicit declaration of function 'strtol' [-Wimplicit-function-declaration]
# iReduceColors = strtol(arg, &p, 0);
# ^
# ico2xpm.c: In function 'main':
# ico2xpm.c:1187:3: error: unknown type name 'FILE'
# FILE *fico;
# ^
# ico2xpm.c:1197:5: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
# fico = fopen(iconame,"rb");
# ^
# ico2xpm.c:1197:10: warning: assignment makes pointer from integer without a cast [enabled by default]
# fico = fopen(iconame,"rb");
# ^
# ico2xpm.c:1198:15: error: 'NULL' undeclared (first use in this function)
# if (fico==NULL) {
# ^
# ico2xpm.c:1203:5: warning: implicit declaration of function 'getFileType' [-Wimplicit-function-declaration]
# switch (getFileType(fico)) {
# ^
# ico2xpm.c:1205:12: warning: implicit declaration of function 'extractIcon' [-Wimplicit-function-declaration]
# extractIcon(fico, iconame);
# ^
# ico2xpm.c:1208:12: warning: implicit declaration of function 'extractIconFromNEEXE' [-Wimplicit-function-declaration]
# extractIconFromNEEXE(fico, iconame);
# ^
# ico2xpm.c:1211:12: warning: implicit declaration of function 'extractIconFromPEEXE' [-Wimplicit-function-declaration]
# extractIconFromPEEXE(fico, iconame);
# ^
# ico2xpm.c:1214:12: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
# fprintf(stderr, "Unknown file type\n");
# ^
# ico2xpm.c:1214:12: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# ico2xpm.c:1214:20: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "Unknown file type\n");
# ^
# ico2xpm.c:1217:5: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration]
# fclose(fico);
# ^
# ico2xpm.c: At top level:
# ico2xpm.c:211:13: warning: 'pal_done' defined but not used [-Wunused-function]
# static void pal_done(XPMPAL *xpmpal) {
# ^
# ico2xpm.c:216:13: warning: 'pal_add_entry' defined but not used [-Wunused-function]
# static void pal_add_entry(XPMPAL *xpmpal, DWORD color) {
# ^
# ico2xpm.c:221:13: warning: 'do_error' defined but not used [-Wunused-function]
# static void do_error(char *msg) {
# ^
# ico2xpm.c:373:13: warning: 'color_simbl' defined but not used [-Wunused-function]
# static void color_simbl(char *ssbl, int n) {
# ^
# ico2xpm.c:382:12: warning: 'char_per_pix' defined but not used [-Wunused-function]
# static int char_per_pix(DWORD ncol) {
# ^
# ico2xpm.c:394:13: warning: 'color_name' defined but not used [-Wunused-function]
# static void color_name(char *sname, DWORD color) {
# ^
# ico2xpm.c:407:13: warning: 'getIconId' defined but not used [-Wunused-function]
# static void getIconId(const char *iconame, char *id) {
# ^
# ico2xpm.c:489:16: warning: 'insideFrame' defined but not used [-Wunused-function]
# static BOOLEAN insideFrame(ICONBORDER *ib, int xi, int yi) {
# ^
# ico2xpm.c:534:13: warning: 'iconBorderInit' defined but not used [-Wunused-function]
# static void iconBorderInit(ICONBORDER *ib, BITMAPINFOHEADER *bhdr) {
# ^
# ico2xpm.c:541:12: warning: 'iconBorderGetWidth' defined but not used [-Wunused-function]
# static int iconBorderGetWidth(ICONBORDER *ib) {
# ^
# ico2xpm.c:545:12: warning: 'iconBorderGetHeight' defined but not used [-Wunused-function]
# static int iconBorderGetHeight(ICONBORDER *ib) {
# ^
# ico2xpm.c:586:13: warning: 'setIconExt' defined but not used [-Wunused-function]
# static void setIconExt(char *iconame, const char *ext) {
# ^
# ico2xpm.c:737:13: warning: 'fmtIconName' defined but not used [-Wunused-function]
# static void fmtIconName(char *buff, const char *iconame, int n) {
# ^
# ico2xpm.c:879:13: warning: 'icoNameDone' defined but not used [-Wunused-function]
# static void icoNameDone(ICONAME *in) {
# ^
# ico2xpm.c:890:13: warning: 'icoNameGetName' defined but not used [-Wunused-function]
# static void icoNameGetName(ICONAME *in, char *iconame) {
# ^
# make: *** [Makefile:12: ico2xpm] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...