www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/18/05:19:44

Date: Thu, 18 Sep 1997 12:18:16 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Andy Murren <andy AT interactive DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: Please Help! cannot exec 'cpp'
In-Reply-To: <199709172138.RAA15841@delorie.com>
Message-ID: <Pine.SUN.3.91.970918121751.1776G-100000@is>
MIME-Version: 1.0

On Wed, 17 Sep 1997, Andy Murren wrote:

> I have installed djgpp (v2) to my machines at work and home using
> the binary distribution. 
> I have run from the command line, within emacs and with RHIDE.  I
> have not built from source because I do not have another compiler on
> my system.
> 
> When I attempt to compile a program I get the following message:
> 
> bash$ g++ -g -v -Wall -obook1 book_9-4.cc
> Using builtin specs.
> gcc version cygnus-2.7.2-970404
>  cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=7 -Di386 -D_WIN32 -DPOSIX -D__CYGWIN32__ -DWINNT -D_X86_=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__i386__ -D_WIN32 -
D__POSIX__ -D__CYGWIN32__ -D__WINNT__ -D_X86_=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__i386 -D__POSIX -D__WINNT -Asystem(winnt) -Acpu(i386) -Amachine(i386) -g -Wall -Di386 -Asystem(unix) -Acpu(i386) 
-Ama
> chine(i386) -D__i386__ -Asystem(unix) -Acpu(i386) -Amachine(i386) book_9-4.cc C:\TEMP\cc001003.ii
> g++: installation problem, cannot exec `cpp': Invalid argument

This clearly shows that you are running the Cygnus port of GCC, not
the DJGPP port.  Is that what you want?  If so, the most probable
cause of your grief is that the way DJGPP passes long command lines to
child programs is incompatible with what the Cygnus port expects, and
so cpp gets a truncated command line.

If you need to use the Cygnus tools, I suggest you switch to the NT
port of Emacs (ftp://ftp.cs.washington.edu/pub/ntemacs/latest/i386/).

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019