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)
Sun, Feb 8, 1:47 AM
Unknown Object (File)
Sat, Feb 7, 5:23 PM
Unknown Object (File)
Sat, Jan 31, 6:24 AM
Unknown Object (File)
Jan 14 2026, 12:33 AM
Unknown Object (File)
Jan 11 2026, 3:59 AM
Unknown Object (File)
Dec 22 2025, 1:27 AM
Unknown Object (File)
Dec 21 2025, 9:10 PM
Unknown Object (File)
Dec 14 2025, 4:43 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
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.