Jon,

Just checking, did you follow the build process in the README?  Gambit requires a couple of extra steps in order to be built from the git repo.

James

On Mon, Aug 15, 2016 at 9:03 AM, Jon Woodring <woodring.jon@gmail.com> wrote:
Unfortunately I ran into a compile problem with msys2 and mingw-w64. I'll post an issue on github:

gcc -D_WINDOWS -D_WIN32_WINNT=0x0502  -Wno-unused -Wno-write-strings -O1 -fno-math-errno -fschedule-insns2 -fno-strict-aliasing -fno-trapping-math -fwrapv -fno-keep-inline-dllexport -fno-common -mieee-fp -mpc64   -I"../include" -c -o "_kernel.o" -I. -DHAVE_CONFIG_H -D___GAMBITDIR="\"\\\\mingw64\"" -D___SYS_TYPE_CPU="\"x86_64\"" -D___SYS_TYPE_VENDOR="\"w64\"" -D___SYS_TYPE_OS="\"mingw32\"" -D___CONFIGURE_COMMAND="\"./configure '--enable-single-host'"\" -D___OBJ_EXTENSION="\".o\"" -D___EXE_EXTENSION="\".exe\"" -D___BAT_EXTENSION="\".bat\"" -D___PRIMAL _kernel.c -D___LIBRARY
_kernel.c: In function '___H__20___kernel':
_kernel.c:14100:37: error: '___gstate_mem {aka struct ___gstate_mem_struct}' has no member named 'glo_list_head'
    ___glo_struct *p = ___GSTATE->mem.glo_list_head;
                                     ^
make[1]: *** [makefile:164: _kernel.o] Error 1
make[1]: Leaving directory '/home/woodring/gambit/lib'
make: *** [makefile:414: all-recursive] Error 1


On Sun, Aug 14, 2016 at 4:44 PM Marc Feeley <feeley@iro.umontreal.ca> wrote:
Yes use HEAD (I committed a change to the universal backend yesterday, and you need that).

Marc

> On Aug 14, 2016, at 1:33 PM, Jon Woodring <woodring.jon@gmail.com> wrote:
>
> I'm using v4.8.5. Should I use the HEAD? I'm trying to compile it now to see if that is the problem.
>
> On Sun, Aug 14, 2016 at 10:38 AM Marc Feeley <feeley@iro.umontreal.ca> wrote:
> Strange… with your code (with and without the declarations) I get:
>
> $ gsc/gsc -:=. -warnings -target python -link -l lib/_gambit.py code.scm;cat code_.py code.py lib/_gambit.py > p.py;python p.py
> 5
>
> Are you sure the gsc you are using is the latest you have built?  Try gsc/gsc from the Gambit build directory.
>
> Marc
>
> > On Aug 14, 2016, at 10:57 AM, Jon Woodring <woodring.jon@gmail.com> wrote:
> >
> > I'm still getting errors on the python backend though, FWIW. It's not a huge deal, because I'm mostly targeting javascript, but I am a heavy python user, too, so it would be nice for future reference.
>


_______________________________________________
Gambit-list mailing list
Gambit-list@iro.umontreal.ca
https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list