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
F141945942: D3545.diff
Wed, Jan 14, 12:33 AM
Unknown Object (File)
Sun, Jan 11, 3:59 AM
Unknown Object (File)
Mon, Dec 22, 1:27 AM
Unknown Object (File)
Sun, Dec 21, 9:10 PM
Unknown Object (File)
Dec 14 2025, 4:43 AM
Unknown Object (File)
Nov 27 2025, 8:43 PM
Unknown Object (File)
Nov 22 2025, 2:06 AM
Unknown Object (File)
Nov 9 2025, 10:10 PM
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
Lint Not Applicable
Unit
Tests Not Applicable

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.