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

32 bit Linux #3

Open
iclukas opened this issue Dec 7, 2019 · 8 comments
Open

32 bit Linux #3

iclukas opened this issue Dec 7, 2019 · 8 comments

Comments

@iclukas
Copy link

iclukas commented Dec 7, 2019

Is there any chance to get this running on a 32 bit x86 Linux machine? I know it’s a dying class of machines, but well the Amiga was sort of 32 bits itself. Maybe I’m not the only one dreaming of a netbook booting directly into homegirl. I tried to compile it myself on a 32 bit Debian 10.2, but it still segfaults on start.

@Torbuntu
Copy link

Torbuntu commented Dec 7, 2019

I just ran into that on Fedora.

Do you have the required libs installed?
Which distro?

@poeticAndroid
Copy link
Owner

I think I tried making a 32bit Linux version at some point, but failed to find a 32bit Linux distro that the D compiler worked on.. :/

I'm open to suggestions..

@poeticAndroid
Copy link
Owner

It seems I cannot even compile an empty project on 32bit Debian.. :/

VirtualBox_Debian 32bit_07_12_2019_22_08_20

@poeticAndroid
Copy link
Owner

Okay.. there might be hope.. switching to another compiler (LDC) seems to work.. kinda..
It compiles fine and the program even starts with a bootup screen, but the program seems to crash at certain Lua functions..

@poeticAndroid
Copy link
Owner

poeticAndroid commented Dec 8, 2019

The problem might be because it couldn't load the Lua library properly (I did have to make changes to bindbc-lua), but it's just strange that some Lua functions seem to work fine (or fail silently), while others result in segfault..

This line seems to be the first roadblock..
https://github.com/poeticAndroid/homegirl/blob/dev/source/program.d#L110

@poeticAndroid
Copy link
Owner

Okay.. with the proper changes to bindbc-lua, everything seems to work fine on other platforms, except 32bit Linux, even with the latest version of LDC..
For some reason it seems to choke on the lua_pcall function.. everything up to that point works fine..

@iclukas
Copy link
Author

iclukas commented Dec 9, 2019

This sound awesome! Sadly, I know nothing about D, but maybe I could help out with some testing.

@poeticAndroid
Copy link
Owner

I'm afraid I'm going to have to forfeit on this one.. I have no idea where to go from here, to make it work on 32 bit..

If anyone else has a solution, feel free to contact me or send me a PR..

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

3 participants