You are not logged in.

Read the FAQ and Knowledge Base before posting.
We won't make a 3DS/2DS emulator.



#1 2007-06-07 11:07:35

01torres
Member
Registered: 2007-03-19
Posts: 41

Building DemuME problem

I have just update my source code on my computer and when I tried to compile it these error came up does anyonre know how to fix this please.

obj/disView.o(.text+0x2325):disView.c: undefined reference to `armcpu_irqExeption'
obj/disView.o(.text+0x2348):disView.c: undefined reference to `armcpu_irqExeption'
obj/main.o(.text+0x1313):main.c: undefined reference to `createStub_gdb'
obj/main.o(.text+0x19ed):main.c: undefined reference to `createStub_gdb'
obj/main.o(.text+0x1a46):main.c: undefined reference to `activateStub_gdb'
obj/main.o(.text+0x1a63):main.c: undefined reference to `activateStub_gdb'
collect2: ld returned 1 exit status
make.exe: *** [DeSmuME.exe] Error 1
Execution terminated

Ps This was build on Dev-C++

Last edited by 01torres (2007-06-07 11:08:09)


The pen is mighter than the sword.
(Final Fanatasy VIII)

Offline

#2 2007-06-07 11:33:10

masscat
Member
From: UK
Registered: 2007-03-17
Posts: 73
Website

Re: Building DemuME problem

I just committed a number of files to the CVS so you may have checked out mid way through, so update your CVS copy again making sure you checkout any added files and directories (there is now a src/gdbstub directory).

I have also forgotten to add the GDB stub files to the Dev-C++ build environment (builds fine under Visual studio 2005). You will need to add src/gdbstub/gdbstub.c and, if references to the headers are also needed, src/gdbstub.h and src/gdbstub/gdbstub_internal.h. You will also have to link against the winsock2 library (ws2_32.lib).

I do not have a Dev-C++ build environment which is why I forgot/neglected to add the new files and library linking.

Offline

#3 2007-06-07 12:00:27

01torres
Member
Registered: 2007-03-19
Posts: 41

Re: Building DemuME problem

I have added the files and pointed the linker to ws2_32.lib but now I get these errors

Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\Alex\My Documents\DS Emu complier files\src\windows\Makefile.win"
Executing  make...
make.exe -f "C:\Documents and Settings\Alex\My Documents\DS Emu complier files\src\windows\Makefile.win" all
gcc.exe -c ../gdbstub/gdbstub.c -o obj/gdbstub.o -I"C:/Dev-Cpp/include"  -DVERSION=\"0.7.0\"  HAVE_LIBZZIP HAVE_LIBZ    -fexpensive-optimizations -O3 -march=pentium4 -msse2

