[comp.lang.c++] Sun C++ bugs

dsamperi@Citicorp.COM (Dominick Samperi) (12/24/90)

We are trying to get Sun C++ to compile version 3.0 of the NIH
class library.  We are running SunOs 4.1.  When we attempt to
compile, some of the compiles result in a fatal error in the
compiler, as shown below:

make
cd lib; make -f MAKEFILE  \
	CC=CC CCDEBUG= CCFLAGS="+p -DSUNCC -DObject=ObjecT" I=/usr/local/include/CC SYS=BSD NESTED_TYPES= BUGDEFS="-DBUG_bC2728 -DBUG_38 -DBUG_39 -DBUG_OPTYPECONST" DEBUGDEFS="" MAIN=_main.c_m LNFLAGS=-s
rm -f targetlist _main.c
make MAIN=_main.c_m generic _main.c
ln -s _main.c_m _main.c
CC -DMI  +p -DSUNCC -DObject=ObjecT  -DBUG_bC2728 -DBUG_38 -DBUG_39 -DBUG_OPTYPECONST  -c Dictionary.c
CC  +p Dictionary.c:
"Dictionary.c", line 43: internal <<AT&T C++ Translator 2.00.02 08/25/89>> error: bus error (or something nasty like that)
1 error

Has anyone gotten NIH to compile on a Sun4 under SunOs 4.1?


-- 
Dominick Samperi -- Citicorp
dsamperi@Citicorp.COM
uunet!ccorp!dsamperi

kgorlen@sapporo.dcrt.nih.gov (Keith Gorlen) (12/24/90)

In article <1990Dec23.204127.10129@Citicorp.COM> dsamperi@Citicorp.COM (Dominick Samperi) writes:
->We are trying to get Sun C++ to compile version 3.0 of the NIH
->class library.  We are running SunOs 4.1.  When we attempt to
->compile, some of the compiles result in a fatal error in the
->compiler, as shown below:
->
->make
->cd lib; make -f MAKEFILE  \
->	CC=CC CCDEBUG= CCFLAGS="+p -DSUNCC -DObject=ObjecT" I=/usr/local/include/CC SYS=BSD NESTED_TYPES= BUGDEFS="-DBUG_bC2728 -DBUG_38 -DBUG_39 -DBUG_OPTYPECONST" DEBUGDEFS="" MAIN=_main.c_m LNFLAGS=-s
->rm -f targetlist _main.c
->make MAIN=_main.c_m generic _main.c
->ln -s _main.c_m _main.c
->CC -DMI  +p -DSUNCC -DObject=ObjecT  -DBUG_bC2728 -DBUG_38 -DBUG_39 -DBUG_OPTYPECONST  -c Dictionary.c
->CC  +p Dictionary.c:
->"Dictionary.c", line 43: internal <<AT&T C++ Translator 2.00.02 08/25/89>> error: bus error (or something nasty like that)
->1 error
->
->Has anyone gotten NIH to compile on a Sun4 under SunOs 4.1?
->

I haven't tried to compile NIHCL under SunOS 4.1 yet, but the problem
you're experiencing looks it may be due to your disabling of the
compiler bug work-arounds by defining BUG_bC2728 and so on.  The Sun
C++ compiler is just a port of AT&T's cfront, and it has all those
bugs, so BUGDEFS should be empty.

I provided BUGDEFS for the convenience of compiler *developers*, so
they could easily check that they had fixed these compiler bugs.

--
	Keith Gorlen			phone: (301) 496-1111
	Building 12A, Room 2033		uucp: uunet!kgorlen%alw.nih.gov
	National Institutes of Health	Internet: kgorlen@alw.nih.gov
	Bethesda, MD 20892