<div dir="ltr">Hi,<div><br></div><div>I am trying to build the latest development source (gambit-v4_8_8-devel) on Mac OS X (darwin14.5.0). I am running into the following error while configuring the source:</div><div><br></div><div><div>In file included from _num.c:705:0:</div><div>_num.c: In function ‘long int ___H__20___num(___processor_state)’:</div><div>../include/gambit.h:2880:98: error: ‘__builtin_add_overflow’ was not declared in this scope</div><div> #define ___FIXADDP(x,y)(___EXPECT_FALSE(__builtin_add_overflow((___WORD)(x),(___WORD)(y),&___temp))?___FAL:___temp)</div><div>                                                                                                  ^</div><div>../include/gambit.h:4296:30: note: in definition of macro ‘___SET_R3’</div><div> #define ___SET_R3(val)___R3=(val);</div><div>                              ^</div><div>../include/gambit.h:2880:25: note: in expansion of macro ‘___EXPECT_FALSE’</div><div> #define ___FIXADDP(x,y)(___EXPECT_FALSE(__builtin_add_overflow((___WORD)(x),(___WORD)(y),&___temp))?___FAL:___temp)</div><div>                         ^</div><div>_num.c:22107:14: note: in expansion of macro ‘___FIXADDP’</div><div>    ___SET_R3(___FIXADDP(___R1,___R2))</div><div>              ^</div><div>../include/gambit.h:2890:95: error: ‘__builtin_mul_overflow’ was not declared in this scope</div><div> #define ___FIXMULP(x,y)(___EXPECT_FALSE(__builtin_mul_overflow((___WORD)(x),___INT(y),&___temp))?___FAL:___temp)</div><div>                                                                                               ^</div><div>../include/gambit.h:4296:30: note: in definition of macro ‘___SET_R3’</div><div> #define ___SET_R3(val)___R3=(val);</div><div>                              ^</div><div>../include/gambit.h:2890:25: note: in expansion of macro ‘___EXPECT_FALSE’</div><div> #define ___FIXMULP(x,y)(___EXPECT_FALSE(__builtin_mul_overflow((___WORD)(x),___INT(y),&___temp))?___FAL:___temp)</div><div>                         ^</div><div>_num.c:22698:14: note: in expansion of macro ‘___FIXMULP’</div><div>    ___SET_R3(___FIXMULP(___R1,___R2))</div><div>              ^</div><div>../include/gambit.h:2907:98: error: ‘__builtin_sub_overflow’ was not declared in this scope</div><div> #define ___FIXSUBP(x,y)(___EXPECT_FALSE(__builtin_sub_overflow((___WORD)(x),(___WORD)(y),&___temp))?___FAL:___temp)</div><div>                                                                                                  ^</div><div>../include/gambit.h:4296:30: note: in definition of macro ‘___SET_R3’</div><div> #define ___SET_R3(val)___R3=(val);</div><div>                              ^</div><div>../include/gambit.h:2907:25: note: in expansion of macro ‘___EXPECT_FALSE’</div><div> #define ___FIXSUBP(x,y)(___EXPECT_FALSE(__builtin_sub_overflow((___WORD)(x),(___WORD)(y),&___temp))?___FAL:___temp)</div><div>                         ^</div><div>_num.c:23679:14: note: in expansion of macro ‘___FIXSUBP’</div><div>    ___SET_R3(___FIXSUBP(___R1,___R2))</div><div>              ^</div></div><div><br></div><div>The complete configure command is:</div><div><br></div><div>./configure --enable-single-host --enable-multiple-threaded-vms --bindir=${MY_HOME}/platform/gsc/bin --includedir=${MY_HOME}/platform/gsc/include --libdir=${MY_HOME}/platform/gsc/lib<br></div><div><br></div><div>If the `--enable-multiple-threaded-vms` option is removed, I get a different error:</div><div><br></div><div><div>gcc -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    -I"../include"  -o "gsi"    _gsi.o _gsi_.o "../lib/libgambit.a"  libgambitgsi.a</div><div>Undefined symbols for architecture x86_64:</div><div>  "___builtin_add_overflow", referenced from:</div><div>      ____H__20___num in libgambit.a(_num.o)</div><div>      ____H__20___system in libgambit.a(_system.o)</div><div>  "___builtin_mul_overflow", referenced from:</div><div>      ____H__20___num in libgambit.a(_num.o)</div><div>  "___builtin_sub_overflow", referenced from:</div><div>      ____H__20___num in libgambit.a(_num.o)</div><div>ld: symbol(s) not found for architecture x86_64</div></div><div><br></div><div>What am I doing wrong?</div><div><br></div><div>Thanks,</div><div><br></div><div>--Vijay</div></div>