🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #127

gcc-2.2.2 for sun 386I Warnings in make??

#127
From: Warren Dodge
Date: Thu, 06 Aug 1992 18:22
352 lines
17510 bytes
In compiling gcc-2.2.2 for a sun386I sunos 4.0.2 I get some unusual
warnings during the make process.

Can someone let me know if these are ok or if there is need for worry.

I am enclosing portions of the make log and will put a line of
underlines around all the warnings.

I assumed that during stage one I might get some warnings but in stage
2 I didn't expect them.

Once built it made tcsh and other programs but I want to be sure...



make distclean
.
.
.
configure --target=i386-sun-sunos
.
.
.
changed $prefix and $exec_prefix
prefix = /vol/tek/gcc-2.2.2
exec_prefix = $(prefix)/${ARCH}
.
.
.
make LANGUAGES=c
cc -g -I. -I. -I./config \

-DGCC_INCLUDE_DIR=\"/vol/tek/gcc-2.2.2/sun386/lib/gcc-lib/i386-sun-sunos/`awk
'{printf "%s", substr ($4, 2, length ($4) - 3); }'
./version.c`/include\" \

-DGPLUSPLUS_INCLUDE_DIR=\"/vol/tek/gcc-2.2.2/sun386/lib/g++-include\"
\
  -DLOCAL_INCLUDE_DIR=\"/vol/tek/gcc-2.2.2/include\" \

-DCROSS_INCLUDE_DIR=\"/vol/tek/gcc-2.2.2/sun386/lib/gcc-lib/i386-sun-sunos/`awk
'{printf "%s", substr ($4, 2, length ($4) - 3); }'
./version.c`/sys-include\" \
  -c `echo ./cccp.c | sed 's,^\./,,'`
.
.
.
cc -c    -g     -I. -I. -I./config integrate.c
cc -c    -g     -I. -I. -I./config jump.c
cc -c    -g     -I. -I. -I./config cse.c
_____________________________________________________________________________
Assembler: cse.c
	aline 15974	: Warning: Table overflow: some optimizations
lost (Labels)
_____________________________________________________________________________
cc -c -g -I. -I. -I./config loop.c cc -c -g -I. -I. -I./config
unroll.c .  .  .  cc -c -g -I. -I. -I./config ./genemit.c cc -g -o
genemit \
 genemit.o rtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` `
case "cc"@"" in "cc"@?*) echo ;; esac ` ` case "" in ?*) echo ;; esac
` ./genemit md > tmp-emit.c
./move-if-change tmp-emit.c insn-emit.c
touch stamp-emit
cc    -g     -I. -I. -I./config -c insn-emit.c
_____________________________________________________________________________
These are ok, I think, according to INSTALL

"insn-emit.c", line 45: warning: statement not reached
"insn-emit.c", line 75: warning: statement not reached
"insn-emit.c", line 105: warning: statement not reached
"insn-emit.c", line 137: warning: statement not reached
"insn-emit.c", line 171: warning: statement not reached
"insn-emit.c", line 207: warning: statement not reached
"insn-emit.c", line 242: warning: statement not reached
"insn-emit.c", line 277: warning: statement not reached
"insn-emit.c", line 325: warning: statement not reached
"insn-emit.c", line 353: warning: statement not reached
"insn-emit.c", line 1209: warning: statement not reached
"insn-emit.c", line 1293: warning: statement not reached
"insn-emit.c", line 1377: warning: statement not reached
_____________________________________________________________________________
cc -c    -g     -I. -I. -I./config ./genattrtab.c
cc    -g   -o genattrtab \
 genattrtab.o rtl.o print-rtl.o rtlanal.o ` case "obstack.o" in ?*)
echo obstack.o ;; esac ` ` case "cc"@"" in "cc"@?*) echo ;; esac ` `
case "" in ?*) echo ;; esac `

.
.
.
stage1/gcc -Bstage1/ -c    -g -O     -I. -I. -I./config getpwd.c

