delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/22/02:29:07

From: "Roger D. Hunt" <rhunt AT worldaccessnet DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Can't get djgpp set up - help please!
Date: Sat, 22 Apr 2000 10:43:26 -0700
Organization: Posted via Supernews, http://www.supernews.com
Lines: 180
Message-ID: <3901E4BE.CBE9C9B2@worldaccessnet.com>
X-Complaints-To: newsabuse AT supernews DOT com
X-Mailer: Mozilla 4.7 [en] (Win95; U)
X-Accept-Language: en
MIME-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

--------------77E53D1410308DB1B1A6A265
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I hope that someone can help with a problem getting the DJGPP flavor of
'gcc', version 2.7.2.1.f.1, to run under MS-DOS v6.22.  I have some
experience with 'g77' but I'm admittedly way over my head with C and
have
never used 'gcc' before.  I recently downloaded the following files
based
upon zip-picker:
     djdev203.zip         faq230b.zip           rhide14b.zip
     bnu2951b.zip        gcc2952b.zip        mak379b.zip
     txi40b.zip               csdpmi4b.zip
and un-zipped them in the path 'C:\PROGRAMS\GCC' as opposed to the
recommended directory of 'C:\DJGPP'.  All of the directories containing
the
unzipped files are located in directories C:\PROGRAMS\GCC\BIN,
C:\PROGRAMS\GCC\LIB, etc.

Following the guidelines of the README.1ST file, I then changed my
CONFIG.SYS
file so it includes these lines:
     DEVICE=C:\DOS\HIMEM.SYS
     DEVICE=C:\DOS\EMM386.EXE NOEMS
     files=40
     SHELL=c:\dos\command.com c:\dos /e:2048 /p
     fcbs=40,0
     dos=HIGH
and the AUTOEXEC.BAT file so it includes the following lines:
     PATH ... \programs\gcc\bin; ...
     SET DJGPP=\programs\gcc\djgpp.env
I rebooted so those changes could take effect, and when I ran SET from
the
DOS prompt, it shows the PATH and DJGPP settings are there.

I am running this on an old Pentium with only 48MB of RAM, although when
I
run GO32-V2, it indicates:
     DPMI memory available: 33287 Kb
     DPMI swap space available: 35553 Kb
So far, so good.

My first problem was when I ran 'gcc', I got the following error
message:
  GCC.EXE: installation problem, cannot exec 'cc1': No such file or
directory
I found that CC1.EXE was not in the BIN directory but in:
  \programs\gcc\lib\gcc-lib\djgpp\2.952\cc1.exe
As a temporary measure, I copied CC1.EXE into the BIN directory and ran
'gcc'
again.  This time I got the following error message:
  GCC.EXE: installation problem, cannot exec 'cc1': Not enough memory
The CC1.EXE file is 1.8MB in size so it understandably won't load in
DOS's
640K base memory, but I guess I expected that the 'cwsdpmi' software I
downloaded was supposed to allow the .EXE's to load high and run in
protected
mode.

I strongly suspect my problem has to do with the DJGPP.ENV file in the
\PROGRAMS\GCC directory which contains the following unmodified line:
     DJDIR=%:/>DJGPP%
which needs to be modified to reflect my \PROGRAMS\GCC path, but I'm not

familiar with the syntax of this file.

First, does anyone know how to edit the DJGPP.ENV file to reflect the
path
I am using?  Second, does anyone know why 'cc1' will not run?  Am I
terribly
misinformed in thinking that 'gcc' runs under native MS-DOS as opposed
to a
WIN95 DOS box or something?

I've searched the FAQ and README files, but they have not helped.  Can
anybody help?

Thanks,

Roger