../gdbstub/gdbstub.c:29:20: armcpu.h: No such file or directory
../gdbstub/gdbstub.c:35:21: gdbstub.h: No such file or directory
In file included from ../gdbstub/gdbstub.c:36:
../gdbstub/gdbstub_internal.h:41: error: syntax error before "u32"
../gdbstub/gdbstub_internal.h:41: warning: no semicolon at end of struct or union
../gdbstub/gdbstub_internal.h:44: warning: data definition has no type or storage class
../gdbstub/gdbstub_internal.h:57: error: syntax error before "u8"
../gdbstub/gdbstub_internal.h:57: warning: no semicolon at end of struct or union
../gdbstub/gdbstub_internal.h:59: warning: data definition has no type or storage class
../gdbstub/gdbstub_internal.h:61: error: syntax error before "buffer"
../gdbstub/gdbstub_internal.h:61: warning: data definition has no type or storage class
../gdbstub/gdbstub_internal.h:62: error: syntax error before '}' token
../gdbstub/gdbstub_internal.h:84: error: field `cpu_memio' has incomplete type
../gdbstub/gdbstub_internal.h:107: error: syntax error before "u32"
../gdbstub/gdbstub_internal.h:107: warning: no semicolon at end of struct or union
../gdbstub/gdbstub_internal.h:127: error: syntax error before "port_num"
../gdbstub/gdbstub_internal.h:127: warning: data definition has no type or storage class
../gdbstub/gdbstub_internal.h:137: error: syntax error before "stop_address"
../gdbstub/gdbstub_internal.h:137: warning: data definition has no type or storage class
../gdbstub/gdbstub_internal.h:150: error: syntax error before '}' token
../gdbstub/gdbstub.c: In function `causeQuit_gdb':
../gdbstub/gdbstub.c:143: error: `u8' undeclared (first use in this function)
../gdbstub/gdbstub.c:143: error: (Each undeclared identifier is reported only once
../gdbstub/gdbstub.c:143: error: for each function it appears in.)
../gdbstub/gdbstub.c:143: error: syntax error before "command"
../gdbstub/gdbstub.c:146: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:146: error: `command' undeclared (first use in this function)
../gdbstub/gdbstub.c: In function `indicateCPUStop_gdb':
../gdbstub/gdbstub.c:154: error: `u8' undeclared (first use in this function)
../gdbstub/gdbstub.c:154: error: syntax error before "command"
../gdbstub/gdbstub.c:157: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:157: error: `command' undeclared (first use in this function)
../gdbstub/gdbstub.c: At top level:
../gdbstub/gdbstub.c:172: error: syntax error before "u32"
../gdbstub/gdbstub.c:183: warning: parameter names (without types) in function declaration
../gdbstub/gdbstub.c:183: error: conflicting types for 'indicateCPUStop_gdb'
../gdbstub/gdbstub.c:153: error: previous definition of 'indicateCPUStop_gdb' was here
../gdbstub/gdbstub.c:183: warning: data definition has no type or storage class
../gdbstub/gdbstub.c:184: error: syntax error before '}' token
../gdbstub/gdbstub.c:188: error: syntax error before "u32"
../gdbstub/gdbstub.c:204: warning: parameter names (without types) in function declaration
../gdbstub/gdbstub.c:204: warning: data definition has no type or storage class
../gdbstub/gdbstub.c:205: error: syntax error before '}' token
../gdbstub/gdbstub.c:236: error: syntax error before "u8"
../gdbstub/gdbstub.c: In function `hex2mem':

../gdbstub/gdbstub.c:240: error: `count' undeclared (first use in this function)
../gdbstub/gdbstub.c:241: error: `buf' undeclared (first use in this function)
../gdbstub/gdbstub.c:244: error: `mem' undeclared (first use in this function)
../gdbstub/gdbstub.c: At top level:
../gdbstub/gdbstub.c:256: error: syntax error before '*' token
../gdbstub/gdbstub.c: In function `hexToInt':
../gdbstub/gdbstub.c:261: error: `intValue' undeclared (first use in this function)
../gdbstub/gdbstub.c:263: error: `ptr' undeclared (first use in this function)
../gdbstub/gdbstub.c: At top level:

../gdbstub/gdbstub.c:284: error: syntax error before '*' token

../gdbstub/gdbstub.c:285: error: syntax error before "u32"
../gdbstub/gdbstub.c: In function `mem2hex':
../gdbstub/gdbstub.c:288: error: `u8' undeclared (first use in this function)
../gdbstub/gdbstub.c:288: error: syntax error before "ch"
../gdbstub/gdbstub.c:292: error: `count' undeclared (first use in this function)
../gdbstub/gdbstub.c:294: error: `ch' undeclared (first use in this function)
../gdbstub/gdbstub.c:294: error: `memio' undeclared (first use in this function)
../gdbstub/gdbstub.c:294: error: `mem_addr' undeclared (first use in this function)
../gdbstub/gdbstub.c:295: error: `buf' undeclared (first use in this function)
../gdbstub/gdbstub.c: In function `readPacket_gdb':
../gdbstub/gdbstub.c:308: error: `u8' undeclared (first use in this function)

../gdbstub/gdbstub.c:308: error: syntax error before "cur_byte"
../gdbstub/gdbstub.c:314: error: `cur_byte' undeclared (first use in this function)
../gdbstub/gdbstub.c:315: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:321: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:322: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:323: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:328: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:329: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:330: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:338: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:338: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:339: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:341: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:343: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:347: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:347: error: dereferencing pointer to incomplete type