stage1/gcc -Bstage1/ -g -O -o cc1 c-parse.o c-lang.o c-lex.o c-decl.o
c-typeck.o c-convert.o c-aux-info.o c-common.o toplev.o version.o
tree.o print-tree.o stor-layout.o fold-const.o function.o stmt.o
expr.o calls.o expmed.o explow.o optabs.o varasm.o rtl.o print-rtl.o
rtlanal.o emit-rtl.o dbxout.o sdbout.o dwarfout.o xcoffout.o
integrate.o jump.o cse.o loop.o unroll.o flow.o stupid.o combine.o
regclass.o local-alloc.o global-alloc.o reload.o reload1.o
caller-save.o insn-peep.o reorg.o sched.o final.o recog.o reg-stack.o
insn-recog.o insn-extract.o insn-output.o insn-emit.o insn-attrtab.o
aux-output.o getpwd.o obstack.o ` case "stage1/gcc -Bstage1/" in "cc")
echo ;; esac ` stage1/gcc -Bstage1/ -c -g -O -I. -I. -I./config \
  `echo ./cp-parse.c | sed 's,^\./,,'`
stage1/gcc -Bstage1/ -c    -g -O     -I. -I. -I./config cp-decl.c
_____________________________________________________________________________
cp-decl.c: In function `hack_incomplete_structures':

cp-decl.c:10584: warning: comparison is always 1 due to limited range
of data type
_____________________________________________________________________________
stage1/gcc -Bstage1/ -c -g -O -I. -I. -I./config cp-decl2.c stage1/gcc
-Bstage1/ -c -g -O -I. -I. -I./config cp-typeck.c stage1/gcc -Bstage1/
-c -g -O -I. -I. -I./config cp-type2.c stage1/gcc -Bstage1/ -c -g -O
-I. -I. -I./config cp-tree.c stage1/gcc -Bstage1/ -c -g -O -I. -I.
-I./config cp-ptree.c stage1/gcc -Bstage1/ -c -g -O -I. -I. -I./config
cp-cvt.c stage1/gcc -Bstage1/ -c -g -O -I. -I. -I./config cp-search.c
stage1/gcc -Bstage1/ -c -g -O -I. -I. -I./config cp-lex.c
_____________________________________________________________________________
In file included from cp-lex.c:28: /usr/include/string.h:16: warning:
conflicting types for built-in function `strlen'
_____________________________________________________________________________
stage1/gcc -Bstage1/ -c -g -O -I. -I. -I./config cp-gc.c stage1/gcc
-Bstage1/ -c -g -O -I. -I. -I./config cp-call.c stage1/gcc -Bstage1/
-c -g -O -I. -I. -I./config cp-class.c stage1/gcc -Bstage1/ -c -g -O
-I. -I. -I./config cp-init.c stage1/gcc -Bstage1/ -c -g -O -I. -I.
-I./config cp-method.c
_____________________________________________________________________________
In file included from cp-method.c:29: /usr/include/string.h:16:
warning: conflicting types for built-in function `strlen'
_____________________________________________________________________________
stage1/gcc -Bstage1/ -c -g -O -I. -I. -I./config cp-except.c
stage1/gcc -Bstage1/ -c -g -O -I. -I. -I./config cp-expr.c stage1/gcc
-Bstage1/ -c -g -O -I. -I. -I./config cp-pt.c stage1/gcc -Bstage1/ -c
-g -O -I. -I. -I./config cp-edsel.c stage1/gcc -Bstage1/ -c -g -O -I.
-I. -I./config cp-xref.c
_____________________________________________________________________________
In file included from cp-xref.c:30: /usr/include/memory.h:6: warning:
conflicting types for built-in function `memcpy' In file included from
cp-xref.c:31: /usr/include/string.h:16: warning: conflicting types for
built-in function `strlen'
_____________________________________________________________________________
stage1/gcc -Bstage1/ -c -g -O -I. -I. -I./config cp-spew.c stage1/gcc
-Bstage1/ -g -O -o cc1plus cp-parse.o cp-decl.o cp-decl2.o cp-typeck.o
cp-type2.o cp-tree.o cp-ptree.o cp-cvt.o cp-search.o cp-lex.o cp-gc.o
cp-call.o cp-class.o cp-init.o cp-method.o cp-except.o cp-expr.o
cp-pt.o cp-edsel.o cp-xref.o cp-spew.o c-common.o toplev.o version.o
tree.o print-tree.o stor-layout.o fold-const.o function.o stmt.o
expr.o calls.o expmed.o explow.o optabs.o varasm.o rtl.o print-rtl.o
rtlanal.o emit-rtl.o dbxout.o sdbout.o dwarfout.o xcoffout.o
integrate.o jump.o cse.o loop.o unroll.o flow.o stupid.o combine.o
regclass.o local-alloc.o global-alloc.o reload.o reload1.o
caller-save.o insn-peep.o reorg.o sched.o final.o recog.o reg-stack.o
insn-recog.o insn-extract.o insn-output.o insn-emit.o insn-attrtab.o
aux-output.o getpwd.o obstack.o ` case "stage1/gcc -Bstage1/" in "cc")
echo ;; esac `
_____________________________________________________________________________
ld: Warning: line count overflow:
	The section header contains an incorrect line count
	however, the line section is complete.
_____________________________________________________________________________
stage1/gcc -Bstage1/    -g -O     -I. -I. -I./config -c ./objc-parse.c
stage1/gcc -Bstage1/ -c    -g -O     -I. -I. -I./config objc-actions.c

stage1/gcc -Bstage1/ -g -O -o cc1obj objc-parse.o objc-actions.o
c-lex.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o
toplev.o version.o tree.o print-tree.o stor-layout.o fold-const.o
function.o stmt.o expr.o calls.o expmed.o explow.o optabs.o varasm.o
rtl.o print-rtl.o rtlanal.o emit-rtl.o dbxout.o sdbout.o dwarfout.o
xcoffout.o integrate.o jump.o cse.o loop.o unroll.o flow.o stupid.o
combine.o regclass.o local-alloc.o global-alloc.o reload.o reload1.o
caller-save.o insn-peep.o reorg.o sched.o final.o recog.o reg-stack.o
insn-recog.o insn-extract.o insn-output.o insn-emit.o insn-attrtab.o
aux-output.o getpwd.o obstack.o ` case "stage1/gcc -Bstage1/" in "cc")
echo ;; esac `

touch stamp-proto
.
.
.
rm -f unprotoize.1
mv tmp-unproto.1 unprotoize.1
stage1/gcc -Bstage1/    -g -O     -I. -I. -I./config \
  -DSTANDARD_STARTFILE_PREFIX=\"/vol/tek/gcc-2.2.2/sun386/lib/\" \
  -DSTANDARD_BIN_PREFIX=\"/vol/tek/gcc-2.2.2/sun386/bin/\" \
  -DSTANDARD_EXEC_PREFIX=\"/vol/tek/gcc-2.2.2/sun386/lib/gcc-lib/\" \
  -DDEFAULT_TARGET_MACHINE=\"i386-sun-sunos\" \
  -c `echo ./collect2.c | sed 's,^\./,,'`
_____________________________________________________________________________
In file included from collect2.c:31: 
/usr/include/string.h:16:
warning: conflicting types for built-in function `strlen'
_____________________________________________________________________________
stage1/gcc -Bstage1/ -g -O -o collect2 collect2.o version.o obstack.o
` case "stage1/gcc -Bstage1/" in "cc") echo ;; esac ` rm -f ld ln
collect2 ld ./gcc -dumpspecs > specs if [ -f libgcc2.ready ] ; then \
	true; \
