AllBASIC Forum
BASIC Developer & Support Resources => Open Forum => Topic started by: jalih on January 20, 2019, 01:19:46 AM
-
Hi all,
I wrote a simple game sample in 8th programming language. I just noticed that 32-bit Windows build crashes almost instantly, the 64-bit build works just fine. I can't find anything from my code that could cause the crash. I know, here are Linux users. Could someone test Linux binaries and tell me how Linux build works?
Source code, data files and binaries available here (https://www.dropbox.com/s/lvf0irp1vuc9acy/2d-game.zip?dl=0). Binary for macOs is included too but needs to be packaged by yourself. Instructions are included inside the text file.
Thanks
-
Mac 32/64 bit work. Nice music!
Will try under Linux in a little while.
-
64bit version works under Ubuntu 18.04.1 LTS
32bit version does not work. Running 'ldd' on the binary shows:
$ ldd Space32
not a dynamic executable
EDIT: I installed 'gcc-multilib' to provide additional 32bit support, and now ldd shows:
p$ ldd Space32
linux-gate.so.1 (0xf7ee7000)
librt.so.1 => /lib32/librt.so.1 (0xf7ec3000)
libdl.so.2 => /lib32/libdl.so.2 (0xf7ebe000)
libc.so.6 => /lib32/libc.so.6 (0xf7ce5000)
libpthread.so.0 => /lib32/libpthread.so.0 (0xf7cc6000)
libm.so.6 => /lib32/libm.so.6 (0xf7bfb000)
libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7bdd000)
/lib/ld-linux.so.2 (0xf7ee9000)
Just missing ALSA at this point...
EDIT2: Well, I broke my VM trying to install the 32bit ALSA libraries. So it's a no go. Luckily, I was able to revert the VM using a snapshot I took just before trying.
-
Luckily, I was able to revert the VM using a snapshot I took just before trying.
The sign of a Pro!
32 bit Linux is no longer supported by most distributions. I386 support libraries are getting more unstable as maintainers lose interest in the platform. If you want 32 bits, run on Windows.
-
If you want 32 bits, run on Windows. ... maintainers lose interest in the platform.
That's probably because 8 bits is pretty much enough to control a microwave oven or a kettle. ;D
-
All I'm saying is Windows embraces 32 bit more than any other current OS. I'm still going along for the ride even though Windows isn't my primary focus.
-
AIR, thanks a lot!
I think it's a 8th bug, not mine. There are some other quirks in 32-bit Windows build also, like no sound output and no program icon. Most errors in programs written in 8th are usually due to unbalanced stack or incorrect locking of container types.
-
Jali, just curious: how did you build these? Did you cross-compile or build on each platform/OS?
-
Jali, just curious: how did you build these? Did you cross-compile or build on each platform/OS?
8th can package binaries for all those targets + Android and iOS on all desktop platforms. I currently have only Windows installed.