From: "Roger D. Hunt" 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 Content-Type: multipart/alternative; boundary="------------77E53D1410308DB1B1A6A265" 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 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--