Boost logo

Boost-Build :

Subject: Re: [Boost-build] boost build on opensolaris gcc 3.4.3
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-01-29 04:50:05


Karun Gahlawat wrote:

> got boost from the svn trunk. building on opensolaris 2008.11
>
> g++ --version
> g++ (GCC) 3.4.3 (csl-sol210-3_4-20050802)

This is a fairly old version of gcc. The version string indicates
it comes from CodeSourcery, and the most recent release of Sourcery G++
for SPARC/Solaris uses gcc 4.3.2

> gcc.compile.c++
> bin.v2/libs/python/build/gcc-3.4.3/release/threading-multi/numeric.o
> In file included from ./boost/python/object/make_instance.hpp:9,
> from ./boost/python/object/make_ptr_instance.hpp:8,
> from ./boost/python/to_python_indirect.hpp:11,
> from ./boost/python/converter/arg_to_python.hpp:10,
> from ./boost/python/call.hpp:15,
> from ./boost/python/object_core.hpp:12,
> from ./boost/python/object.hpp:9,
> from ./boost/python/tuple.hpp:10,
> from ./boost/python/numeric.hpp:10,
> from libs/python/src/numeric.cpp:6:
> ./boost/python/object/instance.hpp:44: error: a casts to a type other
> than an integral or enumera
> tion type cannot appear in a constant-expression

I imagine your version of gcc is just too old. You might want to check with Boost.Python
folks (who have a separate mailing list) if this version is gcc is known to not
work in general, but even if this is a solaris-specific glitch, upgrading and finding
the workaround yourself appears to be the most likely options.

- Volodya


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk