GNU bug report logs - #14923
24.3.50; Emacs compilation broken on FreeBSD SPARC/ARM platforms

Previous Next

Package: emacs;

Reported by: ashish.is <at> lostca.se (Ashish SHUKLA)

Date: Sun, 21 Jul 2013 12:57:02 UTC

Severity: important

Fixed in version 24.3.50

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 14923 in the body.
You can then email your comments to 14923 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#14923; Package emacs. (Sun, 21 Jul 2013 12:57:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to ashish.is <at> lostca.se (Ashish SHUKLA):
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 21 Jul 2013 12:57:04 GMT) Full text and rfc822 format available.

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

From: ashish.is <at> lostca.se (Ashish SHUKLA)
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; Emacs compilation broken on FreeBSD SPARC/ARM platforms
Date: Sun, 21 Jul 2013 18:24:32 +0530
[Message part 1 (text/plain, inline)]
Hi,

Following compiler error is observed on SPARC platform when compiling Emacs 24.3:

#v+
cc -std=gnu99 -c -I/usr/local/include -Demacs  -I. -I/home/ashish/emacs-nox11/work/emacs-24.3/src -I../lib -I/home/ashish/emacs-nox11/work/emacs-24.3/src/../lib               -MMD -MF deps/sysdep.d -MP     -O2 -pipe -fno-strict-aliasing sysdep.c
In file included from lisp.h:25,
                 from sysdep.c:39:
../lib/stdalign.h:51:1: warning: "_Alignof" redefined
In file included from /usr/include/string.h:36,
                 from ./conf_post.h:189,
                 from ./config.h:1671,
                 from sysdep.c:20:
/usr/include/sys/cdefs.h:240:1: warning: this is the location of the previous definition
In file included from lisp.h:25,
                 from sysdep.c:39:
../lib/stdalign.h:82:1: warning: "_Alignas" redefined
In file included from /usr/include/string.h:36,
                 from ./conf_post.h:189,
                 from ./config.h:1671,
                 from sysdep.c:20:
/usr/include/sys/cdefs.h:239:1: warning: this is the location of the previous definition
In file included from sysdep.c:89:
frame.h:86: error: redefinition of 'struct frame'
sysdep.c: In function 'list_system_processes':
sysdep.c:2684: warning: comparison is always true due to limited range of data type
sysdep.c:2684: warning: comparison is always true due to limited range of data type
sysdep.c: In function 'system_process_attributes':
sysdep.c:3264: warning: comparison is always true due to limited range of data type
sysdep.c:3264: warning: comparison is always true due to limited range of data type
sysdep.c:3272: warning: comparison is always true due to limited range of data type
sysdep.c:3272: warning: comparison is always true due to limited range of data type
sysdep.c:3312: warning: comparison is always true due to limited range of data type
sysdep.c:3312: warning: comparison is always true due to limited range of data type
sysdep.c:3313: warning: comparison is always true due to limited range of data type
sysdep.c:3313: warning: comparison is always true due to limited range of data type
sysdep.c:3314: warning: comparison is always true due to limited range of data type
sysdep.c:3314: warning: comparison is always true due to limited range of data type
sysdep.c:3322: warning: comparison is always true due to limited range of data type
sysdep.c:3322: warning: comparison is always true due to limited range of data type
sysdep.c:3346: warning: comparison is always true due to limited range of data type
sysdep.c:3346: warning: comparison is always true due to limited range of data type
gmake[1]: *** [sysdep.o] Error 1
#v-

This happens because Emacs' and FreeBSD's system header files define a type
`struct frame` which causes conflict. The attached diff file fixes this issue
by renaming the FreeBSD's type before it gets defined.

Following is the output of `uname -a`:

#v+
FreeBSD magnus 9.1-STABLE FreeBSD 9.1-STABLE #4 r252102: Sun Jun 23 10:25:50 EDT 2013     root <at> magnus:/usr/obj/usr/src/sys/GENERIC  sparc64
=v-


Thanks
-- 
Ashish SHUKLA

“Censorship is telling a man he can't have a steak just because a baby can't
chew it.” (patcito, identi.ca #62762642)

Sent from my Emacs
[patch-src_sysdep.c (text/plain, attachment)]
[signature.asc (application/pgp-signature, inline)]

Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Mon, 22 Jul 2013 17:49:01 GMT) Full text and rfc822 format available.

Notification sent to ashish.is <at> lostca.se (Ashish SHUKLA):
bug acknowledged by developer. (Mon, 22 Jul 2013 17:49:02 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: 14923-done <at> debbugs.gnu.org
Cc: ashish.is <at> lostca.se
Subject: 24.3.50; Emacs compilation broken on FreeBSD SPARC/ARM platforms
Date: Mon, 22 Jul 2013 18:48:19 +0100
Thanks, I installed a fix in the trunk (bzr 113491) along the
lines you suggested and am marking this as done.

The _Alignof/_Alignas issue was fixed earlier in
the trunk (bzr 113322).

The other noise is harmless and should be fixed
once FreeBSD fixes their compiler (a later GCC
version, perhaps? I don't know the FreeBSD
compiler technology these days).




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 20 Aug 2013 11:24:02 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 272 days ago.

Previous Next


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