Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926820 - media-gfx/openvdb-11.0.0 fails to compile: PNanoVDB.h:347:86: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Summary: media-gfx/openvdb-11.0.0 fails to compile: PNanoVDB.h:347:86: error: derefere...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Paul Zander
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2024-03-12 08:20 UTC by Agostino Sarubbo
Modified: 2024-04-05 01:21 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,336.49 KB, text/plain)
2024-03-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-03-12 08:20:19 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-gfx/openvdb-11.0.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-12 08:20:21 UTC
Created attachment 887449 [details]
build.log

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


FAILED: nanovdb/nanovdb/unittest/CMakeFiles/nanovdb_test_nanovdb.dir/TestNanoVDB.cc.o 
/var/tmp/portage/media-gfx/openvdb-11.0.0/work/openvdb-11.0.0/nanovdb/nanovdb/../nanovdb/PNanoVDB.h:347:86: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Comment 3 Larry the Git Cow gentoo-dev 2024-04-05 01:21:44 UTC
The bug has been closed via the following commit(s):

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

commit e31da288a2f874bffb148a11ce0ef28eb0052d14
Author:     Eli Schwartz <eschwartz93@gmail.com>
AuthorDate: 2024-04-03 20:02:43 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-04-05 01:20:48 +0000

    media-gfx/openvdb: mark as LTO-unsafe, strict-aliasing unsafe
    
    Test-only issue, but this prevents testing that LTO actually works. ;)
    
    Closes: https://bugs.gentoo.org/926820
    Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 media-gfx/openvdb/openvdb-10.0.1.ebuild | 8 +++++++-
 media-gfx/openvdb/openvdb-11.0.0.ebuild | 6 ++++++
 2 files changed, 13 insertions(+), 1 deletion(-)