[gnu.g++.bug] g++ intallation questions.

kumar@galaxy.ee.rochester.edu (K.N. Kumar) (05/03/89)

Hi folks,
	I am trying to install g++ and libg++ on a SUN 3/60 running
SUNOS 3.4. I have already installed gcc-1.34 and bison with the 
patch included in the g++ tarfile. I am planning to install all
the gnu software in the dir /usr/local/lib/gnu including the libraries
and other files. When trying to install g++ the makefile gives the
following error when trying to compile crt0.c. I however went ahead
and made a "make -i" and installed g++. Are there any defines
that I need to provide crt0.c
------------------------------------------------------------
o/p from the makefile for g++:

gcc -g -DSOS -DESKIT -O -c crt0.c
crt0.c: In function start1:
crt0.c:431: warning: `start1' was declared implicitly `extern' and later `static'
-------------------------------------------------------------
  I then tried installing libg++. I did edit the header files
  like stdio.h etc. I also put in a '-v' flag for the compile.
  The assembler did not like the o/p of g++. Are the two problems 
  linked. Am I missing any important step. Any help would be
  appreciated. If anyone has successfully
  installed g++ in a similar environment can you e-mail me a
  brief procedure to follow in order to install g++ successfully.
  Thanks in advance.
  -------------------------------------------------------------
  o/p from the makefile for libg++:

(cd src; make GXX=g++ CC=gcc)
g++ -g -O -fchar-charconst -I../g++-include -I..  -fsave-memoized -v -c  builtin.cc
g++ version 1.34.2

 /usr/local/lib/gnu/gcc-cpp -+ -v -I../g++-include -I.. -undef -D__GNU__ -D__GNUG__ -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -D__OPTIMIZE__ -D__HAVE_68881__ -Dmc68020 builtin.cc /tmp/cca24175.cpp

GNU CPP version 1.34

 /usr/local/lib/gnu/gcc-c++ /tmp/cca24175.cpp -quiet -dumpbase builtin.cc -fchar-charconst -fsave-memoized -opt -version -G -o /tmp/cca24175.s

GNU C++ version 1.34.2 (68k, MIT syntax) compiled by GNU C version 1.34.

 as -mc68020 /tmp/cca24175.s -o builtin.o
as: error (/tmp/cca24175.s:1189): Invalid operand
as: error (/tmp/cca24175.s:1206): Invalid operand
*** Error code 1

Stop.


The relevant lines in the *.s file looks as follows: 

line 1188 in builtin.s:
.stabs "_GLOBAL_$D$builtin_cc:F15",36,0,0,__GLOBAL_$D$builtin_cc
.stabs "___DTOR_LIST__",22,0,0,__GLOBAL_$D$builtin_cc
	.even
line 1204 in builtin.s:
.stabs "_GLOBAL_$I$builtin_cc:F15",36,0,0,__GLOBAL_$I$builtin_cc
.stabs "___CTOR_LIST__",22,0,0,__GLOBAL_$I$builtin_cc
.stabs "New_Time:S53",40,0,0,_New_Time

*************************************************************

      kumar        UUCP:...!rochester!ur-valhalla!kumar                                            INTERNET: kumar@ee.rochester.edu        
                        US-Mail: K.N.Kumar.                                                                      212D Conant Road                                                                Rochester NY 14623                                            
                                                                                                    
   " Let noble thoughts come from all directions - Rig veda "