Conversation
|
My intuition is that there's a set of incompatible #defines that are leading to it hitting unreachable code. I'll give it a whirl. |
|
I might be short a file. |
|
Try again? |
|
@andrewcmyers I had a chance to look at the bug on my flight. In this case, "failure: not possible" is coming from a precompiled clu module used for bootstrapping the compiler (_workdir.c). There's something going wrong in there, but since the output is an intermediate representation and not human readable, I need to go through the original source code (_workdir.clu) to see what's going on. I haven't dug too deeply, but it looks like it's trying to parse /etc/passwd and I'd speculate that's a likely point of failure. |
|
It may be silly actually. pclu looks like it requires a "CLU" user. What's not possible here is the CLU user not existing. Let me try and see what happens. |
|
Update, you don't need a CLU user, just $CLUHOME set. That gets it farther: I believe it's trying to reset the environment and failing to parse. I'll confirm the hypothesis in a little bit. |
|
I noticed the CLUHOME issue but was not clear on what to set it to |
|
Brief update, the cause of the failed scanline is a failure to recognize the tag (EOF in this case) in |
|
@andrewcmyers adding that back in fixed it: gives us Lots of researchware code to fix for sure, but we at least have the compiler pretending to work. |
|
@andrewcmyers next question, what are you looking to use clu for? LARCH? Edit: Also, I made a mistake and put the previous comment in the non-autotools pull request. The next step (if we need it) is to bootstrap the compiler from itself. Edit2: I completely forgot I had corralled the larch distro during my initial interest in LARCH/CLU https://github.com/npe9/larch |
|
Actually I am writing a chapter about CLU for a book and I want to make sure my example code is correct! |
|
@andrewcmyers I'd love to see it when you're done! Thanks for getting me back and interested in CLU. We do a lot of specification work and it's nice to go back in time a bit. |
Here is what I've changed to try to get this working on the Mac on a more recent gcc, though I get the same problems on Linux. Note that I added an autoconf script.