GNU bug report logs - #27346
module tests fail to compile with gcc 4.8.5

Previous Next

Package: emacs;

Reported by: Glenn Morris <rgm <at> gnu.org>

Date: Mon, 12 Jun 2017 17:38:01 UTC

Severity: normal

Found in version 26.0.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 27346 <at> debbugs.gnu.org
Subject: bug#27346: module tests fail to compile with gcc 4.8.5
Date: Mon, 12 Jun 2017 21:25:15 +0300
> From: Glenn Morris <rgm <at> gnu.org>
> Date: Mon, 12 Jun 2017 13:37:18 -0400
> 
> Current master on rhel7.3.
> gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)
> 
> After building with-modules:
>     cd test/data/emacs-module
>     make
>     
>     gcc -std=gnu11 -I../../../src -fPIC -g3 -O2 -c -o mod-test.o mod-test.c
>     In file included from mod-test.c:23:0:
>     ../../../src/emacs-module.h:38:47: error: missing binary operator before token "("
>      #if defined __has_attribute && __has_attribute(__nonnull__)

I think the "if defined __has_attribute &&" part is not needed, since
conf_post.h defines it fr compilers that lack it.  Can you try that?




This bug report was last modified 7 years and 349 days ago.

Previous Next


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