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

Errors for building EnergyPlus from source [closed]

asked 2019-09-10 04:48:38 -0500

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

edit retag flag offensive reopen merge delete

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 gravatar image 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 gravatar image 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 gravatar image 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 gravatar image 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 gravatar image Julien Marrec  ( 2019-09-13 05:30:30 -0500 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2019-09-13 06:30:19 -0500

GCC 7 doesn't have this problem.

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

edit flag offensive delete link more

 

Question Tools

1 follower

Stats

Asked: 2019-09-10 04:48:38 -0500

Seen: 155 times

Last updated: Sep 13 '19