The build took 00h 00m 54s and was NOT successful.
The program in this build is written in the following languages, according to sloccount:
SLOC | Language |
---|---|
3,305 |
ansic |
91 |
makefile |
3,396 |
total |
The process tree of the build process is here.
Several sub-process invocations were improper; see the process tree for details. Summary:
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:
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: curseofwar 1.2.0-2 (Tue Apr 4 20:53:09 UTC 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
make: Entering directory '/tmp/curseofwar/src/curseofwar-1.2.0'
gcc -DVERSION="\"1.2.0\"" -Wall -O2 -c grid.c
gcc -DVERSION="\"1.2.0\"" -Wall -O2 -c state.c
gcc -DVERSION="\"1.2.0\"" -Wall -O2 -c king.c
gcc -DVERSION="\"1.2.0\"" -Wall -O2 -c network.c
cc1: error: no include path in which to search for stdc-predef.h
In file included from state.h:24:0,
from state.c:20:
grid.h:23:20: error: no include path in which to search for stdlib.h
#include
^
grid.h:24:19: error: no include path in which to search for stdio.h
#include
^
grid.h:25:18: error: no include path in which to search for math.h
#include
^
state.c:21:19: error: no include path in which to search for stdio.h
#include
^
state.c:22:18: error: no include path in which to search for math.h
#include
^
state.c: In function 'state_init':
state.c:56:3: warning: implicit declaration of function 'rand' [-Wimplicit-function-declaration]
s->time = (1850 + rand()%100) * 360 + rand()%360;
^
state.c:101:3: warning: implicit declaration of function 'srand' [-Wimplicit-function-declaration]
srand(s->map_seed);
^
state.c: In function 'rnd_round':
state.c:224:31: error: 'RAND_MAX' undeclared (first use in this function)
if ( (float)rand() / (float)RAND_MAX < (x - i) ) i++;
^
state.c:224:31: note: each undeclared identifier is reported only once for each function it appears in
cc1: error: no include path in which to search for stdc-predef.h
In file included from grid.c:20:0:
grid.h:23:20: error: no include path in which to search for stdlib.h
#include
^
grid.h:24:19: error: no include path in which to search for stdio.h
#include
^
grid.h:25:18: error: no include path in which to search for math.h
#include
^
grid.c: In function 'grid_init':
grid.c:56:7: warning: implicit declaration of function 'rand' [-Wimplicit-function-declaration]
int x = rand() % 20;
^
cc1: error: no include path in which to search for stdc-predef.h
In file included from king.h:23:0,
from king.c:20:
grid.h:23:20: error: no include path in which to search for stdlib.h
#include
^
grid.h:24:19: error: no include path in which to search for stdio.h
#include
^
grid.h:25:18: error: no include path in which to search for math.h
#include
^
king.c:21:18: error: no include path in which to search for math.h
#include
^
make: *** [Makefile:76: state.o] Error 1
make: *** Waiting for unfinished jobs....
grid.c: In function 'eval_locations':
grid.c:278:11: warning: implicit declaration of function 'exp' [-Wimplicit-function-declaration]
result[single_owner] += (int) ( 100.0 * (MAX_WIDTH + MAX_HEIGHT) * exp(-10.0 * (float)max_dist*min_dist / (MAX_WIDTH*MAX_HEIGHT)) );
^
grid.c:278:78: warning: incompatible implicit declaration of built-in function 'exp' [enabled by default]
result[single_owner] += (int) ( 100.0 * (MAX_WIDTH + MAX_HEIGHT) * exp(-10.0 * (float)max_dist*min_dist / (MAX_WIDTH*MAX_HEIGHT)) );
^
king.c: In function 'king_evaluate_map':
king.c:115:11: warning: implicit declaration of function 'rand' [-Wimplicit-function-declaration]
x = x + rand()%7 - 3;
^
grid.c: In function 'conflict':
king.c: In function 'action_aggr_greedy':
king.c:212:7: warning: implicit declaration of function 'pow' [-Wimplicit-function-declaration]
float v = (float) k->value[i][j] * (2.0*enemy - army) * pow(army, 0.5);
^
grid.c:388:7: warning: implicit declaration of function 'pow' [-Wimplicit-function-declaration]
var += pow((float)eval_result[i] - avg, 2);
^
king.c:212:63: warning: incompatible implicit declaration of built-in function 'pow' [enabled by default]
float v = (float) k->value[i][j] * (2.0*enemy - army) * pow(army, 0.5);
^
grid.c:388:14: warning: incompatible implicit declaration of built-in function 'pow' [enabled by default]
var += pow((float)eval_result[i] - avg, 2);
^
grid.c:391:5: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
float diff = sqrt(var);
^
grid.c:391:18: warning: incompatible implicit declaration of built-in function 'sqrt' [enabled by default]
float diff = sqrt(var);
^
king.c: In function 'action_one_greedy':
king.c:237:63: warning: incompatible implicit declaration of built-in function 'pow' [enabled by default]
float v = (float) k->value[i][j] * (5.0*enemy - army) * pow(army, 0.5);
^
grid.c:403:3: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
int *sh_players_comp = (int*)malloc(sizeof(int)*players_num);
^
king.c: In function 'action_persistent_greedy':
grid.c:403:32: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
int *sh_players_comp = (int*)malloc(sizeof(int)*players_num);
^
king.c:258:64: warning: incompatible implicit declaration of built-in function 'pow' [enabled by default]
float v1 = (float) k->value[i][j] * (2.5*enemy - army) * pow(army, 0.7);
^
king.c: In function 'action_opportunist':
king.c:291:71: warning: incompatible implicit declaration of built-in function 'pow' [enabled by default]
float v = (float) k->value[i][j] * (MAX_POP - (enemy - army)) * pow(army, 0.5);
^
grid.c:451:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
free(sh_players);
^
grid.c:451:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
cc1: error: no include path in which to search for stdc-predef.h
In file included from network.c:21:0:
network.h:24:23: error: no include path in which to search for sys/types.h
#include
^
network.h:25:24: error: no include path in which to search for sys/socket.h
#include
^
network.h:26:19: error: no include path in which to search for netdb.h
#include
^
network.h:27:19: error: no include path in which to search for stdio.h
#include
^
network.h:28:20: error: no include path in which to search for stdlib.h
#include
^
network.h:29:20: error: no include path in which to search for unistd.h
#include
^
network.h:30:20: error: no include path in which to search for string.h
#include
^
network.h:35:26: warning: 'struct sockaddr' declared inside parameter list [enabled by default]
void *get_in_addr(struct sockaddr *sa);
^
network.h:35:26: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
king.c: In function 'action_noble':
network.h:38:1: error: unknown type name 'in_port_t'
in_port_t get_in_port(struct sockaddr *sa);
^
network.h:38:30: warning: 'struct sockaddr' declared inside parameter list [enabled by default]
in_port_t get_in_port(struct sockaddr *sa);
^
king.c:349:71: warning: incompatible implicit declaration of built-in function 'pow' [enabled by default]
float v = (float) k->value[i][j] * (MAX_POP - (enemy - army)) * pow(army, 0.5);
^
network.h:42:52: warning: 'struct sockaddr_storage' declared inside parameter list [enabled by default]
int sa_match (struct sockaddr_storage *sa1, struct sockaddr_storage *sa2);
^
network.h:45:45: warning: 'struct addrinfo' declared inside parameter list [enabled by default]
int client_init_session(int*, char*, struct addrinfo *p_addr, char*, char*);
^
network.c:23:26: warning: 'struct sockaddr' declared inside parameter list [enabled by default]
void *get_in_addr(struct sockaddr *sa) {
^
network.c:23:7: error: conflicting types for 'get_in_addr'
void *get_in_addr(struct sockaddr *sa) {
^
In file included from network.c:21:0:
network.h:35:7: note: previous declaration of 'get_in_addr' was here
void *get_in_addr(struct sockaddr *sa);
^
network.c: In function 'get_in_addr':
network.c:24:9: error: dereferencing pointer to incomplete type
if (sa->sa_family == AF_INET) {
^
network.c:24:24: error: 'AF_INET' undeclared (first use in this function)
if (sa->sa_family == AF_INET) {
^
network.c:24:24: note: each undeclared identifier is reported only once for each function it appears in
network.c:25:39: error: dereferencing pointer to incomplete type
return &(((struct sockaddr_in*)sa)->sin_addr);
^
network.c:27:38: error: dereferencing pointer to incomplete type
return &(((struct sockaddr_in6*)sa)->sin6_addr);
^
network.c: At top level:
network.c:31:1: error: unknown type name 'in_port_t'
in_port_t get_in_port(struct sockaddr *sa) {
^
network.c:31:30: warning: 'struct sockaddr' declared inside parameter list [enabled by default]
in_port_t get_in_port(struct sockaddr *sa) {
^
network.c:31:11: error: conflicting types for 'get_in_port'
in_port_t get_in_port(struct sockaddr *sa) {
^
In file included from network.c:21:0:
network.h:38:11: note: previous declaration of 'get_in_port' was here
in_port_t get_in_port(struct sockaddr *sa);
^
network.c: In function 'get_in_port':
network.c:32:9: error: dereferencing pointer to incomplete type
if (sa->sa_family == AF_INET) {
^
network.c:32:24: error: 'AF_INET' undeclared (first use in this function)
if (sa->sa_family == AF_INET) {
^
network.c:33:38: error: dereferencing pointer to incomplete type
return (((struct sockaddr_in*)sa)->sin_port);
^
network.c:35:37: error: dereferencing pointer to incomplete type
return (((struct sockaddr_in6*)sa)->sin6_port);
^
network.c: At top level:
network.c:40:16: error: unknown type name 'uint8_t'
int eq_6_addr (uint8_t s1[SIZE6], uint8_t s2[SIZE6]) {
^
network.c:40:35: error: unknown type name 'uint8_t'
int eq_6_addr (uint8_t s1[SIZE6], uint8_t s2[SIZE6]) {
^
grid.c: In function 'remove_flags_with_prob':
network.c:49:52: warning: 'struct sockaddr_storage' declared inside parameter list [enabled by default]
int sa_match (struct sockaddr_storage *sa1, struct sockaddr_storage *sa2) {
^
network.c:49:5: error: conflicting types for 'sa_match'
int sa_match (struct sockaddr_storage *sa1, struct sockaddr_storage *sa2) {
^
In file included from network.c:21:0:
network.h:42:5: note: previous declaration of 'sa_match' was here
int sa_match (struct sockaddr_storage *sa1, struct sockaddr_storage *sa2);
^
network.c: In function 'sa_match':
grid.c:568:45: error: 'RAND_MAX' undeclared (first use in this function)
if (fg->flag[i][j] && (float)rand() / RAND_MAX <= prob) {
^
network.c:54:11: error: dereferencing pointer to incomplete type
( s1->sa_family == AF_INET && s2->sa_family == AF_INET &&
^
grid.c:568:45: note: each undeclared identifier is reported only once for each function it appears in
network.c:54:26: error: 'AF_INET' undeclared (first use in this function)
( s1->sa_family == AF_INET && s2->sa_family == AF_INET &&
^
network.c:54:39: error: dereferencing pointer to incomplete type
( s1->sa_family == AF_INET && s2->sa_family == AF_INET &&
^
network.c:55:34: error: dereferencing pointer to incomplete type
((struct sockaddr_in*)s1)->sin_addr.s_addr == ((struct sockaddr_in*)s2)->sin_addr.s_addr )
^
network.c:55:80: error: dereferencing pointer to incomplete type
((struct sockaddr_in*)s1)->sin_addr.s_addr == ((struct sockaddr_in*)s2)->sin_addr.s_addr )
^
network.c:58:11: error: dereferencing pointer to incomplete type
( s1->sa_family == AF_INET6 && s2->sa_family == AF_INET6 &&
^
network.c:58:26: error: 'AF_INET6' undeclared (first use in this function)
( s1->sa_family == AF_INET6 && s2->sa_family == AF_INET6 &&
^
network.c:58:40: error: dereferencing pointer to incomplete type
( s1->sa_family == AF_INET6 && s2->sa_family == AF_INET6 &&
^
network.c:59:9: warning: implicit declaration of function 'eq_6_addr' [-Wimplicit-function-declaration]
eq_6_addr (
^
network.c:60:37: error: dereferencing pointer to incomplete type
((struct sockaddr_in6*)s1)->sin6_addr.s6_addr,
^
network.c:61:37: error: dereferencing pointer to incomplete type
((struct sockaddr_in6*)s2)->sin6_addr.s6_addr ) )
^
network.c:64:5: warning: passing argument 1 of 'get_in_port' from incompatible pointer type [enabled by default]
( get_in_port(s1) == get_in_port(s2) );
^
network.c:31:11: note: expected 'struct sockaddr *' but argument is of type 'struct sockaddr *'
in_port_t get_in_port(struct sockaddr *sa) {
^
network.c:64:5: warning: passing argument 1 of 'get_in_port' from incompatible pointer type [enabled by default]
( get_in_port(s1) == get_in_port(s2) );
^
network.c:31:11: note: expected 'struct sockaddr *' but argument is of type 'struct sockaddr *'
in_port_t get_in_port(struct sockaddr *sa) {
^
network.c: In function 'server_init':
network.c:70:19: error: storage size of 'hints' isn't known
struct addrinfo hints;
^
network.c:74:3: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
memset(&hints, 0, sizeof(struct addrinfo));
^
network.c:74:3: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
network.c:74:28: error: invalid application of 'sizeof' to incomplete type 'struct addrinfo'
memset(&hints, 0, sizeof(struct addrinfo));
^
network.c:75:21: error: 'AF_UNSPEC' undeclared (first use in this function)
hints.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6 */
^
network.c:76:23: error: 'SOCK_DGRAM' undeclared (first use in this function)
hints.ai_socktype = SOCK_DGRAM; /* Datagram socket */
^
network.c:77:20: error: 'AI_PASSIVE' undeclared (first use in this function)
hints.ai_flags = AI_PASSIVE; /* For wildcard IP address */
^
network.c:79:24: error: 'NULL' undeclared (first use in this function)
hints.ai_canonname = NULL;
^
network.c:83:3: warning: implicit declaration of function 'getaddrinfo' [-Wimplicit-function-declaration]
s = getaddrinfo(NULL, str_port, &hints, &result);
^
network.c:85:5: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
fprintf(stderr, "getaddrinfo: %s\n", gai_strerror(s));
^
network.c:85:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
network.c:85:13: error: 'stderr' undeclared (first use in this function)
fprintf(stderr, "getaddrinfo: %s\n", gai_strerror(s));
^
network.c:85:5: warning: implicit declaration of function 'gai_strerror' [-Wimplicit-function-declaration]
fprintf(stderr, "getaddrinfo: %s\n", gai_strerror(s));
^
network.c:94:40: error: dereferencing pointer to incomplete type
for (rp = result; rp != NULL; rp = rp->ai_next) {
^
network.c:95:5: warning: implicit declaration of function 'socket' [-Wimplicit-function-declaration]
*p_sfd = socket(rp->ai_family, rp->ai_socktype,
^
network.c:95:23: error: dereferencing pointer to incomplete type
*p_sfd = socket(rp->ai_family, rp->ai_socktype,
^
network.c:95:38: error: dereferencing pointer to incomplete type
*p_sfd = socket(rp->ai_family, rp->ai_socktype,
^
network.c:96:7: error: dereferencing pointer to incomplete type
rp->ai_protocol);
^
network.c:100:5: warning: implicit declaration of function 'bind' [-Wimplicit-function-declaration]
if (bind(*p_sfd, rp->ai_addr, rp->ai_addrlen) == 0)
^
network.c:100:24: error: dereferencing pointer to incomplete type
if (bind(*p_sfd, rp->ai_addr, rp->ai_addrlen) == 0)
^
network.c:100:37: error: dereferencing pointer to incomplete type
if (bind(*p_sfd, rp->ai_addr, rp->ai_addrlen) == 0)
^
network.c:103:5: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
close(*p_sfd);
^
network.c:107:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(stderr, "Could not bind\n");
^
network.c:111:3: warning: implicit declaration of function 'freeaddrinfo' [-Wimplicit-function-declaration]
freeaddrinfo(result); /* No longer needed */
^
network.c:70:19: warning: unused variable 'hints' [-Wunused-variable]
struct addrinfo hints;
^
network.c: At top level:
network.c:116:64: warning: 'struct addrinfo' declared inside parameter list [enabled by default]
int client_init_session (int *p_sfd, char* str_my_port, struct addrinfo *srv, char *str_server_addr, char *str_server_port) {
^
network.c:116:5: error: conflicting types for 'client_init_session'
int client_init_session (int *p_sfd, char* str_my_port, struct addrinfo *srv, char *str_server_addr, char *str_server_port) {
^
In file included from network.c:21:0:
network.h:45:5: note: previous declaration of 'client_init_session' was here
int client_init_session(int*, char*, struct addrinfo *p_addr, char*, char*);
^
network.c: In function 'client_init_session':
network.c:117:19: error: storage size of 'hints' isn't known
struct addrinfo hints;
^
network.c:121:3: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
memset(&hints, 0, sizeof(struct addrinfo));
^
network.c:121:28: error: invalid application of 'sizeof' to incomplete type 'struct addrinfo'
memset(&hints, 0, sizeof(struct addrinfo));
^
network.c:122:21: error: 'AF_UNSPEC' undeclared (first use in this function)
hints.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6 */
^
network.c:123:23: error: 'SOCK_DGRAM' undeclared (first use in this function)
hints.ai_socktype = SOCK_DGRAM; /* Datagram socket */
^
network.c:124:20: error: 'AI_PASSIVE' undeclared (first use in this function)
hints.ai_flags = AI_PASSIVE; /* For wildcard IP address */
^
network.c:126:24: error: 'NULL' undeclared (first use in this function)
hints.ai_canonname = NULL;
^
network.c:132:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(stderr, "getaddrinfo: %s\n", gai_strerror(s));
^
network.c:132:13: error: 'stderr' undeclared (first use in this function)
fprintf(stderr, "getaddrinfo: %s\n", gai_strerror(s));
^
network.c:141:40: error: dereferencing pointer to incomplete type
for (rp = result; rp != NULL; rp = rp->ai_next) {
^
network.c:142:23: error: dereferencing pointer to incomplete type
*p_sfd = socket(rp->ai_family, rp->ai_socktype,
^
network.c:142:38: error: dereferencing pointer to incomplete type
*p_sfd = socket(rp->ai_family, rp->ai_socktype,
^
network.c:143:7: error: dereferencing pointer to incomplete type
rp->ai_protocol);
^
network.c:147:24: error: dereferencing pointer to incomplete type
if (bind(*p_sfd, rp->ai_addr, rp->ai_addrlen) == 0)
^
network.c:147:37: error: dereferencing pointer to incomplete type
if (bind(*p_sfd, rp->ai_addr, rp->ai_addrlen) == 0)
^
network.c:154:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(stderr, "Could not bind\n");
^
network.c:164:28: error: invalid application of 'sizeof' to incomplete type 'struct addrinfo'
memset(&hints, 0, sizeof(struct addrinfo));
^
network.c:172:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(stderr, "getaddrinfo: %s\n", gai_strerror(s));
^
network.c:185:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(stderr, "Could not connect\n");
^
network.c:188:3: error: dereferencing pointer to incomplete type
*srv = *rp;
^
network.c:188:10: error: dereferencing pointer to incomplete type
*srv = *rp;
^
network.c:117:19: warning: unused variable 'hints' [-Wunused-variable]
struct addrinfo hints;
^
network.c: In function 'get_in_addr':
network.c:28:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
network.c: In function 'get_in_port':
network.c:36:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
network.c: In function 'sa_match':
network.c:65:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make: *** [Makefile:76: network.o] Error 1
make: *** [Makefile:76: king.o] Error 1
make: *** [Makefile:76: grid.o] Error 1
make: Leaving directory '/tmp/curseofwar/src/curseofwar-1.2.0'
==> ERROR: A failure occurred in build().
Aborting...