🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #8815

compiling gdb-4.6 on sun4 w/ gcc-2.2.2

#8815
From: Scott Kay
Date: Fri, 23 Oct 1992 18:55
92 lines
6516 bytes
Hi,

  First of all let me say thanks to everyone who works at FSF! You guys (&gals) are
 great as well as your s/w!!!!

  I just wanted to clarify whether or not I have configured something wrong on
 my sun4 for gcc-2.2.2 that has created a problem compiling gdb-4.6. Everything
 went fine until I got to the gdb subdir for gdb-4.6. Then I got errors from
 lots files complaining about redef's for ptrdiff_t, size_t and wchar_t. I read
 the comments in "prefix"/lib/gcc-lib/sun4/2.2.2/include/stddef.h, i.e.

#ifndef __sys_stdtypes_h
/* This avoids lossage on Sunos but only if stdtypes.h comes first.
   There's no way to win with the other order!  Sun lossage.  */

 and #include'ed <sys/stdtypes.h> in the beginning of "defs.h" in the gdb subdir.
 Everything compiled fine but I wasn't sure whether this was a known problem,
 or whether I screwed something up installing gcc. I did read the stuff about
 running "make install-fixincludes" and did that, but then I killed the make after
 it apparently started compiling the whole gcc compiler again and figured
 it had already done the header file changes (here's the output) 


/shoe/gnu/src/gcc-2.2.2> make install-fixincludes
if [ -d /shoe/gnu/lib ] ; then true ; else mkdir /shoe/gnu/lib ; fi
if [ -d /shoe/gnu/lib/gcc-lib ] ; then true ; else mkdir /shoe/gnu/lib/gcc-lib ; fi
if [ -d /shoe/gnu/lib/gcc-lib/include ] ; then true ; else mkdir /shoe/gnu/lib/gcc-lib/include ; fi
if [ -d /shoe/gnu/lib/gcc-lib/sun4 ] ; then true ; else mkdir /shoe/gnu/lib/gcc-lib/sun4 ; fi
if [ -d /shoe/gnu/lib/gcc-lib/sun4/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' ./version.c` ] ; then true ; else mkdir /shoe/gnu/lib/gcc-lib/sun4/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' ./version.c` ; fi
if [ -d /shoe/gnu/lib/gcc-lib/sun4/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' ./version.c`/include ] ; then true ; else mkdir /shoe/gnu/lib/gcc-lib/sun4/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' ./version.c`/include ; fi
if [ -d /shoe/gnu/bin ] ; then true ; else mkdir /shoe/gnu/bin ; fi
parent=`echo /shoe/gnu/man/man1|sed -e 's@/[^/]*$@@'`; \
if [ -d $parent ] ; then true ; else mkdir $parent ; fi
if [ -d /shoe/gnu/man/man1 ] ; then true ; else mkdir /shoe/gnu/man/man1 ; fi
if [ -d /shoe/gnu/lib/gcc-lib/sun4/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' ./version.c`/include ] ; then true ; else mkdir /shoe/gnu/lib/gcc-lib/sun4/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' ./version.c`/include ; fi
chmod ugo+rx /shoe/gnu/lib/gcc-lib/sun4/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' ./version.c`/include
shelllibsubdir=/shoe/gnu/lib/gcc-lib/sun4/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' ./version.c`; \
cd .; \
for file in assert.h va-hp800.h va-i860.h va-mips.h va-pyr.h va-sparc.h  va-spur.h va-m88k.h va-i960.h proto.h ; do \
   rm -f $shelllibsubdir/include/`basename $file`; \
   install -c `basename $file` $shelllibsubdir/include/`basename $file`; \
   chmod a-x $shelllibsubdir/include/`basename $file`; \
done
rm -f /shoe/gnu/lib/gcc-lib/sun4/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' ./version.c`/include/varargs.h
install -c ./gvarargs.h /shoe/gnu/lib/gcc-lib/sun4/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' ./version.c`/include/varargs.h
chmod a-x /shoe/gnu/lib/gcc-lib/sun4/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' ./version.c`/include/varargs.h
rm -f /shoe/gnu/lib/gcc-lib/sun4/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' ./version.c`/include/stdarg.h
install -c ./gstdarg.h /shoe/gnu/lib/gcc-lib/sun4/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' ./version.c`/include/stdarg.h
chmod a-x /shoe/gnu/lib/gcc-lib/sun4/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' ./version.c`/include/stdarg.h
rm -f /shoe/gnu/lib/gcc-lib/sun4/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' ./version.c`/include/stddef.h
install -c ./gstddef.h /shoe/gnu/lib/gcc-lib/sun4/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' ./version.c`/include/stddef.h
chmod a-x /shoe/gnu/lib/gcc-lib/sun4/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' ./version.c`/include/stddef.h
if [ "." != "." ]; then rm -f byteorder.h; else true; fi
cp ./byteorder.h . > /dev/null 2>&1
*** Error code 1 (ignored)
cc    -g     -I. -I. -I./config \
  -DSTANDARD_STARTFILE_PREFIX=\"/shoe/gnu/lib/\" \
  -DSTANDARD_EXEC_PREFIX=\"/shoe/gnu/lib/gcc-lib/\" \
  -DDEFAULT_TARGET_MACHINE=\"sun4\" \
  -c `echo ./gcc.c | sed 's,^\./,,'`
cc -c    -g     -I. -I. -I./config version.c
cc -c    -g     -I. -I. -I./config obstack.c
cc    -g   -o gccnew gcc.o version.o obstack.o ` case "cc" in "cc") echo  ;; esac `  
mv -f gccnew gcc
cc    -g     -I. -I. -I./config -c ./c-parse.c
cc -c    -g     -I. -I. -I./config c-lang.c
cc -c    -g     -I. -I. -I./config c-lex.c
cc -c    -g     -I. -I. -I./config c-decl.c
cc -c    -g     -I. -I. -I./config c-typeck.c
cc -c    -g     -I. -I. -I./config c-convert.c
cc -c    -g     -I. -I. -I./config c-aux-info.c
cc -c    -g     -I. -I. -I./config c-common.c
cc -c    -g     -I. -I. -I./config ./genattr.c
cc -c    -g     -I. -I. -I./config rtl.c
^C

 Anyway the change to "defs.h" worked fine but I thought that the header files were
 all OK with the fixincludes script? Hope I didn't miss something and an just 
 submitting another RTFM question!

 And again - Thanks to FSF for these great tools!

 -Scott

*******************************************************************************
Scott Kay
The Analytical Sciences Corporation (TASC)
55 Walkers Brook Drive
Reading, MA
INTERNET ADRESS:  spkay@fandago.read.tasc.com

*******************************************************************************
Technical Details
Message-ID: <9210231855.AA02905@snow>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!fandago.read.tasc.com!spkay

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,3b99c3f6edc650f6,start
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 1992-10-23 19:41:54 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!fandago.read.tasc.com!spkay
From: spkay@fandago.read.tasc.com (Scott Kay)
Newsgroups: gnu.gdb.bug
Subject: compiling gdb-4.6 on sun4 w/ gcc-2.2.2
Message-ID: <9210231855.AA02905@snow>
Date: 23 Oct 92 18:55:25 GMT
Article-I.D.: snow.9210231855.AA02905
Sender: gnulists@ai.mit.edu
Reply-To: Scott Kay<spkay@fandago.read.tasc.com>
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 92
Approved: bug-gdb@prep.ai.mit.edu