else \
	touch libgcc2.ready; \
fi
if [ "." != "." ]; then rm -f ./enquire.c; else true; fi
cp ./enquire.c . > /dev/null 2>&1
*** Error code 1 (ignored)
./gcc    -g -O -B./    -DNO_SC -DNO_MEM -DNO_STDDEF -O0 -I. -c enquire.c
./gcc    -g -O -B./  enquire.o -o enquire
./enquire -f > tmp-float.h
mv tmp-float.h float.h

make stage2

if [ -d stage2 ] ; then true ; else mkdir stage2 ; fi mv *.o
insn-flags.h insn-config.h insn-codes.h insn-output.c insn-recog.c
insn-emit.c insn-extract.c insn-peep.c insn-attr.h insn-attrtab.c
stamp-flags stamp-config stamp-codes stamp-output stamp-recog
stamp-emit stamp-extract stamp-peep stamp-attr stamp-attrtab
stamp-proto genemit genoutput genrecog genextract genflags gencodes
genconfig genpeep genattrtab genattr gcc cc1 cpp gcc-cross cccp
cc1plus cc1obj enquire protoize unprotoize specs collect2 ld stage2

mv: gcc-cross: Cannot access: No such file or directory *** Error code
1 (ignored) rm -f stage2/libgcc.a cp libgcc.a stage2 .  .  .
stage2/gcc -Bstage2/ -g -O -o cc1 c-parse.o c-lang.o c-lex.o c-decl.o
c-typeck.o c-convert.o c-aux-info.o c-common.o toplev.o version.o
tree.o print-tree.o stor-layout.o fold-const.o function.o stmt.o
expr.o calls.o expmed.o explow.o optabs.o varasm.o rtl.o print-rtl.o
rtlanal.o emit-rtl.o dbxout.o sdbout.o dwarfout.o xcoffout.o
integrate.o jump.o cse.o loop.o unroll.o flow.o stupid.o combine.o
regclass.o local-alloc.o global-alloc.o reload.o reload1.o
caller-save.o insn-peep.o reorg.o sched.o final.o recog.o reg-stack.o
insn-recog.o insn-extract.o insn-output.o insn-emit.o insn-attrtab.o
aux-output.o getpwd.o obstack.o ` case "stage2/gcc -Bstage2/" in "cc")
echo ;; esac `

