Root 5.32.00 fails to compile on i686, is fine on x86_64

I’m building this in an archlinux system.
The full output of the failed attempt on the i686 machine can be found at gist.github.com/1636964
There was a similar error posted on Gdb: virtual memory exhausted but it seems to have resolved itself without a real reason for it working.

I configured root with the following options, with linux for the 32bit one and linux8664gcc for the 64bit one:

--prefix=/usr \ --disable-builtin-ftgl \ --disable-builtin-freetype \ --disable-builtin-glew \ --disable-builtin-pcre \ --disable-builtin-zlib \ --disable-builtin-lzma \ --enable-gdml \ --enable-gsl-shared \ --enable-minuit2 \ --enable-soversion \ --enable-roofit \ --enable-python \ --with-python-incdir=/usr/include/python2.7 \ --with-python-libdir=/usr/lib

and I got the following error:

/build/src/root/math/mathcore/inc/Fit/BinPoint.h /build/src/root/math/mathcore/inc/Fit/ParameterSetting s.h /build/src/root/math/mathcore/inc/Fit/DataOptions.h /build/src/root/math/mathcore/inc/Fit/FitConfig.h /build/src/root/math/mathcore/inc/Fit/UnBinData.h /build/src/root/math/mathcore/inc/LinkDef3.h Error: class,struct,union or type ROOT::th not defined include/Fit/PoissonLikelihoodFCN.h:58: Error: class,struct,union or type ROOT::th not defined include/Fit/PoissonLikelihoodFCN.h:58: Error: class,struct,union or type ROOT::th not defined include/Fit/PoissonLikelihoodFCN.h:61: Error: class,struct,union or type ROOT::th not defined include/Fit/PoissonLikelihoodFCN.h:61: Error: class,struct,union or type ROOT::th not defined include/Fit/PoissonLikelihoodFCN.h:58: Error: class,struct,union or type ROOT::th not defined include/Fit/PoissonLikelihoodFCN.h:58: Error: class,struct,union or type ROOT::th not defined include/Fit/PoissonLikelihoodFCN.h:61: Error: class,struct,union or type ROOT::th not defined include/Fit/PoissonLikelihoodFCN.h:61: Error: class,struct,union or type ROOT::th not defined include/Fit/LogLikelihoodFCN.h:59: Error: class,struct,union or type ROOT::th not defined include/Fit/LogLikelihoodFCN.h:59: Error: class,struct,union or type ROOT::th not defined include/Fit/LogLikelihoodFCN.h:62: Error: class,struct,union or type ROOT::th not defined include/Fit/LogLikelihoodFCN.h:62: Error: class,struct,union or type ROOT::th not defined include/Fit/LogLikelihoodFCN.h:59: Error: class,struct,union or type ROOT::th not defined include/Fit/LogLikelihoodFCN.h:59: Error: class,struct,union or type ROOT::th not defined include/Fit/LogLikelihoodFCN.h:62: Error: class,struct,union or type ROOT::th not defined include/Fit/LogLikelihoodFCN.h:62: Error: class,struct,union or type ROOT::th not defined include/Fit/Chi2FCN.h:70: Error: class,struct,union or type ROOT::th not defined include/Fit/Chi2FCN.h:70: Error: class,struct,union or type ROOT::th not defined include/Fit/Chi2FCN.h:74: Error: class,struct,union or type ROOT::th not defined include/Fit/Chi2FCN.h:74: Error: class,struct,union or type BaseObjFunction::Type_t not defined include/Fit/Chi2FCN.h:75: Error: class,struct,union or type ROOT::th not defined include/Fit/Chi2FCN.h:70: Error: class,struct,union or type ROOT::th not defined include/Fit/Chi2FCN.h:70: Error: class,struct,union or type ROOT::th not defined include/Fit/Chi2FCN.h:74: Error: class,struct,union or type ROOT::th not defined include/Fit/Chi2FCN.h:74: Error: class,struct,union or type BaseObjFunction::Type_t not defined include/Fit/Chi2FCN.h:75: Warning: Error occurred during reading source files Warning: Error occurred during dictionary source generation !!!Removing math/mathcore/src/G__MathFit.cxx math/mathcore/src/G__MathFit.h !!!

