delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/16/18:25:55

Mime-Version: 1.0
To: djgpp AT delorie DOT com
From: "Robert S. Peterson" <rpeterson AT kiwi DOT dep DOT anl DOT gov>
Subject: Unzipping Gnu gcc
Date: Fri, 16 May 1997 17:33:00 -0500
Message-Id: <22330095500605@kiwi.dep.anl.gov>

This is my first cry for help.  I have been trying to load a
program which compiles C into executibles for a HP48 calculator
called HP48xGCC.  Binaries of HP48xGCC exist for Linux and Win95,
but not for DJGPP.  So, in my newbie innocence, I thought I would
try.  At minimum, I will learn more along the way - and I've
learned WAY more than I thought possible.  It's genned up a list
of questions.  I'm hoping someone can help.
     The little documentation I've found on HP48xGCC says I need
Gnu GCC & HP48xGCC source and I've got it.  Then GCC is
configured (?), patched (?), and then recompiled (with DJGPP GCC)
to produce xgcc.
1)   When I downloaded gcc-2.7.2.1.tar.gz (from
WUARCHIVE.WUSTL.EDU/SYSTEMS/GNU), it ended up on my lowly
486DX/33 (8 Megs) machine as gcc-2_7_.gz.  I then unzipped with
WINZIP (under Win3.11) after it ask for a file name extension,
which I gave *.tar.  Boom! There were all the files ( with long
names) and directory/file structure.  And when I EXTRACTED to
C:djgpp/gnu it did so, gladly truncating file names along the
way.  Caused some files with repetitive long names to be over
written and lost (ie cpp.info-1 became cpp.inf and was
overwritten by cpp.info-2, cpp.info-3, etc).  Looking in FAQ
22.14 "Long Filenames Don't Work" it talks about Win95, but not
for DOS/DJGPP.  How do I make sure that LFNs remain and are not
truncated?  Do the LFNs actually exist even though I can't see
them (with DIR)?  Also FAQ says to use DJTAR to open ".tar.gz"
archives, but what to do when the download renames the file (ie
to gcc-2_7_.gz)?  I have found another program UNTAR.EXE but it
also seems to truncate and hung on my machine (I think?)  What's
a newbie to do?
2)   Not knowing what to do, I ran GZIP -d -N gcc-2_7_.gz and
sure enough it exploded the file (from 7 Meg) into
gcc-2_7_."blank"; it stripped the extension and left me with ONE
huge file (28 Meg) and not a clue.
3)   Maybe this is all the long way around because I haven't even
started to configure, patch, or compile.  Does HP48xGCC.exe exist
for DJGPP or can the Win95 version be converted?
4)   I did try to compile DJGPP gcc-272s.zip (not realizing I
needed the Gnu source) and I hit some errors: [Error 1] and
[Error -1].  Where can I find a listing of error descriptions?
(for future use- no doubt)
5)   Is there a general prescription for how to adapt Gnu
programs to DJGPP?

Enclosed is ENVIRN.LST, GO32 output, AUTOEXEC. BAT, and
CONFIG.SYS.

To anyone who can help; many thanks.  Lastly, thanks to DJ for
the entire project.   Go Well-  Bob Peterson

Environ.lst:
COMSPEC=C:\DOS\COMMAND.COM
DJGPP=C:/djgpp/djgpp.env
TMPDIR=C:/djgpp/tmp
DISLIN=C:/dislin
GRX20DRV=cl5426 gw 640 gh 480 nc 256
GRXFONT=C:/djgpp/contrib/grx20/fonts
PERLLIB=C:/djgpp/gnu/perl/lib
DOS4GVM=1
IBMAV=C:\IBMAV
GZIP=-N
TEMP=C:\TEMP
PROMPT=$p$g
PATH=C:\BATCH;C:\WINDOWS;C:\DJGPP\BIN;C:\DISLIN;C:\FORTRAN\BINB;C:\FORTRAN\BI
N;C:\DOS;C:\DOS

go32-v2:
DPMI memory available: 527 Kb
DPMI swap space available: 34493 Kb

Autoexec.bat:
LH /L:0;2,45456 /S C:\DOS\SMARTDRV.EXE /X
@ECHO OFF
@CALL C:\IBMAV\IBMAVDR C:\IBMAV\
SET DJGPP=C:/djgpp/djgpp.env
SET TMPDIR=C:/djgpp/tmp
SET DISLIN=C:/dislin
SET GRX20DRV=cl5426 gw 640 gh 480 nc 256
SET GRXFONT=C:/djgpp/contrib/grx20/fonts
SET PERLLIB=C:/djgpp/gnu/perl/lib
SET DOS4GVM=1
SET IBMAV=C:\IBMAV
SET GZIP=-N
SET TEMP=C:\TEMP
LH /L:0;1,7488;2,59488 /S C:\DOS\COMMAND /CC:\IBMAV\IBMAVDR C:\IBMAV\
PROMPT $p$g
SET
PATH=C:\BATCH;C:\WINDOWS;C:\DJGPP\BIN;C:\DISLIN;C:\FORTRAN\BINB;C:\FORTRAN\BI
N;%PATH%
SET PATH=%PATH%;C:\DOS
LH /L:2,27536 C:\DOS\GMOUSE.COM
PCCLOCK /a:7

Config.sys:
DEVICE=C:\DOS\HIMEM.SYS
DEVICE=C:\DOS\EMM386.EXE NOEMS I=B000-B7FF
BUFFERS=40,0
FILES=80
DOS=UMB
LASTDRIVE=H
FCBS=16,0
DEVICEHIGH /L:1,12048 =C:\DOS\SETVER.EXE
DOS=HIGH
STACKS=9,256
DEVICEHIGH /L:1,23360 =C:\IOMEGA\ASPIPC16.SYS INFO
DEVICE=C:\IOMEGA\ASPIPPM1.SYS FILE=NIBBLE.ILM SPEED=10 Quiet
DEVICE=C:\IOMEGA\ASPIIDE.SYS Scan Info Quiet
DEVICE=C:\IOMEGA\SCSICFG.EXE /V
DEVICEHIGH /L:2,76144 =C:\IOMEGA\SCSIDRVR.SYS
DEVICE=C:\DOS\DBLSPACE.SYS /MOVE
INSTALL=C:\DOS\SHARE.EXE
DEVICEHIGH /L:1,4560 =C:\WINDOWS\IFSHLP.SYS
SHELL=C:\DOS\COMMAND.COM C:\DOS\ /e:512 /p

Robert S. Peterson
Great  Lakes Compass
31 N Alfred, Elgin IL  60123  USA
847/697-6491
Compass Adjusting & Repair for Lake Michigan Navigators
Navigation & Weather classes- Adler Planetarium
e-mail: rpeterson AT kiwi DOT dep DOT anl DOT gov

- Raw text -


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