ibuclaw / gdb

Fork of GDB with D-related fixes.
GNU General Public License v2.0
16 stars 4 forks source link

build error:d-lang.c:327:3: error: initialization from incompatible pointer type #2

Closed timotheecour closed 9 years ago

timotheecour commented 10 years ago

gcc -g -O2 -I. -I. -I./common -I./config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I./../opcodes/.. -I./../readline/.. -I../bfd -I./../bfd -I./../include -I../libdecnumber -I./../libdecnumber -I./gnulib/import -Ibuild-gnulib/import -DTUI=1 -I/usr/include/python2.7 -I/usr/include/python2.7 -Wall -Wdeclaration-after-statement -Wpointer-arith -Wpointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wmissing-prototypes -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type -Wold-style-declaration -Wold-style-definition -Wformat-nonliteral -Werror -c -o d-lang.o -MT d-lang.o -MMD -MP -MF .deps/d-lang.Tpo d-lang.c d-lang.c:327:3: error: initialization from incompatible pointer type [-Werror] d-lang.c:327:3: error: (near initialization for ‘d_language_defn.la_parser’) [-Werror] cc1: all warnings being treated as errors make[2]: *\ [d-lang.o] Error 1 make[2]: Leaving directory `gdb_ibuclaw2/gdb'

indeed I see: language_defn: int (la_parser) (struct parser_state ); extern int d_parse (void);

which are incompatible

ibuclaw commented 10 years ago

Yeah, this repo is in a bit of an odd state as I'm currently in the midst of organising (logically) all changes submitting to gdb.

I've just done a push --force into dlang that fixes this, but only has basic expression support. All other important changes are currently sitting in unbased, which is the broken branch (as you have found out).

ibuclaw commented 9 years ago

This has been sorted out - now experimental changes have been rebased back into the main branch.