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

Simon Taylor staylr at gmail.com
Sat Jan 13 18:10:54 AEDT 2007


On 12-Jan-2007, Peter Ross <pro at missioncriticalit.com> wrote:
> On 1/12/07, Simon Taylor <staylr at gmail.com> wrote:
> >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.
> >
> I found the following message which may solve our problem
> 
> http://cygwin.com/ml/cygwin/2004-03/msg01300.html

mount -X may not be necessary with recent versions of Cygwin:
<http://www.cygwin.com/ml/cygwin/2006-12/msg00132.html>
 
> However my reading of the gcc manual seems to indicate there is no way
> to pass the list of files as a file, can anyone else confirm that?

Not that I can see.

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