Menu

#7 won't compile on alpha

open
nobody
None
5
2003-01-15
2003-01-15
Anonymous
No

Yap-4.3.22 wouldn't compile under alpha using cc (no gcc
available)

Ran configure without errors. Then make (see errors below).

I have compiled Yap many times, but never under alpha/cc.

Am I missing something?
-----------------------------------------

central:~/Yap-4.3.22/alpha $ make
cc -c -g -DHAVE_CONFIG_H -I. -I../H -I../OPTYap -I../include -
DYAP_VERSION=\"Yap-4.3.22\" ../console/yap.c -o yap.o
cc -c -g -DHAVE_CONFIG_H -I. -I../H -I../OPTYap ../C/agc.c -o
agc.o
cc: Info: ./Atoms.h, line 57: In the declaration of "StrOfAE", zero
cannot be used as an element count specifier. The specifier will
be ignored, (leaving the member/parameter with an incomplete
array type) in this context. (zeroelements)
char StrOfAE[MIN_ARRAY]; /* representation of atom as a
string */
---------^
cc: Info: ../H/amidefs.h, line 462: In the declaration of "cp_args",
zero cannot be used as an element count specifier. The
specifier will be ignored, (leaving the member/parameter with an
incomplete array type) in this context. (zeroelements)
CELL cp_args[MIN_ARRAY];
-------^
cc: Info: ./Yatom.h, line 687: In the declaration of "Contents", zero
cannot be used as an element count specifier. The specifier will
be ignored, (leaving the member/parameter with an incomplete
array type) in this context. (zeroelements)
Term Contents[MIN_ARRAY]; /* stored term */
---------^
cc: Info: ../H/clause.h, line 97: In the declaration of "ClCode", zero
cannot be used as an element count specifier. The specifier will
be ignored, (leaving the member/parameter with an incomplete
array type) in this context. (zeroelements)
yamop ClCode[MIN_ARRAY];
-------------------^
cc: Info: ../H/rheap.h, line 477: In this statement, an array subscript
expression is either less than zero or greater than the largest
value that can be represented by the size_t type. (badsubscript)
ConvDBStruct((Term) dbr->Entry, CharP(dbr->Contents-1), dbr-
>NOfCells*sizeof(CELL));
--------------------------------------^
cc: Info: ../H/rheap.h, line 479: In this statement, an array subscript
expression is either less than zero or greater than the largest
value that can be represented by the size_t type. (badsubscript)
ConvDBList((Term) dbr->Entry, CharP(dbr->Contents-1), dbr-
>NOfCells*sizeof(CELL));
------------------------------------^
cc -c -g -DHAVE_CONFIG_H -I. -I../H -I../OPTYap ../C/absmi.c -o
absmi.o
cc: Info: ./Atoms.h, line 57: In the declaration of "StrOfAE", zero
cannot be used as an element count specifier. The specifier will
be ignored, (leaving the member/parameter with an incomplete
array type) in this context. (zeroelements)
char StrOfAE[MIN_ARRAY]; /* representation of atom as a
string */
---------^
cc: Info: ../H/amidefs.h, line 462: In the declaration of "cp_args",
zero cannot be used as an element count specifier. The
specifier will be ignored, (leaving the member/parameter with an
incomplete array type) in this context. (zeroelements)
CELL cp_args[MIN_ARRAY];
-------^

[etc]

Discussion


Log in to post a comment.