GNU bug report logs - #13408
Emacs pretest 24.2.92 - compilation error on AIX 5.3 using gcc 4.7-2

Previous Next

Package: emacs;

Reported by: Gilles Pion <gpion <at> lfdj.com>

Date: Thu, 10 Jan 2013 17:48:02 UTC

Severity: important

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13408 in the body.
You can then email your comments to 13408 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#13408; Package emacs. (Thu, 10 Jan 2013 17:48:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Gilles Pion <gpion <at> lfdj.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 10 Jan 2013 17:48:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Gilles Pion <gpion <at> lfdj.com>
To: bug-gnu-emacs <at> gnu.org
Cc: Glenn Morris <rgm <at> gnu.org>
Subject: Emacs pretest 24.2.92 - compilation error on AIX 5.3 using gcc 4.7-2
Date: Thu, 10 Jan 2013 18:46:18 +0100
[Message part 1 (text/plain, inline)]
*1st compilation error:*

sysdep.c: In function 'init_signals':
sysdep.c:1940:34: error: 'deliver_danger_signal' undeclared (first use in
this function)
sysdep.c:1940:34: note: each undeclared identifier is reported only once
for each function it appears in
gmake[1]: *** [sysdep.o] Error 1
gmake[1]: Leaving directory
`/sg/paxdev5/D1stunix/src/emacs/24.2.92/emacs-24.2.92/src'
gmake: *** [src] Error 2

Have bee able to fix by adding declaration of "deliver_danger_signal"
in  sysdep.c:

  void deliver_danger_signal (int sig);

*2nd compilation error:*
(did not found a easy way to fix)

/fdj/opt/gcc-4.7/bin/gcc -std=gnu99 -c  -Demacs  -I.
-I/sg/paxdev5/D1stunix/src/emacs/24.2.92/emacs-24.2.92/src -I../lib
-I/sg/paxdev5/D1stunix/src/emacs/24.2.92/emacs-24.2.92/src/../lib
    -MMD -MF deps/eval.d -MP     -O2 -I/opt/freeware/include eval.c
eval.c: In function 'mark_backtrace':
eval.c:3380:20: error: invalid type argument of unary '*' (have
'Lisp_Object')
gmake[1]: *** [eval.o] Error 1
gmake[1]: Leaving directory
`/sg/paxdev5/D1stunix/src/emacs/24.2.92/emacs-24.2.92/src'
gmake: *** [src] Error 2
*
*
Context:

$ /fdj/opt/gcc-4.7/bin/gcc --version
gcc (GCC) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


  Where should the build process find the source code?
 /sg/paxdev5/D1stunix/src/emacs/24.2.92/emacs-24.2.92
  What compiler should emacs be built with?
/fdj/opt/gcc-4.7/bin/gcc -std=gnu99 -O2 -I/opt/freeware/include
  Should Emacs use the GNU version of malloc?             yes
  Should Emacs use a relocating allocator for buffers?    yes
  Should Emacs use mmap(2) for buffer allocation?         no
  What window system should Emacs use?                    x11
  What toolkit should Emacs use?                          LUCID
  Where do we find X Windows header files?                Standard dirs
  Where do we find X Windows libraries?                   Standard dirs
  Does Emacs use -lXaw3d?                                 no
  Does Emacs use -lXpm?                                   yes
  Does Emacs use -ljpeg?                                  no
  Does Emacs use -ltiff?                                  no
  Does Emacs use a gif library?                           no
  Does Emacs use -lpng?                                   no
  Does Emacs use -lrsvg-2?                                no
  Does Emacs use imagemagick?                             no
  Does Emacs use -lgpm?                                   no
  Does Emacs use -ldbus?                                  no
  Does Emacs use -lgconf?                                 no
  Does Emacs use GSettings?                               no
  Does Emacs use -lselinux?                               no
  Does Emacs use -lgnutls?                                no
  Does Emacs use -lxml2?                                  no
  Does Emacs use -lfreetype?                              no
  Does Emacs use -lm17n-flt?                              no
  Does Emacs use -lotf?                                   no
  Does Emacs use -lxft?                                   no
  Does Emacs use toolkit scroll bars?                     no


