Hello, I had trouble running the simulator in Ubuntu Linux x86. When I tried to compile dps8, I got the following errors: (from
http://pastebin.com/raw.php?i=VEnau8S9).
dps8 hctrl-hsa01% make
(cd ../simh; make)
make[1]: Entering directory `/home/hasenov/code-0/trunk/dps8m/src/simh'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/hasenov/code-0/trunk/dps8m/src/simh'
(cd ../decNumber; make)
make[1]: Entering directory `/home/hasenov/code-0/trunk/dps8m/src/decNumber'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/hasenov/code-0/trunk/dps8m/src/decNumber'
make dps8
make[1]: Entering directory `/home/hasenov/code-0/trunk/dps8m/src/dps8'
clang -g -O0 -I../decNumber -I../simh -std=c99 -U__STRICT_ANSI__ -D_GNU_SOURCE -DUSE_READER_THREAD -DHAVE_DLOPEN=so -Wall -DUSE_INT64 -DQUIET_UNUSED -c -o dps8_addrmods.o dps8_addrmods.c
dps8_addrmods.c:99:9: warning: implicit declaration of function 'READOP' is invalid in C99 [-Wimplicit-function-declaration]
if (READOP(i))
^
dps8_addrmods.c:117:9: warning: implicit declaration of function 'WRITEOP' is invalid in C99 [-Wimplicit-function-declaration]
if (WRITEOP(i))
^
dps8_addrmods.c:138:9: warning: implicit declaration of function 'TRANSOP' is invalid in C99 [-Wimplicit-function-declaration]
if (TRANSOP(i))
^
dps8_addrmods.c:146:56: error: no member named 'info' in 'struct DCDstruct'
if (!READOP(i) && !WRITEOP(i) && !TRANSOP(i) && i->info->flags & PREPARE_CA)
~ ^
dps8_addrmods.c:160:12: error: no member named 'info' in 'struct DCDstruct'
if (i->info->ndes > 0)
~ ^
dps8_addrmods.c:172:66: error: use of undeclared identifier 'Ypair'
sprintf(temp, "CYpair[0]=%012llo CYpair[1]=%012llo", Ypair[0], Ypair[1]);
^
dps8_addrmods.c:183:1: error: unknown type name 'modificationContinuation'
modificationContinuation _modCont, *modCont = &_modCont;
^
dps8_addrmods.c:186:18: error: unknown type name 'modificationContinuation'
char *modContSTR(modificationContinuation *i)
^
dps8_addrmods.c:457:104: error: use of undeclared identifier 'Ypair'
sim_debug(DBG_APPENDING, &cpu_dev, "ITP Pair: PRNUM=%o BITNO=%o WORDNO=%o MOD=%o\n", GET_ITP_PRNUM(Ypair), GET_ITP_WORDNO(Ypair), GET_ITP_BITNO(Ypair), GET_ITP_MOD(Ypair));
^
./dps8.h:213:43: note: expanded from:
#define GET_ITP_PRNUM(Ypair) ((word3)((Ypair[0] >> 33) & 3))
^
../simh/scp.h:154:102: note: expanded from:
#define sim_debug(dbits, dptr, ...) if (sim_deb && ((dptr)->dctrl & dbits)) _sim_debug (dbits, dptr, __VA_ARGS__); else (void)0
^
dps8_addrmods.c:520:20: error: use of undeclared identifier 'illproc_fault'
doFault(i, illproc_fault, ill_mod, "Incorrect address modifier");
^
dps8_addrmods.c:547:39: error: use of undeclared identifier 'OPERAND_READ'
Read(i, address + 1, &itxPair[1], OPERAND_READ, i->a);
^
dps8_addrmods.c:561:8: error: conflicting types for 'doComputedAddressFormation'
t_stat doComputedAddressFormation(DCDstruct *i)
^
./dps8.h:862:6: note: previous declaration is here
void doComputedAddressFormation(DCDstruct *, eCAFoper action);
^
dps8_addrmods.c:564:9: warning: implicit declaration of function 'RMWOP' is invalid in C99 [-Wimplicit-function-declaration]
if (RMWOP(i))
^
dps8_addrmods.c:565:20: error: use of undeclared identifier 'rmwCY'
operType = rmwCY; // r/m/w cycle
^
dps8_addrmods.c:581:12: error: no member named 'info' in 'struct DCDstruct'
if (i->info->flags & NO_TAG) // for instructions line STCA/STCQ
~ ^
dps8_addrmods.c:606:9: warning: implicit declaration of function 'sim_printf' is invalid in C99 [-Wimplicit-function-declaration]
sim_printf("doComputedAddressFormation(startCA): unknown Tm??? %o\n", GET_TM(rTAG));
^
dps8_addrmods.c:635:47: error: use of undeclared identifier 'rmwCY'
if (operType == readCY || operType == rmwCY)
^
dps8_addrmods.c:637:13: warning: implicit declaration of function 'ReadOP' is invalid in C99 [-Wimplicit-function-declaration]
ReadOP(i,
TPR.CA, OPERAND_READ, i->a); // read appropriate operand(s)
^
dps8_addrmods.c:637:31: error: use of undeclared identifier 'OPERAND_READ'
ReadOP(i,
TPR.CA, OPERAND_READ, i->a); // read appropriate operand(s)
^
dps8_addrmods.c:642:48: error: use of undeclared identifier 'rmwCY'
if (operType == writeCY || operType == rmwCY)
^
dps8_addrmods.c:661:24: error: use of undeclared identifier 'illproc_fault'
doFault(i, illproc_fault, ill_mod, "RI_MOD: Td == TD_DU || Td == TD_DL");
^
dps8_addrmods.c:679:35: warning: implicit conversion from enumeration type 'enum _processor_cycle_type' to different enumeration type 'enum eMemoryAccessType' [-Wconversion]
Read(i,
TPR.CA, &indword, INDIRECT_WORD_FETCH, i->a); //TM_RI);
~~~~ ^~~~~~~~~~~~~~~~~~~
dps8_addrmods.c:701:9: error: use of undeclared identifier 'cu'
cu.CT_HOLD = Td;
^
dps8_addrmods.c:702:69: error: use of undeclared identifier 'cu'
sim_debug(DBG_ADDRMOD, &cpu_dev, "IR_MOD: CT_HOLD=%o %o\n", cu.CT_HOLD, Td);
^
../simh/scp.h:154:102: note: expanded from:
#define sim_debug(dbits, dptr, ...) if (sim_deb && ((dptr)->dctrl & dbits)) _sim_debug (dbits, dptr, __VA_ARGS__); else (void)0
^
dps8_addrmods.c:712:35: warning: implicit conversion from enumeration type 'enum _processor_cycle_type' to different enumeration type 'enum eMemoryAccessType' [-Wconversion]
Read(i,
TPR.CA, &indword, INDIRECT_WORD_FETCH, i->a);
~~~~ ^~~~~~~~~~~~~~~~~~~
dps8_addrmods.c:731:90: error: use of undeclared identifier 'cu'
sim_debug(DBG_ADDRMOD, &cpu_dev, "IR_MOD(TM_IT): Td=%02o => %02o\n", Td, cu.CT_HOLD);
^
../simh/scp.h:154:102: note: expanded from:
#define sim_debug(dbits, dptr, ...) if (sim_deb && ((dptr)->dctrl & dbits)) _sim_debug (dbits, dptr, __VA_ARGS__); else (void)0
^
dps8_addrmods.c:738:40: error: use of undeclared identifier 'f2_fault'
doFault(i, f2_fault, 0, "IT_F2");
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
8 warnings and 20 errors generated.
make[1]: *** [dps8_addrmods.o] Error 1
make[1]: Leaving directory `/home/hasenov/code-0/trunk/dps8m/src/dps8'
make: *** [locallibs_then_dps8] Error 2
Could someone help me to fix this?