digitalmars.D - Compiling the frontend (I know it's not supposed to compile as-is but...)
- Nick Sabalausky <a a.a> Jul 27 2007
- Nick Sabalausky <a a.a> Jul 27 2007
- Gregor Richards <Richards codu.org> Jul 27 2007
- Ary Manzana <ary esperanto.org.ar> Sep 28 2007
- Lutger <lutger.blijdestijn gmail.com> Sep 29 2007
- Ary Manzana <ary esperanto.org.ar> Sep 29 2007
- Ary Manzana <ary esperanto.org.ar> Sep 29 2007
Not sure if I'm posting this to the right newsgroup...
I'm trying to compile the D frontend with DMC and I'm running into a problem
before getting to the backend stubs I need to write. I'm using the following
windows batch file to build (I'll convert to something like make or a-a-p
later):
dmc -cpp idgen.c
idgen
dmc -cpp impcnvgen.c
impcnvgen
dmc -cpp access.c array.c attrib.c bit.c cast.c class.c cond.c constfold.c
dchar.c declaration.c delegatize.c doc.c dsymbol.c dump.c entity.c enum.c
expression.c func.c gnuc.c hdrgen.c html.c id.c identifier.c impcnvtab.c
import.c inifile.c init.c inline.c interpret.c lexer.c link.c lstring.c macro.c
mangle.c mars.c mem.c module.c mtype.c opover.c optimize.c parse.c root.c
scope.c statement.c staticassert.c stringtable.c struct.c template.c tocsym.c
todt.c toir.c toobj.c typinf.c unialpha.c utf.c version.c
The idgen and impcnvgen stuff is working fine, but on the last line I'm getting
this result:
virtual void toCBuffer(OutBuffer *buf, HdrGenState *hgs) = 0;
^
init.h(41) : Error: ')' expected
void toCBuffer(OutBuffer *buf, HdrGenState *hgs);
^
init.h(61) : Error: ')' expected
void toCBuffer(OutBuffer *buf, HdrGenState *hgs);
^
init.h(81) : Error: ')' expected
void toCBuffer(OutBuffer *buf, HdrGenState *hgs);
^
init.h(101) : Error: ')' expected
void toCBuffer(OutBuffer *buf, HdrGenState *hgs);
^
init.h(118) : Error: ')' expected
Fatal error: too many errors
access.c:
array.c:
attrib.c:
--- errorlevel 1
If you're not reading this with a monospace font, the carets are all pointing
to the last character in "HdrGenState". At this point I'm somewhat lost as to
what I'm doing wrong.
Jul 27 2007
Actually, when I piped that output to a file, it messed up the order of a few
lines. The real output I got is this:
access.c:
array.c:
attrib.c:
virtual void toCBuffer(OutBuffer *buf, HdrGenState *hgs) = 0;
^
init.h(41) : Error: ')' expected
void toCBuffer(OutBuffer *buf, HdrGenState *hgs);
^
init.h(61) : Error: ')' expected
void toCBuffer(OutBuffer *buf, HdrGenState *hgs);
^
init.h(81) : Error: ')' expected
void toCBuffer(OutBuffer *buf, HdrGenState *hgs);
^
init.h(101) : Error: ')' expected
void toCBuffer(OutBuffer *buf, HdrGenState *hgs);
^
init.h(118) : Error: ')' expected
Fatal error: too many errors
--- errorlevel 1
Nick Sabalausky Wrote:
Not sure if I'm posting this to the right newsgroup...
I'm trying to compile the D frontend with DMC and I'm running into a problem
before getting to the backend stubs I need to write. I'm using the following
windows batch file to build (I'll convert to something like make or a-a-p
later):
dmc -cpp idgen.c
idgen
dmc -cpp impcnvgen.c
impcnvgen
dmc -cpp access.c array.c attrib.c bit.c cast.c class.c cond.c constfold.c
dchar.c declaration.c delegatize.c doc.c dsymbol.c dump.c entity.c enum.c
expression.c func.c gnuc.c hdrgen.c html.c id.c identifier.c impcnvtab.c
import.c inifile.c init.c inline.c interpret.c lexer.c link.c lstring.c macro.c
mangle.c mars.c mem.c module.c mtype.c opover.c optimize.c parse.c root.c
scope.c statement.c staticassert.c stringtable.c struct.c template.c tocsym.c
todt.c toir.c toobj.c typinf.c unialpha.c utf.c version.c
The idgen and impcnvgen stuff is working fine, but on the last line I'm
getting this result:
virtual void toCBuffer(OutBuffer *buf, HdrGenState *hgs) = 0;
^
init.h(41) : Error: ')' expected
void toCBuffer(OutBuffer *buf, HdrGenState *hgs);
^
init.h(61) : Error: ')' expected
void toCBuffer(OutBuffer *buf, HdrGenState *hgs);
^
init.h(81) : Error: ')' expected
void toCBuffer(OutBuffer *buf, HdrGenState *hgs);
^
init.h(101) : Error: ')' expected
void toCBuffer(OutBuffer *buf, HdrGenState *hgs);
^
init.h(118) : Error: ')' expected
Fatal error: too many errors
access.c:
array.c:
attrib.c:
--- errorlevel 1
If you're not reading this with a monospace font, the carets are all pointing
to the last character in "HdrGenState". At this point I'm somewhat lost as to
what I'm doing wrong.
Jul 27 2007
Do you have a working version of the DMD front-end (with a stub back-end)? I need to debug DMD's semantic code... I was going to try to do it myself, but if someone has already done it, it's less work. Nick Sabalausky wrote:Not sure if I'm posting this to the right newsgroup... I'm trying to compile the D frontend with DMC and I'm running into a problem before getting to the backend stubs I need to write. I'm using the following windows batch file to build (I'll convert to something like make or a-a-p later): dmc -cpp idgen.c idgen dmc -cpp impcnvgen.c impcnvgen dmc -cpp access.c array.c attrib.c bit.c cast.c class.c cond.c constfold.c dchar.c declaration.c delegatize.c doc.c dsymbol.c dump.c entity.c enum.c expression.c func.c gnuc.c hdrgen.c html.c id.c identifier.c impcnvtab.c import.c inifile.c init.c inline.c interpret.c lexer.c link.c lstring.c macro.c mangle.c mars.c mem.c module.c mtype.c opover.c optimize.c parse.c root.c scope.c statement.c staticassert.c stringtable.c struct.c template.c tocsym.c todt.c toir.c toobj.c typinf.c unialpha.c utf.c version.c The idgen and impcnvgen stuff is working fine, but on the last line I'm getting this result: virtual void toCBuffer(OutBuffer *buf, HdrGenState *hgs) = 0; ^ init.h(41) : Error: ')' expected void toCBuffer(OutBuffer *buf, HdrGenState *hgs); ^ init.h(61) : Error: ')' expected void toCBuffer(OutBuffer *buf, HdrGenState *hgs); ^ init.h(81) : Error: ')' expected void toCBuffer(OutBuffer *buf, HdrGenState *hgs); ^ init.h(101) : Error: ')' expected void toCBuffer(OutBuffer *buf, HdrGenState *hgs); ^ init.h(118) : Error: ')' expected Fatal error: too many errors access.c: array.c: attrib.c: --- errorlevel 1 If you're not reading this with a monospace font, the carets are all pointing to the last character in "HdrGenState". At this point I'm somewhat lost as to what I'm doing wrong.
Sep 28 2007
Ary Manzana wrote:Do you have a working version of the DMD front-end (with a stub back-end)? I need to debug DMD's semantic code... I was going to try to do it myself, but if someone has already done it, it's less work.
I *think* Gregor Richards has such a version used by dsss here: http://www.dsource.org/projects/dsss/browser/branches
Sep 29 2007
Lutger escribió:Ary Manzana wrote:Do you have a working version of the DMD front-end (with a stub back-end)? I need to debug DMD's semantic code... I was going to try to do it myself, but if someone has already done it, it's less work.
I *think* Gregor Richards has such a version used by dsss here: http://www.dsource.org/projects/dsss/browser/branches
Thanks a lot! It works :-)
Sep 29 2007
Ary Manzana escribió:Lutger escribió:Ary Manzana wrote:Do you have a working version of the DMD front-end (with a stub back-end)? I need to debug DMD's semantic code... I was going to try to do it myself, but if someone has already done it, it's less work.
I *think* Gregor Richards has such a version used by dsss here: http://www.dsource.org/projects/dsss/browser/branches
Thanks a lot! It works :-)
Double thanks... I started debugging DMD and in about 5 minutes I found why Descent was behaving different from DMD (global.gag, global.errors, etc.). That would have been a nightmare without being able to debug DMD...
Sep 29 2007









Gregor Richards <Richards codu.org> 