delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/23/07:21:02

Date: Thu, 23 Apr 1998 14:20:36 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Alessandro Rizzoli <bel2318 AT iperbole DOT bologna DOT it>
cc: djgpp AT delorie DOT com
Subject: Re: Stage1 Error while compiling djgcc-272
In-Reply-To: <353EFB58.141EC7DE@iperbole.bologna.it>
Message-ID: <Pine.SUN.3.91.980423141625.10127C-100000@is>
MIME-Version: 1.0

On Thu, 23 Apr 1998, Alessandro Rizzoli wrote:

> d:/djgpp/bin\ld.exe: cc1: .text: line number overflow: 0x10b4f > 0xffff
> cc1: final close failed: File truncated
> make.exe: *** [cc1] Error 1

This is a known problem.  GCC compiled with debugging info (the -g 
switch) overflows the inherent limitation of maximum number of source 
lines imposed by the COFF object format.  COFF can handle 64K lines max, 
which is what the linker is trying to tell you.

To work around, delete all the *.o files and then build GCC like this:

	make CFLAGS=-O2 LDFLAGS=-s

- Raw text -


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