Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2002-11-19 08:13:36


"Ewan Brock" <ewan_at_[hidden]> writes:

> Hello All,
>
> Has anyone had success in compiling boost using the Forte 7 compiler?
>
> When trying to compile a file even with a single include statement,
> assertion errors occur:
>
> For example, compiling:
>
> #include "boost/graph/graph_traits.hpp"
>
> With compiler options:
>
>
> /opt/SUNWspro/bin/CC -xarch=v9a -Kpic -mt -g -D_XOPEN_SOURCE=500 -D__EXTENSI
> ONS__ -DMVE_DEBUG -
> DMVE_SUN64 -DMVE_WFM -DMVE_SUN -DMVE_BOOST -DMVE_BOOST_VERSION=1290 -DM
> VE_STD -
> DMVE_SUN_F7 -I. -I/homes/perforce/utils_install/SUN64/boost-1_29_0-SUN64.DE
> BUG.F7 -c main.cxx -o obj_files/SUN64.DEBUG.F7/main.o
>
> Gives the compiler output below:
>
> >> Assertion: (../lnk/init.cc, line 957)
> while processing /homes/perforce/utils_install/SUN64/boost-1_29_0-
> SUN64.DEBUG.F7/boost/type_traits/is_function.hpp at line 50.
>
>
> 1. Is this occuring because I have the incorrect config
> settings ?

No, it's occurring because the Sun compiler is badly broken.

> If so, what should these settings be for Forte 7?
>
> 2. Is there anything else I need to do in order to get boost
> to work?

You might try getting the very latest compiler patches from Sun...

...however, if that doesn't fix your problem, someone needs to
implement a bunch of workarounds in Boost to avoid these errors.

-- 
                       David Abrahams
   dave_at_[hidden] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk