Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 858725 - games-engines/openmw-0.47.0-r1 fails to compile: myguidatamanager.cpp:21:10: error: unique_ptr is not a member of std
Summary: games-engines/openmw-0.47.0-r1 fails to compile: myguidatamanager.cpp:21:10: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexey
URL:
Whiteboard:
Keywords:
: 865229 (view as bug list)
Depends on:
Blocks: gcc-12
  Show dependency tree
 
Reported: 2022-07-18 06:49 UTC by Agostino Sarubbo
Modified: 2022-08-28 00:10 UTC (History)
5 users (show)

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


Attachments
build.log (build.log,419.58 KB, text/plain)
2022-07-18 06:49 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 2022-07-18 06:49:20 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: games-engines/openmw-0.47.0-r1 fails to compile (lto).
Discovered on: amd64 (internal ref: lto_tinderbox)

NOTE:
This machine uses lto with CFLAGS=-flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing
Comment 1 Agostino Sarubbo gentoo-dev 2022-07-18 06:49:22 UTC
Created attachment 792083 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-07-18 06:49:24 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
FAILED: components/CMakeFiles/components.dir/myguiplatform/myguidatamanager.cpp.o 
/var/tmp/portage/games-engines/openmw-0.47.0-r1/work/openmw-openmw-0.47.0/components/myguiplatform/myguidatamanager.cpp:21:10: error: ‘unique_ptr’ is not a member of ‘std’
Comment 3 Alexey 2022-07-18 08:29:31 UTC
This is not specific to LTO, but to GCC 12
Comment 4 Agostino Sarubbo gentoo-dev 2022-07-18 08:39:00 UTC
(In reply to Alexey from comment #3)
> This is not specific to LTO, but to GCC 12

Thanks for the notice. Next time feel free to remove lto from summary/blocks.
Comment 5 Ionen Wolkens gentoo-dev 2022-08-28 00:02:23 UTC
*** Bug 865229 has been marked as a duplicate of this bug. ***
Comment 6 Larry the Git Cow gentoo-dev 2022-08-28 00:10:08 UTC
The bug has been closed via the following commit(s):

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

commit 59ff79ab1c87e63d8b6a6b5d9828f4bc48b56ec2
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-08-27 23:52:39 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-08-28 00:08:40 +0000

    games-engines/openmw: fix build with gcc12
    
    Seeing users hit this, so fixing myself quick. Builds but not
    thoroughly tested so there could be other issues.
    
    Closes: https://bugs.gentoo.org/858725
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 .../openmw/files/openmw-0.47.0-gcc12.patch         | 33 ++++++++++++++++++++++
 games-engines/openmw/openmw-0.47.0-r1.ebuild       |  3 +-
 2 files changed, 35 insertions(+), 1 deletion(-)