latest git checkout won't build
This is from a clean git checkout: $ git show HEAD commit 67cdc0881278fd734f10e4299f582fb0f649230e $ gcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../configure --prefix=/usr --enable-shared --enable-languages=c,c++,fortran,objc,obj-c++,ada --enable-threads=posix --mandir=/usr/share/man --infodir=/usr/share/info --enable-__cxa_atexit --disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch --with-tune=generic Thread model: posix gcc version 4.4.2 (GCC) $ ./configure --enable-single-host --prefix=/home/martin/opt/gambit-c $ make making all in include make[1]: Entering directory `/home/martin/opt/gambit/include' major=`echo v4.5.3 | sed -e "s/v//g" -e "s/\.[^.]*\.[^.]*//g"`; \ minor=`echo v4.5.3 | sed -e "s/v[^.]*\.//g" -e "s/\.[^.]*//g"`; \ revision=`echo v4.5.3 | 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.5.3\"" >> 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/martin/opt/gambit/include' making all in lib make[1]: Entering directory `/home/martin/opt/gambit/lib' gcc -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fomit-frame-pointer -fPIC -fno-common -mieee-fp -I"../include" -c -o "_io.o" -I. -DHAVE_CONFIG_H -D___GAMBCDIR="\"/home/martin/opt/gambit-c\"" -D___SYS_TYPE_CPU="\"i686\"" -D___SYS_TYPE_VENDOR="\"pc\"" -D___SYS_TYPE_OS="\"linux-gnu\"" -D___CONFIGURE_COMMAND="\"./configure --enable-single-host --prefix=/home/martin/opt/gambit-c\"" -D___OBJ_EXTENSION="\".o\"" -D___EXE_EXTENSION="\"\"" -D___PRIMAL _io.c -D___LIBRARY In file included from ../include/gambit.h:12, from _io.c:1310: ../include/gambit-not405003.h:1:2: error: #error "The version indicated in ___VERSION is not supported by gambit.h" ../include/gambit-not405003.h:2:2: error: #error "You are probably compiling C code generated by a Gambit compiler earlier or later than v4.5.3" ../include/gambit-not405003.h:3:2: error: #error "___VERSION will be set to 405003 to reduce other errors" make[1]: *** [_io.o] Error 1 make[1]: Leaving directory `/home/martin/opt/gambit/lib' make: *** [all-recursive] Error 1
Afficher les réponses par date
That looks like you broke bootstrapping--looks like the gsc-comp you have lying around is too old, maybe you did "git pull" instead of "make update"? Fetch the latest tarball, configure, make bootstrap, then make update.
participants (2)
-
Christian Jaeger -
Martin DeMello