Repository navigation
Replies: 6 comments 9 replies
|
I do not read [carefully] . . . But -- again experiments ?.. |
|
https://github.com/modula3/cm3/releases/download/20210312/cm3-boot-win64-d5.11.0-20210312.zip looks like a good start for this. |
|
Thanks Jay. I can see boot1/boot2 have served you well, but I'd rather not run a second bootstrap pipeline in CI. We already have one: On the ex_frame → ex_stack switch-over: I think the existing path handles it the same way you describe. You generate the bootstrap under the old setting, build it, and flip the config afterwards. The cmake build also reads its config from the source tree, not from the bootstrap. So my question is: what does boot1/boot2 do that 🤖 Generated with Claude Code |
|
It is indeed what I've been doing for a long time (10+ years?) and has worked extremely well. I used it to move the system countless time to new systems, all my systems, that I used to have. Right the dependency on cmake is gone. I gave up getting cmake on OSF/1 and on HPUX/IA64 I think I gave up getting a current cmake. True that writing a Makefile isn't difficult. |
|
(
In AMD64_CYGWIN , yes . . . May be remove )
Yes: "it comes from the source tree" |
|
I am wondering if my methodology has been a little off all these years, but that lack of runtime breaks has saved me. The earlier stage of taking only an old compiler, and building the rest of the system, depends on the ability to build m3core compatible with it. Which is the luck of m3core changing so little ever. And the way I formed it, I have one m3core source, that dynamically adjusts to its compiler, at build time. So the "upgrade" path is the better one, where you have compiler and the m3core that it targets, already both prebuilt in the past and matching. boot2 cheats and merges with upgrade, after building current m3core, which so far has always worked with old cm3. Maybe I'm confused. Maybe boot1 should provide m3core and libm3 along with cm3 and mklib, so then "boot2" is just the same as upgrade. I'd still like to get this working..it'll take another few days, and kinda abandon old bootstraps. |
Uh oh!
There was an error while loading. Please reload this page.
Just leaving a note before I pause for a few hours/days.
There is boot1.py and boot2.py.
I have used these for years.
I suggest adding them to CI.
I am volunteering.
I mainly used them for moving to new systems, but they fit well the ex_frame to ex_stack transition.
Does concierge handle it?
boot1.py starts with a working cm3, and builds an entirely new compiler, from m3core up to cm3, and leaves it not quite finished, on the side. All uncompiled/unlinked C++.
This is as opposed to update.py which does an in-place update and skips m3core and libm3 in the first pass.
Boot1.py's output is a .tar.gz or .zip with many .cpp files in one directory and a Makefile.
The first two lines are tailored a little to the target. Compiler name and flags.
We might be able to simpflify that to just "g++" and nothing else.
Or wrap instead generate automake/autoconf, mainly to find C++ compiler.
There's already automake/autoconf in the Modula-3 system, not sure anyone noticed. I like it. I really do. :)
There is a Windows form and a Unix form.
You make or nmake it, and you get out cm3 and mklib.
You then put that on path and run boot2.py.
boot2.py then builds the entire system.
I'm not sure what the compat story is with config. I think it comes from the source tree, not the bootstrap.
That might be controversial.
The nice thing about this, is it handles the ex_frame to ex_stack transition.
One detail to work out is actually flipping the switch, -DUSE_STACK_WALKER.
You can pass -D in general to the python files.
So that is easy for boot1 and boot2.
The problem is just changing the installed config.
And maybe leaving the system flexible.
Maybe the answer is -D that overrides config.
Or maybe no such switch is needed, in fact.
The bootstrap will be built in one way, and then it won't use config until it has a working compiler.
So I think it'll just work.
I think we make the bootstrap, release it, use it in a pipeline.
Then commit the config change.
And the bootstrap will just keep working.
I'll try this out soon.
The goal, of course, is that ex_frame to ex_stack transition, not require a special "new" procedure, and a special release, manually done.
It might sound like I am proposing exactly that, but boot1 is really very old.
Part of this is that I'm not expert in cmake.
And running old systems a few years ago, cmake as a bit of a problem, and autotools worked well.
There's even some of the targets using autotools within m3makefiles, as good or bad as that might seem.
All reactions