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

Windows Build - can't run scripts #81

Open
rosswmerrifield opened this issue Jan 10, 2023 · 8 comments
Open

Windows Build - can't run scripts #81

rosswmerrifield opened this issue Jan 10, 2023 · 8 comments

Comments

@rosswmerrifield
Copy link

rosswmerrifield commented Jan 10, 2023

Hello, not sure if this is still maintained, but I am trying to build Mindy on Windows. I can build the project, but I can't run any scripts with the 'mindy' executable. Any program I try to run throws the error:

#f is not of type {class <c-function>}

thread [0] D #"main"
0x6fffffea0268: invoke-debugger ({ 0x6fffffcd4f91})
mindy>

The compiler appears to create .dbc from source fine (I haven't tried copying a .dbc made on windows to linux where the interpreter works fine though).

I have built it under MinGW and Cygwin, and get the same result in both cases. I don't get any errors during the build

@cgay
Copy link
Member

cgay commented Jan 10, 2023

@promovicz has been working on Mindy recently, but I suspect on a flavor of Unix. @promovicz Have you tried Mindy on Windows recently?

@promovicz
Copy link
Contributor

I haven't tried it on Windows in a very long time. This looks like an issue with platform support code. If anyone knows it would probably be @waywardmonkeys - since he did the last cleanup, which looked very good.

@promovicz
Copy link
Contributor

And I see that @waywardmonkeys has been patching on Windows a few weeks ago - so right on cue I guess?

@kaveman-
Copy link
Contributor

Hello, not sure if this is still maintained, but I am trying to build Mindy on Windows. I can build the project, but I can't run any scripts with the 'mindy' executable. Any program I try to run throws the error:

#f is not of type {class }

thread [0] D #"main" 0x6fffffea0268: invoke-debugger ({ 0x6fffffcd4f91}) mindy>

The compiler appears to create .dbc from source fine (I haven't tried copying a .dbc made on windows to linux where the interpreter works fine though).

I have built it under MinGW and Cygwin, and get the same result in both cases. I don't get any errors during the build

how are you running it? you'll need to link in library.dbc as well. You can use -f to load additional bytecode files or copy /b library.dbc + hello-world.dbc hw-combined.dbc and then run the combined bytecode. There is also dbclink for Windows.

@rosswmerrifield
Copy link
Author

how are you running it? you'll need to link in library.dbc as well. You can use -f to load additional bytecode files or copy /b library.dbc + hello-world.dbc hw-combined.dbc and then run the combined bytecode. There is also dbclink for Windows.

I get same result when running mindy -f library.dbc -f hello-world.dbc or running mindy -x hw-combined.dbc. The same command line invocations worķ on my Linux machine

@kaveman-
Copy link
Contributor

you could set DYLANPATH to build\lib\dylan\2.7.0<arch>-windows and see if that works. When built with VS2022, I'm getting a corrupt message "in library Dylandule Dylan" instead of "Hello, World." so something is broken.

@rosswmerrifield
Copy link
Author

you could set DYLANPATH to build\lib\dylan\2.7.0-windows and see if that works. When built with VS2022, I'm getting a corrupt message "in library Dylandule Dylan" instead of "Hello, World." so something is broken.

Setting DYLANPATH didn't help either.

@waywardmonkeys
Copy link
Member

Hello.

I did my Windows changes blind as I don't yet have a Windows build environment locally.

Sounds like someone needs to run this under a debugger!

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

No branches or pull requests

5 participants