Boost logo

Boost-Build :

Subject: Re: [Boost-build] bjam from 1.49.0 aborts on 100k targets project without message on AIX/gcc-4.6
From: Hubert Tong (hstong_at_[hidden])
Date: 2012-03-15 15:44:40


It it is a out-of-memory condition, on AIX, you may want to investigate the
maxdata linker option:
e.g., apply -bmaxdata:0xAFFFFFFF/dsa to the link step of your bjam build

Hope this helps.
-- HT

Hubert S K Tong
IBM Canada Ltd, C2/YGH/8200/MKM
8200 Warden Ave, Markham ON L6G 1C7
Canada

From: Steven Watanabe <watanabesj_at_[hidden]>
To: "Boost.Build developer's and user's list"
            <boost-build_at_[hidden]>
Date: 15-03-2012 03:05 PM
Subject: Re: [Boost-build] bjam from 1.49.0 aborts on 100k targets
            project without message on AIX/gcc-4.6
Sent by: boost-build-bounces_at_[hidden]

AMDG

On 03/15/2012 11:50 AM, Frank Birbacher wrote:
> Hi,
>
> I'm trying to build a software project that comprises of approx 250
> libraries. bjam actually builds parts of the libraries, but not all of
> them at once. It shall link an application that depends on all libs,
> but it aborts before compilation. I estimate some 100k targets found
> and some 2.5k targets to be built (using -a switch). But bjam will
> abort before showing the real numbers:
>
> - "bjam" alone takes 40s, prints nothing, and aborts
> - "bjam --debug-building" takes 40s, prints lots of targets, and aborts
> - "bjam -n" takes 40s, prints some commands, then aborts; the command
> to link the final exe is missing
> - "bjam -n" after manually executing the shown commands: takes 40s,
> prints nothing, then aborts
>
> in neither case does it print "...patience...". Building some subdirs
> with only part of the targets works.
>
> Setup:
> OS: AIX 5.3
> Tool: gcc-4.6
> Bjam: from Boost 1.49.0
>
> How shall I debug bjam in this case? Are there some built in limits to
> the size of the project? May some internal list run over?

It's most likely running out of memory.
Can you try using trunk Boost.Build/bjam?
There are several optimizations that
reduce memory usage.

> Can I easily
> build a debug version of bjam that I can run using gdb or something?
>

cd tools/build/v2/engine
./build.sh --debug

In Christ,
Steven Watanabe
_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost-build




graycol.gif

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