delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/30/11:20:28

Date: Sun, 30 Mar 1997 19:00:01 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Christopher Currie <legs AT nicom DOT com>
cc: DJGPP List <djgpp AT delorie DOT com>
Subject: Re: Compling GCC
In-Reply-To: <3.0.1.32.19970328140603.00686e78@nicom.com>
Message-ID: <Pine.SUN.3.91.970330185936.15517S-100000@is>
MIME-Version: 1.0

On Fri, 28 Mar 1997, Christopher Currie wrote:

> run Objective C programs. I've downloaded the patch listed in the FAQ, but
> from what I could tell it was already reflected in GCC 2.7.2.1.

The compiler is indeed patched already, but you need to rebuild the
ObjC library (libobjc.a) with the patched compiler, and that wasn't
done for DJGPP v2.01.

> All the
> components seem to compile without difficulty, but neither cc1.exe or
> cc1obj.exe will link. The error I get is:
> 
> >d:/djgpp/bin\ld.exe: cc1: .text: line number overflow: 0x10b51 > 0xffff
> >cc1: final close failed: File truncated
> >make.exe: *** [cc1] Error 1

Add -O2 to the compilation switches.  Without it, the compiler
generates too many debug references to source lines, and the COFF
format cannot handle more than 64K lines per module.

> when I execute 'make OBJC.'

Say "make OBJC CFLAGS=-O2 and the problem should go away.

- Raw text -


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