* Problems building emacs-21.2 on IRIX with gcc-3.4.4
@ 2005-06-09 22:44 Albert Chin
2005-06-10 13:30 ` Richard Stallman
0 siblings, 1 reply; 6+ messages in thread
From: Albert Chin @ 2005-06-09 22:44 UTC (permalink / raw)
I'm trying to build emacs-21.2 on IRIX 6.5.23m with gcc-3.4.4 (latest
3.4 release):
$ gtar zxf /opt/src/editors/emacs-21.2/src/emacs-21.2.tar.gz
$ gtar zxf /opt/src/editors/emacs-21.2/src/leim-21.2.tar.gz
$ cd emacs-21.2
$ ./configure --with-gcc --with-x --with-x-toolkit=lucid
$ gmake
...
Wrote /opt/build/emacs-21.2/lib-src/fns-21.2.1.el
Dumping under names emacs and emacs-21.2.1
702632 pure bytes used
./emacs -q -batch -f list-load-path-shadows
Fatal error (10).gmake[1]: *** [emacs] Bus error (core dumped)
gmake[1]: Leaving directory `/opt/build/emacs-21.2/src'
gcc-3.3.2 works. Should I presume this to be a GCC bug?
--
albert chin (china@thewrittenword.com)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Problems building emacs-21.2 on IRIX with gcc-3.4.4
2005-06-09 22:44 Problems building emacs-21.2 on IRIX with gcc-3.4.4 Albert Chin
@ 2005-06-10 13:30 ` Richard Stallman
2005-06-14 16:35 ` Albert Chin
0 siblings, 1 reply; 6+ messages in thread
From: Richard Stallman @ 2005-06-10 13:30 UTC (permalink / raw)
Cc: emacs-devel
gcc-3.3.2 works. Should I presume this to be a GCC bug?
It could be, but you need to localize the problem to make sure. You
could try compiling some files with GCC 3.3.2 and some with GCC 3.4.4,
and determine which file makes the difference. Then you could try
splitting that file in various ways, to compile part of it with 3.3.2
and part with 3.4.4. That way you can see which function fails.
At that point, you'll probably see that either the function contains
code that is not well defined in C, or that it has been miscompiled
by GCC 3.4.4. Either way, we will know what to do.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Problems building emacs-21.2 on IRIX with gcc-3.4.4
2005-06-10 13:30 ` Richard Stallman
@ 2005-06-14 16:35 ` Albert Chin
2005-06-15 14:45 ` Richard Stallman
0 siblings, 1 reply; 6+ messages in thread
From: Albert Chin @ 2005-06-14 16:35 UTC (permalink / raw)
On Fri, Jun 10, 2005 at 09:30:18AM -0400, Richard Stallman wrote:
> gcc-3.3.2 works. Should I presume this to be a GCC bug?
>
> It could be, but you need to localize the problem to make sure. You
> could try compiling some files with GCC 3.3.2 and some with GCC 3.4.4,
> and determine which file makes the difference. Then you could try
> splitting that file in various ways, to compile part of it with 3.3.2
> and part with 3.4.4. That way you can see which function fails.
>
> At that point, you'll probably see that either the function contains
> code that is not well defined in C, or that it has been miscompiled
> by GCC 3.4.4. Either way, we will know what to do.
Thanks for the tip. We had one of the GCC developers look at the
problem (Eric Botcazou), and he found out that gcc-3.4.x is creating
some additional R/W ELF sections that the IRIX linker is not combining
(gcc-3.3.x created one R/W and one R/O ELF section). He plans to look
into this further. Hopefully we'll have a solution soon.
--
albert chin (china@thewrittenword.com)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Problems building emacs-21.2 on IRIX with gcc-3.4.4
2005-06-14 16:35 ` Albert Chin
@ 2005-06-15 14:45 ` Richard Stallman
2005-06-16 17:08 ` Albert Chin
0 siblings, 1 reply; 6+ messages in thread
From: Richard Stallman @ 2005-06-15 14:45 UTC (permalink / raw)
Cc: emacs-devel
Thanks for the tip. We had one of the GCC developers look at the
problem (Eric Botcazou), and he found out that gcc-3.4.x is creating
some additional R/W ELF sections that the IRIX linker is not combining
(gcc-3.3.x created one R/W and one R/O ELF section). He plans to look
into this further. Hopefully we'll have a solution soon.
It may need upgrading of unexelf.c in Emacs to handle more different
sections.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Problems building emacs-21.2 on IRIX with gcc-3.4.4
2005-06-15 14:45 ` Richard Stallman
@ 2005-06-16 17:08 ` Albert Chin
2005-06-17 4:39 ` Richard Stallman
0 siblings, 1 reply; 6+ messages in thread
From: Albert Chin @ 2005-06-16 17:08 UTC (permalink / raw)
On Wed, Jun 15, 2005 at 10:45:46AM -0400, Richard Stallman wrote:
> Thanks for the tip. We had one of the GCC developers look at the
> problem (Eric Botcazou), and he found out that gcc-3.4.x is creating
> some additional R/W ELF sections that the IRIX linker is not combining
> (gcc-3.3.x created one R/W and one R/O ELF section). He plans to look
> into this further. Hopefully we'll have a solution soon.
>
> It may need upgrading of unexelf.c in Emacs to handle more different
> sections.
>From Eric, the difference in .data.* sections between gcc-3.3 and
gcc-3.4:
(1) for 3.3: .data .data.rel.ro
(2) for 3.4: .data .data.rel .data.rel.local
Any way to get unexelf.c to merge all the .data* sections?
--
albert chin (china@thewrittenword.com)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Problems building emacs-21.2 on IRIX with gcc-3.4.4
2005-06-16 17:08 ` Albert Chin
@ 2005-06-17 4:39 ` Richard Stallman
0 siblings, 0 replies; 6+ messages in thread
From: Richard Stallman @ 2005-06-17 4:39 UTC (permalink / raw)
Cc: emacs-devel
>From Eric, the difference in .data.* sections between gcc-3.3 and
gcc-3.4:
(1) for 3.3: .data .data.rel.ro
(2) for 3.4: .data .data.rel .data.rel.local
Any way to get unexelf.c to merge all the .data* sections?
Is it really right to merge them? Shouldn't it preserve the identity
of each one? (I am not sure, just guessing.)
In any case, we would like someone to make this change, but
IRIX is not terribly high priority. We won't delay the release
for it, but we hope someone will do this.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-06-17 4:39 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-09 22:44 Problems building emacs-21.2 on IRIX with gcc-3.4.4 Albert Chin
2005-06-10 13:30 ` Richard Stallman
2005-06-14 16:35 ` Albert Chin
2005-06-15 14:45 ` Richard Stallman
2005-06-16 17:08 ` Albert Chin
2005-06-17 4:39 ` Richard Stallman
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).