<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><pre> > I thought we could bootstrap all the way back with SRC M3?</pre><br>I don't think so.<br>I don't believe 4.0 or maybe 5.0/5.1 can bootstrap with 3.6, without applying and later reverting some diffs.<br><br><br>The unicode stuff I think is partly to blame.<br>But really the 3.6 stuff wasn't so good it turns out. It was much harder to port and contained overly tight dependencies on underlying implementation details of the operating systems. What we have now is approaching the portability of typical C or C++ code. (Still to fix the jmpbuf size and cooperative suspend...)<br><br><br>> (907)tsvnc06:...cm3-anon-cvs/cm3/scripts/python>cm3cg -v<br>> M3CG - Modula-3 Compiler back end4.3.0<br><br><br>At some point in the bootstrap that should advance higher.<br>Are you running as a user that can overwrite cm3 and cm3cg?<br><br><br> - Jay<br><br><br><div>> To: jay.krell@cornell.edu<br>> CC: m3devel@elegosoft.com<br>> Subject: Re: [M3devel] building CM3 on a Raspberry Pi?<br>> Date: Mon, 14 Oct 2013 13:46:36 -0700<br>> From: mika@async.caltech.edu<br>> <br>> <br>> Well I think this error is what got me to give up building on MIPS<br>> (Asus router) a couple of years ago.<br>> <br>> This stuff is really very difficult to get through.<br>> <br>> hmm... so here I am just trying to ./upgrade.py, no cross building yet.<br>> <br>> My tools aren't THAT old. 2-3 years at most. I thought we could bootstrap all the way back with SRC M3?<br>> <br>> (906)tsvnc06:...cm3-anon-cvs/cm3/scripts/python>cm3cg -version<br>> Modula-3 backend (GCC) version 4.3.0 (x86_64-unknown-linux-gnu)<br>> compiled by GNU C version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21), GMP version 4.2.1, MPFR version 2.3.0.<br>> GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072<br>> options passed: <br>> options enabled: -falign-loops -fargument-alias<br>> -fasynchronous-unwind-tables -fauto-inc-dec -fbranch-count-reg -fcommon<br>> -fearly-inlining -feliminate-unused-debug-types -ffunction-cse -fgcse-lm<br>> -fident -fivopts -fkeep-static-consts -fleading-underscore -fmath-errno<br>> -fmerge-debug-strings -fmove-loop-invariants -fpeephole<br>> -freg-struct-return -fsched-interblock -fsched-spec<br>> -fsched-stalled-insns-dep -fsigned-zeros -fsplit-ivs-in-unroller<br>> -ftoplevel-reorder -ftrapping-math -ftree-cselim -ftree-loop-im<br>> -ftree-loop-ivcanon -ftree-loop-optimize -ftree-parallelize-loops=<br>> -ftree-reassoc -ftree-scev-cprop -ftree-vect-loop-version -funwind-tables<br>> -fvar-tracking -fvect-cost-model -fzero-initialized-in-bss<br>> -m128bit-long-double -m64 -m80387 -maccumulate-outgoing-args<br>> -malign-stringops -mfancy-math-387 -mfp-ret-in-387 -mfused-madd -mglibc<br>> -mieee-fp -mmmx -mno-sse4 -mpush-args -mred-zone -msse -msse2<br>> -mtls-direct-seg-refs<br>> <br>> (907)tsvnc06:...cm3-anon-cvs/cm3/scripts/python>cm3cg -v<br>> M3CG - Modula-3 Compiler back end4.3.0<br>> <br>> (908)tsvnc06:...cm3-anon-cvs/cm3/scripts/python>which cm3cg<br>> /nfs/site/home/mnystroe/work/cm3/bin/cm3cg<br>> (909)tsvnc06:...cm3-anon-cvs/cm3/scripts/python>ls -l `!!`<br>> ls -l `which cm3cg`<br>> -rwxr-x--- 1 mnystroe rrc 29747222 2010-06-04 10:41 /nfs/site/home/mnystroe/work/cm3/bin/cm3cg<br>> <br>> <br>> <br>> <br>> Jay K writes:<br>> >--_b7ef6d52-d09a-4017-8a20-e0fef4593137_<br>> >Content-Type: text/plain; charset="iso-8859-1"<br>> >Content-Transfer-Encoding: quoted-printable<br>> ><br>> >> ../src/word/WordRep.i3:1: fatal error: *** illegal type: 0x6f=2C at m3cg=<br>> >_lineno 5<br>> ><br>> ><br>> >I think this is caused by cm3cg mismatching cm3.<br>> >upgrade.py is supposed to upgrade them at the proper time though.<br>> >I did used to have things a little wrong=2C esp. willingness to use an unsh=<br>> >ipped version laying around.<br>> ><br>> ><br>> > Or maybe cm3cg has the wrong target.=20<br>> > cm3cg -v or -V or -version?=20<br>> ><br>> ><br>> >You could switch your AMD64_LINUX tools to the C backend.. :)<br>> >(It should work. I think I tested it on modula3.elegosoft.com.)<br>> ><br>> ><br>> >http://modula3.elegosoft.com/cm3/uploaded-archives<br>> >Darn=2C nothing recent for AMD64_LINUX.<br>> >I can work on that this week..using the C backend.<br>> ><br>> ><br>> >There are also snapshots from Hudson here=2C of varying dates:<br>> >https://modula3.elegosoft.com/cm3/snaps/snapshot-index.html =20<br>> ><br>> ><br>> > - Jay<br>> ><br>> ><br>> >> To: jay.krell@cornell.edu<br>> >> CC: m3devel@elegosoft.com<br>> >> Subject: Re: [M3devel] building CM3 on a Raspberry Pi?<br>> >> Date: Mon=2C 14 Oct 2013 12:02:52 -0700<br>> >> From: mika@async.caltech.edu<br>> >>=20<br>> >> More updates...<br>> >>=20<br>> >> after I remove mklib=2C I do get a new compiler built=2C and I get to thi=<br>> >s point<br>> >>=20<br>> >> ignoring ../src/m3overrides<br>> >>=20<br>> >> =3D=3D> /nfs/site/disks/wdisk.133/mnystroe/cm3-anon-cvs/cm3/m3-win/impor=<br>> >t-libs done<br>> >>=20<br>> >> +++ /nfs/site/home/mnystroe/work/cm3/bin/cm3 -ship -DROOT=3D/nfs/site/d=<br>> >isks/wdisk.133/mnystroe/cm3-anon-cvs/cm3 +++<br>> >> --- shipping from AMD64_LINUX ---<br>> >>=20<br>> >> =3D=3D> /nfs/site/disks/wdisk.133/mnystroe/cm3-anon-cvs/cm3/m3-win/impor=<br>> >t-libs done<br>> >>=20<br>> >> =3D=3D package /nfs/site/disks/wdisk.133/mnystroe/cm3-anon-cvs/cm3/m3-lib=<br>> >s/m3core =3D=3D<br>> >>=20<br>> >> +++ /nfs/site/home/mnystroe/work/cm3/bin/cm3 -build -DROOT=3D/nfs/sit=<br>> >e/disks/wdisk.133/mnystroe/cm3-anon-cvs/cm3 +++<br>> >> --- building in AMD64_LINUX ---<br>> >>=20<br>> >> ignoring ../src/m3overrides<br>> >>=20<br>> >> new source -> compiling RTHooks.i3<br>> >> ../src/runtime/common/RTHooks.i3:15: fatal error: *** illegal type: 0x6f=<br>> >=2C at m3cg_lineno 5<br>> >> compilation terminated.<br>> >> m3_backend =3D> 1<br>> >> m3cc (aka cm3cg) failed compiling: RTHooks.ic<br>> >> Assembler messages:<br>> >> Can't open RTHooks.is for reading: No such file or directory<br>> >> new source -> compiling RT0.i3<br>> >> ../src/runtime/common/RT0.i3:19: fatal error: *** illegal type: 0x6f=2C =<br>> >at m3cg_lineno 5<br>> >> compilation terminated.<br>> >> m3_backend =3D> 1<br>> >> m3cc (aka cm3cg) failed compiling: RT0.ic<br>> >> Assembler messages:<br>> >> Can't open RT0.is for reading: No such file or directory<br>> >> new source -> compiling RuntimeError.i3<br>> >> ../src/runtime/common/RuntimeError.i3:10: fatal error: *** illegal type:=<br>> > 0x6f=2C at m3cg_lineno 5<br>> >> compilation terminated.<br>> >> m3_backend =3D> 1<br>> >> m3cc (aka cm3cg) failed compiling: RuntimeError.ic<br>> >> Assembler messages:<br>> >> Can't open RuntimeError.is for reading: No such file or directory<br>> >> new source -> compiling WordRep.i3<br>> >> ../src/word/WordRep.i3:1: fatal error: *** illegal type: 0x6f=2C at m3cg=<br>> >_lineno 5<br>> >>=20<br>> >> I've seen this before but don't remember what the issue is.<br>> >>=20<br>> >> The compiler is new:<br>> >>=20<br>> >> -rwxr-x--- 1 mnystroe rrc 9916732 2013-10-14 11:59 /nfs/site/home/mnystro=<br>> >e/work/cm3/bin/cm3<br>> >>=20<br>> >> This is on linux/amd64...<br>> >>=20<br>> >>=20<br>> >> mika writes:<br>> >> >My toolsets are old=2C yes.<br>> >> ><br>> >> >I tried upgrade.py but you saw that that didn't work either. =20<br>> >> ><br>> >> >I guess I could go back and re-install from a recent binary image (where<br>> >> >are the most recent ones? I only see really old ones on elegosoft...) a=<br>> >nd<br>> >> >build everything from scratch. It's just that all the systems that I<br>> >> >have M3 on are some sort of production systems and I don't want to mess<br>> >> >up the installations unnecessarily... but if it's the only way...<br>> >> >=20<br>> >> > Mika<br>> >> ><br>> >> >Jay K writes:<br>> >> >>--_461a9835-225f-448d-96a6-4c651ff66c13_<br>> >> >>Content-Type: text/plain=3B charset=3D"iso-8859-1"<br>> >> >>Content-Transfer-Encoding: quoted-printable<br>> >> >><br>> >> >>Target.i3/m3 look up to date.<br>> >> >>Is your host toolset very old?<br>> >> >><br>> >> >>https://modula3.elegosoft.com/cgi-bin/cvsweb.cgi/cm3/m3-sys/m3middle/sr=<br>> >c/Ta=3D<br>> >> >>rget.i3<br>> >> >><br>> >> >>Revision 1.59: download - view: text=3D2C markup=3D2C annotated - selec=<br>> >t for di=3D<br>> >> >>ffs<br>> >> >>=3D0A=3D<br>> >> >>Sat Jun 19 06:56:32 2010 (3 years=3D2C 3 months ago) by jkrell<br>> >> >>=3D0A=3D<br>> >> >>Branches: MAIN<br>> >> >>=3D0A=3D<br>> >> >>Diff to: previous 1.58: preferred=3D2C unified<br>> >> >>=3D0A=3D<br>> >> >>Changes since revision 1.58: +2 -0 lines<br>> >> >>=3D0A=3D<br>> >> >>add ARMEL_LINUX with correct jmbuf size/align=3D0A=3D<br>> >> >>guessing about alignment=3D0A=3D<br>> >> >>"ARM" is an older ABI=3D0A=3D<br>> >> >>"ARME" is the usual modern ABI=3D0A=3D<br>> >> >>L for little endian=3D0A=3D<br>> >> >><br>> >> >>scripts/update.py ?<br>> >> >><br>> >> >> - Jay<br>> > =<br>> ><br>> >--_b7ef6d52-d09a-4017-8a20-e0fef4593137_<br>> >Content-Type: text/html; charset="iso-8859-1"<br>> >Content-Transfer-Encoding: quoted-printable<br>> ><br>> ><html><br>> ><head><br>> ><style><!--<br>> >.hmmessage P<br>> >{<br>> >margin:0px=3B<br>> >padding:0px<br>> >}<br>> >body.hmmessage<br>> >{<br>> >font-size: 12pt=3B<br>> >font-family:Calibri<br>> >}<br>> >--></style></head><br>> ><body class=3D'hmmessage'><div dir=3D'ltr'>>=3B ../src/word/WordRep.i3:1:=<br>> > fatal error: *** illegal type: 0x6f=2C at m3cg_lineno 5<br><br><br>I thin=<br>> >k this is caused by cm3cg mismatching cm3.<br>upgrade.py is supposed to upg=<br>> >rade them at the proper time though.<br>I did used to have things a little =<br>> >wrong=2C esp. willingness to use an unshipped version laying around.<br><br=<br>> >><br> =3BOr maybe cm3cg has the wrong target. <br> =3Bcm3cg -v or -=<br>> >V or -version? <br><br><br>You could switch your AMD64_LINUX tools to the C=<br>> > backend.. :)<br>(It should work. I think I tested it on modula3.elegosoft.=<br>> >com.)<br><br><br><a href=3D"http://modula3.elegosoft.com/cm3/uploaded-archi=<br>> >ves" target=3D"_blank">http://modula3.elegosoft.com/cm3/uploaded-archives</=<br>> >a><br>Darn=2C nothing recent for AMD64_LINUX.<br>I can work on that this we=<br>> >ek..using the C backend.<br><br><br>There are also snapshots from Hudson he=<br>> >re=2C of varying dates:<br><a href=3D"https://modula3.elegosoft.com/cm3/sna=<br>> >ps/snapshot-index.html" target=3D"_blank">https://modula3.elegosoft.com/cm3=<br>> >/snaps/snapshot-index.html</a> =3B <br><br><br> =3B- Jay<br><br><br=<br>> >><div>>=3B To: jay.krell@cornell.edu<br>>=3B CC: m3devel@elegosoft.com<=<br>> >br>>=3B Subject: Re: [M3devel] building CM3 on a Raspberry Pi?<br>>=3B =<br>> >Date: Mon=2C 14 Oct 2013 12:02:52 -0700<br>>=3B From: mika@async.caltech.=<br>> >edu<br>>=3B <br>>=3B More updates...<br>>=3B <br>>=3B after I remov=<br>> >e mklib=2C I do get a new compiler built=2C and I get to this point<br>>=<br>> >=3B <br>>=3B ignoring ../src/m3overrides<br>>=3B <br>>=3B =3D=3D>=<br>> >=3B /nfs/site/disks/wdisk.133/mnystroe/cm3-anon-cvs/cm3/m3-win/import-libs =<br>> >done<br>>=3B <br>>=3B +++ /nfs/site/home/mnystroe/work/cm3/bin/cm3 -s=<br>> >hip -DROOT=3D/nfs/site/disks/wdisk.133/mnystroe/cm3-anon-cvs/cm3 +++<br>>=<br>> >=3B --- shipping from AMD64_LINUX ---<br>>=3B <br>>=3B =3D=3D>=3B /n=<br>> >fs/site/disks/wdisk.133/mnystroe/cm3-anon-cvs/cm3/m3-win/import-libs done<b=<br>> >r>>=3B <br>>=3B =3D=3D package /nfs/site/disks/wdisk.133/mnystroe/cm3-a=<br>> >non-cvs/cm3/m3-libs/m3core =3D=3D<br>>=3B <br>>=3B +++ /nfs/site/home/=<br>> >mnystroe/work/cm3/bin/cm3 -build -DROOT=3D/nfs/site/disks/wdisk.133/mnys=<br>> >troe/cm3-anon-cvs/cm3 +++<br>>=3B --- building in AMD64_LINUX ---<br>>=<br>> >=3B <br>>=3B ignoring ../src/m3overrides<br>>=3B <br>>=3B new source =<br>> >->=3B compiling RTHooks.i3<br>>=3B ../src/runtime/common/RTHooks.i3:15:=<br>> > fatal error: *** illegal type: 0x6f=2C at m3cg_lineno 5<br>>=3B compila=<br>> >tion terminated.<br>>=3B m3_backend =3D>=3B 1<br>>=3B m3cc (aka cm3=<br>> >cg) failed compiling: RTHooks.ic<br>>=3B Assembler messages:<br>>=3B Ca=<br>> >n't open RTHooks.is for reading: No such file or directory<br>>=3B new so=<br>> >urce ->=3B compiling RT0.i3<br>>=3B ../src/runtime/common/RT0.i3:19: fa=<br>> >tal error: *** illegal type: 0x6f=2C at m3cg_lineno 5<br>>=3B compilatio=<br>> >n terminated.<br>>=3B m3_backend =3D>=3B 1<br>>=3B m3cc (aka cm3cg)=<br>> > failed compiling: RT0.ic<br>>=3B Assembler messages:<br>>=3B Can't ope=<br>> >n RT0.is for reading: No such file or directory<br>>=3B new source ->=<br>> >=3B compiling RuntimeError.i3<br>>=3B ../src/runtime/common/RuntimeError.=<br>> >i3:10: fatal error: *** illegal type: 0x6f=2C at m3cg_lineno 5<br>>=3B c=<br>> >ompilation terminated.<br>>=3B m3_backend =3D>=3B 1<br>>=3B m3cc (a=<br>> >ka cm3cg) failed compiling: RuntimeError.ic<br>>=3B Assembler messages:<b=<br>> >r>>=3B Can't open RuntimeError.is for reading: No such file or directory<=<br>> >br>>=3B new source ->=3B compiling WordRep.i3<br>>=3B ../src/word/Wor=<br>> >dRep.i3:1: fatal error: *** illegal type: 0x6f=2C at m3cg_lineno 5<br>>=<br>> >=3B <br>>=3B I've seen this before but don't remember what the issue is.<=<br>> >br>>=3B <br>>=3B The compiler is new:<br>>=3B <br>>=3B -rwxr-x--- 1=<br>> > mnystroe rrc 9916732 2013-10-14 11:59 /nfs/site/home/mnystroe/work/cm3/bin=<br>> >/cm3<br>>=3B <br>>=3B This is on linux/amd64...<br>>=3B <br>>=3B <b=<br>> >r>>=3B mika writes:<br>>=3B >=3BMy toolsets are old=2C yes.<br>>=3B=<br>> > >=3B<br>>=3B >=3BI tried upgrade.py but you saw that that didn't wor=<br>> >k either. <br>>=3B >=3B<br>>=3B >=3BI guess I could go back and re=<br>> >-install from a recent binary image (where<br>>=3B >=3Bare the most rec=<br>> >ent ones? I only see really old ones on elegosoft...) and<br>>=3B >=3B=<br>> >build everything from scratch. It's just that all the systems that I<br>&g=<br>> >t=3B >=3Bhave M3 on are some sort of production systems and I don't want =<br>> >to mess<br>>=3B >=3Bup the installations unnecessarily... but if it's=<br>> > the only way...<br>>=3B >=3B <br>>=3B >=3B Mika<br>>=3B >=<br>> >=3B<br>>=3B >=3BJay K writes:<br>>=3B >=3B>=3B--_461a9835-225f-44=<br>> >8d-96a6-4c651ff66c13_<br>>=3B >=3B>=3BContent-Type: text/plain=3B cha=<br>> >rset=3D"iso-8859-1"<br>>=3B >=3B>=3BContent-Transfer-Encoding: quoted=<br>> >-printable<br>>=3B >=3B>=3B<br>>=3B >=3B>=3BTarget.i3/m3 look u=<br>> >p to date.<br>>=3B >=3B>=3BIs your host toolset very old?<br>>=3B &=<br>> >gt=3B>=3B<br>>=3B >=3B>=3Bhttps://modula3.elegosoft.com/cgi-bin/cvs=<br>> >web.cgi/cm3/m3-sys/m3middle/src/Ta=3D<br>>=3B >=3B>=3Brget.i3<br>>=<br>> >=3B >=3B>=3B<br>>=3B >=3B>=3BRevision 1.59: download - view: text=<br>> >=3D2C markup=3D2C annotated - select for di=3D<br>>=3B >=3B>=3Bffs<br=<br>> >>>=3B >=3B>=3B=3D0A=3D<br>>=3B >=3B>=3BSat Jun 19 06:56:32 2010=<br>> > (3 years=3D2C 3 months ago) by jkrell<br>>=3B >=3B>=3B=3D0A=3D<br>&=<br>> >gt=3B >=3B>=3BBranches: MAIN<br>>=3B >=3B>=3B=3D0A=3D<br>>=3B &=<br>> >gt=3B>=3BDiff to: previous 1.58: preferred=3D2C unified<br>>=3B >=3B&=<br>> >gt=3B=3D0A=3D<br>>=3B >=3B>=3BChanges since revision 1.58: +2 -0 line=<br>> >s<br>>=3B >=3B>=3B=3D0A=3D<br>>=3B >=3B>=3Badd ARMEL_LINUX with=<br>> > correct jmbuf size/align=3D0A=3D<br>>=3B >=3B>=3Bguessing about alig=<br>> >nment=3D0A=3D<br>>=3B >=3B>=3B"ARM" is an older ABI=3D0A=3D<br>>=3B=<br>> > >=3B>=3B"ARME" is the usual modern ABI=3D0A=3D<br>>=3B >=3B>=3BL=<br>> > for little endian=3D0A=3D<br>>=3B >=3B>=3B<br>>=3B >=3B>=3Bscr=<br>> >ipts/update.py ?<br>>=3B >=3B>=3B<br>>=3B >=3B>=3B - Jay<br></d=<br>> >iv> </div></body><br>> ></html>=<br>> ><br>> >--_b7ef6d52-d09a-4017-8a20-e0fef4593137_--<br></div> </div></body>
</html>