Errors for building EnergyPlus from source [closed]
Hello,
I was trying to build EnergyPlus (V9-1-0) on Red Hat Enterprise Linux Server release 6.5, on which I built successfully EnergyPlus V8-7-0, and I got the following errors. I used gcc 5.5.0 and, cmake 3.14.5 and python 2.7.5.
In file included from /.../.../.../.../.../EnergyPlus/third_party/eigen/Eigen/SparseCore:40:0,
from /.../.../.../.../.../EnergyPlus/third_party/kiva-ep/src/libkiva/Cell.hpp:18,
from /.../.../.../.../.../EnergyPlus/third_party/kiva-ep/src/libkiva/Domain.hpp:7,
from /.../.../.../.../.../EnergyPlus/third_party/kiva-ep/src/libkiva/Ground.hpp:9,
from /.../.../.../.../.../EnergyPlus/third_party/kiva-ep/src/libkiva/Aggregator.hpp:7,
from /.../.../.../.../.../EnergyPlus/src/EnergyPlus/HeatBalanceKivaManager.hh:52,
from /.../.../.../.../.../EnergyPlus/src/EnergyPlus/SurfaceGeometry.hh:59,
from /.../.../.../.../.../EnergyPlus/src/EnergyPlus/ConvectionCoefficients.cc:79:
/.../.../.../.../.../EnergyPlus/third_party/eigen/Eigen/src/SparseCore/AmbiVector.h: In member function ‘_Scalar& Eigen::internal::AmbiVector<_Scalar, _StorageIndex>::coeff(Eigen::Index)’:
/.../.../.../.../.../EnergyPlus/third_party/eigen/Eigen/src/SparseCore/AmbiVector.h:270:44: error: parse error in
template argument list
while (elid >= 0 && llElements[elid].index<i) ^
[ 51%] Building CXX object src/EnergyPlus/CMakeFiles/energypluslib.dir/DataAirSystems.cc.o
[ 51%] Building CXX object src/EnergyPlus/CMakeFiles/energypluslib.dir/DataBSDFWindow.cc.o
make[2]: *** [src/EnergyPlus/CMakeFiles/energypluslib.dir/ConvectionCoefficients.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [src/EnergyPlus/CMakeFiles/energypluslib.dir/all] Error 2
make: *** [all] Error 2
Does someone have any idea for these problem and know how to solve these problems please?
Thanks
Long
Closed for the following reason "the question is answered, right answer was accepted" by vlle 2019-10-04 03:22:23 -0500
Comments
Maybe try a newer version of GCC?
I get the same using Ubuntu 16.04, GCC 5.4.0 when I build V9.2.0-IOFreeze or the current develop. It does work fine on Ubuntu 18.04 with gcc 7.4.0 though...
Hello, Thanks both for your comment and suggestion. Yes it seems to work with a higher version of gcc. I still have had another problem but it was not related to the gcc version anymore when I used gcc 7.2.0. Long
@vlle: this should be fixed with GCC 5 (&6) by PR#7493 by @MarkAdams
(for what it's worth, you can probably just do this single-line change if you need a quick workaround: https://github.com/NREL/EnergyPlus/pu...)