Mail Archives: djgpp/2000/04/22/02:29:07
--------------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.
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. I recently downloaded
the following files based</font>
<br><font size=-1>upon zip-picker:</font>
<br><font size=-1> djdev203.zip
faq230b.zip
rhide14b.zip</font>
<br><font size=-1> bnu2951b.zip
gcc2952b.zip mak379b.zip</font>
<br><font size=-1> txi40b.zip
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'. 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> DEVICE=C:\DOS\HIMEM.SYS</font>
<br><font size=-1> DEVICE=C:\DOS\EMM386.EXE NOEMS</font>
<br><font size=-1> files=40</font>
<br><font size=-1> SHELL=c:\dos\command.com c:\dos
/e:2048 /p</font>
<br><font size=-1> fcbs=40,0</font>
<br><font size=-1> dos=HIGH</font>
<br><font size=-1>and the AUTOEXEC.BAT file so it includes the following
lines:</font>
<br><font size=-1> PATH ... \programs\gcc\bin;
...</font>
<br><font size=-1> 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> DPMI memory available: 33287
Kb</font>
<br><font size=-1> 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> 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> \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. This time I got the following error message:</font>
<br><font size=-1> 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> 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? Second, does anyone know why 'cc1'
will not run? 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. 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 -