Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 924339 - app-editors/xemacs-21.5.35 fails to compile: lstream.h:315:4: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Summary: app-editors/xemacs-21.5.35 fails to compile: lstream.h:315:4: error: derefere...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: XEmacs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2024-02-12 08:20 UTC by Agostino Sarubbo
Modified: 2024-03-12 13:16 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,127.22 KB, text/plain)
2024-02-12 08:20 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-02-12 08:20:42 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-editors/xemacs-21.5.35 fails to compile.
Discovered on: amd64 (internal ref: lto_tinderbox)
System: LTO-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#LTO)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-02-12 08:20:45 UTC
Created attachment 884780 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-02-12 08:20:46 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


checking for standard C library version information... ls: cannot access '/lib/libc-*.so': No such file or directory
packaging.texi:6: warning: @setfilename after the first element
lstream.h:315:4: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wstrict-aliasing]]
Comment 3 Larry the Git Cow gentoo-dev 2024-03-12 11:08:01 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3dc67052d5a266a8ed044a76913bea30efbac63

commit a3dc67052d5a266a8ed044a76913bea30efbac63
Author:     Mats Lidell <matsl@gentoo.org>
AuthorDate: 2024-03-12 11:06:23 +0000
Commit:     Mats Lidell <matsl@gentoo.org>
CommitDate: 2024-03-12 11:06:23 +0000

    app-editors/xemacs: Set no-strict-aliasing on debug
    
    Reintroduce patch to disable broken libc version check.
    
    Bug: https://bugs.gentoo.org/924339
    Signed-off-by: Mats Lidell <matsl@gentoo.org>

 .../xemacs-21.5.35-configure-libc-version.patch    |  73 ++++++
 app-editors/xemacs/xemacs-21.5.35-r1.ebuild        | 258 +++++++++++++++++++++
 app-editors/xemacs/xemacs-21.5.9999.ebuild         |  14 +-
 3 files changed, 342 insertions(+), 3 deletions(-)
Comment 4 Mats Lidell gentoo-dev 2024-03-12 12:17:35 UTC
XEmacs is not strict aliasing safe. This was not enforced when use flag debug was set so this is fixed now. For none debug builds with-optimization is set and configure does in that case set it itself. Upstream has been informed of this slight discrepancy.

For the libc warning that was an oversight by me to not bring that fix over from 21.5.34 ebuild. Thanks for making me notice. It has now been improved(!?) to remove that check completely since the check is broken and the result is just informative.

The texi warnings are still there and I have not addressed them. I'm leaving for upstream to deal with them. Upstream has been notified about them and a merge request that fixes them partially have been provided. So there is hope it will be fixed with future versions.
Comment 5 Eli Schwartz 2024-03-12 13:16:42 UTC
Maybe you should filter-lto as well?