../gdbstub/gdbstub.c:348: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:348: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:349: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:349: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:354: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:355: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:359: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:360: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c: At top level:
../gdbstub/gdbstub.c:402: error: syntax error before "u32"
../gdbstub/gdbstub.c: In function `putpacket':
../gdbstub/gdbstub.c:404: error: `u32' undeclared (first use in this function)
../gdbstub/gdbstub.c:404: error: syntax error before "count"
../gdbstub/gdbstub.c:405: error: `out_packet' undeclared (first use in this function)
../gdbstub/gdbstub.c:406: error: `u8' undeclared (first use in this function)
../gdbstub/gdbstub.c:406: error: syntax error before "reply_ch"
../gdbstub/gdbstub.c:413: error: `count' undeclared (first use in this function)

../gdbstub/gdbstub.c:431: error: `sock' undeclared (first use in this function)
../gdbstub/gdbstub.c:434: error: `reply_ch' undeclared (first use in this function)
../gdbstub/gdbstub.c: At top level:
../gdbstub/gdbstub.c:457: error: syntax error before "make_stop_packet"
../gdbstub/gdbstub.c:457: error: syntax error before '*' token
../gdbstub/gdbstub.c: In function `make_stop_packet':
../gdbstub/gdbstub.c:458: error: `u32' undeclared (first use in this function)
../gdbstub/gdbstub.c:458: error: syntax error before "stop_size"
../gdbstub/gdbstub.c:462: error: `type' undeclared (first use in this function)
../gdbstub/gdbstub.c:465: error: `ptr' undeclared (first use in this function)
../gdbstub/gdbstub.c:468: error: `stop_size' undeclared (first use in this function)
../gdbstub/gdbstub.c: At top level:
../gdbstub/gdbstub.c:518: error: syntax error before '*' token
../gdbstub/gdbstub.c: In function `processPacket_gdb':
../gdbstub/gdbstub.c:522: error: `u8' undeclared (first use in this function)

../gdbstub/gdbstub.c:522: error: `out_ptr' undeclared (first use in this function)
../gdbstub/gdbstub.c:524: error: `u32' undeclared (first use in this function)
../gdbstub/gdbstub.c:524: error: syntax error before "send_size"
../gdbstub/gdbstub.c:528: error: `packet' undeclared (first use in this function)
../gdbstub/gdbstub.c:540: error: `send_size' undeclared (first use in this function)
../gdbstub/gdbstub.c:540: error: `stub' undeclared (first use in this function)

../gdbstub/gdbstub.c:557: error: syntax error before "instr_addr"
../gdbstub/gdbstub.c:564: error: `instr_addr' undeclared (first use in this function)
../gdbstub/gdbstub.c:566: error: `step_instruction_watch' undeclared (first use in this function)
../gdbstub/gdbstub.c:584: error: syntax error before "reg"
../gdbstub/gdbstub.c:586: error: syntax error before '*' token
../gdbstub/gdbstub.c:589: error: `rx_ptr' undeclared (first use in this function)
../gdbstub/gdbstub.c:589: error: `reg' undeclared (first use in this function)
../gdbstub/gdbstub.c:591: error: syntax error before "tmp_mem"
../gdbstub/gdbstub.c:593: error: `tmp_mem' undeclared (first use in this function)

../gdbstub/gdbstub.c:594: error: `value' undeclared (first use in this function)
../gdbstub/gdbstub.c:610: error: syntax error before "addr"
../gdbstub/gdbstub.c:613: error: syntax error before '*' token
../gdbstub/gdbstub.c:615: error: `addr' undeclared (first use in this function)

