<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Cool.<BR>
<BR>
> If I use user threads, it's a different story (which is probably too bad,<BR><BR>
Oops, right, I forgot, I should have mentioned that, user threads have likely been broken on all platforms for a while. I noticed that on PPC_LINUX. I think it is trivial to fix. Or use pthreads..<BR>
<BR>
<BR>
- Jay<BR><BR> <BR>> To: jay.krell@cornell.edu<BR>> Date: Fri, 24 Apr 2009 20:38:17 -0700<BR>> From: mika@async.caltech.edu<BR>> CC: m3devel@elegosoft.com<BR>> Subject: Re: [M3devel] help booting CM3 on FreeBSD 4.11?<BR>> <BR>> Jay (and others),<BR>> <BR>> Success! I think.... I was able to build the compiler, after much<BR>> experimentation, by using Jay's build order and linking with -libc_r.<BR>> Mentor works, and that's usually a good sign.<BR>> <BR>> Jay, your assembly worked too! And as you say, it's much easier to<BR>> bootstrap with that than to do what I was trying to do (but I did<BR>> both, several times, just to make sure).<BR>> <BR>> I don't know why I was having linking problems with -libc_r earlier.<BR>> Now it just seems to work. So, pthreads on FreeBSD 4.<BR>> <BR>> If I use user threads, it's a different story (which is probably too bad,<BR>> as I know that user threads work absolutely fine in my old version of CM3):<BR>> <BR>> I can build a compiler fine, but the bootstrapped cm3 crashes in<BR>> the user thread code. Note that exactly the same thing happens whether<BR>> I bootstrap with the assembly version from Jay or from v. 5.3.4, which<BR>> I think is what I had. Here we go:<BR>> <BR>> Starting program: /usr/local/cm3/pkg/cm3/FreeBSD4/cm3 <BR>> <BR>> Program received signal SIGSEGV, Segmentation fault.<BR>> 16_82568bb in RTHooks.PushEFrame (frame=16_bfbff3f4) at ../src/thread/POSIX/ThreadPosix.m3:1599<BR>> 1599 f.next := self.context.handlers;<BR>> (gdb) where<BR>> #0 16_82568bb in RTHooks.PushEFrame (frame=16_bfbff3f4) at ../src/thread/POSIX/ThreadPosix.m3:1599<BR><BR></body>
</html>