Boost logo

Boost-Build :

Subject: Re: [Boost-build] Problem with boost build - max include limit?
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-11-09 02:35:46


On Monday 09 November 2009 Johan Nilsson wrote:

> Jeremy wrote:
>
> [snip]
>
> >
> > Is there a limit to include folders? A character or command line
> > limit that I'm hitting and am unaware of? If so, how can I work
> > around it? I'd like to avoid splitting this library into further
> > libraries if there is another way.
> >
> > Thanks
> >
> >
> > project Common
> > : requirements <include>./
> > : requirements <include>../dependencies/gmsrc_ex/src/gm
> > : requirements <include>../dependencies/gmsrc_ex/src/binds
> > : requirements
> > <include>../dependencies/gmsrc_ex/src/3rdParty/mathlib
> > : requirements
> > <include>../dependencies/gmsrc_ex/src/3rdParty/gmbinder2
> > : requirements <include>../dependencies/guichan-0.7.1/include
> > : requirements <include>../dependencies/guichan-0.7.1/addons
> > : requirements <include>../dependencies/Recast/Recast/Include
> > : requirements <include>../dependencies/Recast/Detour/Include
> > : requirements <include>../dependencies/physfs
> > : requirements <include>../dependencies/physfs/lzma/C
> > : requirements <include>../dependencies/physfs/zlib123
> > : requirements <include>../dependencies/physfs/lzma/C/Archive/7z
> > : requirements
> > <include>../dependencies/physfs/lzma/C/Compress/Lzma
> > : requirements
> > <include>../dependencies/physfs/lzma/C/Compress/Branch
> > : requirements <include>../dependencies/sqlite3
> > ;
> >
>
> Does Boost.Build really accept the above? Try removing the duplicate
> "requirements":
>
> project Common
> : requirements
> <include>./
> <include>../dependencies/gmsrc_ex/src/gm
> <include>../dependencies/gmsrc_ex/src/binds
> <include>../dependencies/gmsrc_ex/src/3rdParty/mathlib
> <include>../dependencies/gmsrc_ex/src/3rdParty/gmbinder2
>
> [...]
>
> <include>../dependencies/sqlite3
> ;
>
> If that doesn't help, try invoking bjam with the "-d+2" option to see the
> actual commands invoked.

It would also help to know what compiler is used. On MSVC, we use response files,
so the size of the command line is not important. gcc on linux enjoy a generous
limit on the command line length. gcc on windows might be problem -- if you check
that your version does support response files, I probably can modify boost.build
to take advantage of that.

- 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