../gdbstub/gdbstub.c:617: error: `length' undeclared (first use in this function)
../gdbstub/gdbstub.c:638: error: syntax error before '*' token
../gdbstub/gdbstub.c:647: error: syntax error before "write_byte"
../gdbstub/gdbstub.c:653: error: `write_byte' undeclared (first use in this function)
../gdbstub/gdbstub.c:683: error: syntax error before '*' token
../gdbstub/gdbstub.c:701: error: syntax error before "addr"
../gdbstub/gdbstub.c:739: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:744: error: dereferencing pointer to incomplete type

../gdbstub/gdbstub.c:747: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:747: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:749: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:753: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:768: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:770: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:771: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:773: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:805: error: syntax error before '*' token
../gdbstub/gdbstub.c:815: error: `reg_values' undeclared (first use in this function)
../gdbstub/gdbstub.c:825: error: `cpsr' undeclared (first use in this function)

../gdbstub/gdbstub.c:837: error: syntax error before "pc_value"
../gdbstub/gdbstub.c:844: error: syntax error before "reg"
../gdbstub/gdbstub.c:855: error: `pc_value' undeclared (first use in this function)
../gdbstub/gdbstub.c:882: error: `cpsr_value' undeclared (first use in this function)
../gdbstub/gdbstub.c:897: error: `sock' undeclared (first use in this function)
../gdbstub/gdbstub.c: At top level:
../gdbstub/gdbstub.c:970: error: syntax error before "static"
../gdbstub/gdbstub.c:973: error: syntax error before "u32"
../gdbstub/gdbstub.c:991: warning: parameter names (without types) in function declaration
../gdbstub/gdbstub.c:991: warning: data definition has no type or storage class
../gdbstub/gdbstub.c:992: error: syntax error before '}' token
../gdbstub/gdbstub.c:993: error: invalid type argument of `->'
../gdbstub/gdbstub.c:993: warning: data definition has no type or storage class
../gdbstub/gdbstub.c:994: error: syntax error before '}' token
../gdbstub/gdbstub.c:1001: error: syntax error before "u32"
../gdbstub/gdbstub.c: In function `execute_gdb':
../gdbstub/gdbstub.c:1002: error: `data' undeclared (first use in this function)
../gdbstub/gdbstub.c:1005: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1006: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1010: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1011: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1016: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1017: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1018: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1019: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1022: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1022: error: `instr_addr' undeclared (first use in this function)
../gdbstub/gdbstub.c:1024: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1025: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1028: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1033: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1034: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c: In function `listenerThread_gdb':
../gdbstub/gdbstub.c:1052: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1052: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1053: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1053: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1068: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1069: error: `u8' undeclared (first use in this function)
../gdbstub/gdbstub.c:1069: error: syntax error before "ctl_command"
../gdbstub/gdbstub.c:1073: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1073: error: `ctl_command' undeclared (first use in this function)
../gdbstub/gdbstub.c:1081: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1082: error: dereferencing pointer to incomplete type

../gdbstub/gdbstub.c:1084: error: `ptr' undeclared (first use in this function)
../gdbstub/gdbstub.c:1085: error: `u32' undeclared (first use in this function)
../gdbstub/gdbstub.c:1085: error: syntax error before "send_size"
../gdbstub/gdbstub.c:1088: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1089: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1091: error: `send_size' undeclared (first use in this function)
../gdbstub/gdbstub.c:1091: error: dereferencing pointer to incomplete type

../gdbstub/gdbstub.c:1091: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1097: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1114: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1136: error: dereferencing pointer to incomplete type

../gdbstub/gdbstub.c:1136: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1161: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1176: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1176: error: dereferencing pointer to incomplete type

../gdbstub/gdbstub.c:1177: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1179: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1195: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1201: error: dereferencing pointer to incomplete type

../gdbstub/gdbstub.c:1206: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1206: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1207: error: `break_execution' undeclared (first use in this function)
../gdbstub/gdbstub.c:1214: error: syntax error before "reply"
../gdbstub/gdbstub.c:1218: error: dereferencing pointer to incomplete type

