Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

problems with gcc 2.5.4

2 views
Skip to first unread message

jowe...@vt.edu

unread,
May 15, 1994, 12:07:21 AM5/15/94
to
Hi

I just installed the gnu C/C++ 2.5.4 compilers to my system. My system
is:
Gateway 2000 P5-66
16 MB RAM
AMI Bios
Running OS/2 with the CSD installed
Diamond Viper w/2 MB RAM
WD 540 and 250 MB HDs
Gateway Sound card
Mitsumi CDROM Drive (on sound board controller)
3 1/2 and 5 1/4 inch floppy drives
Colorado 250 MB internal tape drive(floppy controller)
3COM 3C503 twisted pair Ethernet card

I had no problem installin the package, as everything unzipped as expected.
The probelm came when I got to the "Test your installation!" portion of
the installation. Steps 1, 2, 4, and 5 worked with no problem, but step
3 generated this error:

D:\gcc2\samples>make
gcc -O sample1.c -o sample1.exe
gcc: Internal compiler error: program cc1 got fatal signal 5
make: *** [sample1.exe] Error 1

As you can see by the next line, I am running version 2.5.4:

D:\gcc2\samples>gcc -v
gcc version 2.5.4

The above output is identical regardless of whether I use the files
from base254.zip or newbin.zip as downloaded from ftp-os2.cdrom.os2
from the directory .1/os2/2_x/unix/gcc2_254 .

Included now are the makefile, the sample1.c file that it being used
when the error is generated, a copy of my config.sys file, and a copy
of the install.doc file that I followed to install the package. Any help
you can give wil be appreciated. Please let me know if you need any
additional information.

PS. Has version 2.5.8 been ported to the OS/2 platform yet?


Thank You very much.
Joe
********************* Makefile *********************

CC=gcc
CFLAGS=-O

all: sample1.exe sample2.exe sample3

sample1.exe: sample1.c
$(CC) $(CFLAGS) sample1.c -o sample1.exe

sample2.exe: sample2.cc
$(CC) $(CFLAGS) sample2.cc -o sample2.exe -liostream

.PHONY: sample3
sample3:
$(MAKE) -C sample3

clean:
del *.obj *.exe
$(MAKE) -C sample3 clean

******************** sample1.c ***********************


#include <stdio.h>

main(int argc, char *argv[], char *envp[])
{
printf ("Hello world\n");
}

*********************** config.sys *************************

