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)
Fri, Oct 18, 7:45 PM
Unknown Object (File)
Oct 7 2024, 4:57 AM
Unknown Object (File)
Oct 2 2024, 9:34 PM
Unknown Object (File)
Sep 30 2024, 5:26 PM
Unknown Object (File)
Sep 30 2024, 3:09 AM
Unknown Object (File)
Sep 30 2024, 3:09 AM
Unknown Object (File)
Sep 30 2024, 3:09 AM
Unknown Object (File)
Sep 30 2024, 2:58 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.