Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 576512 - app-editors/xemacs-21.4.24 with gcc 5.3: lisp.h:204:3: error: conflicting types for 'max_align_t'
Summary: app-editors/xemacs-21.4.24 with gcc 5.3: lisp.h:204:3: error: conflicting typ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: XEmacs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-05 12:42 UTC by Tristen Hayfield
Modified: 2016-04-08 10:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (einfo,17.39 KB, text/plain)
2016-03-05 12:44 UTC, Tristen Hayfield
Details
build log (build.log,33.28 KB, text/x-log)
2016-03-05 12:45 UTC, Tristen Hayfield
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tristen Hayfield 2016-03-05 12:42:04 UTC
emerge of xemacs fails with:

lisp.h:204:3: error: conflicting types for 'max_align_t'

This error occurred after I upgraded from gcc-4.9 to the 5.3 series.

A little bit of googling has brought me to:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=778180

Which makes me believe that it's an upstream issue:

>The stddef.h header defines max_align_t conditional on the definition
>of __STDC_VERSION__, so in gcc5, this type is defined in stddef.h,
>where for older versions of gcc it was not.

It appears though that there is an additional issue introduced by the change of inlining semantics between gcc 4 and 5:

>gcc5 changes the semantics of inline function declarations, causing some
>inline functions in xemacs to be considered "extern", and thus cause
>multiple function definitions for the linker. This should be fixed
>upstream, but for now we can add "-fgnu89-inline" to CFLAGS to keep
>the old inline semantics.

I haven't yet tried the fixes myself.
Comment 1 Tristen Hayfield 2016-03-05 12:44:39 UTC
Created attachment 427514 [details]
emerge --info
Comment 2 Tristen Hayfield 2016-03-05 12:45:45 UTC
Created attachment 427516 [details]
build log
Comment 3 Mats Lidell gentoo-dev 2016-03-07 21:16:48 UTC
I have been able to recreate the problem.
Comment 4 Mats Lidell gentoo-dev 2016-04-03 00:09:19 UTC
xemacs-21.4.24.ebuild has been updated with a patch derived from the debian bug report plus adding -std=gnu89 to cflags so gcc adjusts to the sources. Please verify.
Comment 5 Mats Lidell gentoo-dev 2016-04-08 10:55:56 UTC
Verified by building on a separate machine with testing profile and masking out 21.5.