../gdbstub/gdbstub.c:1220: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1222: error: `reply' undeclared (first use in this function)
../gdbstub/gdbstub.c:1226: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1226: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1241: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1253: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1267: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1269: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1277: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c: At top level:
../gdbstub/gdbstub.c:1294: warning: `__fastcall__' attribute only applies to function types
../gdbstub/gdbstub.c:1294: error: syntax error before "gdb_prefetch32"
../gdbstub/gdbstub.c:1296: warning: data definition has no type or storage class
../gdbstub/gdbstub.c:1299: error: `stub' undeclared here (not in a function)
../gdbstub/gdbstub.c:1299: error: `adr' undeclared here (not in a function)
../gdbstub/gdbstub.c:1300: error: initializer element is not constant
../gdbstub/gdbstub.c:1300: warning: data definition has no type or storage class
../gdbstub/gdbstub.c:1302: error: syntax error before "if"
../gdbstub/gdbstub.c:1311: warning: `__fastcall__' attribute only applies to function types
../gdbstub/gdbstub.c:1311: error: syntax error before "gdb_prefetch16"
../gdbstub/gdbstub.c:1313: error: redefinition of 'value'
../gdbstub/gdbstub.c:1296: error: previous definition of 'value' was here
../gdbstub/gdbstub.c:1313: warning: data definition has no type or storage class
../gdbstub/gdbstub.c:1316: error: redefinition of 'breakpoint'
../gdbstub/gdbstub.c:1299: error: previous definition of 'breakpoint' was here
../gdbstub/gdbstub.c:1317: error: initializer element is not constant
../gdbstub/gdbstub.c:1317: warning: data definition has no type or storage class
../gdbstub/gdbstub.c:1319: error: syntax error before "if"
../gdbstub/gdbstub.c:1330: warning: `__fastcall__' attribute only applies to function types
../gdbstub/gdbstub.c:1330: error: syntax error before "gdb_read8"
../gdbstub/gdbstub.c:1332: error: redefinition of 'value'
../gdbstub/gdbstub.c:1313: error: previous definition of 'value' was here
../gdbstub/gdbstub.c:1332: error: redefinition of 'value'
../gdbstub/gdbstub.c:1313: error: previous definition of 'value' was here
../gdbstub/gdbstub.c:1332: warning: data definition has no type or storage class
../gdbstub/gdbstub.c:1336: error: redefinition of 'value'
../gdbstub/gdbstub.c:1332: error: previous definition of 'value' was here
../gdbstub/gdbstub.c:1336: error: redefinition of 'value'

../gdbstub/gdbstub.c:1313: error: previous definition of 'value' was here
../gdbstub/gdbstub.c:1337: warning: data definition has no type or storage class
../gdbstub/gdbstub.c:1339: error: redefinition of 'breakpoint'
../gdbstub/gdbstub.c:1316: error: previous definition of 'breakpoint' was here
../gdbstub/gdbstub.c:1339: error: redefinition of 'breakpoint'
../gdbstub/gdbstub.c:1316: error: previous definition of 'breakpoint' was here
../gdbstub/gdbstub.c:1340: error: initializer element is not constant
../gdbstub/gdbstub.c:1340: warning: data definition has no type or storage class
../gdbstub/gdbstub.c:1341: error: syntax error before "if"
../gdbstub/gdbstub.c:1350: warning: `__fastcall__' attribute only applies to function types
../gdbstub/gdbstub.c:1350: error: syntax error before "gdb_read16"
../gdbstub/gdbstub.c:1352: warning: data definition has no type or storage class
../gdbstub/gdbstub.c:1356: error: redefinition of 'value'

../gdbstub/gdbstub.c:1336: error: previous definition of 'value' was here
../gdbstub/gdbstub.c:1356: error: redefinition of 'value'
../gdbstub/gdbstub.c:1313: error: previous definition of 'value' was here
../gdbstub/gdbstub.c:1357: warning: data definition has no type or storage class
../gdbstub/gdbstub.c:1359: error: redefinition of 'breakpoint'
../gdbstub/gdbstub.c:1339: error: previous definition of 'breakpoint' was here
../gdbstub/gdbstub.c:1359: error: redefinition of 'breakpoint'
../gdbstub/gdbstub.c:1316: error: previous definition of 'breakpoint' was here
../gdbstub/gdbstub.c:1360: error: initializer element is not constant
../gdbstub/gdbstub.c:1360: warning: data definition has no type or storage class
../gdbstub/gdbstub.c:1361: error: syntax error before "if"
../gdbstub/gdbstub.c:1369: warning: `__fastcall__' attribute only applies to function types
../gdbstub/gdbstub.c:1369: error: syntax error before "gdb_read32"
../gdbstub/gdbstub.c:1371: warning: data definition has no type or storage class
../gdbstub/gdbstub.c:1375: error: redefinition of 'value'
../gdbstub/gdbstub.c:1356: error: previous definition of 'value' was here
../gdbstub/gdbstub.c:1375: error: redefinition of 'value'
../gdbstub/gdbstub.c:1313: error: previous definition of 'value' was here
../gdbstub/gdbstub.c:1376: warning: data definition has no type or storage class
../gdbstub/gdbstub.c:1378: error: redefinition of 'breakpoint'
../gdbstub/gdbstub.c:1359: error: previous definition of 'breakpoint' was here
../gdbstub/gdbstub.c:1378: error: redefinition of 'breakpoint'
../gdbstub/gdbstub.c:1316: error: previous definition of 'breakpoint' was here
../gdbstub/gdbstub.c:1379: error: initializer element is not constant