stage2/gcc -Bstage2/ -c    -g -O     -I. -I. -I./config \
  `echo ./cp-parse.c | sed 's,^\./,,'` stage2/gcc -Bstage2/ -c -g -O
-I. -I. -I./config cp-decl.c
_____________________________________________________________________________
cp-decl.c: In function `hack_incomplete_structures': 
cp-decl.c:10584:
warning: comparison is always 1 due to limited range of data type
_____________________________________________________________________________
stage2/gcc -Bstage2/ -c -g -O -I. -I. -I./config cp-decl2.c stage2/gcc
-Bstage2/ -c -g -O -I. -I. -I./config cp-typeck.c stage2/gcc -Bstage2/
-c -g -O -I. -I. -I./config cp-type2.c stage2/gcc -Bstage2/ -c -g -O
-I. -I. -I./config cp-tree.c stage2/gcc -Bstage2/ -c -g -O -I. -I.
-I./config cp-ptree.c stage2/gcc -Bstage2/ -c -g -O -I. -I. -I./config
cp-cvt.c stage2/gcc -Bstage2/ -c -g -O -I. -I. -I./config cp-search.c
stage2/gcc -Bstage2/ -c -g -O -I. -I. -I./config cp-lex.c
_____________________________________________________________________________
In file included from cp-lex.c:28: /usr/include/string.h:16: warning:
conflicting types for built-in function `strlen'
_____________________________________________________________________________
stage2/gcc -Bstage2/ -c -g -O -I. -I. -I./config cp-gc.c stage2/gcc
-Bstage2/ -c -g -O -I. -I. -I./config cp-call.c stage2/gcc -Bstage2/
-c -g -O -I. -I. -I./config cp-class.c stage2/gcc -Bstage2/ -c -g -O
-I. -I. -I./config cp-init.c stage2/gcc -Bstage2/ -c -g -O -I. -I.
-I./config cp-method.c
_____________________________________________________________________________
In file included from cp-method.c:29: /usr/include/string.h:16:
warning: conflicting types for built-in function `strlen'
_____________________________________________________________________________
stage2/gcc -Bstage2/ -c -g -O -I. -I. -I./config cp-except.c
stage2/gcc -Bstage2/ -c -g -O -I. -I. -I./config cp-expr.c stage2/gcc
-Bstage2/ -c -g -O -I. -I. -I./config cp-pt.c stage2/gcc -Bstage2/ -c
-g -O -I. -I. -I./config cp-edsel.c stage2/gcc -Bstage2/ -c -g -O -I.
-I. -I./config cp-xref.c
_____________________________________________________________________________
In file included from cp-xref.c:30: /usr/include/memory.h:6: warning:
conflicting types for built-in function `memcpy' In file included from
cp-xref.c:31: /usr/include/string.h:16: warning: conflicting types for
built-in function `strlen'
_____________________________________________________________________________
stage2/gcc -Bstage2/ -c -g -O -I. -I. -I./config cp-spew.c stage2/gcc
-Bstage2/ -g -O -o cc1plus cp-parse.o cp-decl.o cp-decl2.o cp-typeck.o
cp-type2.o cp-tree.o cp-ptree.o cp-cvt.o cp-search.o cp-lex.o cp-gc.o
cp-call.o cp-class.o cp-init.o cp-method.o cp-except.o cp-expr.o
cp-pt.o cp-edsel.o cp-xref.o cp-spew.o c-common.o toplev.o version.o
tree.o print-tree.o stor-layout.o fold-const.o function.o stmt.o
expr.o calls.o expmed.o explow.o optabs.o varasm.o rtl.o print-rtl.o
rtlanal.o emit-rtl.o dbxout.o sdbout.o dwarfout.o xcoffout.o
integrate.o jump.o cse.o loop.o unroll.o flow.o stupid.o combine.o
regclass.o local-alloc.o global-alloc.o reload.o reload1.o
caller-save.o insn-peep.o reorg.o sched.o final.o recog.o reg-stack.o
insn-recog.o insn-extract.o insn-output.o insn-emit.o insn-attrtab.o
aux-output.o getpwd.o obstack.o ` case "stage2/gcc -Bstage2/" in "cc")
echo ;; esac `
_____________________________________________________________________________
ld: Warning: line count overflow:
	The section header contains an incorrect line count
	however, the line section is complete.
_____________________________________________________________________________
stage2/gcc -Bstage2/    -g -O     -I. -I. -I./config -c ./objc-parse.c
stage2/gcc -Bstage2/ -c    -g -O     -I. -I. -I./config objc-actions.c
.
.
.
mv tmp-unproto.1 unprotoize.1
stage2/gcc -Bstage2/    -g -O     -I. -I. -I./config \
  -DSTANDARD_STARTFILE_PREFIX=\"/vol/tek/gcc-2.2.2/sun386/lib/\" \
  -DSTANDARD_BIN_PREFIX=\"/vol/tek/gcc-2.2.2/sun386/bin/\" \
  -DSTANDARD_EXEC_PREFIX=\"/vol/tek/gcc-2.2.2/sun386/lib/gcc-lib/\" \
  -DDEFAULT_TARGET_MACHINE=\"i386-sun-sunos\" \
  -c `echo ./collect2.c | sed 's,^\./,,'`
_____________________________________________________________________________
In file included from collect2.c:31:

/usr/include/string.h:16: warning: conflicting types for built-in
function `strlen'
_____________________________________________________________________________
stage2/gcc -Bstage2/ -g -O -o collect2 collect2.o version.o obstack.o
` case "stage2/gcc -Bstage2/" in "cc") echo ;; esac ` rm -f ld ln
collect2 ld ./gcc -dumpspecs > specs if [ -f libgcc2.ready ] ; then \
	true; \
