X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com Date: Mon, 09 Apr 2012 09:40:21 +0300 From: Eli Zaretskii Subject: Re: Difficulties compiling emacs with gcc 4.6.2 In-reply-to: <201204090011.41565.juan.guerrero@gmx.de> X-012-Sender: halo1 AT inter DOT net DOT il To: Juan Manuel Guerrero Cc: djgpp AT delorie DOT com Message-id: <83pqbh8l2i.fsf@gnu.org> References: <201204090011 DOT 41565 DOT juan DOT guerrero AT gmx DOT de> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: Juan Manuel Guerrero > Date: Mon, 9 Apr 2012 00:11:41 +0200 > > I have tried to compile emacs 23.4 using gcc 4.6.2 and binutils 2.22 and I got > the output below. Something seems to be wrong with the assembler output > produced by gcc. I have replaced the compiler with gcc 4.5.2 and it compiled > flawlessly. Of course still using binutils 2.22. > If more information is needed please tell me. > [...] > gcc -c -Demacs -DHAVE_CONFIG_H -I. -I. -O2 -gcoff emacs.c > c:/TMP/ccVqj3Jc.s: Assembler messages: > c:/TMP/ccVqj3Jc.s:6834: Error: invalid operands (.text and .text.startup sections) for `-' > c:/TMP/ccVqj3Jc.s:6798: Error: can't resolve `.text' {.text section} - `LFB7' {.text.startup section} Could you please try figuring out which source lines trigger this? Is it perhaps the reference to etext around line 1800 of emacs.c?