Problems with ppl-0.10.2 and g++ 4.4.0 on Open Solaris (x86_64)

I have tried to build ppl-0.10.2 with g++-4.4.0 and get many errors starting with:
In file included from algorithms.hh:27, from C_Polyhedron.cc:28: Pointset_Powerset.defs.hh:68: error: expected unqualified-id before numeric constant Pointset_Powerset.defs.hh:69: error: type/value mismatch at argument 1 in template parameter list for 'template<class D> class Parma_Polyhedra_Library::Powerset' Pointset_Powerset.defs.hh:69: error: expected a type, got '15' Pointset_Powerset.defs.hh:1234: error: 'Base' is not a class or namespace Pointset_Powerset.defs.hh:1235: error: 'Base' is not a class or namespace Pointset_Powerset.defs.hh:1236: error: 'Base' is not a class or namespace
<etc.>
I first built g++ 4.4.0 without ppl and then tried to build ppl with the resulting g++ but got the errors above. I am building on open solaris 2008.11.
I carefully ensured that gmp, mpfr, and ppl are all configured and built the same.
Thank you for any help.
-Tom
Tom Browder Niceville, Florida USA

Tom Browder wrote:
I have tried to build ppl-0.10.2 with g++-4.4.0 and get many errors starting with:
In file included from algorithms.hh:27, from C_Polyhedron.cc:28: Pointset_Powerset.defs.hh:68: error: expected unqualified-id before numeric constant Pointset_Powerset.defs.hh:69: error: type/value mismatch at argument 1 in template parameter list for 'template<class D> class Parma_Polyhedra_Library::Powerset' Pointset_Powerset.defs.hh:69: error: expected a type, got '15' Pointset_Powerset.defs.hh:1234: error: 'Base' is not a class or namespace Pointset_Powerset.defs.hh:1235: error: 'Base' is not a class or namespace Pointset_Powerset.defs.hh:1236: error: 'Base' is not a class or namespace
<etc.>
I first built g++ 4.4.0 without ppl and then tried to build ppl with the resulting g++ but got the errors above. I am building on open solaris 2008.11.
I carefully ensured that gmp, mpfr, and ppl are all configured and built the same.
Thank you for any help.
Hi Tom,
apparently, some of the header files in your system are broken. For example, here is line 69 in src/Pointset_Powerset.defs.hh:
typedef Powerset<CS> Base;
I bet that you have an header file containing something like
#define CS 15
Can you please check that? All the best,
Roberto

On Sun, Apr 26, 2009 at 4:02 AM, Roberto Bagnara bagnara@cs.unipr.it wrote:
Tom Browder wrote:
I have tried to build ppl-0.10.2 with g++-4.4.0 and get many errors
...
apparently, some of the header files in your system are broken. For example, here is line 69 in src/Pointset_Powerset.defs.hh:
...
I bet that you have an header file containing something like
#define CS 15
Can you please check that?
Thank you, Dr. Bagnaro, I am checking now and will report results.
Regards,
-Tom
participants (2)
-
Roberto Bagnara
-
Tom Browder