<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'> It no longer builds m3bundle I think. There was a problem regarding m3bundle for a while, because I had followed upgrade.sh too closely, which had this problem. And this is a sign of using old cm3cg. Are you sure you didn't do something weird? Uograde.py does upgrade cm3cg appropriately. Try head?<br><br>> To: jay.krell@cornell.edu<br>> Date: Sat, 8 Jan 2011 05:47:35 -0800<br>> From: mika@async.caltech.edu<br>> CC: m3devel@elegosoft.com<br>> Subject: Re: [M3devel] another Snow Leopard compiler crash<br>> <br>> I ran "python upgrade.py" from a clean start (back to head a few weeks ago)<br>> and got:<br>> <br>> == package /Users/mika/cm3/cm3/m3-tools/m3bundle ==<br>> <br>> +++ /usr/local/cm3/pkg/cm3/I386_DARWIN/cm3 -build -DROOT=/Users/mika/cm3/cm3 +++<br>> --- building in I386_DARWIN ---<br>> <br>> ignoring ../src/m3overrides<br>> <br>> new source -> compiling m3bundle.m3<br>> -> linking m3bundle<br>> Undefined symbols:<br>> "__alloca", referenced from:<br>> _m3bundle__GetElementSizes in m3bundle.mo<br>> "_Csetjmp__Jumpbuf_size", referenced from:<br>> _Csetjmp__Jumpbuf_size$non_lazy_ptr in m3bundle.mo<br>> (maybe you meant: _Csetjmp__Jumpbuf_size$non_lazy_ptr)<br>> ld: symbol(s) not found<br>> collect2: ld returned 1 exit status<br>> m3_link => 1<br>> linker failed linking: m3bundle<br>> Fatal Error: package build failed<br>> *** execution of [<function _BuildGlobalFunction at 0x10050c5f0>, <function _ShipFunction at 0x10050c668>] failed ***<br>> [hal:cm3/scripts/python] mika% <br>> <br>> maybe a conf file change I need to make?<br>> <br>> Why only in m3bundle?<br>> <br>> Mika<br>> <br>> Jay K writes:<br>> >--_6374b72e-0dad-4a03-8d22-4a59e0218226_<br>> >Content-Type: text/plain; charset="iso-8859-1"<br>> >Content-Transfer-Encoding: quoted-printable<br>> ><br>> >I upgrade across incompatibilities frequently & Hudson does now too. The ex=<br>> >isting scripts work very well and you would be foolish to not use them. Jus=<br>> >t use upgrade.py. It is very easy. Or upgrade.py nocleangcc. And then do-cm=<br>> >3-all.py skipgcc realclean && do-cm3-all.py buildship.py.<br>> ><br>> > - Jay/phone<br>> ><br>> >> To: jay.krell@cornell.edu<br>> >> Date: Sat=2C 8 Jan 2011 04:14:41 -0800<br>> >> From: mika@async.caltech.edu<br>> >> CC: m3devel@elegosoft.com<br>> >> Subject: Re: [M3devel] another Snow Leopard compiler crash<br>> >>=20<br>> >> Jay K writes:<br>> >> ><br>> >> >Please try this Mika. It fixes the problem for me.<br>> >>=20<br>> >> Hi Jay=2C<br>> >>=20<br>> >> So I upgraded to the CVS head and now I get a segfaulting compiler:<br>> >>=20<br>> >> [hal:cm3/m3-libs/m3core] mika% gdb $CM3<br>> >> GNU gdb 6.3.50-20050815 (Apple version gdb-1510) (Wed Sep 22 02:45:02 UTC=<br>> > 2010)<br>> >> Copyright 2004 Free Software Foundation=2C Inc.<br>> >> GDB is free software=2C covered by the GNU General Public License=2C and =<br>> >you are<br>> >> welcome to change it and/or distribute copies of it under certain conditi=<br>> >ons.<br>> >> Type "show copying" to see the conditions.<br>> >> There is absolutely no warranty for GDB. Type "show warranty" for detail=<br>> >s.<br>> >> This GDB was configured as "x86_64-apple-darwin"...Reading symbols for sh=<br>> >ared libraries ...... done<br>> >>=20<br>> >> (gdb) run<br>> >> Starting program: /usr/local/cm3/pkg/cm3/I386_DARWIN/cm3=20<br>> >> Reading symbols for shared libraries .+++++.......... done<br>> >>=20<br>> >> Program received signal EXC_BAD_ACCESS=2C Could not access memory.<br>> >> Reason: KERN_PROTECTION_FAILURE at address: 0x0000038b<br>> >> 0x9713354b in _longjmp ()<br>> >> (gdb) where<br>> >> #0 0x9713354b in _longjmp ()<br>> >> #1 0x00285d2b in RTExFrame__InvokeHandler (f=3D0xbffff34c=2C a=3D0xbffff=<br>> >23c) at ../src/runtime/ex_frame/RTExFrame.m3:175<br>> >> #2 0x00285be4 in RTException__ResumeRaise (a=3D0xbffff23c) at ../src/run=<br>> >time/ex_frame/RTExFrame.m3:145<br>> >> #3 0x00285a1b in RTException__Raise (act=3D0xbffff23c) at ../src/runtime=<br>> >/ex_frame/RTExFrame.m3:91<br>> >> #4 0x00269d44 in RTHooks__Raise (ex=3D0x35a720=2C arg=3D0x181cddc=2C mod=<br>> >ule=3D0x398080=2C line=3D50) at ../src/runtime/common/RTHooks.m3:79<br>> >> #5 0x0023adbc in OSErrorPosix__Raise0 (errno=3D2) at ../src/os/POSIX/OSE=<br>> >rrorPosix.m3:50<br>> >> #6 0x0023cffc in FSPosix__Fail (p=3D0x181cdc0=2C f=3D0xf049f0) at ../src=<br>> >/os/POSIX/FSPosix.m3:359<br>> >> #7 0x0023cdd4 in FS__Status (pn=3D0x181cdc0=2C _result=3D0xbffff3c8) at =<br>> >../src/os/POSIX/FSPosix.m3:328<br>> >> #8 0x00217d24 in M3File__IsReadable (path=3D0x181cdc0) at ../src/M3File.=<br>> >m3:123<br>> >> #9 0x000a057f in MxConfig__TryConfig (a=3D0x3255e0=2C b=3D0x3255f0=2C c=<br>> >=3D0x0) at ../src/MxConfig.m3:122<br>> >> #10 0x0009ff67 in MxConfig__FindConfig () at ../src/MxConfig.m3:51<br>> >> #11 0x0009fcd8 in MxConfig__FindFile () at ../src/MxConfig.m3:19<br>> >> #12 0x0002c446 in Main__DoIt () at ../src/Main.m3:32<br>> >> #13 0x0002d1e9 in Main_M3 (mode=3D1) at ../src/Main.m3:214<br>> >> #14 0x0027a781 in RTLinker__RunMainBody (m=3D0x3705a0) at ../src/runtime/=<br>> >common/RTLinker.m3:406<br>> >> #15 0x00279bb6 in RTLinker__AddUnitI (m=3D0x3705a0) at ../src/runtime/com=<br>> >mon/RTLinker.m3:113<br>> >> #16 0x00279c3a in RTLinker__AddUnit (b=3D0x2d1d0) at ../src/runtime/commo=<br>> >n/RTLinker.m3:122<br>> >> #17 0x00002cfc in main (argc=3D1=2C argv=3D0xbffff674=2C envp=3D0xbffff67=<br>> >c) at _m3main.c:16<br>> >> (gdb)=20<br>> >>=20<br>> >> I followed upgrade instructions from Tony (including upgrading the<br>> >> back-end)---I have edited the instructions a bit to track changes in=20<br>> >> CM3. I'm starting from head three weeks old..<br>> >>=20<br>> >> Mika<br>> >>=20<br>> >>=20<br>> >> Return-Path: hosking@cs.purdue.edu<br>> >> Delivery-Date: Sun Jun 24 07:38:38 2007<br>> >> In-Reply-To: <200706231838.l5NIcRef079333@camembert.async.caltech.edu><br>> >> References: <200706231838.l5NIcRef079333@camembert.async.caltech.edu><br>> >>=20<br>> >> Sounds like we really need some work done in this area. I very =20<br>> >> rarely use the build scripts=2C since I bootstrap manually from old =20<br>> >> compilers to new compilers rather than use the scripts. I suggest =20<br>> >> the following approach=2C which I hope you will try=2C and then report =20<br>> >> back on.<br>> >>=20<br>> >> Install the bootstrap compiler as you did originally:<br>> >>=20<br>> >> > rm -rf /usr/local/cm3/*<br>> >> ><br>> >> > cd ~/cm3-cvs<br>> >> > mkdir boot<br>> >> > cd boot<br>> >> > tar xzvf ../cm3-min-POSIX-FreeBSD4-d5.3.1-2005-10-05.tgz<br>> >> > ./cminstall<br>> >>=20<br>> >>=20<br>> >> Now you will have some kind of cm3 installed=2C presumably in /usr/=20<br>> >> local/cm3/bin/cm3.<br>> >>=20<br>> >> Make sure you have a fresh CVS checkout in directory cm3 (let's =20<br>> >> assume this is in your home directory ~/cm3). Also=2C make sure you =20<br>> >> have an up-to-date version of the CM3 backend compiler cm3cg =20<br>> >> installed by executing the following:<br>> >>=20<br>> >> STEP 0:<br>> >>=20<br>> >> export CM3=3D/usr/local/cm3/bin/cm3<br>> >> cd ~/cm3/m3-sys/m3cc<br>> >> $CM3<br>> >> $CM3 -ship<br>> >>=20<br>> >> You can skip this last step if you know your backend compiler is up =20<br>> >> to date.<br>> >>=20<br>> >> Now=2C let's build the new compiler from scratch (this is the sequence =20<br>> >> I use regularly to test changes to the run-time system whenever I =20<br>> >> make them):<br>> >>=20<br>> >> can replace compilation step with<br>> >>=20<br>> >> rm -rf <der. dir> && $CM3 && $CM3 -ship=20<br>> >>=20<br>> >>=20<br>> >> STEP 1:<br>> >>=20<br>> >> (do these LATER if bootstrapping from old compiler!)<br>> >> cd ~/cm3/m3-libs/m3core<br>> >> $CM3<br>> >> $CM3 -ship<br>> >> cd ~/cm3/m3-libs/libm3<br>> >> $CM3<br>> >> $CM3 -ship<br>> >>=20<br>> >> Now build the compiler:<br>> >>=20<br>> >> cd ~/cm3/m3-libs/sysutils =3B $CM3 etc.<br>> >>=20<br>> >> cd ~/cm3/m3-sys/m3middle=3B $CM3 etc.<br>> >>=20<br>> >> repeat for:<br>> >>=20<br>> >> m3-sys/m3objfile=20<br>> >>=20<br>> >> m3-sys/m3back=20<br>> >>=20<br>> >> m3-sys/m3linker<br>> >>=20<br>> >> m3-sys/m3front<br>> >>=20<br>> >> m3-sys/m3quake<br>> >>=20<br>> >> m3-sys/cm3<br>> >>=20<br>> >> [ here we may need -DROOT=3D<root dir=2C e.g.=2C /home/mika/cm3> ]<br>> >>=20<br>> >>=20<br>> >> At this point you should have a bootstrapped version of cm3 installed =20<br>> >> in the directory /usr/local/cm3/pkg/cm3/TARGET/cm3 (where TARGET is =20<br>> >> the CM3 target platform you are building on -- e.g.=2C LINUXLIBC6=2C =20<br>> >> PPC_DARWIN=2C ...). Note that this did not overwrite your original =20<br>> >> installed compiler in /usr/local/cm3/bin/cm3. We<br>> >> are now going to test the new compiler=2C which was built using the old =<br>> >=20<br>> >> compiler=2C by bootstrapping it one more time.<br>> >>=20<br>> >>=20<br>> >> ******* THIS IS WHERE I HAVE A SEGFAULTING COMPILER *******<br>> >>=20<br>> >> (If m3core and libm3 were skipped earlier=2C do them now=2C and RE-DO all<br>> >> of the above packages before proceeding.)<br>> >>=20<br>> >> From here on out=2C please replace TARGET with your target platform as =20<br>> >> appropriate.<br>> >>=20<br>> >> STEP 2:<br>> >>=20<br>> >> export CM3=3D/usr/local/cm3/pkg/cm3/TARGET/cm3<br>> >> cd ~/cm3/scripts<br>> >>=20<br>> >> ./do-cm3-std.sh realclean<br>> >> REPEAT STEP 1 to rebuild the libraries and the compiler using the =20<br>> >> STEP 1 bootstrap compiler.<br>> >>=20<br>> >> Now you have a STEP 2 bootstrap compiler installed in /usr/local/cm3/=20<br>> >> pkg/cm3/TARGET/cm3. Let's assume the new compiler now works properly =20<br>> >> since it successfully bootstrapped itself=2C but to be sure we can now =20<br>> >> use it to rebuild the world:<br>> >>=20<br>> >> cd ~/cm3/scripts<br>> >> ./do-cm3-std.sh realclean<br>> >> ./do-cm3-std.sh buildship<br>> >>=20<br>> >> Assuming this succeeded then we can be pretty sure /usr/local/cm3/pkg/=20<br>> >> cm3/TARGET/cm3 is good=2C so we can make it our default compiler by =20<br>> >> replacing the original /usr/local/cm3/bin/cm3:<br>> >>=20<br>> >> cp $CM3 /usr/local/cm3/bin/cm3<br>> >>=20<br>> >> On Jun 23=2C 2007=2C at 2:38 PM=2C Mika Nystrom wrote:<br>> >>=20<br>> >> > Ok=2C I'm sorry if I seem a bit dimwitted in the morning like this=2C<br>> >> > but how exactly does one get started? I wish there were a file called<br>> >> > "GETTING_STARTED" or something like that in scripts...<br>> >> ><br>> >> > My Mac is very slow so I switched to my FreeBSD/i386 system (which has<br>> >> > PM3 happily installed on it) and tried to install CM3 from scratch.<br>> >> > Here are the exact commands I typed.<br>> >> ><br>> >> ><br>> >> > rm -rf /usr/local/cm3/*<br>> >> ><br>> >> > cd ~/cm3-cvs<br>> >> > mkdir boot<br>> >> > cd boot<br>> >> > tar xzvf ../cm3-min-POSIX-FreeBSD4-d5.3.1-2005-10-05.tgz<br>> >> > ./cminstall<br>> >> ><br>> >> > # now I seem to have some kind of cm3 installed=2C /usr/local/cm3/bin/=<br>> >=20<br>> >> > cm3<br>> >> ><br>> >> > cd cm3 # location of my CM3 checkout<br>> >> > cvs update -d .<br>> >> ><br>> >> > cd scripts<br>> >> > ./boot-cm3-with-m3.sh realclean<br>> >> > ./do-cm3-std.sh realclean<br>> >> ><br>> >> > ./upgrade.sh # fails here=2C libm3 not compiled<br>> >> > ./boot-cm3-with-m3.sh build # builds cm3=2C but fails on =20<br>> >> > cminstall=2C patternmatching not built<br>> >> ><br>> >> > ./do-cm3-std.sh build # OK<br>> >> > ./do-cm3-std.sh buildship # OK<br>> >> ><br>> >> > ./boot-cm3-with-m3.sh realclean # start over<br>> >> > ./boot-cm3-with-m3.sh build # OK<br>> >> > ./boot-cm3-with-m3.sh buildship # OK<br>> >> ><br>> >> > ./do-cm3-std.sh realclean # OK<br>> >> > ./do-cm3-std.sh build # dies miserably... maybe the =20<br>> >> > compiler can't handle the new libraries?<br>> >> ><br>> >> > ./install-cm3-compiler.sh upgrade # OK=2C new cm3 binary installed<br>> >> ><br>> >> > After all that=2C "game over." I have a cm3 that segfaults.<br>> >> ><br>> >> > Text.i3: In function 'Text_I3':<br>> >> > Text.i3:81: internal compiler error: Segmentation fault<br>> >> > Please submit a full bug report=2C<br>> >> > with preprocessed source if appropriate.<br>> >> > See <URL:http://gcc.gnu.org/bugs.html> for instructions.<br>> >> > compilation failed =3D> not building library "libm3core.a"<br>> >> > Fatal Error: package build failed<br>> >> > *** execution of failed ***<br>> >> ><br>> >> > I can't seem to get either m3gdb or gdb to say anything reasonable<br>> >> > either. ktrace shows nothing out of the ordinary.<br>> >> ><br>> >> > -----<br>> >> ><br>> >> > Meanwhile=2C my Mac got through "do-cm3-std.sh realclean" and<br>> >> > "do-cm3-std.sh buildship" but my compiles are still dying on the<br>> >> > same assertion tickled by ktok. On that machine I have INSTALLROOT<br>> >> > set to ~/cm3=2C but hopefully that has nothing to do with it...<br>> >> ><br>> >> > -----<br>> >> ><br>> >> > Does do-cm3-std.sh realclean clean EVERYTHING? If so my Mac should<br>> >> > really have a fresh setup. The FreeBSD=2C I am not sure=2C maybe the<br>> >> > old binary version just doesn't work right? Of course I could try<br>> >> > bootstrapping with PM3 as well... but really=2C there's an "approved"<br>> >> > process to get from a blank system=2C no?<br>> >> ><br>> >> > Mika<br>> >> ><br>> >> ><br>> >> ><br>> >> ><br>> >> > Tony Hosking writes:<br>> >> >> That sounds like you forgot to execute "do-cm3-std.sh realclean"<br>> >> >> before initiating the build. These sorts of errors sometimes arise<br>> >> >> if there are old build directories lying around.<br>> >> >><br>> >> >> On Jun 23=2C 2007=2C at 3:34 AM=2C Mika Nystrom wrote:<br>> >> >><br>> >> >>> Hello everyone=2C<br>> >> >>><br>> >> >>> I am in the process of trying to consolidate build systems for a<br>> >> >>> few software packages I am maintaining. Currently=2C I am using an<br>> >> >>> old PM3 on FreeBSD4=2C an ancient PM3 (from Klagenfurt?) for Windows<br>> >> >>> (NT386GNU)=2C and trying to get the latest CM3 from cvs up and =20<br>> >> >>> compiling<br>> >> >>> things on PPC_DARWIN. Ideally=2C I'd like to standardize everything<br>> >> >>> on the new PM3---mainly so that I can use pickles (and Network<br>> >> >>> Objects) across all three systems. I'd also like to add Linux to<br>> >> >>> the mix.<br>> >> >>><br>> >> >>> It's natural for me to start with CM3 on Darwin=2C as there's no<br>> >> >>> alternative. But I am getting some assertions failing. Everything<br>> >> >>> in the CM3 distribution compiles fine=2C and I believe I have compile=<br>> >d<br>> >> >>> the libraries a few times (that is=2C including with themselves)=2C a=<br>> >nd<br>> >> >>> updated the compiler=2C too (using boot-cm3-with-m3.sh). I just cvs<br>> >> >>> updated tonight.<br>> >> >>><br>> >> >>> Here's what I'm running into:<br>> >> >>><br>> >> >>> /Users/mika/t/parserlib/ktok/PPC_DARWIN/tok ../src/CHP.t -o =20<br>> >> >>> CHPTok.i3<br>> >> >>><br>> >> >>> ***<br>> >> >>> *** runtime error:<br>> >> >>> *** <*ASSERT*> failed.<br>> >> >>> *** file "../src/runtime/common/RTCollector.m3"=2C line 2314<br>> >> >>> ***<br>> >> >>><br>> >> >>> Abort<br>> >> >>><br>> >> >>> Also:<br>> >> >>><br>> >> >>> /Users/mika/t/parserlib/ktok/PPC_DARWIN/tok ../src/PRS.t -o =20<br>> >> >>> PRSTok.i3<br>> >> >>> Illegal instruction<br>> >> >>><br>> >> >>> As you can see=2C these things are coming from the caltech_parser. I<br>> >> >> am using<br>> >> >>> our local version=2C but I don't think it is very different from what<br>> >> >>> is in the<br>> >> >>> CM3 tree.<br>> >> >>><br>> >> >>> Examining the first error (the failed assertion) more closely=2C I se=<br>> >e<br>> >> >>> the following:<br>> >> >>><br>> >> >>> (gdb) list<br>> >> >>> 108 wr :=3D FileWr.Open(Pathname.ReplaceExt(tp.out=2C "m3"))=<br>> >=3B<br>> >> >>> 109 EXCEPT OSError.E =3D><br>> >> >>> 110 Debug.Error("Cannot open tok implementation output<br>> >> >>> file: " &<br>> >> >>> 111 Pathname.ReplaceExt(tp.out=2C "m3"))=3B<br>> >> >>> 112 END=3B<br>> >> >>> 113 Wr.PutText(wr=2C subs.apply(Bundle.Get(Form=2C =20<br>> >> >>> "tokform.m3")))=3B<br>> >> >>> 114 Wr.Close(wr)=3B<br>> >> >>> 115 END Main.<br>> >> >>> (gdb) where<br>> >> >>> #0 0x9004308c in kill ()<br>> >> >>> #1 0x9009fb3c in abort ()<br>> >> >>> #2 0x00096f50 in RTOS__Crash () at RTOS.m3:20<br>> >> >>> #3 0x0005bd40 in RTProcess__Crash (M3_Bd56fi_msg=3D0x0) at<br>> >> >>> RTProcess.m3:65<br>> >> >>> #4 0x0008e4e0 in RTError__EndError (M3_AicXUJ_crash=3D1 '\001') at<br>> >> >>> RTError.m3:115<br>> >> >>> #5 0x0008e08c in RTError__MsgS (M3_AJWxb1_file=3D0xc63d8=2C<br>> >> >>> M3_AcxOUs_line=3D2314=2C M3_Bd56fi_msgA=3D0xca3d0=2C<br>> >> >>> M3_Bd56fi_msgB=3D0xcbe90=2C M3_Bd56fi_msgC=3D0xca3d0) at RTError.m3:4=<br>> >0<br>> >> >>> #6 0x0008eb88 in RTException__Crash (M3_Cblw37_a=3D0xbfffee00=2C<br>> >> >>> M3_AicXUJ_raises=3D0 '\0'=2C M3_AJWxb1_rte=3D0xcb538) at RTException.=<br>> >m3:79<br>> >> >>> #7 0x0008e74c in RTException__DefaultBackstop<br>> >> >>> (M3_Cblw37_a=3D0xbfffee00=2C M3_AicXUJ_raises=3D0 '\0') at =20<br>> >> >>> RTException.m3:39<br>> >> >>> #8 0x0008e614 in RTException__InvokeBackstop<br>> >> >>> (M3_Cblw37_a=3D0xbfffee00=2C M3_AicXUJ_raises=3D0 '\0') at =20<br>> >> >>> RTException.m3:25<br>> >> >>> #9 0x00095d04 in RTException__Raise (M3_Cblw37_act=3D0xbfffee00) at<br>> >> >>> RTExFrame.m3:29<br>> >> >>> #10 0x0008e840 in RTException__DefaultBackstop<br>> >> >>> (M3_Cblw37_a=3D0xbfffee00=2C M3_AicXUJ_raises=3D0 '\0') at =20<br>> >> >>> RTException.m3:47<br>> >> >>> #11 0x0008e614 in RTException__InvokeBackstop<br>> >> >>> (M3_Cblw37_a=3D0xbfffee00=2C M3_AicXUJ_raises=3D0 '\0') at =20<br>> >> >>> RTException.m3:25<br>> >> >>> #12 0x00095d04 in RTException__Raise (M3_Cblw37_act=3D0xbfffee00) at<br>> >> >>> RTExFrame.m3:29<br>> >> >>> #13 0x00079740 in RTHooks__ReportFault (M3_AJWxb1_module=3D0xb3eb8=2C<br>> >> >>> M3_AcxOUs_info=3D74048) at RTHooks.m3:110<br>> >> >>> #14 0x0006ff4c in _m3_fault (M3_AcxOUs_arg=3D74048)<br>> >> >>> #15 0x0006bcf4 in RTHooks__CheckStoreTraced<br>> >> >>> (M3_Af40ku_ref=3D0xb2415c) at RTCollector.m3:2314<br>> >> >>> #16 0x000700e4 in ThreadPThread__InnerLockMutex<br>> >> >>> (M3_AYIbX3_m=3D0xb2415c=2C M3_BXP32l_self=3D0xb24014) at<br>> >> >>> ThreadPThread.m3:126<br>> >> >>> #17 0x000704d8 in ThreadPThread__LockMutex (M3_AYIbX3_m=3D0xb2415c)<br>> >> >>> at ThreadPThread.m3:153<br>> >> >>> #18 0x00019b24 in Wr__PutText (M3_BxxOH1_wr=3D0xb2415c=2C<br>> >> >>> M3_Bd56fi_t=3D0xb44d5c) at Wr.m3:93<br>> >> >>> #19 0x00003f74 in Main_M3 (M3_AcxOUs_mode=3D1) at Main.m3:113<br>> >> >>> #20 0x0005b1c4 in RTLinker__RunMainBody (M3_DjPxE3_m=3D0xad190) at<br>> >> >>> RTLinker.m3:399<br>> >> >>> #21 0x00059f88 in RTLinker__AddUnitI (M3_DjPxE3_m=3D0xad190) at<br>> >> >>> RTLinker.m3:113<br>> >> >>> #22 0x0005a084 in RTLinker__AddUnit (M3_DjPxE5_b=3D0x3600) at<br>> >> >>> RTLinker.m3:122<br>> >> >>> #23 0x00001fac in main (argc=3D4=2C argv=3D0xbffffb24=2C envp=3D0xbff=<br>> >ffb38)<br>> >> >>> at _m3main.mc:4<br>> >> >>> (gdb)<br>> >> >>><br>> >> >>> The second error:<br>> >> >>><br>> >> >>> Program received signal EXC_BAD_INSTRUCTION=2C Illegal instruction/<br>> >> >>> operand.<br>> >> >>> 0x00b111ac in ?? ()<br>> >> >>> (gdb) where<br>> >> >>> #0 0x00b111ac in ?? ()<br>> >> >>> #1 0x0001214c in TextSubs__Apply (M3_CN69dV_self=3D0xb26450=2C<br>> >> >>> M3_Bd56fi_src=3D0xb21cec) at TextSubs.m3:63<br>> >> >>> #2 0x0005b1c4 in RTLinker__RunMainBody (M3_DjPxE3_m=3D0xad190) at<br>> >> >>> RTLinker.m3:399<br>> >> >>> #3 0x00059f88 in RTLinker__AddUnitI (M3_DjPxE3_m=3D0xad190) at<br>> >> >>> RTLinker.m3:113<br>> >> >>> #4 0x0005a084 in RTLinker__AddUnit (M3_DjPxE5_b=3D0x3600) at<br>> >> >>> RTLinker.m3:122<br>> >> >>> #5 0x00001fac in main (argc=3D4=2C argv=3D0xbffffb24=2C envp=3D0xbff=<br>> >ffb38)<br>> >> >>> at _m3main.mc:4<br>> >> >>> (gdb) list<br>> >> >>> 58 BEGIN<br>> >> >>> 59 WHILE pos < textLen DO<br>> >> >>> 60 c :=3D Text.GetChar(src=2C pos)=3B<br>> >> >>> 61 IF c IN self.starts THEN<br>> >> >>> 62 (* S("analysing: " & Text.Sub(src=2C pos)=2C<br>> >> >>> DebugLevel)=3B *)<br>> >> >>> 63 iter :=3D self.tbl.iterateOrdered()=3B<br>> >> >>> 64 ind :=3D pos=3B<br>> >> >>> 65 original :=3D ""=3B<br>> >> >>> 66 REPEAT<br>> >> >>> 67 INC(ind)=3B<br>> >> >>> (gdb)<br>> >> >>><br>> >> >>> Any ideas what to look at?<br>> >> >>><br>> >> >>> I don't know if this is relevant:<br>> >> >>><br>> >> >>> [lapdog:~/t/cit_parse/PPC_DARWIN] mika% uname -a<br>> >> >>> Darwin lapdog.local 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30<br>> >> >>> 20:11:17 PST 2005=3B root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC Power<br>> >> >>> Macintosh powerpc<br>> >> >>> [lapdog:~/t/cit_parse/PPC_DARWIN] mika% gcc -v<br>> >> >>> Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs<br>> >> >>> Thread model: posix<br>> >> >>> gcc version 3.3 20030304 (Apple Computer=2C Inc. build 1666)<br>> >> >>><br>> >> >>> Mika<br>> >> >>><br>> >> >>> P.S. Am I correct in assuming that I can get CM3 to build on =20<br>> >> >>> Windows?<br>> >> >>> I could switch to CM3 on Unix any time=2C of course=2C but I've never<br>> >> >>> had luck with it on Windows=2C which is why I am using the ancient<br>> >> >>> Klagenfurt PM3=2C which comes on 40-odd "floppies" and a .EXE that<br>> >> >>> unpacks them into C: (and installation instructions only in German).<br>> >> >>> If CM3 doesn't work on Windows=2C I am essentially wasting my time=2C<br>> >> >>> as the current project I am working on absolutely requires that the<br>> >> >>> software run on Windows 2003 Server (yes=2C it sucks=2C but what can<br>> >> >>> you do?) The very old PM3 at least kind of hobbles along on this<br>> >> >>> platform---actually=2C better than that=3B it does Trestle natively<br>> >> >>> under Windows (no X required)=2C at least on SOME Windows machines.<br>> >> >>><br>> >> >>> P.P.S. Sorry for all the postscripts=2C but is it true that the<br>> >> >>> build system has been changed so that building with overrides =20<br>> >> >>> (cm3 -x)<br>> >> >>> requires having the compiler sources available? It didn't use to<br>> >> >>> be that way=2C but I can't get Network Objects to work with overrides<br>> >> >>> now unless I have the sources available... It's a bit of a pain<br>> >> >>> because it means that every user has to have the compiler sources=2C<br>> >> >>> or else ship everything=2C or was that not the intention?<br>> > =<br>> ><br>> >--_6374b72e-0dad-4a03-8d22-4a59e0218226_<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: 10pt=3B<br>> >font-family:Tahoma<br>> >}<br>> >--></style><br>> ></head><br>> ><body class=3D'hmmessage'>I upgrade across incompatibilities frequently & H=<br>> >udson does now too. The existing scripts work very well and you would be fo=<br>> >olish to not use them. Just use upgrade.py. It is very easy. Or upgrade.py =<br>> >nocleangcc. And then do-cm3-all.py skipgcc realclean && do-cm3-all.py build=<br>> >ship.py.<br><br> - Jay/phone<br><br>> To:=3B jay.krell@=3Bcornell.edu=<br>> ><br>> Date:=3B Sat=2C 8 Jan 2011 04:=3B14:=3B41 -0800<br>> From=<br>> >8=3B mika@=3Basync.caltech.edu<br>> CC:=3B m3devel@=3Belegosoft.co=<br>> >m<br>> Subject:=3B Re:=3B [=3BM3devel]=3B another Snow Leopard =<br>> >compiler crash<br>> <br>> Jay K writes:=3B<br>> >=3B<br>> >=3BPlea=<br>> >se try this Mika. It fixes the problem for me.<br>> <br>> Hi Jay=2C<br>> <b=<br>> >r>> So I upgraded to the CVS head and now I get a segfaulting compiler:=<br>> >=3B<br>> <br>> [=3Bhal:=3Bcm3/m3-libs/m3core]=3B mika%=3B gdb &=<br>> >#36=3BCM3<br>> GNU gdb 6.3.50-20050815 (=3BApple version gdb-1510)=3B=<br>> > (=3BWed Sep 22 02:=3B45:=3B02 UTC 2010)=3B<br>> Copyright 2004=<br>> > Free Software Foundation=2C Inc.<br>> GDB is free software=2C covered by t=<br>> >he GNU General Public License=2C and you are<br>> welcome to change it and/=<br>> >or distribute copies of it under certain conditions.<br>> Type "=3Bshow =<br>> >copying"=3B to see the conditions.<br>> There is absolutely no warranty =<br>> >for GDB. Type "=3Bshow warranty"=3B for details.<br>> This GDB was c=<br>> >onfigured as "=3Bx86_64-apple-darwin"=3B...Reading symbols for shared=<br>> > libraries ...... done<br>> <br>> (=3Bgdb)=3B run<br>> Starting progr=<br>> >am:=3B /usr/local/cm3/pkg/cm3/I386_DARWIN/cm3 <br>> Reading symbols for =<br>> >shared libraries .+=3B+=3B+=3B+=3B+=3B.......... done<br>> <=<br>> >br>> Program received signal EXC_BAD_ACCESS=2C Could not access memory.<br>=<br>> >> Reason:=3B KERN_PROTECTION_FAILURE at address:=3B 0x0000038b<br>> 0=<br>> >x9713354b in _longjmp (=3B)=3B<br>> (=3Bgdb)=3B where<br>> #=<br>> >=3B0 0x9713354b in _longjmp (=3B)=3B<br>> #=3B1 0x00285d2b in RT=<br>> >ExFrame__InvokeHandler (=3Bf==3B0xbffff34c=2C a==3B0xbffff23c)=<br>> >=3B at ../src/runtime/ex_frame/RTExFrame.m3:=3B175<br>> #=3B2 0x0028=<br>> >5be4 in RTException__ResumeRaise (=3Ba==3B0xbffff23c)=3B at ../src=<br>> >/runtime/ex_frame/RTExFrame.m3:=3B145<br>> #=3B3 0x00285a1b in RTExc=<br>> >eption__Raise (=3Bact==3B0xbffff23c)=3B at ../src/runtime/ex_frame=<br>> >/RTExFrame.m3:=3B91<br>> #=3B4 0x00269d44 in RTHooks__Raise (=3Be=<br>> >x==3B0x35a720=2C arg==3B0x181cddc=2C module==3B0x398080=2C line=<br>> >1=3B50)=3B at ../src/runtime/common/RTHooks.m3:=3B79<br>> #=3B5 0=<br>> >x0023adbc in OSErrorPosix__Raise0 (=3Berrno==3B2)=3B at ../src/os/=<br>> >POSIX/OSErrorPosix.m3:=3B50<br>> #=3B6 0x0023cffc in FSPosix__Fail &=<br>> >#40=3Bp==3B0x181cdc0=2C f==3B0xf049f0)=3B at ../src/os/POSIX/FSPos=<br>> >ix.m3:=3B359<br>> #=3B7 0x0023cdd4 in FS__Status (=3Bpn==3B0x1=<br>> >81cdc0=2C _result==3B0xbffff3c8)=3B at ../src/os/POSIX/FSPosix.m3:=<br>> >=3B328<br>> #=3B8 0x00217d24 in M3File__IsReadable (=3Bpath==3B0x=<br>> >181cdc0)=3B at ../src/M3File.m3:=3B123<br>> #=3B9 0x000a057f in M=<br>> >xConfig__TryConfig (=3Ba==3B0x3255e0=2C b==3B0x3255f0=2C c==3B0=<br>> >x0)=3B at ../src/MxConfig.m3:=3B122<br>> #=3B10 0x0009ff67 in MxCo=<br>> >nfig__FindConfig (=3B)=3B at ../src/MxConfig.m3:=3B51<br>> #=3B=<br>> >11 0x0009fcd8 in MxConfig__FindFile (=3B)=3B at ../src/MxConfig.m3=<br>> >8=3B19<br>> #=3B12 0x0002c446 in Main__DoIt (=3B)=3B at ../src/Mai=<br>> >n.m3:=3B32<br>> #=3B13 0x0002d1e9 in Main_M3 (=3Bmode==3B1)=<br>> >=3B at ../src/Main.m3:=3B214<br>> #=3B14 0x0027a781 in RTLinker__RunM=<br>> >ainBody (=3Bm==3B0x3705a0)=3B at ../src/runtime/common/RTLinker.m3=<br>> >:=3B406<br>> #=3B15 0x00279bb6 in RTLinker__AddUnitI (=3Bm==3B0=<br>> >x3705a0)=3B at ../src/runtime/common/RTLinker.m3:=3B113<br>> #=3B1=<br>> >6 0x00279c3a in RTLinker__AddUnit (=3Bb==3B0x2d1d0)=3B at ../src/r=<br>> >untime/common/RTLinker.m3:=3B122<br>> #=3B17 0x00002cfc in main (=<br>> >=3Bargc==3B1=2C argv==3B0xbffff674=2C envp==3B0xbffff67c)=3B at=<br>> > _m3main.c:=3B16<br>> (=3Bgdb)=3B <br>> <br>> I followed upgrade i=<br>> >nstructions from Tony (=3Bincluding upgrading the<br>> back-end)=3B--=<br>> >-I have edited the instructions a bit to track changes in <br>> CM3. I'=<br>> >=3Bm starting from head three weeks old..<br>> <br>> Mika<br>> <br>> =<br>> ><br>> Return-Path:=3B hosking@=3Bcs.purdue.edu<br>> Delivery-Date:=<br>> >=3B Sun Jun 24 07:=3B38:=3B38 2007<br>> In-Reply-To:=3B <=3B200=<br>> >706231838.l5NIcRef079333@=3Bcamembert.async.caltech.edu>=3B<br>> Refe=<br>> >rences:=3B <=3B200706231838.l5NIcRef079333@=3Bcamembert.async.calt=<br>> >ech.edu>=3B<br>> <br>> Sounds like we really need some work done in this=<br>> > area. I very <br>> rarely use the build scripts=2C since I bootstrap man=<br>> >ually from old <br>> compilers to new compilers rather than use the script=<br>> >s. I suggest <br>> the following approach=2C which I hope you will try=2C=<br>> > and then report <br>> back on.<br>> <br>> Install the bootstrap compiler =<br>> >as you did originally:=3B<br>> <br>> >=3B rm -rf /usr/local/cm3/*=<br>> >=3B<br>> >=3B<br>> >=3B cd ~=3B/cm3-cvs<br>> >=3B mkdir boot<b=<br>> >r>> >=3B cd boot<br>> >=3B tar xzvf ../cm3-min-POSIX-FreeBSD4-d5.3.1-=<br>> >2005-10-05.tgz<br>> >=3B ./cminstall<br>> <br>> <br>> Now you will have =<br>> >some kind of cm3 installed=2C presumably in /usr/ <br>> local/cm3/bin/cm3.<=<br>> >br>> <br>> Make sure you have a fresh CVS checkout in directory cm3 (=3B=<br>> >let'=3Bs <br>> assume this is in your home directory ~=3B/cm3)=<br>> >=3B. Also=2C make sure you <br>> have an up-to-date version of the CM3 ba=<br>> >ckend compiler cm3cg <br>> installed by executing the following:=3B<br>=<br>> >> <br>> STEP 0:=3B<br>> <br>> export CM3==3B/usr/local/cm3/bin/cm3<br=<br>> >>> cd ~=3B/cm3/m3-sys/m3cc<br>> $=3BCM3<br>> $=3BCM3 -ship<br>> <=<br>> >br>> You can skip this last step if you know your backend compiler is up <=<br>> >br>> to date.<br>> <br>> Now=2C let'=3Bs build the new compiler from scr=<br>> >atch (=3Bthis is the sequence <br>> I use regularly to test changes to =<br>> >the run-time system whenever I <br>> make them)=3B:=3B<br>> <br>> ca=<br>> >n replace compilation step with<br>> <br>> rm -rf <=3Bder. dir>=3B &#=<br>> >38=3B&=3B $=3BCM3 &=3B&=3B $=3BCM3 -ship <br>> <br>> <br>> S=<br>> >TEP 1:=3B<br>> <br>> (=3Bdo these LATER if bootstrapping from old com=<br>> >piler!=3B)=3B<br>> cd ~=3B/cm3/m3-libs/m3core<br>> $=3BCM3<br>=<br>> >> $=3BCM3 -ship<br>> cd ~=3B/cm3/m3-libs/libm3<br>> $=3BCM3<br>> =<br>> >$=3BCM3 -ship<br>> <br>> Now build the compiler:=3B<br>> <br>> cd &#=<br>> >126=3B/cm3/m3-libs/sysutils ;=3B $=3BCM3 etc.<br>> <br>> cd ~=3B/=<br>> >cm3/m3-sys/m3middle;=3B $=3BCM3 etc.<br>> <br>> repeat for:=3B<br>=<br>> >> <br>> m3-sys/m3objfile <br>> <br>> m3-sys/m3back <br>> <br>> m3-sys/m3lin=<br>> >ker<br>> <br>> m3-sys/m3front<br>> <br>> m3-sys/m3quake<br>> <br>> m3-sys/c=<br>> >m3<br>> <br>> [=3B here we may need -DROOT==3B<=3Broot dir=2C e.g.=<br>> >=2C /home/mika/cm3>=3B ]=3B<br>> <br>> <br>> At this point you should=<br>> > have a bootstrapped version of cm3 installed <br>> in the directory /usr/=<br>> >local/cm3/pkg/cm3/TARGET/cm3 (=3Bwhere TARGET is <br>> the CM3 target p=<br>> >latform you are building on -- e.g.=2C LINUXLIBC6=2C <br>> PPC_DARWIN=2C .=<br>> >..)=3B. Note that this did not overwrite your original <br>> installed=<br>> > compiler in /usr/local/cm3/bin/cm3. We<br>> are now going to test the new=<br>> > compiler=2C which was built using the old <br>> compiler=2C by bootstrapp=<br>> >ing it one more time.<br>> <br>> <br>> *=3B*=3B*=3B*=3B*=3B&=<br>> >#42=3B*=3B THIS IS WHERE I HAVE A SEGFAULTING COMPILER *=3B*=3B=<br>> >2=3B*=3B*=3B*=3B*=3B<br>> <br>> (=3BIf m3core and libm3 were=<br>> > skipped earlier=2C do them now=2C and RE-DO all<br>> of the above packages=<br>> > before proceeding.)=3B<br>> <br>> From here on out=2C please replace TA=<br>> >RGET with your target platform as <br>> appropriate.<br>> <br>> STEP 2:=<br>> >=3B<br>> <br>> export CM3==3B/usr/local/cm3/pkg/cm3/TARGET/cm3<br>> cd &=<br>> >#126=3B/cm3/scripts<br>> <br>> ./do-cm3-std.sh realclean<br>> REPEAT STEP 1=<br>> > to rebuild the libraries and the compiler using the <br>> STEP 1 bootstra=<br>> >p compiler.<br>> <br>> Now you have a STEP 2 bootstrap compiler installed i=<br>> >n /usr/local/cm3/ <br>> pkg/cm3/TARGET/cm3. Let'=3Bs assume the new com=<br>> >piler now works properly <br>> since it successfully bootstrapped itself=<br>> >=2C but to be sure we can now <br>> use it to rebuild the world:=3B<br>=<br>> >> <br>> cd ~=3B/cm3/scripts<br>> ./do-cm3-std.sh realclean<br>> ./do-cm=<br>> >3-std.sh buildship<br>> <br>> Assuming this succeeded then we can be pretty=<br>> > sure /usr/local/cm3/pkg/ <br>> cm3/TARGET/cm3 is good=2C so we can make it=<br>> > our default compiler by <br>> replacing the original /usr/local/cm3/bin/c=<br>> >m3:=3B<br>> <br>> cp $=3BCM3 /usr/local/cm3/bin/cm3<br>> <br>> On Jun=<br>> > 23=2C 2007=2C at 2:=3B38 PM=2C Mika Nystrom wrote:=3B<br>> <br>> =<br>> >2=3B Ok=2C I'=3Bm sorry if I seem a bit dimwitted in the morning like th=<br>> >is=2C<br>> >=3B but how exactly does one get started?=3B I wish ther=<br>> >e were a file called<br>> >=3B "=3BGETTING_STARTED"=3B or somethin=<br>> >g like that in scripts...<br>> >=3B<br>> >=3B My Mac is very slow so =<br>> >I switched to my FreeBSD/i386 system (=3Bwhich has<br>> >=3B PM3 happ=<br>> >ily installed on it)=3B and tried to install CM3 from scratch.<br>> >=<br>> >=3B Here are the exact commands I typed.<br>> >=3B<br>> >=3B<br>> =<br>> >2=3B rm -rf /usr/local/cm3/*=3B<br>> >=3B<br>> >=3B cd ~=3B/cm=<br>> >3-cvs<br>> >=3B mkdir boot<br>> >=3B cd boot<br>> >=3B tar xzvf ..=<br>> >/cm3-min-POSIX-FreeBSD4-d5.3.1-2005-10-05.tgz<br>> >=3B ./cminstall<br>>=<br>> > >=3B<br>> >=3B #=3B now I seem to have some kind of cm3 installed=<br>> >=2C /usr/local/cm3/bin/ <br>> >=3B cm3<br>> >=3B<br>> >=3B cd cm3 =<br>> > #=3B location of my CM3 checkout<br>> >=3B cvs update -d .<br>> =<br>> >2=3B<br>> >=3B cd scripts<br>> >=3B ./boot-cm3-with-m3.sh realclean<b=<br>> >r>> >=3B ./do-cm3-std.sh realclean<br>> >=3B<br>> >=3B ./upgrade.s=<br>> >h #=3B fails here=2C libm3 not compiled<br>> >=<br>> >=3B ./boot-cm3-with-m3.sh build #=3B builds cm3=2C but fails on <=<br>> >br>> >=3B cminstall=2C patternmatching not built<br>> >=3B<br>> >=<br>> >=3B ./do-cm3-std.sh build #=3B OK<br>> >=3B ./do-cm3-std.=<br>> >sh buildship #=3B OK<br>> >=3B<br>> >=3B ./boot-cm3-with-m=<br>> >3.sh realclean #=3B start over<br>> >=3B ./boot-cm3-with-m3.sh buil=<br>> >d #=3B OK<br>> >=3B ./boot-cm3-with-m3.sh buildship #=3B O=<br>> >K<br>> >=3B<br>> >=3B ./do-cm3-std.sh realclean #=3B OK<br=<br>> >>> >=3B ./do-cm3-std.sh build #=3B dies miserably... mayb=<br>> >e the <br>> >=3B compiler can'=3Bt handle the new libraries?=3B<b=<br>> >r>> >=3B<br>> >=3B ./install-cm3-compiler.sh upgrade #=3B OK=2C ne=<br>> >w cm3 binary installed<br>> >=3B<br>> >=3B After all that=2C "=3Bg=<br>> >ame over."=3B I have a cm3 that segfaults.<br>> >=3B<br>> >=3B Te=<br>> >xt.i3:=3B In function '=3BText_I3'=3B:=3B<br>> >=3B Text.i3&=<br>> >#58=3B81:=3B internal compiler error:=3B Segmentation fault<br>> >=<br>> >=3B Please submit a full bug report=2C<br>> >=3B with preprocessed sourc=<br>> >e if appropriate.<br>> >=3B See <=3BURL:=3Bhttp:=3B//gcc.gnu.or=<br>> >g/bugs.html>=3B for instructions.<br>> >=3B compilation failed ==<br>> >=3B>=3B not building library "=3Blibm3core.a"=3B<br>> >=3B Fata=<br>> >l Error:=3B package build failed<br>> >=3B *=3B*=3B*=3B exe=<br>> >cution of failed *=3B*=3B*=3B<br>> >=3B<br>> >=3B I can'=<br>> >=3Bt seem to get either m3gdb or gdb to say anything reasonable<br>> >=<br>> >=3B either. ktrace shows nothing out of the ordinary.<br>> >=3B<br>> &#=<br>> >62=3B -----<br>> >=3B<br>> >=3B Meanwhile=2C my Mac got through "=<br>> >=3Bdo-cm3-std.sh realclean"=3B and<br>> >=3B "=3Bdo-cm3-std.sh bui=<br>> >ldship"=3B but my compiles are still dying on the<br>> >=3B same asse=<br>> >rtion tickled by ktok. On that machine I have INSTALLROOT<br>> >=3B set=<br>> > to ~=3B/cm3=2C but hopefully that has nothing to do with it...<br>> &#=<br>> >62=3B<br>> >=3B -----<br>> >=3B<br>> >=3B Does do-cm3-std.sh realc=<br>> >lean clean EVERYTHING?=3B If so my Mac should<br>> >=3B really have =<br>> >a fresh setup. The FreeBSD=2C I am not sure=2C maybe the<br>> >=3B old =<br>> >binary version just doesn'=3Bt work right?=3B Of course I could try<=<br>> >br>> >=3B bootstrapping with PM3 as well... but really=2C there'=3Bs =<br>> >an "=3Bapproved"=3B<br>> >=3B process to get from a blank system=<br>> >=2C no?=3B<br>> >=3B<br>> >=3B Mika<br>> >=3B<br>> >=<br>> >=3B<br>> >=3B<br>> >=3B<br>> >=3B Tony Hosking writes:=3B<br>> =<br>> >>=3B>=3B That sounds like you forgot to execute "=3Bdo-cm3-std.sh =<br>> >realclean"=3B<br>> >=3B>=3B before initiating the build. These so=<br>> >rts of errors sometimes arise<br>> >=3B>=3B if there are old build di=<br>> >rectories lying around.<br>> >=3B>=3B<br>> >=3B>=3B On Jun 23=<br>> >=2C 2007=2C at 3:=3B34 AM=2C Mika Nystrom wrote:=3B<br>> >=3B>=<br>> >=3B<br>> >=3B>=3B>=3B Hello everyone=2C<br>> >=3B>=3B>=3B=<br>> ><br>> >=3B>=3B>=3B I am in the process of trying to consolidate bu=<br>> >ild systems for a<br>> >=3B>=3B>=3B few software packages I am mai=<br>> >ntaining. Currently=2C I am using an<br>> >=3B>=3B>=3B old PM3 on=<br>> > FreeBSD4=2C an ancient PM3 (=3Bfrom Klagenfurt?=3B)=3B for Window=<br>> >s<br>> >=3B>=3B>=3B (=3BNT386GNU)=3B=2C and trying to get th=<br>> >e latest CM3 from cvs up and <br>> >=3B>=3B>=3B compiling<br>> &#=<br>> >62=3B>=3B>=3B things on PPC_DARWIN. Ideally=2C I'=3Bd like to sta=<br>> >ndardize everything<br>> >=3B>=3B>=3B on the new PM3---mainly so t=<br>> >hat I can use pickles (=3Band Network<br>> >=3B>=3B>=3B Objects=<br>> >)=3B across all three systems. I'=3Bd also like to add Linux to<br>>=<br>> > >=3B>=3B>=3B the mix.<br>> >=3B>=3B>=3B<br>> >=3B>=<br>> >=3B>=3B It'=3Bs natural for me to start with CM3 on Darwin=2C as ther=<br>> >e'=3Bs no<br>> >=3B>=3B>=3B alternative. But I am getting some=<br>> > assertions failing. Everything<br>> >=3B>=3B>=3B in the CM3 dist=<br>> >ribution compiles fine=2C and I believe I have compiled<br>> >=3B>=3B=<br>> >>=3B the libraries a few times (=3Bthat is=2C including with themselv=<br>> >es)=3B=2C and<br>> >=3B>=3B>=3B updated the compiler=2C too =<br>> >0=3Busing boot-cm3-with-m3.sh)=3B. I just cvs<br>> >=3B>=3B>=<br>> >=3B updated tonight.<br>> >=3B>=3B>=3B<br>> >=3B>=3B>=3B =<br>> >Here'=3Bs what I'=3Bm running into:=3B<br>> >=3B>=3B>=3B<=<br>> >br>> >=3B>=3B>=3B /Users/mika/t/parserlib/ktok/PPC_DARWIN/tok ../s=<br>> >rc/CHP.t -o <br>> >=3B>=3B>=3B CHPTok.i3<br>> >=3B>=3B>=<br>> >=3B<br>> >=3B>=3B>=3B *=3B*=3B*=3B<br>> >=3B>=3B=<br>> >2=3B *=3B*=3B*=3B runtime error:=3B<br>> >=3B>=3B>=3B =<br>> >*=3B*=3B*=3B <=3B*=3BASSERT*=3B>=3B failed.<br>> &#=<br>> >62=3B>=3B>=3B *=3B*=3B*=3B file "=3B../src/runtime/com=<br>> >mon/RTCollector.m3"=3B=2C line 2314<br>> >=3B>=3B>=3B *=3B&#=<br>> >42=3B*=3B<br>> >=3B>=3B>=3B<br>> >=3B>=3B>=3B Abort<br=<br>> >>> >=3B>=3B>=3B<br>> >=3B>=3B>=3B Also:=3B<br>> >=<br>> >=3B>=3B>=3B<br>> >=3B>=3B>=3B /Users/mika/t/parserlib/ktok/P=<br>> >PC_DARWIN/tok ../src/PRS.t -o <br>> >=3B>=3B>=3B PRSTok.i3<br>> &=<br>> >#62=3B>=3B>=3B Illegal instruction<br>> >=3B>=3B>=3B<br>> &#=<br>> >62=3B>=3B>=3B As you can see=2C these things are coming from the calt=<br>> >ech_parser. I<br>> >=3B>=3B am using<br>> >=3B>=3B>=3B our =<br>> >local version=2C but I don'=3Bt think it is very different from what<br>=<br>> >> >=3B>=3B>=3B is in the<br>> >=3B>=3B>=3B CM3 tree.<br>>=<br>> > >=3B>=3B>=3B<br>> >=3B>=3B>=3B Examining the first error=<br>> > (=3Bthe failed assertion)=3B more closely=2C I see<br>> >=3B>=<br>> >=3B>=3B the following:=3B<br>> >=3B>=3B>=3B<br>> >=3B>=<br>> >=3B>=3B (=3Bgdb)=3B list<br>> >=3B>=3B>=3B 108 wr=<br>> > :=3B==3B FileWr.Open(=3BPathname.ReplaceExt(=3Btp.out=2C "=<br>> >=3Bm3"=3B)=3B)=3B;=3B<br>> >=3B>=3B>=3B 109 EXCE=<br>> >PT OSError.E ==3B>=3B<br>> >=3B>=3B>=3B 110 Debug.Er=<br>> >ror(=3B"=3BCannot open tok implementation output<br>> >=3B>=3B&=<br>> >#62=3B file:=3B "=3B &=3B<br>> >=3B>=3B>=3B 111 =<br>> > Pathname.ReplaceExt(=3Btp.out=2C "=3Bm3"=3B)=3B)=3B;=3B<=<br>> >br>> >=3B>=3B>=3B 112 END;=3B<br>> >=3B>=3B>=3B =<br>> >113 Wr.PutText(=3Bwr=2C subs.apply(=3BBundle.Get(=3BForm=2C =<br>> > <br>> >=3B>=3B>=3B "=3Btokform.m3"=3B)=3B)=3B)=3B&=<br>> >#59=3B<br>> >=3B>=3B>=3B 114 Wr.Close(=3Bwr)=3B;=3B=<br>> ><br>> >=3B>=3B>=3B 115 END Main.<br>> >=3B>=3B>=3B &#=<br>> >40=3Bgdb)=3B where<br>> >=3B>=3B>=3B #=3B0 0x9004308c in ki=<br>> >ll (=3B)=3B<br>> >=3B>=3B>=3B #=3B1 0x9009fb3c in abort =<br>> >(=3B)=3B<br>> >=3B>=3B>=3B #=3B2 0x00096f50 in RTOS__Cra=<br>> >sh (=3B)=3B at RTOS.m3:=3B20<br>> >=3B>=3B>=3B #=3B3 =<br>> >0x0005bd40 in RTProcess__Crash (=3BM3_Bd56fi_msg==3B0x0)=3B at<br>=<br>> >> >=3B>=3B>=3B RTProcess.m3:=3B65<br>> >=3B>=3B>=3B &#=<br>> >35=3B4 0x0008e4e0 in RTError__EndError (=3BM3_AicXUJ_crash==3B1 '=<br>> >=3B\=3B001'=3B)=3B at<br>> >=3B>=3B>=3B RTError.m3:=3B=<br>> >115<br>> >=3B>=3B>=3B #=3B5 0x0008e08c in RTError__MsgS (=<br>> >=3BM3_AJWxb1_file==3B0xc63d8=2C<br>> >=3B>=3B>=3B M3_AcxOUs_lin=<br>> >e==3B2314=2C M3_Bd56fi_msgA==3B0xca3d0=2C<br>> >=3B>=3B>=3B =<br>> >M3_Bd56fi_msgB==3B0xcbe90=2C M3_Bd56fi_msgC==3B0xca3d0)=3B at RTEr=<br>> >ror.m3:=3B40<br>> >=3B>=3B>=3B #=3B6 0x0008eb88 in RTExcept=<br>> >ion__Crash (=3BM3_Cblw37_a==3B0xbfffee00=2C<br>> >=3B>=3B>=<br>> >=3B M3_AicXUJ_raises==3B0 '=3B\=3B0'=3B=2C M3_AJWxb1_rte==3B=<br>> >0xcb538)=3B at RTException.m3:=3B79<br>> >=3B>=3B>=3B #=<br>> >=3B7 0x0008e74c in RTException__DefaultBackstop<br>> >=3B>=3B>=3B=<br>> > (=3BM3_Cblw37_a==3B0xbfffee00=2C M3_AicXUJ_raises==3B0 '=3B	=<br>> >2=3B0'=3B)=3B at <br>> >=3B>=3B>=3B RTException.m3:=3B39=<br>> ><br>> >=3B>=3B>=3B #=3B8 0x0008e614 in RTException__InvokeBack=<br>> >stop<br>> >=3B>=3B>=3B (=3BM3_Cblw37_a==3B0xbfffee00=2C M3_A=<br>> >icXUJ_raises==3B0 '=3B\=3B0'=3B)=3B at <br>> >=3B>=3B=<br>> >>=3B RTException.m3:=3B25<br>> >=3B>=3B>=3B #=3B9 0x0009=<br>> >5d04 in RTException__Raise (=3BM3_Cblw37_act==3B0xbfffee00)=3B at<=<br>> >br>> >=3B>=3B>=3B RTExFrame.m3:=3B29<br>> >=3B>=3B>=3B=<br>> > #=3B10 0x0008e840 in RTException__DefaultBackstop<br>> >=3B>=3B&#=<br>> >62=3B (=3BM3_Cblw37_a==3B0xbfffee00=2C M3_AicXUJ_raises==3B0 '=<br>> >=3B\=3B0'=3B)=3B at <br>> >=3B>=3B>=3B RTException.m3=<br>> >8=3B47<br>> >=3B>=3B>=3B #=3B11 0x0008e614 in RTException__Invo=<br>> >keBackstop<br>> >=3B>=3B>=3B (=3BM3_Cblw37_a==3B0xbfffee00=<br>> >=2C M3_AicXUJ_raises==3B0 '=3B\=3B0'=3B)=3B at <br>> >=<br>> >=3B>=3B>=3B RTException.m3:=3B25<br>> >=3B>=3B>=3B #=<br>> >=3B12 0x00095d04 in RTException__Raise (=3BM3_Cblw37_act==3B0xbfffee0=<br>> >0)=3B at<br>> >=3B>=3B>=3B RTExFrame.m3:=3B29<br>> >=3B&#=<br>> >62=3B>=3B #=3B13 0x00079740 in RTHooks__ReportFault (=3BM3_AJWxb1_=<br>> >module==3B0xb3eb8=2C<br>> >=3B>=3B>=3B M3_AcxOUs_info==3B740=<br>> >48)=3B at RTHooks.m3:=3B110<br>> >=3B>=3B>=3B #=3B14 0x00=<br>> >06ff4c in _m3_fault (=3BM3_AcxOUs_arg==3B74048)=3B<br>> >=3B=<br>> >2=3B>=3B #=3B15 0x0006bcf4 in RTHooks__CheckStoreTraced<br>> >=3B&=<br>> >#62=3B>=3B (=3BM3_Af40ku_ref==3B0xb2415c)=3B at RTCollector.m3&=<br>> >#58=3B2314<br>> >=3B>=3B>=3B #=3B16 0x000700e4 in ThreadPThread=<br>> >__InnerLockMutex<br>> >=3B>=3B>=3B (=3BM3_AYIbX3_m==3B0xb241=<br>> >5c=2C M3_BXP32l_self==3B0xb24014)=3B at<br>> >=3B>=3B>=3B Th=<br>> >readPThread.m3:=3B126<br>> >=3B>=3B>=3B #=3B17 0x000704d8 in=<br>> > ThreadPThread__LockMutex (=3BM3_AYIbX3_m==3B0xb2415c)=3B<br>> =<br>> >2=3B>=3B>=3B at ThreadPThread.m3:=3B153<br>> >=3B>=3B>=3B=<br>> > #=3B18 0x00019b24 in Wr__PutText (=3BM3_BxxOH1_wr==3B0xb2415c=2C<=<br>> >br>> >=3B>=3B>=3B M3_Bd56fi_t==3B0xb44d5c)=3B at Wr.m3:=<br>> >=3B93<br>> >=3B>=3B>=3B #=3B19 0x00003f74 in Main_M3 (=3BM3_=<br>> >AcxOUs_mode==3B1)=3B at Main.m3:=3B113<br>> >=3B>=3B>=3B =<br>> >#=3B20 0x0005b1c4 in RTLinker__RunMainBody (=3BM3_DjPxE3_m==3B0xad=<br>> >190)=3B at<br>> >=3B>=3B>=3B RTLinker.m3:=3B399<br>> >=3B=<br>> >>=3B>=3B #=3B21 0x00059f88 in RTLinker__AddUnitI (=3BM3_DjPxE3_=<br>> >m==3B0xad190)=3B at<br>> >=3B>=3B>=3B RTLinker.m3:=3B113<=<br>> >br>> >=3B>=3B>=3B #=3B22 0x0005a084 in RTLinker__AddUnit (=<br>> >=3BM3_DjPxE5_b==3B0x3600)=3B at<br>> >=3B>=3B>=3B RTLinker.m=<br>> >3:=3B122<br>> >=3B>=3B>=3B #=3B23 0x00001fac in main (=3B=<br>> >argc==3B4=2C argv==3B0xbffffb24=2C envp==3B0xbffffb38)=3B<br>> =<br>> >>=3B>=3B>=3B at _m3main.mc:=3B4<br>> >=3B>=3B>=3B (=<br>> >=3Bgdb)=3B<br>> >=3B>=3B>=3B<br>> >=3B>=3B>=3B The sec=<br>> >ond error:=3B<br>> >=3B>=3B>=3B<br>> >=3B>=3B>=3B Prog=<br>> >ram received signal EXC_BAD_INSTRUCTION=2C Illegal instruction/<br>> >=<br>> >=3B>=3B>=3B operand.<br>> >=3B>=3B>=3B 0x00b111ac in ?=3B=<br>> >?=3B (=3B)=3B<br>> >=3B>=3B>=3B (=3Bgdb)=3B where<b=<br>> >r>> >=3B>=3B>=3B #=3B0 0x00b111ac in ?=3B?=3B (=3B=<br>> >1=3B<br>> >=3B>=3B>=3B #=3B1 0x0001214c in TextSubs__Apply =<br>> >0=3BM3_CN69dV_self==3B0xb26450=2C<br>> >=3B>=3B>=3B M3_Bd56fi_s=<br>> >rc==3B0xb21cec)=3B at TextSubs.m3:=3B63<br>> >=3B>=3B>=3B=<br>> > #=3B2 0x0005b1c4 in RTLinker__RunMainBody (=3BM3_DjPxE3_m==3B0xa=<br>> >d190)=3B at<br>> >=3B>=3B>=3B RTLinker.m3:=3B399<br>> >=<br>> >=3B>=3B>=3B #=3B3 0x00059f88 in RTLinker__AddUnitI (=3BM3_DjPx=<br>> >E3_m==3B0xad190)=3B at<br>> >=3B>=3B>=3B RTLinker.m3:=3B1=<br>> >13<br>> >=3B>=3B>=3B #=3B4 0x0005a084 in RTLinker__AddUnit =<br>> >0=3BM3_DjPxE5_b==3B0x3600)=3B at<br>> >=3B>=3B>=3B RTLinker.=<br>> >m3:=3B122<br>> >=3B>=3B>=3B #=3B5 0x00001fac in main (=<br>> >=3Bargc==3B4=2C argv==3B0xbffffb24=2C envp==3B0xbffffb38)=3B<br=<br>> >>> >=3B>=3B>=3B at _m3main.mc:=3B4<br>> >=3B>=3B>=3B &=<br>> >#40=3Bgdb)=3B list<br>> >=3B>=3B>=3B 58 BEGIN<br>> >=<br>> >=3B>=3B>=3B 59 WHILE pos <=3B textLen DO<br>> >=3B>=<br>> >=3B>=3B 60 c :=3B==3B Text.GetChar(=3Bsrc=2C pos)=<br>> >=3B;=3B<br>> >=3B>=3B>=3B 61 IF c IN self.starts THE=<br>> >N<br>> >=3B>=3B>=3B 62 (=3B*=3B S(=3B"=3B=<br>> >analysing:=3B "=3B &=3B Text.Sub(=3Bsrc=2C pos)=3B=2C<br>> &=<br>> >#62=3B>=3B>=3B DebugLevel)=3B;=3B *=3B)=3B<br>> >=3B&#=<br>> >62=3B>=3B 63 iter :=3B==3B self.tbl.iterateOrdered=<br>> >0=3B)=3B;=3B<br>> >=3B>=3B>=3B 64 ind :=3B&#=<br>> >61=3B pos;=3B<br>> >=3B>=3B>=3B 65 original :=<br>> >=3B==3B "=3B"=3B;=3B<br>> >=3B>=3B>=3B 66 =<br>> > REPEAT<br>> >=3B>=3B>=3B 67 INC(=3Bind)=3B&#=<br>> >59=3B<br>> >=3B>=3B>=3B (=3Bgdb)=3B<br>> >=3B>=3B>=<br>> >=3B<br>> >=3B>=3B>=3B Any ideas what to look at?=3B<br>> >=<br>> >=3B>=3B>=3B<br>> >=3B>=3B>=3B I don'=3Bt know if this is =<br>> >relevant:=3B<br>> >=3B>=3B>=3B<br>> >=3B>=3B>=3B [=<br>> >=3Blapdog:=3B~=3B/t/cit_parse/PPC_DARWIN]=3B mika%=3B uname -a=<br>> ><br>> >=3B>=3B>=3B Darwin lapdog.local 7.9.0 Darwin Kernel Version=<br>> > 7.9.0:=3B Wed Mar 30<br>> >=3B>=3B>=3B 20:=3B11:=3B17 PS=<br>> >T 2005;=3B root:=3Bxnu/xnu-517.12.7.obj~=3B1/RELEASE_PPC Power<b=<br>> >r>> >=3B>=3B>=3B Macintosh powerpc<br>> >=3B>=3B>=3B [=<br>> >=3Blapdog:=3B~=3B/t/cit_parse/PPC_DARWIN]=3B mika%=3B gcc -v<b=<br>> >r>> >=3B>=3B>=3B Reading specs from /usr/libexec/gcc/darwin/ppc/3.=<br>> >3/specs<br>> >=3B>=3B>=3B Thread model:=3B posix<br>> >=3B&#=<br>> >62=3B>=3B gcc version 3.3 20030304 (=3BApple Computer=2C Inc. build 1=<br>> >666)=3B<br>> >=3B>=3B>=3B<br>> >=3B>=3B>=3B Mika<=<br>> >br>> >=3B>=3B>=3B<br>> >=3B>=3B>=3B P.S. Am I correct in =<br>> >assuming that I can get CM3 to build on <br>> >=3B>=3B>=3B Window=<br>> >s?=3B<br>> >=3B>=3B>=3B I could switch to CM3 on Unix any time=<br>> >=2C of course=2C but I'=3Bve never<br>> >=3B>=3B>=3B had luck w=<br>> >ith it on Windows=2C which is why I am using the ancient<br>> >=3B>=<br>> >=3B>=3B Klagenfurt PM3=2C which comes on 40-odd "=3Bfloppies"=3B a=<br>> >nd a .EXE that<br>> >=3B>=3B>=3B unpacks them into C:=3B (=<br>> >=3Band installation instructions only in German)=3B.<br>> >=3B>=3B=<br>> >>=3B If CM3 doesn'=3Bt work on Windows=2C I am essentially wasting my=<br>> > time=2C<br>> >=3B>=3B>=3B as the current project I am working on =<br>> >absolutely requires that the<br>> >=3B>=3B>=3B software run on Win=<br>> >dows 2003 Server (=3Byes=2C it sucks=2C but what can<br>> >=3B>=3B=<br>> >>=3B you do?=3B)=3B The very old PM3 at least kind of hobbles alo=<br>> >ng on this<br>> >=3B>=3B>=3B platform---actually=2C better than th=<br>> >at;=3B it does Trestle natively<br>> >=3B>=3B>=3B under Windows=<br>> > (=3Bno X required)=3B=2C at least on SOME Windows machines.<br>> =<br>> >2=3B>=3B>=3B<br>> >=3B>=3B>=3B P.P.S. Sorry for all the post=<br>> >scripts=2C but is it true that the<br>> >=3B>=3B>=3B build system =<br>> >has been changed so that building with overrides <br>> >=3B>=3B>=<br>> >=3B (=3Bcm3 -x)=3B<br>> >=3B>=3B>=3B requires having the com=<br>> >piler sources available?=3B It didn'=3Bt use to<br>> >=3B>=3B&=<br>> >#62=3B be that way=2C but I can'=3Bt get Network Objects to work with ov=<br>> >errides<br>> >=3B>=3B>=3B now unless I have the sources available.=<br>> >.. It'=3Bs a bit of a pain<br>> >=3B>=3B>=3B because it means =<br>> >that every user has to have the compiler sources=2C<br>> >=3B>=3B>=<br>> >=3B or else ship everything=2C or was that not the intention?=3B<br> <br>> > =<br>> > </body><br>> ></html>=<br>> ><br>> >--_6374b72e-0dad-4a03-8d22-4a59e0218226_--<br> </body>
</html>