Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 927484

Summary: sci-geosciences/opencpn-5.8.4 fails to compile: garmin_protocol_mgr.h:116:10: error: type struct <anon> violates the C++ One Definition Rule [-Werror=odr]
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Marc Schiffbauer <mschiff>
Status: RESOLVED FIXED    
Severity: normal CC: eschwartz, sci-geosciences
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/OpenCPN/OpenCPN/issues/3782
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 618550    
Attachments: build.log.xz

Description Agostino Sarubbo gentoo-dev 2024-03-22 08:38:35 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sci-geosciences/opencpn-5.8.4 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-22 08:38:36 UTC
Created attachment 888134 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2024-03-22 08:38:37 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


--   Package 'sndfile', required by 'virtual:world', not found
-- Could NOT find LibSndFile (missing: LIBSNDFILE_LIBRARY LIBSNDFILE_INCLUDE_DIR) 
-- Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES) 
-- Could not find wxWidgets webview add-on
-- ENABLE_LIBSNDFILE is set but I cannot find libsndfile
-- OCPN_ENABLE_SYSTEM_CMD_SOUND is set but I cannot find aplay(1) or afplay(1) or omxplayer(1)
Device "vcan0" does not exist.
FAILED: opencpn 
FAILED: opencpn-cmd 
FAILED: test/tests test/tests[1]_tests.cmake /var/tmp/portage/sci-geosciences/opencpn-5.8.4/work/OpenCPN-Release_5.8.4_build/test/tests[1]_tests.cmake 
/var/tmp/portage/sci-geosciences/opencpn-5.8.4/work/OpenCPN-Release_5.8.4/include/garmin_protocol_mgr.h:116:10: error: type ‘struct <anon>’ violates the C++ One Definition Rule [-Werror=odr]
Comment 3 Larry the Git Cow gentoo-dev 2024-04-05 01:21:48 UTC
The bug has been closed via the following commit(s):

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

commit a0411443dc39685cfc87bb416c3e3216cf1ae6f4
Author:     Eli Schwartz <eschwartz93@gmail.com>
AuthorDate: 2024-04-04 05:25:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-04-05 01:20:53 +0000

    sci-geosciences/opencpn: mark as LTO-unsafe
    
    Closes: https://bugs.gentoo.org/927484
    Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-geosciences/opencpn/opencpn-5.8.4.ebuild | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)