|
Boost-Build : |
Subject: Re: [Boost-build] Error message: gcc.link.dll actions too long (max 102400):
From: Jürgen Hunold (juergen.hunold_at_[hidden])
Date: 2011-07-06 15:10:50
Hi Werner,
courtesy copy due to the long delay.
On Friday, 1. July 2011 10:04:46 Schweizer Werner wrote:
> I'm trying to use Boost.Build to build our existing project based currently
> on make.
>
> In one library, containing many code-generated source files the linking
> action fails due to the large list of object files.
On Unix? I only encoutered this one on Windows.
> In contrast to building with make the linker command line is blown up in
> Boost.Build by the relative path names to every .o-file.
>
> With make we build directly in the directory, where the .o-files are.
>
> Is it possible with Boost.Build to also change into the directory with the
> .o-files and execute the link command there with pure object file names
> (path-part stripped off)?
>
> How can I do this?
That I can't answer and it might be tricky.
> Or is there an other solution?
Use response files. On gcc they are known as "linker input files".
The attached patch works with gcc-4.6 and maybe all 4.x.
Developed on windows, but works on Kubuntu 11.04.
Feedback welcome.
If this works for other, I can try to get this into Boost.Build.
Yours,
Jürgen
-- * Dipl.-Math. Jürgen Hunold ! Ingenieurgesellschaft für * voice: ++49 511 262926 57 ! Verkehrs- und Eisenbahnwesen mbH * fax : ++49 511 262926 99 ! Lister Straße 15 * juergen.hunold_at_[hidden] ! www.ivembh.de * * Geschäftsführer: ! Sitz des Unternehmens: Hannover * Prof. Dr.-Ing. Thomas Siefer ! Amtsgericht Hannover, HRB 56965 * PD Dr.-Ing. Alfons Radtke !
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