Thanks for your feedback… but it shouldn’t be this complicated! For mingw you should use a --prefix like this
--prefix=C:/MinGW/msys/1.0/GAMBITSCHEME
to avoid moving the whole directory.
For Visual Studio, there’s probably a file or two missing in the .sln project (I don’t keep it up to date… my guess is add “lib/os_setup.c” and remove “lib/os.c”).
For msys2, did you get the sources from a clone of the github repository? If so, the instructions in INSTALL.txt should be followed precisely to bootstrap Gambit.
Marc
On Jan 18, 2017, at 6:37 PM, C K Kashyap ckkashyap@gmail.com wrote:
Hi all,
I was able to get Gambit to build on windows - I tried initially with msys2 (hoping to build a 64bit version) - but failed -
$ make install making all in include make[1]: Entering directory '/home/ckk/gambit/include' make[1]: Leaving directory '/home/ckk/gambit/include' making all in lib make[1]: Entering directory '/home/ckk/gambit/lib' ../gsc-boot -:~~bin=../bin,~~lib=../lib,~~include=../include -f -c -check -prelude "(##include "header.scm")" _repl.scm make[1]: *** [makefile:167: _repl.c] Segmentation fault make[1]: *** Deleting file '_repl.c' make[1]: Leaving directory '/home/ckk/gambit/lib' make: *** [makefile:417: all-recursive] Error 1
After that, I tried using VS 2015 (unzipped vstudio.zip -- opened the sln - but did not succeed)
Eventually, I tried with mingw (from mingw.org) -
./configure; make -j4 latest-release ; ./configure --prefix=/GAMBITSCHEME --enable-single-host; make -j4 from-scratch ; make check; make -j4 doc; make install
The above resulted in GAMBITSCHEME getting created under / -> under C:\MinGW\msys\1.0 that is .... however I got this error -
$ gsc -exe hello.scm *** ERROR IN ##parameterize -- No such file or directory (current-directory "\GAMBITSCHEME\bin\")
So, I copied the whole GAMBITSCHEME director under C:\ and wala!!! things worked (I now have a working gambit compiler on my windows box - where I need to spend a lot of time). I am sharing this just in case anyone finds this useful. I am going to try to use the prebuilt 64 bit windows build (I had tried it earlier but had run into some issues)
Regards, Kashyap
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list