Hi
The universal backend is sufficiently feature-full to compile the gsi interpreter and builtin modules and support the module system and dynamically loading compiled modules:
Wow thats great, I very much looked forward to this!
The js target runs fine on my machine, the python target not:
% gsi/gsi-python lib/ _test/test
gsi/gsi-python lib/ _test/test Traceback (most recent call last): File "gsi/gsi-python", line 983046, in <module> g_module_register([[g_make_interned_symbol("_gambit")],[],g_null_obj,1,g_bb1___gambit_23_,False]) File "gsi/gsi-python", line 744, in g_module_register g_trampoline(g_module_table[0][4]) File "gsi/gsi-python", line 549, in g_trampoline pc = pc() File "gsi/gsi-python", line 832658, in g_bb79__23__23_default_2d_path_2d_expand return g_bb80__23__23_default_2d_path_2d_expand() File "gsi/gsi-python", line 832628, in g_bb80__23__23_default_2d_path_2d_expand return g_stack[g_sp+1]() File "gsi/gsi-python", line 825016, in g_bb3__23__23_file_2d_info_2d_aux return g_bb6__23__23_file_2d_info_2d_aux() File "gsi/gsi-python", line 825041, in g_bb6__23__23_file_2d_info_2d_aux return g_bb1__23__23_os_2d_file_2d_info() File "gsi/gsi-python", line 49501, in g_bb1__23__23_os_2d_file_2d_info g_r1 = g_file_info(g_r1, g_scm2host(g_r2), g_scm2host(g_r3)) File "gsi/gsi-python", line 9445, in g_file_info fi.slots[ 3] = g_host2scm(st.st_ino) File "gsi/gsi-python", line 443, in g_host2scm raise Exception("host2scm error") Exception: host2scm error
python -V Python 2.7.16
python3 -V Python 3.7.7
sw_vers ProductName: Mac OS X ProductVersion: 10.15.4
On Apr 6, 2020, at 1:37 PM, Ben ben@srctxt.com wrote:
Hi
The universal backend is sufficiently feature-full to compile the gsi interpreter and builtin modules and support the module system and dynamically loading compiled modules:
Wow thats great, I very much looked forward to this!
The js target runs fine on my machine, the python target not:
% gsi/gsi-python lib/ _test/test
gsi/gsi-python lib/ _test/test Traceback (most recent call last): File "gsi/gsi-python", line 983046, in <module> g_module_register([[g_make_interned_symbol("_gambit")],[],g_null_obj,1,g_bb1___gambit_23_,False]) File "gsi/gsi-python", line 744, in g_module_register g_trampoline(g_module_table[0][4]) File "gsi/gsi-python", line 549, in g_trampoline pc = pc() File "gsi/gsi-python", line 832658, in g_bb79__23__23_default_2d_path_2d_expand return g_bb80__23__23_default_2d_path_2d_expand() File "gsi/gsi-python", line 832628, in g_bb80__23__23_default_2d_path_2d_expand return g_stack[g_sp+1]() File "gsi/gsi-python", line 825016, in g_bb3__23__23_file_2d_info_2d_aux return g_bb6__23__23_file_2d_info_2d_aux() File "gsi/gsi-python", line 825041, in g_bb6__23__23_file_2d_info_2d_aux return g_bb1__23__23_os_2d_file_2d_info() File "gsi/gsi-python", line 49501, in g_bb1__23__23_os_2d_file_2d_info g_r1 = g_file_info(g_r1, g_scm2host(g_r2), g_scm2host(g_r3)) File "gsi/gsi-python", line 9445, in g_file_info fi.slots[ 3] = g_host2scm(st.st_ino) File "gsi/gsi-python", line 443, in g_host2scm raise Exception("host2scm error") Exception: host2scm error
python -V Python 2.7.16
python3 -V Python 3.7.7
sw_vers ProductName: Mac OS X ProductVersion: 10.15.4
It works for me on macOS:
% gsi/gsi-python lib/ _test/test *** all tests passed out of a total of 40 tests
I suspect the problem is that the “inode” number of some file on your filesystem is bigger than a fixnum so the host to scheme conversion of the number does not work (conversion to bignums is not currently implemented). That’s probably something easy to fix...
Marc