DEVICE=\OS2\POWER_9K\P9000.SYS
SET SHELLEXCEPTIONHANDLER=OFF
SET VIO_P9000=DEVICE(BVHVGA,BVHP9000)
DEVICE=\OS2\POWER_9K\VP9VGA.SYS
DEVICE=\OS2\POWER_9K\VP9000.SYS
SET VIDEO_DEVICES=VIO_P9000
DEVICE=C:\MMOS2\SBD2.SYS 1 5 220 4 /N:SBAud1$
DEVICE=C:\MMOS2\AUDIOVDD.SYS SBAud1$
SET MMBASE=C:\MMOS2;
SET DSPPATH=C:\MMOS2\DSP;
SET NCDEBUG=4000
DEVICE=C:\MMOS2\SSMDD.SYS
DEVICE=C:\MMOS2\ADSHDD.SYS
DEVICE=C:\OS2\APM.SYS
DEVICE=C:\OS2\MDOS\VAPM.SYS
DEVICE=C:\IBMCOM\LANMSGDD.OS2 /I:C:\IBMCOM
DEVICE=C:\IBMCOM\PROTMAN.OS2 /I:C:\IBMCOM
DEVICE=C:\UTIL\BACKMAST\FTDVR.SYS
IFS=C:\OS2\HPFS.IFS /CACHE:64 /CRECL:4 /AUTOCHECK:D
PROTSHELL=C:\OS2\PMSHELL.EXE
SET USER_INI=C:\OS2\OS2.INI
SET SYSTEM_INI=C:\OS2\OS2SYS.INI
SET OS2_SHELL=C:\OS2\CMD.EXE
SET AUTOSTART=PROGRAMS,TASKLIST,FOLDERS,CONNECTIONS
set restartobjects=startupfoldersonly
SET RUNWORKPLACE=C:\OS2\PMSHELL.EXE
SET COMSPEC=C:\OS2\CMD.EXE
LIBPATH=C:\IBMCOM\DLL;.;C:\OS2\DLL;C:\OS2\MDOS;C:\;C:\OS2\APPS\DLL;C:\TCPIP\DLL;C:\UTIL\BACKMAST;C:\MMOS2\DLL;d:\gcc2\dll;
SET PATH=C:\OS2;C:\OS2\SYSTEM;C:\OS2\MDOS\WINOS2;C:\OS2\INSTALL;C:\;C:\OS2\MDOS;C:\OS2\APPS;d:\util;d:\util\os2zip;C:\TCPIP\BIN;C:\UTIL\BACKMAST;c:\lampop;C:\MMOS2;d:\gcc2\bin;
SET DPATH=C:\IBMCOM;C:\OS2;C:\OS2\SYSTEM;C:\OS2\MDOS\WINOS2;C:\OS2\INSTALL;C:\;C:\OS2\BITMAP;C:\OS2\MDOS;C:\OS2\APPS;C:\MMOS2;C:\MMOS2\INSTALL;
SET PROMPT=$p$g
SET HELP=C:\OS2\HELP;C:\OS2\HELP\TUTORIAL;C:\TCPIP\HELP;C:\UTIL\BACKMAST;C:\MMOS2\HELP;
SET GLOSSARY=C:\OS2\HELP\GLOSS;
SET IPF_KEYS=SBCS
PRIORITY_DISK_IO=no
FILES=20
DEVICE=C:\OS2\TESTCFG.SYS
DEVICE=C:\OS2\DOS.SYS
DEVICE=C:\OS2\PMDD.SYS
DEVICE=c:\os2\mdos\ansi.sys
BUFFERS=30
IOPL=YES
DISKCACHE=256,LW,AC:C
MAXWAIT=3
MEMMAN=SWAP,PROTECT
SWAPPATH=d:\swap 16384 16384
BREAK=OFF
THREADS=256
PRINTMONBUFSIZE=134,134,134
COUNTRY=001,C:\OS2\SYSTEM\COUNTRY.SYS
SET KEYS=ON
set dircmd=/ogn
REM SET DELDIR=C:\DELETE,512;D:\DELETE,512;
BASEDEV=PRINT01.SYS
BASEDEV=IBM1FLPY.ADD
BASEDEV=IBM1S506.ADD
BASEDEV=OS2DASD.DMD
SET BOOKSHELF=C:\OS2\BOOK;C:\TCPIP\DOC;C:\MMOS2;
SET EPMPATH=C:\OS2\APPS;
REM DEVICE=C:\OS2\APPS\SASYNCDA.SYS
PROTECTONLY=NO
SHELL=C:\OS2\MDOS\COMMAND.COM C:\OS2\MDOS
FCBS=16,8
RMSIZE=640
DEVICE=C:\OS2\MDOS\VEMM.SYS
DOS=HIGH,UMB
DEVICE=C:\OS2\MDOS\VDPX.SYS
DEVICE=C:\OS2\MDOS\VXMS.SYS /UMB
DEVICE=C:\OS2\MDOS\VDPMI.SYS
DEVICE=C:\OS2\MDOS\VCDROM.SYS
DEVICE=C:\OS2\MDOS\VWIN.SYS
REM DEVICE=C:\OS2\PCMCIA.SYS
REM DEVICE=C:\OS2\MDOS\VPCMCIA.SYS
DEVICE=C:\OS2\MDOS\VMOUSE.SYS
DEVICE=C:\OS2\POINTDD.SYS
DEVICE=C:\OS2\MOUSE.SYS
DEVICE=C:\OS2\COM.SYS
DEVICE=C:\OS2\MDOS\VCOM.SYS
CODEPAGE=437,850
DEVINFO=KBD,US,C:\OS2\KEYBOARD.DCP
BASEDEV=MITFX001.ADD /P:300
REM DEVICE and RUN statements from your older CONFIG.SYS
REM DEVICE=C:\WINDOWS\HIMEM.SYS
REM DEVICE=C:\WINDOWS\EMM386.EXE NOEMS X=F000-F7FF
REM DEVICEHIGH=C:\DOS\SETVER.EXE
REM DEVICEHIGH=C:\WINDOWS\IFSHLP.SYS
REM DOS=HIGH,UMB
REM STACKS=9,256
REM LASTDRIVE=K:
REM DEVICEHIGH=C:\CDROM\MTMCDAE.SYS /D:MSCD001 /X /P:300 /A:0 /M:30 /T:S /I:11
DEVINFO=SCR,VGA,C:\OS2\VIOTBL.DCP
device=c:\os2\os2cdrom.dmd /Q
ifs=c:\os2\cdfs.ifs /q
BASEDEV=OS2SCSI.DMD
RUN=C:\IBMCOM\PROTOCOL\NETBIND.EXE
RUN=C:\IBMCOM\LANMSGEX.EXE
DEVICE=C:\IBMCOM\PROTOCOL\INET.SYS
DEVICE=C:\IBMCOM\PROTOCOL\IFNDIS.SYS
DEVICE=C:\IBMCOM\MACS\ELNKII.OS2
SET ETC=C:\TCPIP\ETC
SET TMP=C:\TCPIP\TMP
SET READIBM=C:\TCPIP\DOC
SET HOSTNAME=wegner
RUN=C:\TCPIP\BIN\CNTRL.EXE
set GCC2=d:/gcc2
set INCLUDE=d:\gcc2\os2incl
set TMPDIR=d:/gcc2/tmp

