Error when launching IDE

Post

Posted
Rating:
#1 (In Topic #1476)
Trainee
Hi all! I'm very new to Gambas and am very excited to try it out. VB6 was the first programming language I learned and so I really appreciate that folks are working on a BASIC like language and a familiar UI for making GTK/linux apps. I have been trying to install Gambas3 on my machine. I'm running Fedora 42. I have tried installing the RPM from the fedora database and have tried building from source as well. The installation has been smooth but I always get this error when launching the application. I've restarted the system, uninstalled Gambas3 (and many of the components including jit) and removed the directories, and re-compiled to no avail. Has anybody faced this? Any recommendations on how to proceed? Thanks!

Image

(Click to enlarge)

Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Administrator
gbWilly is in the usergroup ‘unknown’

ajaym said

I'm running Fedora 42. I have tried installing the RPM from the fedora database and have tried building from source as well. The installation has been smooth but I always get this error when launching the application. I've restarted the system, uninstalled Gambas3 (and many of the components including jit) and removed the directories, and re-compiled to no avail. Has anybody faced this?

I have seen a post about this in this thread. Same problem (in the fifth post) also on Fedora.
I package and test Gambas installs in many different Virtual machines with Debian and Ubuntu installed and none seem to have this problem, going from gambas 3.18.4 up to latest gambas 3.20.3.

It might be specifically Fedora related and it has been reported as a bug.

Anyway, this is what worked for one of the posters to get Gambas started (from terminal):

Code

env GB_NO_JIT=true gambas3
It comes down to simply disabling jit as it is troublesome.
You can also adapt your gambas desktop entry to include the env variable, instead of starting from terminal.

Edit:
If self compiling just disableling jit should work as well

Code

GAMBAS_CONFIG_FAILURE=1 ./configure -C --disable-pdf --disable-jit

gbWilly
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories


… there is always a Catch if things go wrong!
Online now: No Back to the top

Post

Posted
Rating:
#3
Guru
BruceSteers is in the usergroup ‘Guru’
We are working on it.

I have fixed that String[] bug but it does not fix the fedora JIT error. it was just a bug in the error reporting.
  JIT, fix datatype error (!393) · Merge requests · Gambas / gambas · GitLab

So i have submitted a bug report
 Connexion

I'm sure Benoit will look into it when he can :)

Like Willy says it works if you disable JIT using the environment variable GB_NO_JIT
Online now: No Back to the top

Post

Posted
Rating:
#4
Trainee
Thank you so much! Yes, with disabling JIT, I am able to launch it via the Terminal and everything works great. Thank you for working on it and submitting the bug report! :D
Online now: No Back to the top

Post

Posted
Rating:
#5
Guru
BruceSteers is in the usergroup ‘Guru’
there was a bug indeed and Benoit has fixed it now Add '-std=gnu17' flag to all compiler exections. (e2268831) · Commits · Gambas / gambas · GitLab

So the fix is in the "master" branch now and will be in the next stable release
Online now: No Back to the top
1 guest and 0 members have just viewed this.