Page 1 of 1

Compilation error of 3.1 in ubuntu 17.10

Posted: 11 Dec 2017, 17:41
by stumpc5
the error message is

/usr/include/c++/7/limits:321:7: error: invalid abstract return type ‘pm::graph::EdgeMapBase’
max() _GLIBCXX_USE_NOEXCEPT { return _Tp(); }
^~~
/usr/include/c++/7/limits:327:7: error: invalid abstract return type ‘pm::graph::EdgeMapBase’
lowest() noexcept { return _Tp(); }
^~~~~~
/usr/include/c++/7/limits:333:7: error: invalid abstract return type ‘pm::graph::EdgeMapBase’
epsilon() _GLIBCXX_USE_NOEXCEPT { return _Tp(); }
^~~~~~~
/usr/include/c++/7/limits:337:7: error: invalid abstract return type ‘pm::graph::EdgeMapBase’
round_error() _GLIBCXX_USE_NOEXCEPT { return _Tp(); }
^~~~~~~~~~~
/usr/include/c++/7/limits:341:7: error: invalid abstract return type ‘pm::graph::EdgeMapBase’
infinity() _GLIBCXX_USE_NOEXCEPT { return _Tp(); }
^~~~~~~~
/usr/include/c++/7/limits:346:7: error: invalid abstract return type ‘pm::graph::EdgeMapBase’
quiet_NaN() _GLIBCXX_USE_NOEXCEPT { return _Tp(); }
^~~~~~~~~
/usr/include/c++/7/limits:351:7: error: invalid abstract return type ‘pm::graph::EdgeMapBase’
signaling_NaN() _GLIBCXX_USE_NOEXCEPT { return _Tp(); }
^~~~~~~~~~~~~
/usr/include/c++/7/limits:357:7: error: invalid abstract return type ‘pm::graph::EdgeMapBase’
denorm_min() _GLIBCXX_USE_NOEXCEPT { return _Tp(); }
^~~~~~~~~~
YYYYY/polymake-3.1/support/corelib.make:86: recipe for target '../../perlx-5.26.0-x86_64-linux-gnu-thread-multi/RuleGraph.o' failed
make[2]: *** [../../perlx-5.26.0-x86_64-linux-gnu-thread-multi/RuleGraph.o] Error 1

Any support how to get it running would be appreciated!

Thanks, Christian

Re: Compilation error of 3.1 in ubuntu 17.10

Posted: 11 Dec 2017, 21:39
by blorenz
This is a known issue with gcc 7, please try the patch posted here (or even shorter one in the sage trac):
viewtopic.php?f=8&t=559&p=2007#p2014

Best,
Benjamin