*********************** install.doc **********************

Installation
1. Decide where you are going to install to.
2. Unpack the your archives. Be sure to use an unarchiver that can
create directories for you. When you unpack the gccinfo.zip package
several *.zip files will be put into the gcc2\info directory. You
do not need to expand these *.zip files unless the program unzip.exe
is not availible on your OS/2 system.
3. Add the gcc2\dll directory to your LIBPATH variable in config.sys
4. Create the following environment variables in your config.sys
(This example assumes you installed gcc/2 in the root
directory of drive c:. Change this appropriately if you installed
somewhere else.)
WARNING: If you cut-and-paste the following text into your config.sys
file, make SURE that you remove any blank spaces at the end of each
line after you finish the paste.
-----------------------
set GCC2=c:/gcc2
set INCLUDE=c:\gcc2\os2incl
set TMPDIR=c:/gcc2/tmp
------------------------
[You only need the INCLUDE enviornment variable if you are going to
OS/2 resource compiler, rc.exe, that is bundled with OS/2. If you
do any PM programming, you will probably be using rc.exe]
[The TMPDIR environment variable tells gcc the name of a directory
where gcc will write temp files to. If the directory doesn't exist,
gcc will use the current directory.]
MAKE SURE YOU USE THE '\' CHARACTER IN THE INCLUDE VARIABLE!!!!!
If you do this step wrong, really strange and bad things will happen.
5. Add the gcc2\bin directory to your PATH in config.sys
6. Reboot your machine

Test your installation!
1. Run the program gcc on a line by itself. You should get following
gcc: No input files specified.
If you have made a serious error, you may get some other error message.
2. Verify that dll file dllc101.dll is availible by running the program
gccspeed.exe. Gccspeed should print out a bunch of messages which
don't mean much at this point. If OS/2 pulls up an error message
box when you run this program, you have not installed dllc101.dll
correctly. If gccspeed is unable to find link386, then use selective
install to add it to your system. Gcc will not be able to link
programs without link386 on your system.
3. Try to build the sample programs in the gcc2\sample directory
by doing a 'cd gcc2\samples' followed by a 'make' command once
you are in the directory. Try running the three samples to make
sure they work.
4. Type pminfo to view the manuals. The manuals are about the gcc
compiler and about make.
5. Type pmman to view the manual pages for the C library. Be warned:
pmman is under development and is not yet as good as it should be.
Also, the man pages may lie...
There are not manuals for the OS/2 API.... yet.
6. There is no debugger..... yet.
-------------------------------------------


Joseph A. Wegner
301 Piedmont Apt. 4
Blacksburg, VA. 24060

Phone Number: (703) 953-2463
Email Addresses: weg...@vt.edu
weg...@birch.ee.vt.edu
weg...@vtvm1.cc.vt.edu
jowe...@vtvm1.cc.vt.edu


0 new messages