[gambit-list] Bootable Gambit repo

Bradley Lucier lucier at math.purdue.edu
Tue Apr 17 12:52:24 EDT 2012


Marc:

On Tue, 2012-04-17 at 09:38 -0400, Marc Feeley wrote:


> Quick-install instructions for a typical installation
> -----------------------------------------------------
> 
>   git clone https://github.com/feeley/gambit.git
>   cd gambit
>   ./configure --enable-single-host
>   make bootstrap
>   make bootclean
>   make


The following variant fails:


    28	10:58	git clone https://github.com/feeley/gambit.git
    29	11:00	cd gambit
    30	11:00	./configure 'CC=/pkgs/gcc-4.7.0/bin/gcc -march=native -fschedule-insns -frename-registers' '--enable-single-host' '--enable-multiple-versions' '--enable-shared'
    31	11:05	make bootstrap
    32	11:22	make bootclean
    33	11:22	make


with


making all in include
make[1]: Entering directory `/home/lucier/programs/gambit/include'
major=`echo v4.6.5 | sed -e "s/v//g" -e "s/\.[^.]*\.[^.]*//g"`; \
	minor=`echo v4.6.5 | sed -e "s/v[^.]*\.//g" -e "s/\.[^.]*//g"`; \
	revision=`echo v4.6.5 | sed -e "s/v[^.]*\.[^.]*\.//g" -e "s///g"`; \
	version_num=`eval expr "\( 100000 \\* $major \) + \( 1000 \\* $minor \) + $revision"`; \
	echo "#error \"The version indicated in ___VERSION is not supported by gambit.h\"" > gambit-not$version_num.h; \
	echo "#error \"You are probably compiling C code generated by a Gambit compiler earlier or later than v4.6.5\"" >> gambit-not$version_num.h; \
	echo "#error \"___VERSION will be set to $version_num to reduce other errors\"" >> gambit-not$version_num.h; \
	echo "#undef ___VERSION" >> gambit-not$version_num.h; \
	echo "#define ___VERSION $version_num" >> gambit-not$version_num.h; \
	echo "#include \"gambit.h\"" >> gambit-not$version_num.h
make[1]: Leaving directory `/home/lucier/programs/gambit/include'
making all in lib
make[1]: Entering directory `/home/lucier/programs/gambit/lib'
LD_LIBRARY_PATH=../lib:../gsi:../gsc:/usr/local/Gambit-C/current/lib: ../gsc-boot -:~~bin=../bin,~~lib=../lib,~~include=../include -f -c -check _io.scm
../gsc-boot: error while loading shared libraries: ../lib/libgambc.so: cannot open shared object file: No such file or directory
make[1]: *** [_io.c] Error 127
make[1]: Leaving directory `/home/lucier/programs/gambit/lib'
make: *** [all-recursive] Error 1


evidently, you can't do --enable-shared.  Or perhaps "make bootclean"
should leave the libraries, which might be better.

Also, if I do "make -j 4 bootstrap" after the configure, I get the
failure


make[1]: Entering directory `/home/lucier/programs/gambit/lib'
../gsc-boot -:~~bin=../bin,~~lib=../lib,~~include=../include -f -c -check _io.scm
../gsc-boot -:~~bin=../bin,~~lib=../lib,~~include=../include -f -c -check _num.scm
/bin/sh: ../gsc-boot: not found
/bin/sh: make[1]: *** [_io.c] Error 127
make[1]: *** Waiting for unfinished jobs....
../gsc-boot: not found
make[1]: *** [_num.c] Error 127
make[1]: Leaving directory `/home/lucier/programs/gambit/lib'
make: *** [all-recursive] Error 1
make: *** Waiting for unfinished jobs....


It appears the makefile dependencies should be changed to allow parallel
makes.

Brad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20120417/2594260e/attachment.htm>


More information about the Gambit-list mailing list