--------------77E53D1410308DB1B1A6A265
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<font size=-1>I hope that someone can help with a problem getting the DJGPP
flavor of</font>
<br><font size=-1>'gcc', version 2.7.2.1.f.1, to run under MS-DOS v6.22.&nbsp;
I have some</font>
<br><font size=-1>experience with 'g77' but I'm admittedly way over my
head with C and have</font>
<br><font size=-1>never used 'gcc' before.&nbsp; I recently downloaded
the following files based</font>
<br><font size=-1>upon zip-picker:</font>
<br><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp; djdev203.zip&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
faq230b.zip&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
rhide14b.zip</font>
<br><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp; bnu2951b.zip&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
gcc2952b.zip&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mak379b.zip</font>
<br><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp; txi40b.zip&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
csdpmi4b.zip</font>
<br><font size=-1>and un-zipped them in the path 'C:\PROGRAMS\GCC' as opposed
to the</font>
<br><font size=-1>recommended directory of 'C:\DJGPP'.&nbsp; All of the
directories containing the</font>
<br><font size=-1>unzipped files are located in directories C:\PROGRAMS\GCC\BIN,</font>
<br><font size=-1>C:\PROGRAMS\GCC\LIB, etc.</font><font size=-1></font>
<p><font size=-1>Following the guidelines of the README.1ST file, I then
changed my CONFIG.SYS</font>
<br><font size=-1>file so it includes these lines:</font>
<br><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp; DEVICE=C:\DOS\HIMEM.SYS</font>
<br><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp; DEVICE=C:\DOS\EMM386.EXE NOEMS</font>
<br><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp; files=40</font>
<br><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp; SHELL=c:\dos\command.com c:\dos
/e:2048 /p</font>
<br><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp; fcbs=40,0</font>
<br><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp; dos=HIGH</font>
<br><font size=-1>and the AUTOEXEC.BAT file so it includes the following
lines:</font>
<br><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp; PATH ... \programs\gcc\bin;
...</font>
<br><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp; SET DJGPP=\programs\gcc\djgpp.env</font>
<br><font size=-1>I rebooted so those changes could take effect, and when
I ran SET from the</font>
<br><font size=-1>DOS prompt, it shows the PATH and DJGPP settings are
there.</font><font size=-1></font>
<p><font size=-1>I am running this on an old Pentium with only 48MB of
RAM, although when I</font>
<br><font size=-1>run GO32-V2, it indicates:</font>
<br><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp; DPMI memory available: 33287
Kb</font>
<br><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp; DPMI swap space available: 35553
Kb</font>
<br><font size=-1>So far, so good.</font><font size=-1></font>
<p><font size=-1>My first problem was when I ran 'gcc', I got the following
error message:</font>
<br><font size=-1>&nbsp; GCC.EXE: installation problem, cannot exec 'cc1':
No such file or directory</font>
<br><font size=-1>I found that CC1.EXE was not in the BIN directory but
in:</font>
<br><font size=-1>&nbsp; \programs\gcc\lib\gcc-lib\djgpp\2.952\cc1.exe</font>
<br><font size=-1>As a temporary measure, I copied CC1.EXE into the BIN
directory and ran 'gcc'</font>
<br><font size=-1>again.&nbsp; This time I got the following error message:</font>
<br><font size=-1>&nbsp; GCC.EXE: installation problem, cannot exec 'cc1':
Not enough memory</font>
<br><font size=-1>The CC1.EXE file is 1.8MB in size so it understandably
won't load in DOS's</font>
<br><font size=-1>640K base memory, but I guess I expected that the 'cwsdpmi'
software I</font>
<br><font size=-1>downloaded was supposed to allow the .EXE's to load high
and run in protected</font>
<br><font size=-1>mode.</font><font size=-1></font>
<p><font size=-1>I strongly suspect my problem has to do with the DJGPP.ENV
file in the</font>
<br><font size=-1>\PROGRAMS\GCC directory which contains the following
unmodified line:</font>
<br><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp; DJDIR=%:/>DJGPP%</font>
<br><font size=-1>which needs to be modified to reflect my \PROGRAMS\GCC
path, but I'm not</font>
<br><font size=-1>familiar with the syntax of this file.</font><font size=-1></font>
<p><font size=-1>First, does anyone know how to edit the DJGPP.ENV file
to reflect the path</font>
<br><font size=-1>I am using?&nbsp; Second, does anyone know why 'cc1'
will not run?&nbsp; Am I terribly</font>
<br><font size=-1>misinformed in thinking that 'gcc' runs under native
MS-DOS as opposed to a</font>
<br><font size=-1>WIN95 DOS box or something?</font><font size=-1></font>
<p><font size=-1>I've searched the FAQ and README files, but they have
not helped.&nbsp; Can</font>
<br><font size=-1>anybody help?</font><font size=-1></font>
<p><font size=-1>Thanks,</font><font size=-1></font>
<p><font size=-1>Roger</font></html>

--------------77E53D1410308DB1B1A6A265--

- Raw text -


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