[M3devel] help booting CM3 on FreeBSD 4.11?

Jay jay.krell at cornell.edu
Sat Apr 25 00:26:43 CEST 2009


You shouldn't have to muck with LONGINT actually.
When you bootstrap, you use your existing libm3 and m3core.
And you build sysutils, m3front, m3middle, m3quake, cm3, etc. -- none
of which should be using LONGINT.
 
 
upgrade.py and upgrade.sh get this right.
If LONGINT has crept into those packages, that would be a problem.
But LONGINT in m3core and libm3 can/does exist and is not a problem.
 
 
I'll fix handlerStack for you in a sec.
 
 
Would help if you had pthreads though.
 
 
 - Jay



----------------------------------------
> To: m3devel at elegosoft.com
> Date: Fri, 24 Apr 2009 15:12:20 -0700
> From: mika at async.caltech.edu
> CC: mika at camembert.async.caltech.edu
> Subject: [M3devel] help booting CM3 on FreeBSD 4.11?
>
> Hi Modula-3ers,
>
> I'm trying to boot CM3 on FreeBSD 4.11 right now.
>
> Yes, I know it's an old system, but really, the older, the better.
> Once I have it running on 4.11, I'll have a binary archive that
> should work on *any* FreeBSD system from 4.x up to 7.x, not just
> the latest releases.
>
> My problems are not with FreeBSD. Well to some extent they are.
> I had to turn off pthreads: FreeBSD 4 has only a partial implementation,
> from what I can tell (in libc_r, not libpthreads)
>
> No, what's going on is I am trying to boot with CM3 5.3.1, which was the
> most recent binary I was able to get running on my FreeBSD 4 system.
>
> I inserted lots and lots of "LONGINT = INTEGER" in the code, but I'm
> still running into this one:
>
> -> linking cm3
> UtilsPosix.mo: In function `UtilsPosix__MakeRelative':
> /home/mika/cm3/m3-sys/cm3/FreeBSD4/UtilsPosix.m3:23: undefined reference to `ThreadF__handlerStack'
> /home/mika/cm3/m3-sys/cm3/FreeBSD4/UtilsPosix.m3:23: undefined reference to `ThreadF__handlerStack'
> /home/mika/cm3/m3-sys/cm3/FreeBSD4/UtilsPosix.m3:33: undefined reference to `ThreadF__handlerStack'
> /home/mika/cm3/m3-sys/cm3/FreeBSD4/UtilsPosix.m3:50: undefined reference to `ThreadF__handlerStack'
> /home/mika/cm3/m3-sys/cm3/FreeBSD4/UtilsPosix.m3:60: undefined reference to `ThreadF__handlerStack'
> Builder.mo:/home/mika/cm3-cvs/cm3/m3-sys/cm3/FreeBSD4/Builder.m3:188: more undefined references to `ThreadF__handlerStack' follow
> Fatal Error: package build failed
>
> No matter what I try... I tried to make ThreadF.handlerStack
> invariantly equal to ThreadPosix.self.context.handlers... it won't
> link. Somehow it's not letting me slip in a "handlerStack" in the
> interface?
>
> Anyone have an idea for workarounds?
>
> Mika


More information about the M3devel mailing list