compilation problem

Questions and problems about using polymake go here.

Moderator: Moderators

vdelecroix
Posts: 5
Joined: 08 Jul 2016, 23:06

compilation problem

Postby vdelecroix » 20 Jun 2017, 18:35

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

User avatar
gawrilow
Main Author
Posts: 340
Joined: 25 Dec 2010, 17:40

Re: compilation problem

Postby gawrilow » 20 Jun 2017, 19:58

Sorry, polymake can't be built with gcc 7 yet.
Please use clang or gcc 5/6.

vdelecroix
Posts: 5
Joined: 08 Jul 2016, 23:06

Re: compilation problem

Postby vdelecroix » 21 Jun 2017, 00:23

Thanks. Too bad for me. Are there plans to allow gcc 7.1?

User avatar
gawrilow
Main Author
Posts: 340
Joined: 25 Dec 2010, 17:40

Re: compilation problem

Postby gawrilow » 21 Jun 2017, 01:08

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

vdelecroix
Posts: 5
Joined: 08 Jul 2016, 23:06

Re: compilation problem

Postby vdelecroix » 21 Jun 2017, 13:54

What about having a failure with an informative error message at configure step?

blorenz
Developer
Posts: 109
Joined: 10 Jan 2011, 17:21

Re: compilation problem

Postby blorenz » 21 Jun 2017, 14:07

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
Attachments
gcc7.patch
(1.06 KiB) Downloaded 139 times

User avatar
gawrilow
Main Author
Posts: 340
Joined: 25 Dec 2010, 17:40

Re: compilation problem

Postby gawrilow » 21 Jun 2017, 14:23

Oh, a nice surprise!

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

vdelecroix
Posts: 5
Joined: 08 Jul 2016, 23:06

Re: compilation problem

Postby vdelecroix » 25 Jun 2017, 13:42

Thanks! I posted a simplified patch at https://trac.sagemath.org/ticket/23289 for inclusion in SageMath.


Return to “Helpdesk”

cron