delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/22/12:13:23

From: Martin Str|mberg <ams AT father DOT ludd DOT luth DOT se>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Can't get djgpp set up - help please!
Date: 22 Apr 2000 15:57:32 GMT
Organization: University of Lulea, Sweden
Lines: 118
Message-ID: <8dsi5c$lpc$1@news.luth.se>
References: <3901E4BE DOT CBE9C9B2 AT worldaccessnet DOT com>
X-Trace: news.luth.se 956419052 22316 130.240.16.18 (22 Apr 2000 15:57:32 GMT)
X-Complaints-To: abuse AT luth DOT se
User-Agent: tin/pre-1.4-981225 ("Volcane") (UNIX) (SunOS/4.1.4 (sun4m))
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Roger D. Hunt <rhunt AT worldaccessnet DOT com> wrote:
: 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

You didn't have some DJGPP programs installed in C:\PROGRAMS\GCC\BIN,
I hope.

: 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

That's all right.

: the
: unzipped files are located in directories C:\PROGRAMS\GCC\BIN,
: C:\PROGRAMS\GCC\LIB, etc.

Ok.

: 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

You need the "C:" part too. It should be "SET
DJGPP=C:\programs\gcc\djgpp.env" etc.

Would you mind showing us exactly what the PATH is set to in
AUTOEXEC.BAT?

: 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'

Bad move.

: 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.

That's a strange error. The memory that are lacking is not the 640KiBs
but the extended one, I think, and as we saw you had more than 30MiB
available according to go32-v2.

: 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.

No. You do NOT have to change that file for a different installation
directory.

Actually it is GOOD you didn't edit it...

: First, does anyone know how to edit the DJGPP.ENV file to reflect the
: path
: I am using?

Yes. But you don't have to.

: 		Second, does anyone know why 'cc1' will not run?  Am I

Try with the "C:" part in setting the variables and we'll see...

: terribly
: misinformed in thinking that 'gcc' runs under native MS-DOS as opposed
: to a
: WIN95 DOS box or something?

No. gcc runs fine in DOZE.

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

How did you miss the fact that the "C:" part must be there?


Right,

							MartinS

- Raw text -


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