delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/30/12:53:02

Date: Wed, 30 Dec 1998 19:52:58 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Adam Schrotenboer <ajschrotenboer AT lycosmail DOT com>
cc: djgpp AT delorie DOT com, Andris Pavenis <pavenis AT lanet DOT lv>
Subject: Re: Problems building EGCS 1.1.1
In-Reply-To: <36898A0B.90945F32@lycosmail.com>
Message-ID: <Pine.SUN.3.91.981230194458.24781D-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Tue, 29 Dec 1998, Adam Schrotenboer wrote:

> I get the following error while building egcs:
> 
> c:/djgpp/bin/ld.exe: ../cc1plus.exe: warning: .text: line number
> overflow: 0x1b488 > 0xffff

You should compile and link with -O2 and without -g.

> I get the idea that cc1plus is limited to 65535 lines of code.

No, this is a basic limitation of the COFF format: no more than 64K lines 
per module in the debug info.

> Can it be changed?

No, not unless we switch to another object format.  However the above 
switches usually fix the problem.

> The reason I am trying to build EGCS is to use it as a step toward
> building PGCC 1.1.1.  If I remember correctly, the only one to
> distribute binaries for DJGPP of PGCC 1.0.1 did so w/ a cross compiler
> from Linux. Is this essentially the only way to do this???

I have never tried to build PGCC, but I cannot understand how could
building EGCS help you in building PGCC.  Neither do I grasp why should it
be impossible to build PGCC on MS-DOS/MS-Windows.  Enough GNU tools (Bash,
Fileutils, Textutils, Grep, Sed, etc.) are available which should make
that possible, even easy.  You might need to tweak some configure script,
but people are successfully doing that for other packages for years. 

It is true that cross-building is easier (once you have a cross-
environment up and running), but if you were after the easy way, you 
wouldn't be using Windows 9X, right? ;-)

- Raw text -


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