../gdbstub/gdbstub.c:1379: warning: data definition has no type or storage class
../gdbstub/gdbstub.c:1380: error: syntax error before "if"
../gdbstub/gdbstub.c:1389: error: syntax error before "u32"
../gdbstub/gdbstub.c: In function `gdb_write8':
../gdbstub/gdbstub.c:1390: error: `data' undeclared (first use in this function)
../gdbstub/gdbstub.c:1394: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1394: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1395: error: `val' undeclared (first use in this function)
../gdbstub/gdbstub.c:1397: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1400: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c: At top level:
../gdbstub/gdbstub.c:1406: error: syntax error before "u32"
../gdbstub/gdbstub.c: In function `gdb_write16':
../gdbstub/gdbstub.c:1407: error: `data' undeclared (first use in this function)
../gdbstub/gdbstub.c:1411: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1411: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1412: error: `val' undeclared (first use in this function)
../gdbstub/gdbstub.c:1414: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1417: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c: At top level:
../gdbstub/gdbstub.c:1423: error: syntax error before "u32"
../gdbstub/gdbstub.c: In function `gdb_write32':
../gdbstub/gdbstub.c:1424: error: `data' undeclared (first use in this function)
../gdbstub/gdbstub.c:1428: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1428: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1429: error: `val' undeclared (first use in this function)
../gdbstub/gdbstub.c:1431: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1434: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c: At top level:
../gdbstub/gdbstub.c:1483: error: syntax error before "createStub_gdb"
../gdbstub/gdbstub.c:1483: error: syntax error before "port"
../gdbstub/gdbstub.c: In function `createStub_gdb':
../gdbstub/gdbstub.c:1486: error: invalid application of `sizeof' to incomplete type `gdb_stub_state'
../gdbstub/gdbstub.c:1487: error: `gdbstub_handle_t' undeclared (first use in this function)
../gdbstub/gdbstub.c:1487: error: syntax error before "handle"
../gdbstub/gdbstub.c:1492: warning: return makes integer from pointer without a cast
../gdbstub/gdbstub.c:1495: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1498: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1498: error: `cpu_memio' undeclared (first use in this function)
../gdbstub/gdbstub.c:1499: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1499: error: `direct_memio' undeclared (first use in this function)
../gdbstub/gdbstub.c:1501: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1504: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1505: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1505: error: `gdb_prefetch32' undeclared (first use in this function)
../gdbstub/gdbstub.c:1506: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1506: error: `gdb_prefetch16' undeclared (first use in this function)
../gdbstub/gdbstub.c:1508: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1508: error: `gdb_read8' undeclared (first use in this function)
../gdbstub/gdbstub.c:1509: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1509: error: `gdb_read16' undeclared (first use in this function)
../gdbstub/gdbstub.c:1510: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1510: error: `gdb_read32' undeclared (first use in this function)
../gdbstub/gdbstub.c:1512: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1513: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1514: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1520: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1520: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1522: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1523: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1523: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1524: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1526: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1527: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1528: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1541: warning: return makes integer from pointer without a cast
../gdbstub/gdbstub.c:1547: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1563: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1565: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1570: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1593: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1594: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1595: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1596: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1598: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1600: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1600: error: `port' undeclared (first use in this function)
../gdbstub/gdbstub.c:1601: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1602: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1604: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1606: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1614: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1616: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1621: error: `handle' undeclared (first use in this function)
../gdbstub/gdbstub.c: At top level:
../gdbstub/gdbstub.c:1635: error: syntax error before "instance"
../gdbstub/gdbstub.c: In function `destroyStub_gdb':
../gdbstub/gdbstub.c:1636: error: `instance' undeclared (first use in this function)

