[M3devel] wtf "code generation errors"?
Jay
jayk123 at hotmail.com
Tue Feb 12 23:23:30 CET 2008
>From reading the code easily/quickly, this is strange.
> > > "../src/SMPP.m3", line 1: 4 code generation errors
should be preceded by other sorts of errors.
And they all/almost all sound "like internal errors", like assertion failures in m3middle.
In particular one of:
m3-sys\m3middle\src\M3CG_Check.m3(190):PROCEDURE PutErr (u: U; a, b, c: TEXT := NIL) =m3-sys\m3middle\src\M3CG_Check.m3(194): END PutErr;m3-sys\m3middle\src\M3CG_Check.m3(242): PutErr (self, "bad stack: expected [ ",m3-sys\m3middle\src\M3CG_Check.m3(261): ELSE PutErr (self, "stack overflow");m3-sys\m3middle\src\M3CG_Check.m3(274): PutErr (self, "non-empty stack: ", Stack_Dump (self));m3-sys\m3middle\src\M3CG_Check.m3(382): PutErr (self, "redefined runtime proc: ", M3ID.ToText (n));m3-sys\m3middle\src\M3CG_Check.m3(391): PutErr (self, "redefined runtime hook: ", M3ID.ToText (n));m3-sys\m3middle\src\M3CG_Check.m3(400): PutErr (self, "undefined runtime hook: ", M3ID.ToText (n));m3-sys\m3middle\src\M3CG_Check.m3(410): PutErr (self, "NIL variable");m3-sys\m3middle\src\M3CG_Check.m3(432): PutErr (self, "temporary reused while live!");m3-sys\m3middle\src\M3CG_Check.m3(446): PutErr (self, "temp freed twice");m3-sys\m3middle\src\M3CG_Check.m3(458): PutErr (self, "nested static initialization");m3-sys\m3middle\src\M3CG_Check.m3(470): ELSE PutErr (self, "missing begin_init");m3-sys\m3middle\src\M3CG_Check.m3(477): IF (self.in_init <= 0) THEN PutErr (self, "missing begin_init") END;m3-sys\m3middle\src\M3CG_Check.m3(480): ELSE PutErr (self, "decreasing offsets");m3-sys\m3middle\src\M3CG_Check.m3(532): PutErr (self, "NIL procedure");m3-sys\m3middle\src\M3CG_Check.m3(540): PutErr (self, "nested procedure declaration");m3-sys\m3middle\src\M3CG_Check.m3(551): ELSE PutErr (self, "missing begin_procedure");m3-sys\m3middle\src\M3CG_Check.m3(554): PutErr (self, "missing end_blocks: ", Int (self.block_count));m3-sys\m3middle\src\M3CG_Check.m3(562): PutErr (self, "temp not freed, created on line ", Int (line));m3-sys\m3middle\src\M3CG_Check.m3(574): PutErr (self, "begin_block not in procedure");m3-sys\m3middle\src\M3CG_Check.m3(586): ELSE PutErr (self, "missing begin_block");m3-sys\m3middle\src\M3CG_Check.m3(604): PutErr (self, "undefined label: ", Int (l));m3-sys\m3middle\src\M3CG_Check.m3(716): IF NOT LegalLoad [t, u] THEN PutErr (self, "illegal load conversion"); END;m3-sys\m3middle\src\M3CG_Check.m3(724): IF NOT LegalStore [t, u] THEN PutErr (self, "illegal store conversion"); END;m3-sys\m3middle\src\M3CG_Check.m3(739): IF NOT LegalLoad [t, u] THEN PutErr (self, "illegal load conversion"); END;m3-sys\m3middle\src\M3CG_Check.m3(747): IF NOT LegalStore [t, u] THEN PutErr (self, "illegal store conversion"); END;m3-sys\m3middle\src\M3CG_Check.m3(775): PutErr (self, "floating-point literal doesn't match type");m3-sys\m3middle\src\M3CG_Check.m3(1231): PutErr (self, "nested procedure call");m3-sys\m3middle\src\M3CG_Check.m3(1242): PutErr (self, "nested procedure call");m3-sys\m3middle\src\M3CG_Check.m3(1251): IF (self.call_count <= 0) THEN PutErr (self, "missing start_call") END;m3-sys\m3middle\src\M3CG_Check.m3(1260): IF (self.call_count <= 0) THEN PutErr (self, "missing start_call") END;m3-sys\m3middle\src\M3CG_Check.m3(1268): IF (self.call_count <= 0) THEN PutErr (self, "missing start_call") END;m3-sys\m3middle\src\M3CG_Check.m3(1279): ELSE PutErr (self, "missing start_call");34 occurrence(s) have been found.
- Jay
> From: dragisha at m3w.org> To: hosking at cs.purdue.edu> Date: Tue, 12 Feb 2008 22:24:55 +0100> CC: m3devel at elegosoft.com> Subject: Re: [M3devel] wtf "code generation errors"?> > This is new project... and it's pretty drafty, meaning it compiles but> it does not run. I sumbitted this because it looks like some obscure> (underreported?) error to me.> > Compiler I do use is pretty stable and build lots of my other apps.> > On Tue, 2008-02-12 at 15:05 -0500, Tony Hosking wrote:> > Did something change in m3middle/m3front lately?> > > > On Feb 12, 2008, at 12:58 PM, Dragiša Durić wrote:> > > > > % cm3> > > --- building in ../LINUXLIBC6 ---> > >> > > new source -> compiling Connection.i3> > > new source -> compiling Connection.m3> > > new source -> compiling PDU.i3> > > new source -> compiling PDU.m3> > > "../src/PDU.m3", line 107: warning: not used (len)> > > "../src/PDU.m3", line 104: warning: not used (b)> > > "../src/PDU.m3", line 116: warning: open array passed by value (o)> > > "../src/PDU.m3", line 118: warning: not used (cStr)> > > "../src/PDU.m3", line 116: warning: not used (b)> > > "../src/PDU.m3", line 116: warning: not used (o)> > > "../src/PDU.m3", line 160: warning: not used (c)> > > "../src/PDU.m3", line 59: warning: not used (GetInt)> > > 8 warnings encountered> > > new source -> compiling SMPP.m3> > > "../src/SMPP.m3", line 1: 4 code generation errors> > > 1 error encountered> > > compilation failed => not building program "smpp"> > > Fatal Error: package build failed> > >> > > -- > > > Dragiša Durić <dragisha at m3w.org>> > > -- > Dragiša Durić <dragisha at m3w.org>>
_________________________________________________________________
Climb to the top of the charts! Play the word scramble challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20080212/24e8ea03/attachment-0002.html>
More information about the M3devel
mailing list