delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/26/11:18:55

Posted-Date: Sun, 26 Jan 1997 10:02:14 -0600 (CST)
Message-Id: <199701261602.KAA01094@mail.texoma.net>
From: "Mark S. Teel" <mteel AT texoma DOT net>
To: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Cc: "DJGPP" <djgpp AT delorie DOT com>
Subject: Re: Difficulty re-building gcc
Date: Sun, 26 Jan 1997 10:09:58 -0600
MIME-Version: 1.0


----------

On Sat, 25 Jan 1997, Mark S. Teel wrote:

> I am trying to rebuild gcc and I keep getting the message :
> "c:/djgpp/bin\ld.exe: cc1: .text: line number overflow: 0x10b58 > 0xffff"
> on what appears to be the final link.  I have read the FAQ but haven't 
> found anything about this.  Thanks in advance.

:You need to add -O2 to the compilation switches.  The problem is that 
:COFF object format only supports 64K source lines per program, but when 
:you compile without -O2, you get more lines than that.
:Just add "CFLAGS=-O2" to whatever command line you pass to Make when you 
:compile gcc.

Thanks, that seemed to work.  But this raises some other questions...
1)  Replacing the -g with -O2 causes optimization and no debug information
generated.
Does this mean the libraries were built without debug information?  Will I
not be able to 
step into the library routines?

2) There was a plethora of EXEs generated in addition to cc1.exe - what
files need to be
moved into the bin directory, lib directory, etc?

An interesting observation is that while I was building gcc, I received
mail via M$ Internet
Mail and it caused the compiler to crash!?!  I restarted it and all seemed
fine...

Thanks for your help :)   MST

- Raw text -


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