Date: Sun, 30 Mar 1997 19:00:01 +0300 (IDT) From: Eli Zaretskii To: Christopher Currie cc: DJGPP List Subject: Re: Compling GCC In-Reply-To: <3.0.1.32.19970328140603.00686e78@nicom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.