Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926890 - media-libs/openpgl-0.5.0 fails to compile: bbox.h:253:35: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Summary: media-libs/openpgl-0.5.0 fails to compile: bbox.h:253:35: error: dereferencin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sebastian Parborg
URL:
Whiteboard:
Keywords: PullRequest
Depends on: 927244
Blocks: lto
  Show dependency tree
 
Reported: 2024-03-13 09:04 UTC by Agostino Sarubbo
Modified: 2024-04-09 14:44 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,96.95 KB, text/plain)
2024-03-13 09:04 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-03-13 09:04:50 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-libs/openpgl-0.5.0 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-03-13 09:04:51 UTC
Created attachment 887510 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-03-13 09:04:53 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


FAILED: openpgl/CMakeFiles/openpgl.dir/api/api.cpp.o 
FAILED: openpgl/CMakeFiles/openpgl.dir/api/deviceCPU4.cpp.o 
FAILED: openpgl/CMakeFiles/openpgl.dir/api/deviceCPU8.cpp.o 
FAILED: openpgl/CMakeFiles/openpgl.dir/directional/ISurfaceSamplingDistribution.cpp.o 
FAILED: openpgl/CMakeFiles/openpgl.dir/directional/IVolumeSamplingDistribution.cpp.o 
FAILED: openpgl/CMakeFiles/openpgl.dir/directional/vmm/VMMPhaseFunctions.cpp.o 
/var/tmp/portage/media-libs/openpgl-0.5.0/work/openpgl-0.5.0/openpgl/../third-party/embreeSrc/common/math/bbox.h:253:35: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-18 13:01:16 UTC
so a bump should "fix" it, I think
Comment 5 Eli Schwartz 2024-04-01 06:05:50 UTC
Well, I'm guessing we should still filter-lto it, no?
Comment 6 Larry the Git Cow gentoo-dev 2024-04-03 10:14:38 UTC
The bug has been referenced in the following commit(s):

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

commit 02e5031fec64e531335bcd8b4e6dc9c1f0bea882
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2024-03-28 17:36:37 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-04-03 10:12:49 +0000

    media-gfx/openpgl: add 0.6.0, use PV as subslot
    
    Bug: https://bugs.gentoo.org/926890
    Closes: https://bugs.gentoo.org/927244
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/35969
    Signed-off-by: Sam James <sam@gentoo.org>

 media-gfx/blender/blender-3.6.0.ebuild             |  2 +-
 media-gfx/blender/blender-3.6.5.ebuild             |  2 +-
 media-gfx/blender/blender-3.6.8.ebuild             |  2 +-
 media-gfx/blender/blender-4.0.1-r1.ebuild          |  2 +-
 media-gfx/blender/blender-4.0.2.ebuild             |  2 +-
 media-gfx/blender/blender-9999.ebuild              |  2 +-
 media-libs/openpgl/Manifest                        |  1 +
 ...penpgl-0.5.0.ebuild => openpgl-0.5.0-r1.ebuild} | 25 ++++++-----
 media-libs/openpgl/openpgl-0.6.0.ebuild            | 48 ++++++++++++++++++++++
 profiles/arch/arm64/package.use.mask               |  4 ++
 10 files changed, 74 insertions(+), 16 deletions(-)
Comment 7 Larry the Git Cow gentoo-dev 2024-04-09 14:44:45 UTC
The bug has been closed via the following commit(s):

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

commit 36743b3902395fde41a127aabdcb6e3d911ddaf1
Author:     Eli Schwartz <eschwartz93@gmail.com>
AuthorDate: 2024-04-09 04:16:15 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-04-09 14:43:29 +0000

    media-libs/openpgl: mark as LTO-unsafe, strict-aliasing unsafe
    
    Note: Upstream updating to set -fno-strict-aliasing is not the same as
    fixing the issue.
    
    Closes: https://bugs.gentoo.org/926890
    Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/openpgl/openpgl-0.5.0-r1.ebuild | 7 +++++++
 media-libs/openpgl/openpgl-0.6.0.ebuild    | 7 +++++++
 2 files changed, 14 insertions(+)