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

Bug 940222

Summary: dev-libs/cxxopts-3.2.0-r1 fails to compile: cxxopts.hpp:123:3: error: uint8_t does not name a type
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Patrick McLean <chutzpah>
Status: RESOLVED FIXED    
Severity: normal CC: cyber+gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 932474, 937503    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2024-09-25 07:38:02 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-libs/cxxopts-3.2.0-r1 fails to compile.
Discovered on: x86 (internal ref: tinderbox_x86)
System: GCC-15-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#GCC-15)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-09-25 07:38:03 UTC
Created attachment 903705 [details]
build.log

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


FAILED: test/CMakeFiles/link_test.dir/link_a.cpp.o 
FAILED: test/CMakeFiles/link_test.dir/link_b.cpp.o 
/var/tmp/portage/dev-libs/cxxopts-3.2.0-r1/work/cxxopts-3.2.0/include/cxxopts.hpp:123:3: error: ‘uint8_t’ does not name a type
Comment 3 Anna Vyalkova 2024-12-02 14:37:23 UTC
This commit can be backported

https://github.com/jarro2783/cxxopts/commit/63d1b65a694cfceafc20863afa75df49dfbe6b2a
Comment 4 Larry the Git Cow gentoo-dev 2025-01-03 02:10:42 UTC
The bug has been closed via the following commit(s):

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

commit 59f9c2a9dd278aabe4224592812266f2bd8369b6
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-01-03 02:09:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-01-03 02:09:48 +0000

    dev-libs/cxxopts: fix build issues
    
    * Fix build w/ GCC 15 (missing include (in installed header))
    * Fix test build w/ newer ICU (which needs C++17)
    
    Closes: https://bugs.gentoo.org/938824
    Closes: https://bugs.gentoo.org/937503
    Closes: https://bugs.gentoo.org/940222
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/cxxopts/cxxopts-3.2.1-r1.ebuild         | 49 ++++++++++++++++++++++++
 dev-libs/cxxopts/files/cxxopts-3.2.1-gcc15.patch | 18 +++++++++
 2 files changed, 67 insertions(+)