Mail Archives: djgpp/1998/12/30/12:53:02
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 -