Author Topic: Help from Linux users?  (Read 4651 times)

Offline jalih

  • Advocate
  • Posts: 111
Help from Linux users?
« 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. Binary for macOs is included too but needs to be packaged by yourself. Instructions are included inside the text file.

Thanks

Offline AIR

  • BASIC Developer
  • Posts: 932
  • Coder
Re: Help from Linux users?
« Reply #1 on: January 20, 2019, 12:10:47 PM »
Mac 32/64 bit work.  Nice music!

Will try under Linux in a little while.

Offline AIR

  • BASIC Developer
  • Posts: 932
  • Coder
Re: Help from Linux users?
« Reply #2 on: January 20, 2019, 01:04:54 PM »
64bit version works under Ubuntu 18.04.1 LTS

32bit version does not work.  Running 'ldd' on the binary shows:

Quote from: ldd output
$ ldd Space32
   not a dynamic executable

EDIT:  I installed 'gcc-multilib' to provide additional 32bit support, and now ldd shows:

Quote
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.

« Last Edit: January 20, 2019, 01:24:13 PM by AIR »

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: Help from Linux users?
« Reply #3 on: January 20, 2019, 01:47:26 PM »
Quote
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.
« Last Edit: January 20, 2019, 02:50:11 PM by John »

Mike Lobanovsky

  • Guest
Re: Help from Linux users?
« Reply #4 on: January 20, 2019, 03:43:27 PM »
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

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: Help from Linux users?
« Reply #5 on: January 20, 2019, 07:17:06 PM »
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.

Offline jalih

  • Advocate
  • Posts: 111
Re: Help from Linux users?
« Reply #6 on: January 20, 2019, 09:01:28 PM »
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.

Offline AIR

  • BASIC Developer
  • Posts: 932
  • Coder
Re: Help from Linux users?
« Reply #7 on: January 20, 2019, 10:04:23 PM »
Jali, just curious: how did you build these?  Did you cross-compile or build on each platform/OS?


Offline jalih

  • Advocate
  • Posts: 111
Re: Help from Linux users?
« Reply #8 on: January 20, 2019, 10:28:36 PM »
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.
« Last Edit: January 20, 2019, 10:39:53 PM by jalih »