-- 
Gilles PION
[Message part 2 (text/html, inline)]
[config.txt (text/plain, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13408; Package emacs. (Fri, 11 Jan 2013 06:27:02 GMT) Full text and rfc822 format available.

Message #8 received at 13408 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Gilles Pion <gpion <at> lfdj.com>
Cc: 13408 <at> debbugs.gnu.org
Subject: Re: bug#13408: Emacs pretest 24.2.92 - compilation error on AIX 5.3
	using gcc 4.7-2
Date: Fri, 11 Jan 2013 01:26:15 -0500
Gilles Pion wrote:

> sysdep.c: In function 'init_signals':
> sysdep.c:1940:34: error: 'deliver_danger_signal' undeclared (first use in
> this function)
[...]
> Have bee able to fix by adding declaration of "deliver_danger_signal"
> in  sysdep.c:
>
>   void deliver_danger_signal (int sig);

Or maybe just move handle_danger_signal and deliver_danger_signal
entirely from emacs.c to sysdep.c? That's the only file that uses them,
and eg handle_fatal_signal/deliver_fatal_signal are already there.

> /fdj/opt/gcc-4.7/bin/gcc -std=gnu99 -c  -Demacs  -I.
> -I/sg/paxdev5/D1stunix/src/emacs/24.2.92/emacs-24.2.92/src -I../lib
> -I/sg/paxdev5/D1stunix/src/emacs/24.2.92/emacs-24.2.92/src/../lib
>     -MMD -MF deps/eval.d -MP     -O2 -I/opt/freeware/include eval.c
> eval.c: In function 'mark_backtrace':
> eval.c:3380:20: error: invalid type argument of unary '*' (have
> 'Lisp_Object')

Does anyone see what the problem is here?




Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Fri, 11 Jan 2013 08:04:01 GMT) Full text and rfc822 format available.

Notification sent to Gilles Pion <gpion <at> lfdj.com>:
bug acknowledged by developer. (Fri, 11 Jan 2013 08:04:02 GMT) Full text and rfc822 format available.

Message #13 received at 13408-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: 13408-done <at> debbugs.gnu.org
Subject: Re: Emacs pretest 24.2.92 - compilation error on AIX 5.3 using gcc
	4.7-2
Date: Fri, 11 Jan 2013 00:03:39 -0800
Glenn's suggestion for moving handle_danger_signal and deliver_danger_signal
seems good, so I installed a patch to do that, as emacs-24 bzr 111170.

The other problem is due to a stray '*'.  This was fixed a while ago
in the trunk, so I backported that to emacs-24 as bzr 111171.

I'll be optimistic and close the bug as fixed; if I'm wrong I'll
reopen it.

Here are the URLs for these two fixes.

http://bzr.savannah.gnu.org/lh/emacs/emacs-24/revision/111170

http://bzr.savannah.gnu.org/lh/emacs/emacs-24/revision/111171




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13408; Package emacs. (Fri, 11 Jan 2013 08:25:01 GMT) Full text and rfc822 format available.

Message #16 received at 13408 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: gpion <at> lfdj.com, 13408 <at> debbugs.gnu.org
Subject: Re: bug#13408: Emacs pretest 24.2.92 - compilation error on AIX 5.3
	using	gcc 4.7-2
Date: Fri, 11 Jan 2013 10:24:39 +0200
> From: Glenn Morris <rgm <at> gnu.org>
> Date: Fri, 11 Jan 2013 01:26:15 -0500
> Cc: 13408 <at> debbugs.gnu.org
> 
> > /fdj/opt/gcc-4.7/bin/gcc -std=gnu99 -c  -Demacs  -I.
> > -I/sg/paxdev5/D1stunix/src/emacs/24.2.92/emacs-24.2.92/src -I../lib
> > -I/sg/paxdev5/D1stunix/src/emacs/24.2.92/emacs-24.2.92/src/../lib
> >     -MMD -MF deps/eval.d -MP     -O2 -I/opt/freeware/include eval.c
> > eval.c: In function 'mark_backtrace':
> > eval.c:3380:20: error: invalid type argument of unary '*' (have
> > 'Lisp_Object')
> 
> Does anyone see what the problem is here?

This is the code in question, with line 3380 the last one:

  void
  mark_backtrace (void)
  {
    register struct backtrace *backlist;
    ptrdiff_t i;

    for (backlist = backtrace_list; backlist; backlist = backlist->next)
      {
	mark_object (*backlist->function);

Shouldn't it be

	mark_object (backlist->function);

instead?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13408; Package emacs. (Fri, 11 Jan 2013 09:17:01 GMT) Full text and rfc822 format available.

Message #19 received at 13408 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: gpion <at> lfdj.com, 13408 <at> debbugs.gnu.org
Subject: Re: bug#13408: Emacs pretest 24.2.92 - compilation error on AIX 5.3
	using	gcc 4.7-2
Date: Fri, 11 Jan 2013 11:15:56 +0200
> Date: Fri, 11 Jan 2013 00:03:39 -0800
> From: Paul Eggert <eggert <at> cs.ucla.edu>
> 
> The other problem is due to a stray '*'.  This was fixed a while ago
> in the trunk, so I backported that to emacs-24 as bzr 111171.

Do you happen to know what did GCC make out that, before the change?
Did it just ignore the dereference?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13408; Package emacs. (Fri, 11 Jan 2013 19:12:01 GMT) Full text and rfc822 format available.

Message #22 received at 13408 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: gpion <at> lfdj.com, 13408 <at> debbugs.gnu.org
Subject: Re: bug#13408: Emacs pretest 24.2.92 - compilation error on AIX 5.3
	using	gcc 4.7-2
Date: Fri, 11 Jan 2013 11:11:25 -0800
On 01/11/2013 01:15 AM, Eli Zaretskii wrote:
>> Date: Fri, 11 Jan 2013 00:03:39 -0800
>> > From: Paul Eggert <eggert <at> cs.ucla.edu>
>> > 
>> > The other problem is due to a stray '*'.  This was fixed a while ago
>> > in the trunk, so I backported that to emacs-24 as bzr 111171.
> Do you happen to know what did GCC make out that, before the change?
> Did it just ignore the dereference?

No, GCC consistently refused to compile it.  It's just that
this code is rarely compiled -- it's normally ifdeffed out,
so GCC doesn't see the problem.  I suppose that on AIX the
code is not ifdeffed out, so that's why the bug was reported
for AIX.

In older Emacs versions, the types were different and the
"*" was OK; it became a stray "*" only fairly recently.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 09 Feb 2013 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 91 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.