Boost logo

Boost :

From: Alan (alan-boost_at_[hidden])
Date: 2004-12-15 21:00:17


* Robert Ramey <ramey_at_[hidden]> [2004-12-15 12:41]:
> Alan wrote:
> > What is the state of the release build hang on xml_grammar.cpp
> > on OS X? Has anyone endevoured to block out the offending
> > optiminzation?
> >
> > This is were I saw the message discussed last.
> >
> > http://aspn.activestate.com/ASPN/Mail/Message/2233439

> Based on http://lists.boost.org/MailArchives/boost/msg75057.php and the fact
> I don't have OS X around I concluded there was nothing I could do about it.
> It would seen easy to address untill there's a new version of the compiler
> by tweaking one of the build Jamfiles to supress one or more of the
> optimizations for this platform. This was the thrust of my suggestion in
> http://lists.boost.org/MailArchives/boost/msg75058.php . I don't think this
> would take very long to do - but it does require understanding of how to
> tweak the Jamffile for the library build which could also be an obstacle.

    Yes. Done. Here is relevent bit of the Jamfile.

lib boost_serialization
    : ## sources ##
        ../src/$(WSOURCES).cpp
    : ## requirements ##
        std::locale-support
        <msvc><*><include>$(SPIRIT_ROOT)
        <msvc-stlport><*><include>$(SPIRIT_ROOT)
        <vc7><*><include>$(SPIRIT_ROOT)
        <borland><*><include>$(SPIRIT_ROOT)
        <borland-5_5_1><*><include>$(SPIRIT_ROOT)
        <borland-5_6_4><*><include>$(SPIRIT_ROOT)
        <sysinclude>$(BOOST_ROOT)
        <borland><*><cxxflags>"-w-8080 -w-8071 -w-8057"
        <msvc><*><cxxflags>-Gy
        <vc7><*><cxxflags>-Gy
        <vc7_1><*><cxxflags>-Gy

        ## Darwin doesn't like optimization...
        <darwin><*><optimization>off
        <darwin><*><inlining>off

        <define>BOOST_TEST_NO_AUTO_LINK=1
        <vacpp><*><define>BOOST_MPL_USE_APPLY_INTERNALLY
    : ## default-build
       <runtime-link>static/dynamic <threading>single/multi

    (The Jamfile syntax means nothing to me.
        I put an echo line above what I determined to be the cc
        command and tried different things until I saw -O0 and
        -fno-inline.)

    Now it compiles. As to the specific opimization to turn off,
    well, I'll have to learn more about Boost.Build.

--
Alan Gutierrez - alan_at_[hidden]

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