[mercury-users] too long argument lists constructed by mmc --make

Simon Taylor staylr at gmail.com
Fri Jan 12 13:20:24 AEDT 2007


On 12-Jan-2007, Peter Ross <pro at missioncriticalit.com> wrote:
> Our problem is that we make heavy use of nested modules and hence have
> very long file names.
> 
> I have just added a few instances to the navigation, which had the
> effect of adding a few new mercury file.
> 
> When linking, I got this:
> 
> ** Error making 
> `Mercury/asm_fast.gc.decldebug/i686-pc-cygwin/Mercury/exes/loans
> _tcp_server.exe'.
> gcc: installation problem, cannot exec 
> '/usr/lib/gcc/i686-pc-cygwin/3.4.4/collec
> t2.exe': Argument list too long
> make: *** [loans_tcp_server] Error 1
> 
> The problem is the list of .o's that is getting way too big!
> 
> I just changed grade to have a shorter grade name (then path to .o's
> is shorter) and that worked!
> 
> We need to find a way around that problem!

Can you split your program into smaller libraries?

A more general work-around might be to always construct a `.a' file
(using multiple invocations of `ar' to keep the argument lists short)
for all the modules in a program on Cygwin and pass that to the linker.

Simon.
--------------------------------------------------------------------------
mercury-users mailing list
Post messages to:       mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions:          mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the users mailing list