Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
1

Errors for building EnergyPlus from source [closed]

asked 5 years ago

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

Preview: (hide)

Closed for the following reason the question is answered, right answer was accepted by vlle
close date 2019-10-04 03:22:23.252709

Comments

Maybe try a newer version of GCC?

JasonGlazer's avatar JasonGlazer  ( 5 years ago )

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  ( 5 years ago )

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  ( 5 years ago )

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

Julien Marrec's avatar Julien Marrec  ( 5 years ago )
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  ( 5 years ago )

1 Answer

Sort by » oldest newest most voted
2

answered 5 years ago

GCC 7 doesn't have this problem.

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

Preview: (hide)
link

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 5 years ago

Seen: 244 times

Last updated: Sep 13 '19