[gnu.g++.bug] GNU G++ 1.35 on Sun386i....installation

miket@vax1.acs.udel.EDU (Michael Thompson) (06/29/89)

Sun386i Users:

  After smoothly installing gcc 1.35 I have run into a number of
problems installing g++ on a sun386i running sun-os4.  I provided
a very brief outline of snags below. (type roadrunner)

   1.  Makefile  ----   Assembler had problems with length of name
                        of: cplus-parse.tab.c

   2.  Makefile  ----   newld.o: newld.c (~180), there is no comparision
                        of tm.h against config/tm-sun386i.h, which seems
                        to be needed.

   3.  newld.c   ----   no conditionals for a sun386 case. (~243)
                        #if defined(i386) && !defined(sequent)
                              should be?
                        #if defined(i386) && !defined(sequent) && !defined(sun386)

   4.  cplus-lex.c --  same as #3, "_bufend" is apparently a system V thing.
                       (~860,1720)

   5.  a.out.encap.h - file is not included with g++ but with gdb.


   Please note that we are not using System V. We have corrected these 
   problems but are experiencing insects in newld.c The transcript is
   as follows:
   ------------------------------------------------------------------
echo $OPTS $DFLTS; \
if [ "$DFLTS" = "" ] ; \
then \
../gcc/gcc -B../gcc/ -c -v $OPTS  -g -DSOS -DESKIT -g -DSOS -DESKIT newld.c ; \
else \
../gcc/gcc -B../gcc/ -c -v $OPTS -DSTANDARD_SEARCH_DIRS="$DFLTS"  -g -DSOS -DESKIT -g -DSOS -DESKIT newld.c ; \
fi
-DCOFF_ENCAPSULATE -DTARGET=-1 "/lib", "/lib", "/usr/lib", "/lib"
gcc version 1.35
 ../gcc/cpp -v -DCOFF_ENCAPSULATE -DTARGET=-1 -DSTANDARD_SEARCH_DIRS="/lib", "/lib", "/usr/lib", "/lib" -DSOS -DESKIT -DSOS -DESKIT -undef -D__GNUC__ -Dunix -Di386 -Dsun386 -Dsun -D__unix__ -D__i386__ -D__sun386__ -D__sun__ newld.c /tmp/cca06838.cpp
GNU CPP version 1.35
 ../gcc/cc1 /tmp/cca06838.cpp -quiet -dumpbase newld.c -g -version -o /tmp/cca06838.s
GNU C version 1.35 (80386, Sun syntax) compiled by GNU C version 1.35.
newld.c: In function main:
newld.c:1074: structure has no member named `a_machtype'
newld.c: In function read_file_symbols:
newld.c:1805: `SARMAG' undeclared (first use this function)
newld.c:1805: (Each undeclared identifier is reported only once
newld.c:1805: for each function it appears in.)
newld.c:1808: `armag' undeclared (first use this function)
newld.c: In function search_library:
newld.c:2105: `SARMAG' undeclared (first use this function)
newld.c: In function linear_library:
newld.c:2329: `SARMAG' undeclared (first use this function)
newld.c: In function layout_ctors_and_dtors:
newld.c:2581: structure has no member named `a_machtype'
newld.c: In function next_debug_entry:
newld.c:3451: warning: case value out of range
newld.c:3459: warning: case value out of range
newld.c:3461: warning: case value out of range
newld.c: In function write_header:
newld.c:3768: structure has no member named `a_machtype'
*** Error code 1 (ignored)

   ------------------------------------------------------------------

   Can anyone be of assistance ???
                Thanks for your time......

                 Michael A. Thompson, University of Delaware
                                     A.I. DuPont Engineering Research
   Net:
    miket@vax1.acs.udel.edu
    thompson@louie.udel.edu
----------------------------------------------------------------------