Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Fri, 9 Apr 2004 09:34:40 -0700 (PDT)
From: "Peter A. Castro" <doctor@fruitbat.org>
To: Cygwin List <cygwin@cygwin.com>
Subject: Re: Gcc/ld and long command lines (> 32k)
In-Reply-To: <6.0.1.1.0.20040409091358.02873248@127.0.0.1>
Message-ID: <Pine.LNX.4.53.0404090930220.1010@gremlin.fruitbat.org>
References: <Pine.GSO.4.50.0404081719370.380-100000@pjakkur.iar.se> <6.0.1.1.0.20040408115748.039fb948@127.0.0.1> <Pine.GSO.4.50.0404082128460.8775-100000@pjakkur.iar.se> <20040408225311.GA29354@coc.bosbc.com> <Pine.LNX.4.53.0404082052110.1010@gremlin.fruitbat.org> <6.0.1.1.0.20040409091358.02873248@127.0.0.1>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-IsSubscribed: yes

On Fri, 9 Apr 2004, Larry Hall wrote:

> At 12:00 AM 4/9/2004, you wrote:
> >On Thu, 8 Apr 2004, Christopher Faylor wrote:
> >
> >> On Thu, Apr 08, 2004 at 10:07:19PM +0200, Johan Holmberg wrote:
> >> >A short description of my enironment:
> >> >
> >> >- the programs I'm building are C/C++ compilers
> >> >
> >> >- I use GCC in Cygwin to get a "second opinion" from another compiler
> >> >  than the one we use normally (Visual C++).
> >> >
> >> >- I use Cons as my build tool (a Perl program).
> >> >  I use ActiveState Perl (not Cygwin Perl).
> >> >
> >> >So yes, I'm working "outside a Cygwin environment".
> >>
> >> Ok, so, sorry, but I wasn't thinking clearly.  The '-X' option to mount
> >> only works when a cygwin programs which invoke another cygwin program.
> >> If you have a normal windows program running a cygwin program, your only
> >> option for a longer command line is (shudder) '@'.
> >
> >Well, Chris, for better or worst, this "feature" does seem to work.  I
> >did a quick test of this using an @file which is 81k long and it works!
> >You will need to remount both /usr/bin and /usr/lib with the "--system
> >--binary -X" options.  Then put your list of objects into @file and run
> >gcc @file.
> >For the record, I still feel that a better practice is to do archiving of
> >object files and link with the library, but if this gets you going, this
> >time, more power to ya.
>
> But wait.  You're mixing advice (Chris's) it seems.  He said @file would
> be a solution if you were working outside of Cygwin shells and that
> remounting with -X could be a solution if you were inside.  So it sounds
> like you tried both, and perhaps together, but it's unclear whether you
> ran your tests from a Cygwin shell prompt, a Windows DOS prompt, or both.
> Can you clarify what you tried and where?

Hmmm... Ok, you are correct, I was ambiguous.  To be clear:

I tried running gcc from a DOS Command Prompt, using the @file syntax and
having /usr/bin & /usr/lib mounted with "-X" and this worked.  This is
the same way in which Johan would be running it, and so I kinda implied
this would work for him in the mode he currently works in.  I didn't
bother doing this from within a Cygwin shell (bash, tcsh, zsh, etc)
because the @file syntax wouldn't work, and Johan specificically wanted
to be able to use this form.

> Thanks,

-- 
Peter A. Castro <doctor@fruitbat.org> or <Peter.Castro@oracle.com>
	"Cats are just autistic Dogs" -- Dr. Tony Attwood

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

