Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926078 - games-emulation/dosbox-staging-0.81.0 fails to compile: fraction.h:31:7: error: type struct Fraction violates the C++ One Definition Rule [-Werror=odr]
Summary: games-emulation/dosbox-staging-0.81.0 fails to compile: fraction.h:31:7: erro...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2024-03-03 08:28 UTC by Agostino Sarubbo
Modified: 2024-03-18 05:31 UTC (History)
1 user (show)

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


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

Issue: games-emulation/dosbox-staging-0.81.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-03 08:28:19 UTC
Created attachment 886580 [details]
build.log

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


FAILED: dosbox 
Run-time dependency atomic found: NO (tried pkgconfig and cmake)
Run-time dependency zlib-ng found: NO (tried pkgconfig and cmake)
../dosbox-staging-0.81.0/include/fraction.h:31:7: error: type ‘struct Fraction’ violates the C++ One Definition Rule [-Werror=odr]
Comment 3 Larry the Git Cow gentoo-dev 2024-03-18 05:31:31 UTC
The bug has been closed via the following commit(s):

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

commit 718fed0a681f14841a17a084e70c212135c845f0
Author:     Eli Schwartz <eschwartz93@gmail.com>
AuthorDate: 2024-03-18 03:51:30 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-18 05:30:04 +0000

    games-emulation/dosbox-staging: mark as LTO-unsafe
    
    Closes: https://bugs.gentoo.org/926078
    Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 games-emulation/dosbox-staging/dosbox-staging-0.81.0.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)