Page MenuHomeFreeBSD

math/gringo: Require a C++11-compliant standard library and make it work with GCC < 4.9.
ClosedPublic

Authored by rakuco on Sep 1 2015, 3:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 22, 2:06 AM
Unknown Object (File)
Sun, Nov 9, 10:10 PM
Unknown Object (File)
Sun, Nov 2, 10:54 PM
Unknown Object (File)
Thu, Oct 30, 2:20 PM
Unknown Object (File)
Thu, Oct 30, 2:19 PM
Unknown Object (File)
Thu, Oct 30, 8:00 AM
Unknown Object (File)
Wed, Oct 29, 11:19 PM
Unknown Object (File)
Oct 24 2025, 1:25 AM
Subscribers
None

Details

Summary

Despite ports r340913, the port still fails to build on FreeBSD 9.3 with lang/gcc (GCC 4.8):

libreify/src/parser.cc: In member function 'void Reify::Parser::parseProgram()':
libreify/src/parser.cc:130:51: error: 'to_string' is not a member of 'std'

Apply a workaround for bug 193528 found in other ports to make that function visible to GCC 4.8 (GCC 4.9 and later are fine).

Additionally, the port actually requires a C++11 standard library in addition to a C++11-compliant compiler, so adjust the USES line and later simplify the process of choosing which compiler to use.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 337
Build 337: arc lint + arc unit

Event Timeline

rakuco retitled this revision from to math/gringo: Require a C++11-compliant standard library and make it work with GCC < 4.9..
rakuco updated this object.
rakuco edited the test plan for this revision. (Show Details)
rakuco added a reviewer: vsevolod.
vsevolod edited edge metadata.

Thank you, I've searched for something like this for a long time already!

This revision is now accepted and ready to land.Sep 1 2015, 3:23 PM
This revision was automatically updated to reflect the committed changes.