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 |
---|---|
38,617 |
ansic |
2,499 |
pascal |
170 |
makefile |
101 |
perl |
41,387 |
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: p2c 1.21alpha2-11 (Tue Apr 4 20:24:53 UTC 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
cc makeproto.c -o makeproto
cc -c -DHASDUMPS -DP2C_HOME=\"/usr/lib/p2c\" trans.c
cc -c -o stuff.o stuff.c
cc -c -o out.o out.c
cc1: error: no include path in which to search for stdc-predef.h
makeproto.c:9:19: error: no include path in which to search for stdio.h
#include
^
makeproto.c:10:19: error: no include path in which to search for ctype.h
#include
^
makeproto.c:11:18: error: no include path in which to search for time.h
#include
^
makeproto.c:33:21: error: no include path in which to search for string.h
# include
^
makeproto.c:61:7: error: 'NULL' undeclared here (not in a function)
{ NULL, NULL }
^
makeproto.c: In function 'readline':
makeproto.c:68:1: error: unknown type name 'FILE'
FILE *inf;
^
makeproto.c:105:17: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
printf("\217%s\210\n", buf);
^
cc1: error: no include path in which to search for stdc-predef.h
makeproto.c:108:13: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
strcpy(buf, "\001");
^
makeproto.c: In function 'usage':
makeproto.c:129:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(stderr, "usage: makeproto [options] [infile ...] [-o outfile]]\n");
^
makeproto.c:129:13: error: 'stderr' undeclared (first use in this function)
fprintf(stderr, "usage: makeproto [options] [infile ...] [-o outfile]]\n");
^
makeproto.c:129:13: note: each undeclared identifier is reported only once for each function it appears in
In file included from stuff.c:21:0:
trans.h:39:19: error: no include path in which to search for stdio.h
#include
^
trans.h:63:21: error: no include path in which to search for stdlib.h
# include
^
trans.h:64:21: error: no include path in which to search for stddef.h
# include
^
trans.h:65:21: error: no include path in which to search for limits.h
# include
^
makeproto.c:137:5: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
exit(1);
^
trans.h:81:21: error: no include path in which to search for string.h
# include
^
makeproto.c: In function 'main':
trans.h:84:19: error: no include path in which to search for ctype.h
#include
^
makeproto.c:153:5: error: unknown type name 'FILE'
FILE *inf, *outf;
^
makeproto.c:195:13: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
strcpy(outfname, argv[2]);
^
makeproto.c:203:9: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
strcpy(outfname, argv[argc-1]);
^
makeproto.c:207:14: warning: assignment makes pointer from integer without a cast [enabled by default]
outf = fopen(outfname, "w");
^
makeproto.c:210:13: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
exit(1);
^
makeproto.c:213:16: error: 'stdout' undeclared (first use in this function)
outf = stdout;
^
makeproto.c:213:14: warning: assignment from incompatible pointer type [enabled by default]
outf = stdout;
^
makeproto.c:216:12: warning: assignment makes pointer from integer without a cast [enabled by default]
cp = ctime(&li);
^
makeproto.c:218:9: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, "\n/* Declarations created by \"makeproto\" on %s */\n", cp);
^
makeproto.c:224:19: error: 'stdin' undeclared (first use in this function)
inf = stdin;
^
makeproto.c:224:17: warning: assignment from incompatible pointer type [enabled by default]
inf = stdin;
^
makeproto.c:226:17: warning: assignment makes pointer from integer without a cast [enabled by default]
inf = fopen(argv[whichf], "r");
^
makeproto.c:229:17: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, "\n/* Unable to open file %s */\n", argv[whichf]);
^
makeproto.c:256:17: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
strcpy(ftype, "int");
^
makeproto.c:40:43: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
#define dprintf if (!debug) ; else printf
^
makeproto.c:257:13: note: in expansion of macro 'dprintf'
dprintf("numstars is %d\n", numstars); /***/
^
makeproto.c:268:21: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
sprintf(temp, useextern == 2 ? "Extern %s" : "extern %s", ftype);
^
trans.h:1776:1: error: unknown type name 'FILE'
extern FILE *inf, *outf, *codef, *hdrf, *logf;
^
makeproto.c:374:29: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
sprintf(argdecls[i], "%s %s", dtype, decl);
^
trans.h:1776:42: warning: built-in function 'logf' declared as non-function [enabled by default]
extern FILE *inf, *outf, *codef, *hdrf, *logf;
^
makeproto.c:400:21: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, "\n/* Declarations from %s */\n", argv[whichf]);
^
makeproto.c:401:38: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if (useifdefs && inf != stdin) {
^
makeproto.c:421:21: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
sprintf(argdecls[i], "int %s", argnames[i]);
^
p2c.hdrs:23:41: error: unknown type name 'FILE'
extern void dumptypename_file PP( (FILE *f, Type *tp) );
^
p2c.hdrs:23:36: note: in expansion of macro 'PP'
extern void dumptypename_file PP( (FILE *f, Type *tp) );
^
p2c.hdrs:25:41: error: unknown type name 'FILE'
extern void dumpexpr_file PP( (FILE *f, Expr *ex) );
^
trans.h:23:17: note: in definition of macro 'PP'
# define PP(x) x /* use true prototypes */
^
makeproto.c:429:61: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
argdecls[i] + strlen(warntypes[j].bad));
^
p2c.hdrs:28:41: error: unknown type name 'FILE'
extern void dumpstmt_file PP( (FILE *f, Stmt *sp) );
^
trans.h:23:17: note: in definition of macro 'PP'
# define PP(x) x /* use true prototypes */
^
makeproto.c:431:25: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(stderr, "Warning: Argument %s of %s has type %s\n",
^
makeproto.c:431:33: error: 'stderr' undeclared (first use in this function)
fprintf(stderr, "Warning: Argument %s of %s has type %s\n",
^
makeproto.c:436:33: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if (verbose && outf != stdout)
^
makeproto.c:438:13: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, "%s", ftype);
^
makeproto.c:439:19: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
pos = strlen(ftype) + numstars;
^
p2c.hdrs:84:41: error: unknown type name 'FILE'
extern void select_outfile PP( (FILE *fp) );
^
trans.h:23:17: note: in definition of macro 'PP'
# define PP(x) x /* use true prototypes */
^
makeproto.c:489:17: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if (inf != stdin) {
^
makeproto.c:491:17: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, "#endif /*PROTO_%s*/\n", ifdefname);
^
makeproto.c:496:9: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, "\n\n/* End. */\n\n");
^
makeproto.c:498:14: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if (outf != stdout)
^
makeproto.c:501:9: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
exit(1);
^
p2c.hdrs:173:41: error: unknown type name 'FILE'
extern void push_input_file PP( (FILE *fp, char *fname, int isinclude) );
^
trans.h:23:17: note: in definition of macro 'PP'
# define PP(x) x /* use true prototypes */
^
In file included from stuff.c:21:0:
stuff.c: In function 'strlist_append':
trans.h:1926:19: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
((alloctemp = malloc((unsigned)(N))) || outmem(), \
^
stuff.c:69:17: note: in expansion of macro 'ALLOCV'
*base = p = ALLOCV(sizeof(Strlist) + strlen(s), Strlist, strlists);
^
cc1: error: no include path in which to search for stdc-predef.h
stuff.c:69:42: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
*base = p = ALLOCV(sizeof(Strlist) + strlen(s), Strlist, strlists);
^
trans.h:1926:37: note: in definition of macro 'ALLOCV'
((alloctemp = malloc((unsigned)(N))) || outmem(), \
^
stuff.c:70:15: error: 'NULL' undeclared (first use in this function)
p->next = NULL;
^
stuff.c:70:15: note: each undeclared identifier is reported only once for each function it appears in
stuff.c:72:5: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
strcpy(p->s, s);
^
In file included from stuff.c:21:0:
stuff.c: In function 'strlist_insert':
In file included from out.c:31:0:
trans.h:39:19: error: no include path in which to search for stdio.h
#include
^
trans.h:63:21: error: no include path in which to search for stdlib.h
# include
^
trans.h:64:21: error: no include path in which to search for stddef.h
# include
^
trans.h:65:21: error: no include path in which to search for limits.h
# include
^
trans.h:81:21: error: no include path in which to search for string.h
# include
^
trans.h:84:19: error: no include path in which to search for ctype.h
#include
^
trans.h:1926:19: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
((alloctemp = malloc((unsigned)(N))) || outmem(), \
^
stuff.c:86:9: note: in expansion of macro 'ALLOCV'
p = ALLOCV(sizeof(Strlist) + strlen(s), Strlist, strlists);
^
stuff.c:86:34: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
p = ALLOCV(sizeof(Strlist) + strlen(s), Strlist, strlists);
^
trans.h:1926:37: note: in definition of macro 'ALLOCV'
((alloctemp = malloc((unsigned)(N))) || outmem(), \
^
stuff.c:90:5: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
strcpy(p->s, s);
^
In file included from stuff.c:21:0:
stuff.c: In function 'strlist_add':
trans.h:1926:19: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
((alloctemp = malloc((unsigned)(N))) || outmem(), \
^
stuff.c:107:13: note: in expansion of macro 'ALLOCV'
p = ALLOCV(sizeof(Strlist) + strlen(s), Strlist, strlists);
^
stuff.c:107:38: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
p = ALLOCV(sizeof(Strlist) + strlen(s), Strlist, strlists);
^
trans.h:1926:37: note: in definition of macro 'ALLOCV'
((alloctemp = malloc((unsigned)(N))) || outmem(), \
^
stuff.c:110:9: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
strcpy(p->s, s);
^
stuff.c: In function 'strlist_eat':
stuff.c:140:24: error: 'NULL' undeclared (first use in this function)
if ((p = *base) != NULL) {
^
In file included from stuff.c:21:0:
trans.h:1933:17: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
#define FREE(P) free((char*)(P))
^
stuff.c:142:9: note: in expansion of macro 'FREE'
FREE(p);
^
stuff.c: In function 'strlist_empty':
stuff.c:159:27: error: 'NULL' undeclared (first use in this function)
while ((p = *base) != NULL) {
^
In file included from stuff.c:21:0:
trans.h:1933:17: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
#define FREE(P) free((char*)(P))
^
stuff.c:161:9: note: in expansion of macro 'FREE'
FREE(p);
^
stuff.c: In function 'strlist_remove':
stuff.c:175:27: error: 'NULL' undeclared (first use in this function)
while ((p = *base) != NULL) {
^
In file included from stuff.c:21:0:
trans.h:1933:17: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
#define FREE(P) free((char*)(P))
^
stuff.c:178:6: note: in expansion of macro 'FREE'
FREE(p);
^
stuff.c: In function 'strlist_delete':
trans.h:1933:17: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
#define FREE(P) free((char*)(P))
^
stuff.c:197:9: note: in expansion of macro 'FREE'
FREE(p);
^
stuff.c: In function 'strlist_find':
make: *** [Makefile:100: makeproto] Error 1
make: *** Waiting for unfinished jobs....
stuff.c:210:9: error: 'NULL' undeclared (first use in this function)
return NULL;
^
stuff.c: In function 'strlist_cifind':
stuff.c:225:9: error: 'NULL' undeclared (first use in this function)
return NULL;
^
stuff.c: In function 'fixfname':
stuff.c:304:9: warning: incompatible implicit declaration of built-in function 'strcat' [enabled by default]
strcat(fn, ".");
^
In file included from stuff.c:21:0:
stuff.c: In function 'stralloc':
trans.h:1922:19: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
((alloctemp = malloc((unsigned)((N)*sizeof(TYPE)))) || outmem(), \
^
stuff.c:338:26: note: in expansion of macro 'ALLOC'
register char *buf = ALLOC(strlen(s) + 1, char, strings);
^
stuff.c:338:32: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
register char *buf = ALLOC(strlen(s) + 1, char, strings);
^
trans.h:1922:38: note: in definition of macro 'ALLOC'
((alloctemp = malloc((unsigned)((N)*sizeof(TYPE)))) || outmem(), \
^
stuff.c:339:5: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
strcpy(buf, s);
^
In file included from stuff.c:21:0:
stuff.c: In function 'strchange':
trans.h:1933:17: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
#define FREE(P) free((char*)(P))
^
stuff.c:349:5: note: in expansion of macro 'FREE'
FREE(*v);
^
trans.h:1776:1: error: unknown type name 'FILE'
extern FILE *inf, *outf, *codef, *hdrf, *logf;
^
stuff.c: In function 'cvcase':
stuff.c:395:12: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
for (i = strlen(cp); i >= 0; i--)
^
trans.h:1776:42: warning: built-in function 'logf' declared as non-function [enabled by default]
extern FILE *inf, *outf, *codef, *hdrf, *logf;
^
stuff.c: In function 'format_gen':
stuff.c:477:6: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
sprintf(fp, "%d", wid);
^
stuff.c:478:16: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
fp = fp + strlen(fp);
^
stuff.c:493:6: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
sprintf(fp, ".%d", prec);
^
stuff.c:494:16: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
fp = fp + strlen(fp);
^
stuff.c:505:6: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
strcpy(dst, p2c_home);
^
stuff.c:506:18: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
dst = dst + strlen(dst);
^
p2c.hdrs:23:41: error: unknown type name 'FILE'
extern void dumptypename_file PP( (FILE *f, Type *tp) );
^
p2c.hdrs:23:36: note: in expansion of macro 'PP'
extern void dumptypename_file PP( (FILE *f, Type *tp) );
^
stuff.c:518:6: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
sprintf(dst, fmtbuf, i1);
^
p2c.hdrs:25:41: error: unknown type name 'FILE'
extern void dumpexpr_file PP( (FILE *f, Expr *ex) );
^
trans.h:23:17: note: in definition of macro 'PP'
# define PP(x) x /* use true prototypes */
^
p2c.hdrs:28:41: error: unknown type name 'FILE'
extern void dumpstmt_file PP( (FILE *f, Stmt *sp) );
^
trans.h:23:17: note: in definition of macro 'PP'
# define PP(x) x /* use true prototypes */
^
stuff.c: In function 'format_none':
stuff.c:602:41: error: 'NULL' undeclared (first use in this function)
return format_gen(fmt, 0L, 0L, 0.0, NULL, NULL, NULL);
^
stuff.c: In function 'format_d':
stuff.c:610:48: error: 'NULL' undeclared (first use in this function)
return format_gen(fmt, a1, 0L, (double)a1, NULL, NULL, NULL);
^
stuff.c: In function 'format_g':
stuff.c:618:46: error: 'NULL' undeclared (first use in this function)
return format_gen(fmt, (long)a1, 0L, a1, NULL, NULL, NULL);
^
stuff.c: In function 'format_s':
stuff.c:625:45: error: 'NULL' undeclared (first use in this function)
return format_gen(fmt, 0L, 0L, 0.0, a1, NULL, NULL);
^
stuff.c: In function 'format_ss':
p2c.hdrs:84:41: error: unknown type name 'FILE'
extern void select_outfile PP( (FILE *fp) );
^
trans.h:23:17: note: in definition of macro 'PP'
# define PP(x) x /* use true prototypes */
^
stuff.c:632:49: error: 'NULL' undeclared (first use in this function)
return format_gen(fmt, 0L, 0L, 0.0, a1, a2, NULL);
^
stuff.c: In function 'format_sd':
stuff.c:640:52: error: 'NULL' undeclared (first use in this function)
return format_gen(fmt, a2, 0L, (double)a2, a1, NULL, NULL);
^
stuff.c: In function 'format_ds':
stuff.c:648:52: error: 'NULL' undeclared (first use in this function)
return format_gen(fmt, a1, 0L, (double)a1, a2, NULL, NULL);
^
stuff.c: In function 'format_dd':
stuff.c:656:48: error: 'NULL' undeclared (first use in this function)
return format_gen(fmt, a1, a2, (double)a1, NULL, NULL, NULL);
^
stuff.c: In function 'format_ssd':
stuff.c:671:56: error: 'NULL' undeclared (first use in this function)
return format_gen(fmt, a3, 0L, (double)a3, a1, a2, NULL);
^
stuff.c: In function 'format_sds':
stuff.c:679:56: error: 'NULL' undeclared (first use in this function)
return format_gen(fmt, a2, 0L, (double)a2, a1, a3, NULL);
^
stuff.c: In function 'my_strchr':
p2c.hdrs:173:41: error: unknown type name 'FILE'
extern void push_input_file PP( (FILE *fp, char *fname, int isinclude) );
^
trans.h:23:17: note: in definition of macro 'PP'
# define PP(x) x /* use true prototypes */
^
stuff.c:757:9: error: 'NULL' undeclared (first use in this function)
return NULL;
^
stuff.c: In function 'my_strrchr':
stuff.c:765:26: error: 'NULL' undeclared (first use in this function)
register char *cp2 = NULL;
^
stuff.c: In function 'my_strtok':
stuff.c:785:9: error: 'NULL' undeclared (first use in this function)
return NULL;
^
stuff.c: In function 'my_strtokq':
stuff.c:803:9: error: 'NULL' undeclared (first use in this function)
return NULL;
^
In file included from stuff.c:21:0:
stuff.c: In function 'init_stuff':
trans.h:1922:19: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
((alloctemp = malloc((unsigned)((N)*sizeof(TYPE)))) || outmem(), \
^
stuff.c:885:24: note: in expansion of macro 'ALLOC'
formatbuf[i] = ALLOC(1000, char, misc);
^
cc1: error: no include path in which to search for stdc-predef.h
In file included from trans.c:23:0:
trans.h:39:19: error: no include path in which to search for stdio.h
#include
^
trans.h:63:21: error: no include path in which to search for stdlib.h
# include
^
trans.h:64:21: error: no include path in which to search for stddef.h
# include
^
trans.h:65:21: error: no include path in which to search for limits.h
# include
^
trans.h:81:21: error: no include path in which to search for string.h
# include
^
trans.h:84:19: error: no include path in which to search for ctype.h
#include
^
out.c:45:19: error: no include path in which to search for time.h
# include
^
out.c: In function 'setup_out':
out.c:116:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, "// From input file \"%s\"\n", infname);
^
In file included from out.c:31:0:
trans.h:1922:19: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
((alloctemp = malloc((unsigned)((N)*sizeof(TYPE)))) || outmem(), \
^
out.c:133:14: note: in expansion of macro 'ALLOC'
outbuf = ALLOC(outbufsize, char, misc);
^
make: *** [: stuff.o] Error 1
out.c: In function 'grow_outfilebuf':
trans.h:1930:19: warning: incompatible implicit declaration of built-in function 'realloc' [enabled by default]
((alloctemp = realloc((char*)(P), (unsigned)((N)*sizeof(TYPE)))) || outmem(), \
^
out.c:149:18: note: in expansion of macro 'REALLOC'
outfilebuf = REALLOC(outfilebuf, outfilebufsize, char);
^
out.c: In function 'puts_outf':
out.c:176:15: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
int len = strlen(s);
^
out.c:180:2: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
strcpy(outfilebufptr, s);
^
out.c: In function 'select_outfile':
out.c:190:1: error: unknown type name 'FILE'
FILE *fp;
^
In file included from out.c:31:0:
out.c: In function 'trybreakline':
trans.h:1922:19: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
((alloctemp = malloc((unsigned)((N)*sizeof(TYPE)))) || outmem(), \
^
out.c:717:11: note: in expansion of macro 'ALLOC'
pp = ALLOC(1, Paren, parens); /* doesn't fit, try poss breaks */
^
trans.h:1933:17: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
#define FREE(P) free((char*)(P))
^
out.c:769:6: note: in expansion of macro 'FREE'
FREE(pp);
^
out.c:967:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, "\n#if 0 /* rejected #%ld, badness = %g >= %g */\n", numalts, badness, bestbadness);
^
out.c:974:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, "\n#if 0 /* rejected #%ld, badness = %g > %g */\n", bestnumalts, bestbadness, badness);
^
out.c: In function 'getcurtime':
out.c:1073:38: error: 'NULL' undeclared (first use in this function)
if (!starttime) starttime = time(NULL);
^
out.c:1073:38: note: each undeclared identifier is reported only once for each function it appears in
trans.h:1776:8: error: unknown type name 'FILE'
extern FILE *inf, *outf, *codef, *hdrf, *logf;
^
out.c: In function 'output':
out.c:1147:47: error: 'NULL' undeclared (first use in this function)
trybreakline(0, 0, thisindent, 0.0, 0, NULL);
^
trans.h:1776:42: warning: built-in function 'logf' declared as non-function [enabled by default]
extern FILE *inf, *outf, *codef, *hdrf, *logf;
^
out.c:1179:7: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, "\n#if 1 /* accepted #%ld, badness = %g, tried %ld in %.3f sec */\n", bestnumalts, bestbadness, alts, time1/1000.0);
^
out.c:1188:7: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
sprintf(outbuf, "Line breaker spent %.1f",
^
out.c:1191:21: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
sprintf(outbuf + strlen(outbuf),
^
out.c:1197:7: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(logf, "%s, %d/%d: Line breaker spent %ld tries\n",
^
p2c.hdrs:23:41: error: unknown type name 'FILE'
extern void dumptypename_file PP( (FILE *f, Type *tp) );
^
p2c.hdrs:23:36: note: in expansion of macro 'PP'
extern void dumptypename_file PP( (FILE *f, Type *tp) );
^
out.c:1201:7: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, "#endif\n\n");
^
p2c.hdrs:25:41: error: unknown type name 'FILE'
extern void dumpexpr_file PP( (FILE *f, Expr *ex) );
^
trans.h:23:17: note: in definition of macro 'PP'
# define PP(x) x /* use true prototypes */
^
p2c.hdrs:28:41: error: unknown type name 'FILE'
extern void dumpstmt_file PP( (FILE *f, Stmt *sp) );
^
trans.h:23:17: note: in definition of macro 'PP'
# define PP(x) x /* use true prototypes */
^
In file included from out.c:31:0:
trans.h:1930:19: warning: incompatible implicit declaration of built-in function 'realloc' [enabled by default]
((alloctemp = realloc((char*)(P), (unsigned)((N)*sizeof(TYPE)))) || outmem(), \
^
out.c:1218:12: note: in expansion of macro 'REALLOC'
outbuf = REALLOC(outbuf, outbufsize, char);
^
out.c: In function 'testlinebreaker':
out.c:1287:9: warning: assignment makes pointer from integer without a cast [enabled by default]
inf = fopen(fn, "r");
^
p2c.hdrs:84:41: error: unknown type name 'FILE'
extern void select_outfile PP( (FILE *fp) );
^
trans.h:23:17: note: in definition of macro 'PP'
# define PP(x) x /* use true prototypes */
^
out.c:1292:5: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
sprintf(buf, "%s.br", fn);
^
out.c:1293:10: warning: assignment makes pointer from integer without a cast [enabled by default]
outf = fopen(buf, "w");
^
out.c:1302:13: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
cp = buf + strlen(buf) - 2;
^
out.c: In function 'isembedcomment':
out.c:1346:15: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
int len = strlen(embedcomment);
^
out.c: In function 'outcomments':
out.c:1364:9: error: 'NULL' undeclared (first use in this function)
return NULL;
^
p2c.hdrs:173:41: error: unknown type name 'FILE'
extern void push_input_file PP( (FILE *fp, char *fname, int isinclude) );
^
trans.h:23:17: note: in definition of macro 'PP'
# define PP(x) x /* use true prototypes */
^
out.c:1400:6: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
strcpy(cmt->s, cmt->s + strlen(embedcomment) + 1);
^
out.c:1400:30: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
strcpy(cmt->s, cmt->s + strlen(embedcomment) + 1);
^
out.c: In function 'outcomment':
out.c:1478:14: error: 'NULL' undeclared (first use in this function)
cmt->next = NULL;
^
trans.c:25:18: error: no include path in which to search for time.h
#include
^
trans.c: In function 'initrc':
trans.c:117:49: error: 'NULL' undeclared (first use in this function)
*((Strlist **)rctable[i].ptr) = NULL;
^
trans.c:117:49: note: each undeclared identifier is reported only once for each function it appears in
trans.c: In function 'readrc':
trans.c:141:5: error: unknown type name 'FILE'
FILE *rc;
^
trans.c:147:8: warning: assignment makes pointer from integer without a cast [enabled by default]
rc = fopen(rcname, "r");
^
trans.c:162:20: error: 'NULL' undeclared (first use in this function)
cp = my_strtokq(NULL, " =\t\n");
^
trans.c:206:25: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
strncpy((char *)rctable[i].ptr, cp ? cp : "", val-1);
^
trans.c:290:17: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(stderr, "warning: can't understand %s in %s\n", cp, rcname);
^
trans.c:290:25: error: 'stderr' undeclared (first use in this function)
fprintf(stderr, "warning: can't understand %s in %s\n", cp, rcname);
^
trans.c: In function 'postrc':
trans.c:336:9: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(stderr, "p2c: warning: don't understand target name %s\n", target);
^
trans.c:336:17: error: 'stderr' undeclared (first use in this function)
fprintf(stderr, "p2c: warning: don't understand target name %s\n", target);
^
trans.c:388:13: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
strcpy(memcpyname, "memcpy");
^
trans.c:395:9: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(stderr, "Warning: long integers have less than 32 bits\n");
^
make: *** [: out.o] Error 1
trans.c:542:2: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
strcpy(filenamefilter, "P_trimname");
^
trans.c: In function 'openlogfile':
trans.c:591:10: warning: assignment makes pointer from integer without a cast [enabled by default]
logf = fopen(name, "w");
^
trans.c:593:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(logf, "\nTranslation of %s to %s by p2c %s\n",
^
trans.c:596:8: warning: assignment makes pointer from integer without a cast [enabled by default]
uname = getenv("USER");
^
trans.c: In function 'closelogfile':
trans.c:614:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(logf, "\n\n");
^
trans.c: In function 'showinitfile':
trans.c:633:5: error: unknown type name 'FILE'
FILE *f;
^
trans.c:638:5: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
printf("# Copy of file %%H/p2crc => %s:\n\n", name);
^
trans.c:639:7: warning: assignment makes pointer from integer without a cast [enabled by default]
f = fopen(name, "r");
^
trans.c:644:30: error: 'EOF' undeclared (first use in this function)
while ((ch = getc(f)) != EOF)
^
trans.c: In function 'usage':
trans.c:654:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(stderr, "usage: p2c [options] file [modulename] [-h file.h] [-o file.c]\n");
^
trans.c:654:13: error: 'stderr' undeclared (first use in this function)
fprintf(stderr, "usage: p2c [options] file [modulename] [-h file.h] [-o file.c]\n");
^
trans.c: In function 'main':
trans.c:681:5: warning: assignment makes pointer from integer without a cast [enabled by default]
cp = getenv("P2C_HOME");
^
trans.c:699:2: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
strcpy(infname, argv[i]);
^
trans.c:703:5: warning: assignment makes pointer from integer without a cast [enabled by default]
cp = getenv("P2CRC");
^
trans.c:718:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(stderr, "Unable to find required system p2crc file\n");
^
trans.c:718:10: error: 'stderr' undeclared (first use in this function)
fprintf(stderr, "Unable to find required system p2crc file\n");
^
trans.c:725:24: error: 'NULL' undeclared (first use in this function)
requested_module = NULL;
^
trans.c:743:7: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
if (strlen(*argv) == 2 && argc > 1) {
^
trans.c:782:3: warning: overflow in implicit constant conversion [-Woverflow]
bft.f1 = 0xffff;
^
trans.c:837:7: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
if (strlen(*argv) == 2 && argc > 1) {
^
trans.c:843:21: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
if (strlen(*argv) == 2)
^
trans.c:855:7: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
if (strlen(*argv) == 2)
^
trans.c:863:21: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
if (strlen(*argv) == 2)
^
trans.c:868:7: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
if (strlen(*argv) == 2)
^
trans.c:880:7: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
if (strlen(*argv) == 2)
^
trans.c:885:7: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
if (strlen(*argv) == 2)
^
trans.c:892:7: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
if (strlen(*argv) == 2)
^
trans.c:897:7: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
if (strlen(*argv) == 2)
^
trans.c:914:6: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
if (strlen(infname) > 2 &&
^
trans.c:916:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(stderr, "What is wrong with this picture?\n");
^
trans.c:919:13: warning: assignment makes pointer from integer without a cast [enabled by default]
inf = fopen(infname, "r");
^
trans.c:928:15: error: 'stdin' undeclared (first use in this function)
inf = stdin;
^
trans.c:934:15: warning: assignment makes pointer from integer without a cast [enabled by default]
codef = fopen(codefname, "w");
^
trans.c:940:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(codef, i ? "// " : "/* ");
^
trans.c:946:17: error: 'stdout' undeclared (first use in this function)
codef = stdout;
^
trans.c:1013:2: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
printf("\n");
^
trans.c:1015:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(stderr, "\n");
^
trans.c: In function 'exit_failure':
trans.c:1040:5: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
exit(EXIT_FAILURE);
^
trans.c: In function 'outmem':
trans.c:1047:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(stderr, "p2c: Out of memory!\n");
^
trans.c:1047:13: error: 'stderr' undeclared (first use in this function)
fprintf(stderr, "p2c: Out of memory!\n");
^
trans.c:1048:5: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
exit(EXIT_FAILURE);
^
trans.c: In function 'dumptype':
trans.c:1128:9: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, "\n");
^
trans.c:1132:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, "0x%lX\n", (long)tp);
^
trans.c:1135:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, " Type %lx, kind=%s", (long)tp, typekindname(tp->kind));
^
trans.c: In function 'dumpmeaning':
trans.c:1154:9: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, "\n");
^
trans.c:1158:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, "0x%lX\n", (long)mp);
^
trans.c:1161:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, " Meaning %lx, name=%s, kind=%s",
^
trans.c: In function 'dumpsymtable':
trans.c:1188:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, "Symbol %s:\n", sym->name);
^
trans.c: In function 'dumptypename':
trans.c:1206:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, "");
^
trans.c:1210:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, "0x%lX", (long)tp);
^
trans.c:1213:35: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
if (tp == tp_int) fprintf(outf, "I");
^
trans.c: In function 'dumptypename_file':
trans.c:1362:1: error: unknown type name 'FILE'
FILE *f;
^
trans.c:1365:5: error: unknown type name 'FILE'
FILE *save = outf;
^
trans.c: In function 'dumpexpr':
trans.c:1380:9: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, "");
^
trans.c:1384:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, "0x%lX", (long)ex);
^
trans.c:1389:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, "%ld", ex->val.i);
^
trans.c:1394:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, "%ldL", ex->val.i);
^
trans.c:1400:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, "%s", name);
^
trans.c: In function 'dumpexpr_file':
trans.c:1465:1: error: unknown type name 'FILE'
FILE *f;
^
trans.c:1468:5: error: unknown type name 'FILE'
FILE *save = outf;
^
trans.c: In function 'innerdumpstmt':
trans.c:1481:9: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, "\n");
^
trans.c:1486:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, "0x%lX\n", (long)sp);
^
trans.c:1489:9: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, "%s", stmtkindname(sp->kind));
^
trans.c: In function 'dumpstmt':
trans.c:1527:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(outf, "%*s", indent, "");
^
trans.c: In function 'dumpstmt_file':
trans.c:1533:1: error: unknown type name 'FILE'
FILE *f;
^
trans.c:1536:5: error: unknown type name 'FILE'
FILE *save = outf;
^
trans.c:1537:22: error: 'NULL' undeclared (first use in this function)
Stmt *savenext = NULL;
^
make: *** [Makefile:89: trans.o] Error 1
==> ERROR: A failure occurred in build().
Aborting...