Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 890252 - media-gfx/jhead-3.06.0.1-r1 fails to compile (lto): exif.c:396:26: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Summary: media-gfx/jhead-3.06.0.1-r1 fails to compile (lto): exif.c:396:26: error: der...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard: lto
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2023-01-08 19:55 UTC by Kostadin Shishmanov
Modified: 2024-03-11 18:49 UTC (History)
0 users

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


Attachments
emerge --info and build log (build.log,10.57 KB, text/x-log)
2023-01-08 19:55 UTC, Kostadin Shishmanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kostadin Shishmanov 2023-01-08 19:55:29 UTC
Created attachment 847990 [details]
emerge --info and build log

media-gfx/jhead-3.06.0.1 fails to compile with CFLAGS=-flto=auto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing



exif.c:396:26: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
  396 |                     f = *(float *)&tmp;
      |                          ^~~~~~~~~~~~~
exif.c: In function ‘ConvertAnyFormat’:
exif.c:460:26: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
  460 |                 Value = *(float *)&tmp;
      |                          ^~~~~~~~~~~~~
cc1: some warnings being treated as errors
Comment 1 Agostino Sarubbo gentoo-dev 2024-03-11 15:39:23 UTC
lto_tinderbox has reproduced this issue with version 3.06.0.1-r1 - Updating summary.
Comment 2 Larry the Git Cow gentoo-dev 2024-03-11 18:49:47 UTC
The bug has been closed via the following commit(s):

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

commit d4bf8684d408ef7310a7915ca277707350d708d6
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-03-11 18:02:02 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-11 18:02:11 +0000

    media-gfx/jhead: add 3.08
    
    Bug: https://bugs.gentoo.org/908519
    Closes: https://bugs.gentoo.org/879543
    Closes: https://bugs.gentoo.org/890252
    Signed-off-by: Sam James <sam@gentoo.org>

 media-gfx/jhead/Manifest                           |  1 +
 .../jhead/files/jhead-3.08-fix-makefile.patch      | 42 ++++++++++++++++++++++
 media-gfx/jhead/jhead-3.08.ebuild                  | 36 +++++++++++++++++++
 3 files changed, 79 insertions(+)