First time here? Check our help page!
1

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

vlle's avatar
207
vlle
asked 2019-09-10 04:48:38 -0500
edit flag offensive 0 remove flag reopen merge delete

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?

JasonGlazer's avatar JasonGlazer (2019-09-10 07:48:08 -0500) edit

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...

Julien Marrec's avatar Julien Marrec (2019-09-10 08:31:32 -0500) edit

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's avatar vlle (2019-09-12 02:12:35 -0500) edit

@vlle: this should be fixed with GCC 5 (&6) by PR#7493 by @MarkAdams

Julien Marrec's avatar Julien Marrec (2019-09-13 05:29:16 -0500) edit
1

(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...)

Julien Marrec's avatar Julien Marrec (2019-09-13 05:30:30 -0500) edit
add a comment see more comments

1 Answer

2

GCC 7 doesn't have this problem.

This should also be fixed with GCC 5 (&6) by PR#7493 by @MarkAdams in current develop

Julien Marrec's avatar
29.7k
Julien Marrec
answered 2019-09-13 06:30:19 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments