delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/11/27/13:11:54

Message-ID: <F02EDE79D030D11192BA006008136ED11A61BF@pamela.x3m.se>
From: Ztream <Ztream AT x3m DOT se>
To: "'djgpp AT delorie DOT com'" <djgpp AT delorie DOT com>
Subject: Bug or unfortunate situation?
Date: Fri, 27 Nov 1998 19:10:22 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2232.9)
Reply-To: djgpp AT delorie DOT com

Ok, this is quite a story, but I've cut down on it as much as I can. If you
don't care to read it, skip down 'til you see a large "BINGO!" ;)

I was running old versions of the various djgpp packages on my comp, and was
fighting the .cpp debug bug in gcc. As I installed djgpp on another machine,
I realized that I hadn't upgraded anything on my comp in the last year.
Therefor, I decided to throw the entire old installation out the window and
download all the packages again from the zip-picker page. I have installed
djgpp about four times before, so I was rather confident that I knew how to
install it (after all, it's just about unzipping). The only potential
problem was that I am running NT (but I was with the last installation too),
so I was careful to use pkunzip so I would not get long filenames. These are
the files I used:

DJDEV201.ZIP
FAQ211B.ZIP
RHIDE14B.ZIP
BNU281B.ZIP
GCC281B.ZIP
MAK377B.ZIP
LGP2811B.ZIP
GDB416B.ZIP
ALLEG30.ZIP
BCCGRX20.ZIP
GPP281B.ZIP

I wrote a simple hello world program (but of course:) in C++ and tried to
compile it. Bom. gxx exited with an error from cpp saying it could not find
what appeared to be a temporary file located in the standard djgpp temp dir
(Does it look for or try to create this file?).
I had noticed that gcc 2.8.1 placed some files in different directories than
before, so I wasn't all that surprised (after all, how many thing work the
first time?). I converted it to plain C just to test. Now, gcc could not
find cpp.exe. Hmm....

To make a long story short, I consulted the docs, the faq, the
newsgroup...everywhere I turned, the only answer seemed to be "do as you are
told in readme.1st". Well, that file hasn't changed since -96, so I was
pretty sure I knew how to install djgpp. I started experimenting with the
environment variables and djgpp.env. No luck. I even tried using unzip386 to
install it. Still no luck. I rebooted my computer and booted DOS, trying
there. Still no luck.
I have an old PS/2 386 standing on my desk. I tried installing it there with
the exact same procedure. It *worked*! Now I was beginning to get
frustrated. I kept reading and rereading docs, I experimented even more...

Then, at 8am (after no sleep of course) after two days came the
breakthrough: I tried installing djgpp to a different directory: BINGO!

So here is the problem:
On my harddrive, I have decided to put all development tools under the same
directory. Naturally, I named this directory DEV and installed djgpp under
c:\dev\djgpp.
*DJGPP does not work if installed under c:\dev*
I guess this has something to do with the meaning of /dev under unix(?).

I have seen no information regarding this anywhere. Of course, I could be
mistaken, but I did try to rename the directory, and then it started
working. I renamed it to dev again and it stopped working (and yes, I did
update the environment variables properly and checked them with "set" too).
It is of course possible that I am in error, but if not, I do consider this
to be a bug in the porting not to have this behavior removed. Perhaps it is
totally obvious to everyone else :). It did work in the older distribution.

If you want to flame me for this, then go ahead, I guess I deserv it...but I
*want* my development tools in c:\dev :).

Well, end of story...
B.R.,
 / Z

---------------------------------------------------------------------------
Ztream / 1x4x9 - "The white dwarf"
ztream AT x3m DOT se \ www.highrad.x3m.se/Ztream
Free your mind.

- Raw text -


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