[Gambas-user] Problem with new JIT

Jorge Carrión shordi at gmail.com
Fri Jan 11 09:46:53 CET 2019


Benoit:

Installing libc6-dev doesn't work. The only way I can use our applications
is using GB_NO_JIT environment variable.
If I try to launch the programs from console I got several messages, like
this:

gb.jit: error: unable to compile JIT code:
In file included from /tmp/gambas.1000/4415/jit/gb.report.c:1:0:
/tmp/gambas.1000/4415/jit/gb.report.c: In function ‘jit_reportunits_2’:
/tmp/gambas.1000/4415/jit/jit.h:1403:3: error: ‘for’ loop initial
declarations are only allowed in C99 mode
   for (int _i = 0; _i < (_n); _i++) \
   ^
/tmp/gambas.1000/4415/jit/jit.h:1418:40: note: in definition of macro
‘RETURN_f’
 #define RETURN_f(_val) (GB.ReturnFloat(_val))
                                        ^
/tmp/gambas.1000/4415/jit/gb.report.c:24:42: note: in expansion of macro
‘OPT’
   RETURN_f(jit_reportunits_2_(PARAM_s(0),OPT(1,1),PARAM_OPT_i(1)));
                                          ^
/tmp/gambas.1000/4415/jit/jit.h:1403:3: note: use option -std=c99 or
-std=gnu99 to compile your code
   for (int _i = 0; _i < (_n); _i++) \
   ^
/tmp/gambas.1000/4415/jit/jit.h:1418:40: note: in definition of macro
‘RETURN_f’
 #define RETURN_f(_val) (GB.ReturnFloat(_val))
                                        ^
/tmp/gambas.1000/4415/jit/gb.report.c:24:42: note: in expansion of macro
‘OPT’
   RETURN_f(jit_reportunits_2_(PARAM_s(0),OPT(1,1),PARAM_OPT_i(1)));
                                          ^


**
** OOPS! INTERNAL ERROR. Program aborting, sorry! :-(
** Unable to compile JIT source file
**
** _ClassStat.GotoNextSection.14: #39: End of file
** _ClassStat.GotoNextSection.14 _ClassStat.Stat.86 Jit._Compile.165
**
** Please send a bug report to the gambas bugtracker [1] or to the gambas
mailing-list [2].
** [1] http://gambaswiki.org/bugtracker
** [2] https://lists.gambas-basic.org/listinfo/user

I don't know if this issue is the same fixed in "Jit Crash" thread opened
in the mailing list. If is the same, please let me know to avoid
duplicities.

Best regards.


El mié., 9 ene. 2019 a las 16:29, T Lee Davidson (<t.lee.davidson at gmail.com>)
escribió:

> On 1/9/19 7:39 AM, Jorge Carrión wrote:
> > The difference as I can see is the path /usr/lib/gcc/x86_64-linux-gnu/7
> or /usr/lib/gcc/x86_64-linux-gnu/5 but I don't know if
> > this means something at all (I don't know nothing of C).
>
> It probably doesn't help much, but according to what I have on my system,
> the "5" or the "7" would be the gcc version number.
>
>
> ___
> Lee
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190111/de4b73ab/attachment.html>


More information about the User mailing list