Please let me know if you need any more info, thanks.

edit: just tried building from trunk and it seems to work

edit: just tried building from root.cern.ch/svn/root/branches/v5-32-00-patches and it has the same error

found a fix, and opened a bug report here: savannah.cern.ch/bugs/?90906 which describes the fix

Hi, I similarly find that root fails to make correctly on my i686 machine. 12.04 ubuntu (gcc 4.6.3-1ubuntu5)

The latest 5.34 (rev 44667) falls over with mathcore. I changed to an earlier version (svn up -r42566;make clean;make), but the issue persists. Any thoughts?

[…]root/math/mathcore/inc/LinkDef3.h
Error: class,struct,union or type ROOT::th not defined include/Fit/Chi2FCN.h:70:
Error: class,struct,union or type ROOT::th not defined include/Fit/Chi2FCN.h:70:
Error: class,struct,union or type ROOT::th not defined include/Fit/Chi2FCN.h:74:
Error: class,struct,union or type ROOT::th not defined include/Fit/Chi2FCN.h:74:
Error: class,struct,union or type BaseObjFunction::Type_t not defined include/Fit/Chi2FCN.h:75:
Error: class,struct,union or type ROOT::th not defined include/Fit/Chi2FCN.h:70:
Error: class,struct,union or type ROOT::th not defined include/Fit/Chi2FCN.h:70:
Error: class,struct,union or type ROOT::th not defined include/Fit/Chi2FCN.h:74:
Error: class,struct,union or type ROOT::th not defined include/Fit/Chi2FCN.h:74:
Error: class,struct,union or type BaseObjFunction::Type_t not defined include/Fit/Chi2FCN.h:75:
Error: class,struct,union or type ROOT::th not defined include/Fit/LogLikelihoodFCN.h:59:
Error: class,struct,union or type ROOT::th not defined include/Fit/LogLikelihoodFCN.h:59:
Error: class,struct,union or type ROOT::th not defined include/Fit/LogLikelihoodFCN.h:62:
Error: class,struct,union or type ROOT::th not defined include/Fit/LogLikelihoodFCN.h:62:
Error: class,struct,union or type ROOT::th not defined include/Fit/LogLikelihoodFCN.h:59:
Error: class,struct,union or type ROOT::th not defined include/Fit/LogLikelihoodFCN.h:59:
Error: class,struct,union or type ROOT::th not defined include/Fit/LogLikelihoodFCN.h:62:
Error: class,struct,union or type ROOT::th not defined include/Fit/LogLikelihoodFCN.h:62:
Error: class,struct,union or type ROOT::th not defined include/Fit/PoissonLikelihoodFCN.h:58:
Error: class,struct,union or type ROOT::th not defined include/Fit/PoissonLikelihoodFCN.h:58:
Error: class,struct,union or type ROOT::th not defined include/Fit/PoissonLikelihoodFCN.h:61:
Error: class,struct,union or type ROOT::th not defined include/Fit/PoissonLikelihoodFCN.h:61:
Error: class,struct,union or type ROOT::th not defined include/Fit/PoissonLikelihoodFCN.h:58:
Error: class,struct,union or type ROOT::th not defined include/Fit/PoissonLikelihoodFCN.h:58:
Error: class,struct,union or type ROOT::th not defined include/Fit/PoissonLikelihoodFCN.h:61:
Error: class,struct,union or type ROOT::th not defined include/Fit/PoissonLikelihoodFCN.h:61:
Warning: Error occurred during reading source files
Warning: Error occurred during dictionary source generation
!!!Removing math/mathcore/src/G__MathFit.cxx math/mathcore/src/G__MathFit.h !!!
Error: core/utils/src/rootcint_tmp: error loading headers…
make: *** [math/mathcore/src/G__MathFit.cxx] Error 1

Hi,

Do you still have this issue?

Philippe.

Hi Philippe, all fine with v5.99 :slight_smile: