Message-ID: <3902FD2B.D24A4B89@worldaccessnet.com> Date: Sun, 23 Apr 2000 06:39:57 -0700 From: "Roger D. Hunt" X-Mailer: Mozilla 4.08 [en] (Win16; U) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: Can't get djgpp set up - help please! References: <3901E4BE DOT CBE9C9B2 AT worldaccessnet DOT com> <200004221825 DOT OAA18872 AT indy DOT delorie DOT com> Content-Type: multipart/alternative; boundary="------------A8C5111A01C96A87E9516E9A" Reply-To: djgpp AT delorie DOT com --------------A8C5111A01C96A87E9516E9A Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Eli, Thank you so much for the long and detailed response to my plea for help. I took your caution to heart that there was a discrepancy between the version being reported by the 'gcc' program and the name of the zip file. However, I had never had 'gcc' on my system until yesterday, so the possibility of mixing with a previous version is nil. But because of downloading speeds, I had used two different SIMTEL.NET sites for my downloads and wondered if that was the source of the problem. At any rate, I hammered the entire gcc code with: C:\PROGRAMS>deltree gcc and proceeded with the following steps (I used a screen-to-disk utility to accurately report what transpired). ############# (1) The following directory shows everything is now gone: C:\PROGRAMS\GCC>dir Volume in drive C is MS-DOS_6 Volume Serial Number is 1D73-7E98 Directory of C:\PROGRAMS\GCC . 04-23-00 4:13a .. 04-23-00 4:13a 2 file(s) 0 bytes 122,732,544 bytes free C:\PROGRAMS\GCC> ############## (2) After the downloads, the same directory looked like: C:\PROGRAMS\GCC>dir Volume in drive C is MS-DOS_6 Volume Serial Number is 1D73-7E98 Directory of C:\PROGRAMS\GCC . 04-23-00 4:13a .. 04-23-00 4:13a COPYING DJ 2,084 04-23-00 4:25a DJDEV203 ZIP 1,538,147 04-23-00 4:33a FAQ230B ZIP 679,865 04-23-00 4:37a README 1ST 19,594 04-23-00 4:37a BNU2951B ZIP 2,567,839 04-23-00 4:51a GCC2952B ZIP 1,932,910 04-23-00 5:02a MAK379B ZIP 268,863 04-23-00 5:04a TXI40B ZIP 646,656 04-23-00 5:08a CSDPMI4B ZIP 41,506 04-23-00 5:08a 11 file(s) 7,697,464 bytes 114,548,736 bytes free C:\PROGRAMS\GCC> Note that ZIP-PICKER states that these files should occupy 7,655,958 bytes total. I don't know if that is significant. I got the files from the primary SIMTEL site at: ftp.simtel.net/pub/simtelnet/gnu/djgpp and not one of the mirror sites. ############## (3) After using pkunzip, the directory looked like: C:\PROGRAMS\GCC>dir Volume in drive C is MS-DOS_6 Volume Serial Number is 1D73-7E98 Directory of C:\PROGRAMS\GCC . 04-23-00 4:13a .. 04-23-00 4:13a COPYING DJ 2,084 04-23-00 4:25a DJDEV203 ZIP 1,538,147 04-23-00 4:33a FAQ230B ZIP 679,865 04-23-00 4:37a README 1ST 19,594 04-23-00 4:37a BNU2951B ZIP 2,567,839 04-23-00 4:51a GCC2952B ZIP 1,932,910 04-23-00 5:02a MAK379B ZIP 268,863 04-23-00 5:04a TXI40B ZIP 646,656 04-23-00 5:08a CSDPMI4B ZIP 41,506 04-23-00 5:08a BIN 04-23-00 5:24a COPYING 17,982 11-01-95 7:08p COPYING LIB 25,265 11-01-95 7:08p DJGPP ENV 3,522 12-24-99 3:19p INCLUDE 04-23-00 5:24a INFO 04-23-00 5:24a LIB 04-23-00 5:24a MANIFEST 04-23-00 5:24a TMP 04-23-00 5:24a FAQ 04-23-00 5:25a GNU 04-23-00 5:25a MAN 04-23-00 5:26a SHARE 04-23-00 5:27a 24 file(s) 7,744,233 bytes 92,667,904 bytes free C:\PROGRAMS\GCC> ############### (4) The set command shows the environment variables, etc.: C:\PROGRAMS\GCC>set COMSPEC=C:\DOS\COMMAND.COM PROMPT=$p$g PATH=\DOS;\MISC;\PUBLIC;\MENUS;\PROGRAMS\CDROM;\PROGRAMS\G77\BIN;C:\PROGRAMS\GCC \BIN;\PROGRAMS\FORTRAN\BIN;..; LIBRARY_PATH=\programs\g77\lib DJGPP=c:\programs\gcc\djgpp.env LIB=\programs\fortran\lib TEMP=\windows\temp SOUND=c:\programs\sndblstr BLASTER=A220 I5 D1 H5 P330 E620 T6 MIDI=SYNTH:1 MAP:E MODE:0 CTCM=c:\programs\sndblstr C:\PROGRAMS\GCC> Please note the changes I made to reflect the drive letter as you suggested. ############### (5) I copied the infamous 'hello.c' program onto the hard drive: C:\PROGRAMS\GCC>copy a:hello.c 1 file(s) copied C:\PROGRAMS\GCC>dir hello.c Volume in drive C is MS-DOS_6 Volume Serial Number is 1D73-7E98 Directory of C:\PROGRAMS\GCC HELLO C 89 04-21-00 3:00p 1 file(s) 89 bytes 92,651,520 bytes free C:\PROGRAMS\GCC> ############### (6) Then I compiled the hello program: C:\PROGRAMS\GCC>gcc -v hello.c gcc version 2.7.2.1.f.1 cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=7 -D__32BIT__ -D__EMX__ -Di 386 -D__32BIT__ -D__EMX__ -D__i386__ -D__i386 -Asystem(unix) -Asystem(emx) -Acpu (i386) -Amachine(i386) hello.c \windows\temp\cca00002 GCC.EXE: installation problem, cannot exec `cpp': No such file or directory C:\PROGRAMS\GCC> Note the version number being reported. ################ (7) The first few lines of the 'djgpp.env' file is shown below (as you cautioned, I did not edit it). Rather, it is exactly as it was when downloaded: #= Don't edit this line unless you move djgpp.env outside #= of the djgpp installation directory. If you do move #= it, set DJDIR to the directory you installed DJGPP in. #= DJDIR=%:/>DJGPP% +USER=dosuser +GROUP=root +TMPDIR=%DJDIR%/tmp +EMU387=%DJDIR%/bin/emu387.dxe +LFN=y +TEXMFMAIN=%DJDIR%/share/texmf +GO32STUB=%DJDIR%/bin/stubify.exe ############### (8) The following directory shows the 'cc1' program is really there: C:\PROGRAMS\GCC>dir \programs\gcc\lib\gcc-lib\djgpp\2.952\cc1.exe Volume in drive C is MS-DOS_6 Volume Serial Number is 1D73-7E98 Directory of C:\PROGRAMS\GCC\LIB\GCC-LIB\DJGPP\2.952 CC1 EXE 1,859,354 01-14-00 1:13p 1 file(s) 1,859,354 bytes 92,651,520 bytes free C:\PROGRAMS\GCC> ############### I am perplexed. Do you have any ideas? Could there be a problem at the SIMTEL.NET sites, with the proper version not being loaded in the proper file names? Or as more likely, do I have a cranial/rectal inversion? Do you have any ideas or is it time for me to give up 'gcc' as a bad idea. I downloaded and regularly use the 'g77' Fortran and it was a thousand times easier than this. Sorry about the long post, but I assumed it is better to accurately report what was done than to ask you to guess. Thanks again for all your assistance. Roger --------------A8C5111A01C96A87E9516E9A Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Eli,

Thank you so much for the long and detailed response to my plea for help.
I took your caution to heart that there was a discrepancy between the
version being reported by the 'gcc' program and the name of the zip
file.  However, I had never had 'gcc' on my system until yesterday, so
the possibility of mixing with a previous version is nil.  But because
of downloading speeds, I had used two different SIMTEL.NET sites for my
downloads and wondered if that was the source of the problem.  At any
rate, I hammered the entire gcc code with:
     C:\PROGRAMS>deltree gcc
and proceeded with the following steps (I used a screen-to-disk utility
to accurately report what transpired).

#############

(1) The following directory shows everything is now gone:

C:\PROGRAMS\GCC>dir

 Volume in drive C is MS-DOS_6
 Volume Serial Number is 1D73-7E98
 Directory of C:\PROGRAMS\GCC

.            <DIR>         04-23-00   4:13a
..           <DIR>         04-23-00   4:13a
        2 file(s)              0 bytes
                     122,732,544 bytes free

C:\PROGRAMS\GCC>

##############

(2) After the downloads, the same directory looked like:

C:\PROGRAMS\GCC>dir

 Volume in drive C is MS-DOS_6
 Volume Serial Number is 1D73-7E98
 Directory of C:\PROGRAMS\GCC

.            <DIR>         04-23-00   4:13a
..           <DIR>         04-23-00   4:13a
COPYING  DJ          2,084 04-23-00   4:25a
DJDEV203 ZIP     1,538,147 04-23-00   4:33a
FAQ230B  ZIP       679,865 04-23-00   4:37a
README   1ST        19,594 04-23-00   4:37a
BNU2951B ZIP     2,567,839 04-23-00   4:51a
GCC2952B ZIP     1,932,910 04-23-00   5:02a
MAK379B  ZIP       268,863 04-23-00   5:04a
TXI40B   ZIP       646,656 04-23-00   5:08a
CSDPMI4B ZIP        41,506 04-23-00   5:08a
       11 file(s)      7,697,464 bytes
                     114,548,736 bytes free

C:\PROGRAMS\GCC>

Note that ZIP-PICKER states that these files should occupy
7,655,958 bytes total.  I don't know if that is significant.
I got the files from the primary SIMTEL site at:
   ftp.simtel.net/pub/simtelnet/gnu/djgpp
and not one of the mirror sites.

##############

(3) After using pkunzip, the directory looked like:

C:\PROGRAMS\GCC>dir

 Volume in drive C is MS-DOS_6
 Volume Serial Number is 1D73-7E98
 Directory of C:\PROGRAMS\GCC

.            <DIR>         04-23-00   4:13a
..           <DIR>         04-23-00   4:13a
COPYING  DJ          2,084 04-23-00   4:25a
DJDEV203 ZIP     1,538,147 04-23-00   4:33a
FAQ230B  ZIP       679,865 04-23-00   4:37a
README   1ST        19,594 04-23-00   4:37a
BNU2951B ZIP     2,567,839 04-23-00   4:51a
GCC2952B ZIP     1,932,910 04-23-00   5:02a
MAK379B  ZIP       268,863 04-23-00   5:04a
TXI40B   ZIP       646,656 04-23-00   5:08a
CSDPMI4B ZIP        41,506 04-23-00   5:08a
BIN          <DIR>         04-23-00   5:24a
COPYING             17,982 11-01-95   7:08p
COPYING  LIB        25,265 11-01-95   7:08p
DJGPP    ENV         3,522 12-24-99   3:19p
INCLUDE      <DIR>         04-23-00   5:24a
INFO         <DIR>         04-23-00   5:24a
LIB          <DIR>         04-23-00   5:24a
MANIFEST     <DIR>         04-23-00   5:24a
TMP          <DIR>         04-23-00   5:24a
FAQ          <DIR>         04-23-00   5:25a
GNU          <DIR>         04-23-00   5:25a
MAN          <DIR>         04-23-00   5:26a
SHARE        <DIR>         04-23-00   5:27a
       24 file(s)      7,744,233 bytes
                      92,667,904 bytes free

