[Gambas-user] Jit crash, Maybe its me?
Brian G
brian at westwoodsvcs.com
Wed Oct 12 07:36:33 CEST 2022
The following happens when I try to compile / run a class, maybe I am doing something wrong?
gb.jit: error: unable to compile JIT code of 'gb':
In file included from /tmp/gambas.1000/197223/jit/gb.c:1:
/tmp/gambas.1000/197223/jit/gb.c: In function ‘jit_shmvarstorage_29_’:
/tmp/gambas.1000/197223/jit/jit.h:1539:31: error: incompatible types when assigning to type ‘VALUE’ {aka ‘union <anonymous>’} from type ‘GB_STRING’ {aka ‘struct <anonymous>’}
1539 | #define PUSH_u(_val) ({ *sp = (_val); GB.BorrowValue(sp); sp++; })
| ^
/tmp/gambas.1000/197223/jit/jit.h:1589:43: note: in definition of macro ‘BORROW_s’
1589 | #define BORROW_s(_val) ({ GB_STRING _v = (_val); if ((_v).type == GB_T_STRING) GB.RefString(_v.value.addr); _v; })
| ^~~~
/tmp/gambas.1000/197223/jit/jit.h:1753:43: note: in expansion of macro ‘PUSH_u’
1753 | #define CONV(_val, _src, _dest, _type) ({ PUSH_##_src(_val); SP = sp; JIT.conv(sp - 1, (GB_TYPE)(_type)); POP_##_dest(); })
| ^~~~~
/tmp/gambas.1000/197223/jit/gb.c:5664:17: note: in expansion of macro ‘CONV’
5664 | as = BORROW_s(CONV(SUBR_LEFT(CONV(({({({PUSH_v(l2);PUSH_UNKNOWN(89);});PUSH_UNKNOWN(91);});CALL_UNKNOWN(93);POP_u();}), u, s, GB_T_STRING), 10), u, s, GB_T_STRING));
| ^~~~
/tmp/gambas.1000/197223/jit/jit.h:1539:31: error: incompatible types when assigning to type ‘VALUE’ {aka ‘union <anonymous>’} from type ‘GB_STRING’ {aka ‘struct <anonymous>’}
1539 | #define PUSH_u(_val) ({ *sp = (_val); GB.BorrowValue(sp); sp++; })
| ^
/tmp/gambas.1000/197223/jit/gb.c:5679:385: note: in expansion of macro ‘PUSH_u’
5679 | as = ({PUSH_t(CONSTANT_s(0x55c30a815d7c, 27));({({PUSH_v(l1);PUSH_UNKNOWN(130);});PUSH_i(10);CALL_SUBR_CODE(133, 0x55c30a506ec0, 0x6902);});({({PUSH_v(l1);PUSH_UNKNOWN(135);});PUSH_t(CONSTANT_s(0x55c30a815d98, 7));CALL_SUBR_CODE(138, 0x55c30a506cc0, 0x6C02);});({({PUSH_v(l1);PUSH_UNKNOWN(140);});PUSH_t(CONSTANT_s(0x55c30a815d98, 7));CALL_SUBR_CODE(143, 0x55c30a506cc0, 0x6C02);});PUSH_u(SUBR_LEFT(CONV(({({({PUSH_v(l1);PUSH_UNKNOWN(145);});PUSH_UNKNOWN(147);});CALL_UNKNOWN(149);POP_u();}), u, s, GB_T_STRING), 10));CALL_SUBR_CODE(152, 0x55c30a504d40, 0x4D05);POP_BORROW_s();});
| ^~~~~~
**
** OOPS! INTERNAL ERROR. Program aborting, sorry! :-(
** Unable to compile JIT source file
**
** 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
**
"Failure is the key to success;
each mistake teaches us something" .. Morihei Ueshiba
Brian G
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20221011/0492c687/attachment-0001.htm>
More information about the User
mailing list