Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot boot latest commit via hmhs from hugs branch #135

Open
AlexandreTunstall opened this issue Feb 19, 2025 · 3 comments
Open

Cannot boot latest commit via hmhs from hugs branch #135

AlexandreTunstall opened this issue Feb 19, 2025 · 3 comments

Comments

@AlexandreTunstall
Copy link

Attempting to run the following command

mhs -z -imhs -isrc -ilib -ipaths MicroHs.Main -ogenerated/mhs.c

produces the following error

mhs: error: recursive module: Mhs.Builtin, import chain: Mhs.Builtin MicroHs.Main

The mhs binary is a symlink to the hmhs binary compiled using Hugs on the head of the hugs branch.


The regression happened somewhere between commit 75290dcf8524a0223190cb10bce646ebb0d9b0db (fails with same error) and commit c34ab11410c050ba58155edd8e6392117ffe75ab (successful).

@AlexandreTunstall
Copy link
Author

Small addendum: I tried symlinking and copying hmhs to bin/mhs but I could not convince Make to skip the bin/mhs target (I'm trying to make bootstrap), so I'm trying to generate an up-to-date mhs.c instead. Is there a way of skipping bin/mhs when running bootstrap?

@AlexandreTunstall
Copy link
Author

The regression is caused by commit b46e6f9bc176ccd7d178d8df03ebd511162d87b6. It seems that mhs versions before that commit cannot compile the sources for any version after that commit.

Perhaps the hugs branch needs to be updated?

@augustss
Copy link
Owner

Yes, I think the hugs branch needs updating. I'll do that later today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants