Re: problem with build, /usr/local/bin/cscc: Argument list too long

Rhys Weatherley <[email protected]>
Newsgroups gmane.comp.gnu.dotgnu.developer
Organization Southern Storm Software, Pty Ltd
Message-ID <[email protected]>
On Sunday 08 August 2004 12:39 pm, michael johnson wrote:
> Hi,
> 	I'm having trouble getting ml-pnet 0.6.8 compiled on freebsd, cscc
> dies because the argument list is too long.
>
> /usr/local/bin/cscc: Argument list too long
> *** Target `all' for project `System.Web' failed ***
> *** Project `System.Web' build failed ***
> gmake[2]: *** [System.Web.dll] Error 1
> gmake[2]: Leaving directory
> `/usr/ports/lang/ml-pnet/work/ml-pnet-0.6.8/class/System.Web'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory
> `/usr/ports/lang/ml-pnet/work/ml-pnet-0.6.8/class'
> gmake: *** [all-recursive] Error 1
> *** Error code 2
>
> the default max arg. on freebsd is
> root@gentoo /usr/ports/lang/ml-pnet > sysctl kern.argmax
> kern.argmax: 65536
>
> Is there a workaround I could use , ie. compile only 1/2 then compile
> the other 1/2?

You could try unpacking and building the distribution in a directory that has 
a shorter path than "/usr/ports/lang/ml-pnet/work" (e.g. /tmp).  It is the 
length of the pathnames that cause the overflow.

The permanent fix is to modify "pnet/support/spawn.c" to use response files 
under FreeBSD (currently it only uses them for Windows).  Feel free to send 
me a patch for this.

Cheers,

Rhys.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.