C:\PROGRAMS\GCC>

###############

(4) The set command shows the environment variables, etc.:

C:\PROGRAMS\GCC>set
COMSPEC=C:\DOS\COMMAND.COM
PROMPT=$p$g
PATH=\DOS;\MISC;\PUBLIC;\MENUS;\PROGRAMS\CDROM;\PROGRAMS\G77\BIN;C:\PROGRAMS\GCC
\BIN;\PROGRAMS\FORTRAN\BIN;..;
LIBRARY_PATH=\programs\g77\lib
DJGPP=c:\programs\gcc\djgpp.env
LIB=\programs\fortran\lib
TEMP=\windows\temp
SOUND=c:\programs\sndblstr
BLASTER=A220 I5 D1 H5 P330 E620 T6
MIDI=SYNTH:1 MAP:E MODE:0
CTCM=c:\programs\sndblstr

C:\PROGRAMS\GCC>

Please note the changes I made to reflect the drive letter as you
suggested.

###############

(5) I copied the infamous 'hello.c' program onto the hard drive:

C:\PROGRAMS\GCC>copy a:hello.c
        1 file(s) copied

C:\PROGRAMS\GCC>dir hello.c

 Volume in drive C is MS-DOS_6
 Volume Serial Number is 1D73-7E98
 Directory of C:\PROGRAMS\GCC

HELLO    C              89 04-21-00   3:00p
        1 file(s)             89 bytes
                      92,651,520 bytes free

C:\PROGRAMS\GCC>

###############

(6) Then I compiled the hello program:

C:\PROGRAMS\GCC>gcc -v hello.c
gcc version 2.7.2.1.f.1
 cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=7 -D__32BIT__ -D__EMX__ -Di
386 -D__32BIT__ -D__EMX__ -D__i386__ -D__i386 -Asystem(unix) -Asystem(emx) -Acpu
(i386) -Amachine(i386) hello.c \windows\temp\cca00002
GCC.EXE: installation problem, cannot exec `cpp': No such file or directory

C:\PROGRAMS\GCC>

Note the version number being reported.

################

(7) The first few lines of the 'djgpp.env' file is shown below (as
    you cautioned, I did not edit it).  Rather, it is exactly as it
    was when downloaded:

#= Don't edit this line unless you move djgpp.env outside
#= of the djgpp installation directory.  If you do move
#= it, set DJDIR to the directory you installed DJGPP in.
#=
DJDIR=%:/>DJGPP%

+USER=dosuser
+GROUP=root
+TMPDIR=%DJDIR%/tmp
+EMU387=%DJDIR%/bin/emu387.dxe
+LFN=y
+TEXMFMAIN=%DJDIR%/share/texmf
+GO32STUB=%DJDIR%/bin/stubify.exe

###############

(8) The following directory shows the 'cc1' program is really there:

C:\PROGRAMS\GCC>dir \programs\gcc\lib\gcc-lib\djgpp\2.952\cc1.exe

 Volume in drive C is MS-DOS_6
 Volume Serial Number is 1D73-7E98
 Directory of C:\PROGRAMS\GCC\LIB\GCC-LIB\DJGPP\2.952

CC1      EXE     1,859,354 01-14-00   1:13p
        1 file(s)      1,859,354 bytes
                      92,651,520 bytes free

C:\PROGRAMS\GCC>

###############

I am perplexed.  Do you have any ideas?  Could there be a problem
at the SIMTEL.NET sites, with the proper version not being loaded
in the proper file names?  Or as more likely, do I have a
cranial/rectal inversion?  Do you have any ideas or is it time for
me to give up 'gcc' as a bad idea.  I downloaded and regularly use
the 'g77' Fortran and it was a thousand times easier than this.

Sorry about the long post, but I assumed it is better to accurately
report what was done than to ask you to guess.  Thanks again for all
your assistance.

Roger --------------A8C5111A01C96A87E9516E9A--