I could never get your reconfigure trick to work.  I keep getting the error below during the last make.

...
g++ -Wno-unused -Wno-write-strings -O1 -fwrapv -fno-strict-aliasing -fno-trapping-math -fno-math-errno -fschedule-insns2 -fomit-frame-pointer -fPIC -fno-common -mieee-fp -mpc64   -rdynamic  -I"../include"  -o "gsi"    _gsi.o _gsi_.o "../lib/libgambit.a" -lutil -ldl  libgambitgsi.a
_gsi_.o: In function `main':
_gsi_.c:(.text+0x19): undefined reference to `___main_char'
collect2: error: ld returned 1 exit status
makefile:178: recipe for target 'gsi' failed
make[1]: *** [gsi] Error 1
...


Fortunately, the changes Marc made to the repo this morning fixed the errors I was getting.  I'm able to make from-scratch now with the --enable-cplusplus flag in place.

Thanks for your help!


On Sun, Nov 27, 2016 at 11:27 PM, Bradley Lucier <lucier@math.purdue.edu> wrote:
On 11/27/2016 11:15 PM, Bob Coleman wrote:

# configuring with just the --enable-cplusplus flag gives the errors below:
# ./configure --enable-cplusplus

bob@bob-Gazelle:~/GambitSchemeSourceRepo/gambit$ make -j8 from-scratch

This worked for me:

    21  14:20   git clone https://github.com/gambit/gambit.git
    22  14:21   cd gambit
    23  14:21   ./configure
    24  14:23   make -j8 latest-release
    27  14:25   ./configure 'CC=gcc -march=native' '--enable-single-host' '--enable-shared' '--enable-multiple-versions'
    28  14:26   make -j8 from-scratch
    29  14:28   make check
    30  14:29   make -j doc
    31  14:29   sudo make install
    35  23:20   ./configure --enable-cplusplus
    36  23:20   make mostlyclean
    37  23:20   make
    38  23:22   make check

I.e., after configuring with my usual options and "make from-scratch" I reconfigured with --enable-cplusplus and then "make; make check" worked.

My gcc/g++:

firefly:~/programs/gambit/gambit> gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 6.2.0-5ubuntu12' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 6.2.0 20161005 (Ubuntu 6.2.0-5ubuntu12)
firefly:~/programs/gambit/gambit> g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 6.2.0-5ubuntu12' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 6.2.0 20161005 (Ubuntu 6.2.0-5ubuntu12)


Brad