This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Internal compiler error in eliminate_regs, at reload1.c:2580 [Re:can't build usable emacs/src/Makefile with recent gcc snapshots


"Eli Zaretskii" <eliz@is.elta.co.il> wrote:

>> From: Jim Meyering <jim@meyering.net>
>> Date: Sun, 30 Sep 2001 17:51:41 +0200
>> >
>> > Jim, can you get this to work if you force the preprocessor to use the
>> > "-traditional" switch?  (See etc/PROBLEMS entry "Building Emacs with
>> > GCC 2.9x fails in the `src' directory", for a similar problem.)
...
> Sure, you can't compile Emacs with -traditional.  I meant something
> different:
>
>     $ env CPP='gcc -E -traditional' ./configure

[short answer, it works in that src/Makefile is now valid]

Here's what I get now (using a snapshot from about 12 hours ago):

gcc -D_BSD_SOURCE  -DHAVE_CONFIG_H    -I. -I../src -I/mirror/d/emacs/lib-src -I/mirror/d/emacs/lib-src/../src -L/usr/X11R6/lib -D_BSD_SOURCE   -g -O2  /mirror/d/emacs/lib-src/emacsserver.c -lc -o emacsserver
/mirror/d/emacs/lib-src/emacsserver.c: In function `main':
/mirror/d/emacs/lib-src/emacsserver.c:410: Internal compiler error in eliminate_regs, at reload1.c:2580
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[1]: *** [emacsserver] Error 1
make[1]: Leaving directory `/build/d/emacs/lib-src'
make: *** [lib-src] Error 2
[Exit 2]

$ gcc -v
Reading specs from /p/p/gcc-2001-09-30.02h35/lib/gcc-lib/i686-pc-linux-gnu/3.1/specs
Configured with: /mirror/d/gcc/configure --disable-nls --prefix=/p/p/gcc-2001-09-30.02h35
Thread model: single
gcc version 3.1 20010929 (experimental)

Here's emacsserver.i.gz:

emacsserver.i.gz


But if I actually `cd src' and run make from there, it does indeed work.

> Sorry I didn't say that explicitly.
>
>> > Anyway, this should be reported to gcc-bugs, I think.
>>
>> You're welcome to report it.
>
> I think it would be better if you reported this, since I don't have
> that snapshot installed, and cannot send them preprocessed files and
> anything else they might want.  But if you can't do that, I will.

I'll file a report for the original problem later,
assuming no one else beats me to it.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]