else \
	touch libgcc2.ready; \
fi
if [ "." != "." ]; then rm -f ./enquire.c; else true; fi
cp ./enquire.c . > /dev/null 2>&1
*** Error code 1 (ignored)
./gcc    -g -O -B./    -DNO_SC -DNO_MEM -DNO_STDDEF -O0 -I. -c enquire.c
./gcc    -g -O -B./  enquire.o -o enquire
./enquire -f > tmp-float.h
mv tmp-float.h float.h

make compare

for file in *.o; do \
  tail +10c $file > tmp-foo1; \
  tail +10c stage2/$file > tmp-foo2; \
  cmp tmp-foo1 tmp-foo2 || echo $file differs; \
done
rm -f tmp-foo*

make CC="stage2/gcc -Bstage2/" CFLAGS="-g -O" install
make install-fixincludes



-- 
                                       Warren L. Dodge

           ====================================================
          | Warren L. Dodge, Electronic Engineer               |
          | Tektronix, Inc., Network Displays Division (NWD)   |
          | PO Box 1000, MS 60-850, Wilsonville, OR 97070      |
          |     phone - (503) 685-2283                         |
          |     fax   - (503) 682-1500                         |
          |     email - warren.dodge@TEK.COM                |
           ====================================================

Return-Received-To: warren.dodge@tek.com
Technical Details
Message-ID: <1539@shaman.wv.tek.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!zephyr.ens.tek.com!shaman!sptekwv3!warrend

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zephyr.ens.tek.com!shaman!sptekwv3!warrend
From: warren.dodge@tek.com (Warren Dodge)
Newsgroups: gnu.gcc.help
Subject: gcc-2.2.2 for sun 386I Warnings in make??
Keywords: 386 make warnings
Message-ID: <1539@shaman.wv.tek.com>
Date: 6 Aug 92 18:22:08 GMT
Sender: nobody@shaman.wv.tek.com
Reply-To: warren.dodge@tek.com
Organization: Tektronix, Inc.,  Beaverton, OR
Lines: 352