<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'>Hey..I like that that does capture some of My Way.<br><br><br>Here is my independent off the cuff write up though:<br><br><br> I know the ports system is nice. <br> I know we really need to be in it for many operating systems. <br><br><br> I suspect your problem is that you didn't "upgrade" to apply you changes at the right time.<br><br> Do any of these work for you: <br><br><br> https://modula3.elegosoft.com/cm3/snaps/snapshot-index.html <br><br><br> Anyway, please try this: <br><br><br> Ignore DragonFly at first. <br> Go to a system with a working cm3. Such as FreeBSD. Linux. Almost anything. <br> Such as from ports. <br> Make a backup, e.g. of /usr/local/cm3. <br> My instructions are unfortunately destructive of the existing install. <br> Checkout the full current CVS repository. <br> In that repository, run scripts/python/upgrade.py. <br> If that doesn't work, stop, and we'll help. <br> If that does work, apply your diffs. And upgrade.py again. You can say "upgrade.py skipgcc" here. <br> Then boot1.py c amd64_dragonflybsd <br> Make sure you say "c" and the target "amd64_dragonflybsd", anywhere on the command line. <br> Ok, "c" is actually up to you. Since nobody messes with ABI much, gcc/amd64 works for the same<br> for Linux, FreeBSD, OpenBSD, NetBSD, and Dragonfly. <br> If this works, it will give you, roughly amd64_dragonflybsd*.tar.gz <br> Copy that to your Dragonfly system, extract it, cd into it, make. <br> If that works, you have a native cm3. <br> Run it. It should say "can't find cm3.cfg". <br> Now on Dragonfly, mkdir -p /usr/local/cm3/bin <br> cp cm3 /usr/local/cm3/bin <br> export PATH=/usr/local/cm3/bin:$PATH <br> full CVS checkout <br> cd scripts/python ; ./boot2.sh <br> <br><br> You will need to have made small changes to pylib.py for this to work. <br> (And your config file should say to use the C backend, like Darwin and ARM_LINUX do.)<br><br><br><br><br> - Jay<br><br><br><br><br><div>> Date: Sun, 19 Jan 2014 13:09:37 +0100<br>> From: adacore@marino.st<br>> To: jay.krell@cornell.edu<br>> CC: m3devel@elegosoft.com<br>> Subject: Re: [M3devel] Stuck on adding new cm3 target (AMD64_DRAGONFLY)<br>> <br>> On 1/19/2014 12:40, Jay K wrote:<br>> > Your change looks about right.<br>> > <br>> > Did you first "upgrade" and existing install, with these changes, and<br>> > then cross?<br>> > That is what you must do.<br>> <br>> <br>> It's probably easier that I show you.<br>> I've attached "Makefile.local" (I added the .txt extension just now to<br>> help out some mail clients) which is my recipe.<br>> <br>> So I run three targets in a freshly patched workarea:<br>> 1) make cross-compiler<br>> 2) make assembler-code (called from cross-archive)<br>> 3) make cross-archive<br>> <br>> In the cross-compiler target, the FreeBSD bootstrap compiler builds<br>> m3middle, m3linker, m3front, mequake, and CM3 for the cross compiler.<br>> <br>> The cross-compiler then builds libm3core and libm3 with FreeBSD cm3cg<br>> Everything is cleaned, then the cross compiler builds everything again<br>> (including libm3core and libm3) along with m3objfile, sysutils, and<br>> patternmatching.<br>> <br>> Then the cm3.cfg is changed to specify HOST=freebsd, TARGET=dragonfly,<br>> cm3cg is cm3cg-AMD64_DRAGONFLY.<br>> <br>> I would not be surprised is there is a logic flaw or two in "make<br>> cross-compiler". The "how to port CM3" tutorial was slightly out of<br>> date and some of the instructions were a bit ambiguous so this was a<br>> best guess.<br>> <br>> Regards,<br>> John<br></div> </div></body>
</html>