Page 1 of 1

compilation problem

Posted: 20 Jun 2017, 18:35
by vdelecroix
Hello,

I was trying to install polymake as a Sage package and ended up with the following compilation error
/usr/include/c++/7.1.1/limits:317:7: error: invalid abstract return type 'pm::graph::EdgeMapBase'
min() _GLIBCXX_USE_NOEXCEPT { return _Tp(); }
(I am using gcc 7.1.1). The downstream report for Sage as well as the complete traceback is available at

https://trac.sagemath.org/ticket/23289

Any help would be appreciated,
Vincent

Re: compilation problem

Posted: 20 Jun 2017, 19:58
by gawrilow
Sorry, polymake can't be built with gcc 7 yet.
Please use clang or gcc 5/6.

Re: compilation problem

Posted: 21 Jun 2017, 00:23
by vdelecroix
Thanks. Too bad for me. Are there plans to allow gcc 7.1?

Re: compilation problem

Posted: 21 Jun 2017, 01:08
by gawrilow
We are observing the same error messages and can't find our fault. Probably we've got to wait until gcc 7 matures a little bit more...

Re: compilation problem

Posted: 21 Jun 2017, 13:54
by vdelecroix
What about having a failure with an informative error message at configure step?

Re: compilation problem

Posted: 21 Jun 2017, 14:07
by blorenz
Please try the workaround in the attached patch (which is originally from the fedora polymake maintainers). Our testsuite just completed without any further errors (with gcc 7.1.0).

Benjamin

Re: compilation problem

Posted: 21 Jun 2017, 14:23
by gawrilow
Oh, a nice surprise!

Actually, #ifdef is not needed here, the proposed variant for gcc7 should work for any other compiler as well.

Re: compilation problem

Posted: 25 Jun 2017, 13:42
by vdelecroix
Thanks! I posted a simplified patch at https://trac.sagemath.org/ticket/23289 for inclusion in SageMath.