delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/11/17:36:35

From: Dan Hensley <dansherryn AT juno DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Revisited: gcc.exe: installation problem, cannot exec `cpp'
Date: Mon, 11 Jan 1999 15:20:13 -0700
Organization: University of Colorado at Boulder
Lines: 45
Message-ID: <369A791D.62DA3315@juno.com>
NNTP-Posting-Host: tele-anx0506.colorado.edu
Mime-Version: 1.0
NNTP-Posting-User: root
X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.0.36 i686)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

 I know this question has already been asked a million times, but I have
to ask it again since I have not found the answer.
 Here's the situation:  I'm running NT4sp4.  I've installed djdev202,
faq211b, bnu281b, gcc281b, gpp281b.  I used pkunzip -d to install into
c:\dev\djgpp.  I set DJGPP=c:\dev\djgpp\djgpp.env.  I set
PATH=c:\dev\djgpp\bin;%PATH%.  I tried compiling ("gcc sel3.c", got the
well-known error message:
gcc.exe: installation problem, cannot exec `cpp': No such file or
directory (ENOENT)

 This file does exist in lib/gcc-lib/djgpp/2.81.  So I looked in
gnu/gcc-2.81 and read problems.txt.  It says to read the FAQ.  Before I
do this, I read readme.dlj, which says I can safely remove the [gcc] and
[cpp] entries from %DJDIR%/djgpp.env.  So I do this.  Still no luck.
The .env file in the gnu/gcc-2.81 directory does include those
statements, so I copy those into my main .env file.  No good.  Besides,
those entries seem to point to a /contrib directory structure that
doesn't exist.  So I read the FAQ, section 6.5.  It identifies this
error and says something about checking the COMPILER_PATH variable in
the .env file, and to look at problems.txt, which referred me to the
FAQ.  No help there.  Where is COMPILER_PATH documented?  I found a link
to the DJGPP.ENV syntax, but it was kind of brief.  I don't know what
format to use for COMPILER_PATH, so I guess:
"COMPILER_PATH=%DJDIR%/lib/gcc-lib/djgpp/2.81", and put this in 3 places
in my djgpp.env file:  once at the top, following a +, and once in each
of the sections [gcc] and [cpp].  Still no dice.  I tried modifying the
directory structure in [gcc] and [cpp] to point to the correct place,
since the library and include paths point to a seemingly non-existent
place.
 Can someone please tell me what I forgot to read?  Oh yeah, I also went
to DejaNews and searched through 2 years of archives without finding the
answer (the question appeared often enough though).  It seems that this
question has come up often enough that there should be a long section in
the FAQ that clearly states all that needs to happen, instead of
pointing to other files.  It would be even better if things worked "out
of the box", but that didn't happen for me.
 Another question:  When exactly does djgpp.env get read?  If I make a
change to it, will the next command in my DOS prompt (i.e. gcc) read the
file, or do I need to launch a new DOS prompt, reboot, take my machine
apart, or what?  I've tried various combinations of the above, but
nothing seems to take.
 Thanks for any help.

Dan

- Raw text -


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