../gdbstub/gdbstub.c:1641: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c: At top level:
../gdbstub/gdbstub.c:1650: error: syntax error before "instance"
../gdbstub/gdbstub.c: In function `activateStub_gdb':
../gdbstub/gdbstub.c:1652: error: `instance' undeclared (first use in this function)

../gdbstub/gdbstub.c:1654: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1654: error: `cpu_ctrl' undeclared (first use in this function)
../gdbstub/gdbstub.c:1657: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1657: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c:1659: error: dereferencing pointer to incomplete type
../gdbstub/gdbstub.c: At top level:
../gdbstub/gdbstub_internal.h:124: error: storage size of `rx_packet' isn't known
../gdbstub/gdbstub_internal.h:140: error: storage size of `step_breakpoint_descr' isn't known
../gdbstub/gdbstub_internal.h:143: error: storage size of `breakpoint_pool' isn't known
gcc.exe: HAVE_LIBZZIP: No such file or directory
gcc.exe: HAVE_LIBZ: No such file or directory
make.exe: *** [obj/gdbstub.o] Error 1

Execution terminated


The pen is mighter than the sword.
(Final Fanatasy VIII)

Offline

#4 2007-06-07 12:34:44

masscat
Member
From: UK
Registered: 2007-03-17
Posts: 73
Website

Re: Building DemuME problem

Add the top level src directory to the include file search directories.

If you do this the compiler will be able to find the "armcpu.h" and "gdbstub.h" header files when compiling gdbstub.c and the other warnings and errors will disappear.

Offline

#5 2007-06-07 12:46:14

01torres
Member
Registered: 2007-03-19
Posts: 41

Re: Building DemuME problem

I done as you said and now I only have two errors

obj/disView.o(.text+0x2325):disView.c: undefined reference to `armcpu_irqExeption'
obj/disView.o(.text+0x2348):disView.c: undefined reference to `armcpu_irqExeption'

looks like i am going in the right direction


The pen is mighter than the sword.
(Final Fanatasy VIII)

Offline

#6 2007-06-07 13:52:15

masscat
Member
From: UK
Registered: 2007-03-17
Posts: 73
Website

Re: Building DemuME problem

The function armcpu_irqExeption no longer exists outside of the armcpu.c file.
If you are sure that your copy of the CVS is up to date rebuild the entire project as there maybe some file that has not been rebuilt when it should have.

Offline

#7 2007-06-07 14:29:53

01torres
Member
Registered: 2007-03-19
Posts: 41

Re: Building DemuME problem

Thanks rebuilt it and now it works.

Last edited by 01torres (2007-06-07 14:32:29)


The pen is mighter than the sword.
(Final Fanatasy VIII)

Offline

#8 2007-06-07 14:39:38

masscat
Member
From: UK
Registered: 2007-03-17
Posts: 73
Website

Re: Building DemuME problem

I have now committed an updated Dev-C++ project file to the CVS.

Thanks for the error report and sorry for the inconvenience.

Offline

Board footer

Powered by FluxBB