delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/04/04:20:05

From: pjfarley AT dorsai DOT org (Peter J. Farley III)
Newsgroups: comp.os.msdos.djgpp
Subject: Rebuilding patched gcc2721 -- ld.exe problem?
Date: Mon, 01 Sep 1997 04:19:47 GMT
Organization: None
Lines: 105
Message-ID: <340a406a.11832714@snews.zippo.com>
NNTP-Posting-Host: news.newsdawg.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I am rebuilding gcc with the patch from SET's page to enable stabs
debugging info and source tracing into include files, and after fixing
a couple of makefile problems (diff of my fixes copied below), it gets
to executing the first link, and I get the following message (pardon
the line wrap, this is copied from an 80-char DOS screen):

gcc  -DIN_GCC   -g   -o cc1 c-parse.o c-lang.o c-lex.o c-pragma.o
c-decl.o c-typ
eck.o c-convert.o c-aux-info.o c-common.o c-iterate.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
real.o dbxou
t.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.o reload.o
reload1.o calle
r-save.o insn-peep.o reorg.o sched.o final.o recog.o reg-stack.o
insn-opinit.o i
nsn-recog.o insn-extract.o insn-output.o insn-emit.o insn-attrtab.o
i386.o getpw
d.o convert.o  bc-emit.o bc-optab.o obstack.o
h:/bin\ld.exe: cc1: .text: line number overflow: 0x10b51 > 0xffff
cc1: final close failed: File truncated
make.exe: *** [cc1] Error 1

I noted that all of the compile steps use the "-g" switch.  Is this
part of (or the root of) the problem?

TIA for any help or advice you can provide.

Peter

======== makefile diff, cut here ===================
*** makefile.0  Sat Oct  5 19:13:28 1996
--- makefile    Sun Aug 31 23:22:58 1997
***************
*** 1080,1086 ****

  insn-attrtab.c: s-attrtab
  s-attrtab : $(md_file) genattrtab $(srcdir)/move-if-change
!       genattrtab md > t-attrtab.c
        update t-attrtab.c insn-attrtab.c
        touch s-attrtab

--- 1080,1086 ----

  insn-attrtab.c: s-attrtab
  s-attrtab : $(md_file) genattrtab $(srcdir)/move-if-change
!       genattrtab $(md_file) > t-attrtab.c
        update t-attrtab.c insn-attrtab.c
        touch s-attrtab

***************
*** 1270,1288 ****

  bc-arity.h: s-bcarity
  s-bcarity : $(srcdir)/bytecode.def bi-arity $(srcdir)/move-if-change
  s-bcarity : $(srcdir)/bytecode.def bi-arity $(srcdir)/move-if-change
!       bi-arity < $(srcdir)\bytecode.def >t-bc-arity.h
        update t-bc-arity.h bc-arity.h
        touch s-bcarity

  bc-opcode.h: s-bcopcode
  s-bcopcode : $(srcdir)/bytecode.def bi-opcode
$(srcdir)/move-if-change
!       bi-opcode < $(srcdir)\bytecode.def >t-bcopcd.h
        update t-bcopcd.h bc-opcode.h
        touch s-bcopcode

  bc-opname.h: s-bcopname
  s-bcopname : $(srcdir)/bytecode.def bi-opname
$(srcdir)/move-if-change
!       bi-opname < $(srcdir)\bytecode.def >t-bcopnm.h
        update t-bcopnm.h bc-opname.h
        touch s-bcopname

--- 1270,1288 ----

  bc-arity.h: s-bcarity
  s-bcarity : $(srcdir)/bytecode.def bi-arity $(srcdir)/move-if-change
!       bi-arity < $(srcdir)/bytecode.def >t-bc-arity.h
        update t-bc-arity.h bc-arity.h
        touch s-bcarity
        touch s-bcarity

  bc-opcode.h: s-bcopcode
  s-bcopcode : $(srcdir)/bytecode.def bi-opcode
$(srcdir)/move-if-change
!       bi-opcode < $(srcdir)/bytecode.def >t-bcopcd.h
        update t-bcopcd.h bc-opcode.h
        touch s-bcopcode

  bc-opname.h: s-bcopname
  s-bcopname : $(srcdir)/bytecode.def bi-opname
$(srcdir)/move-if-change
!       bi-opname < $(srcdir)/bytecode.def >t-bcopnm.h
        update t-bcopnm.h bc-opname.h
        touch s-bcopname

======== cut here ==================================

----------------------------------------------------
Peter J. Farley III (pjfarley AT dorsai DOT org)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019