Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946146 - dev-cpp/opentelemetry-cpp-1.16.1 fails to compile: severity.h:20:21: error: found : in nested-name-specifier, expected ::
Summary: dev-cpp/opentelemetry-cpp-1.16.1 fails to compile: severity.h:20:21: error: f...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2024-12-09 10:04 UTC by Agostino Sarubbo
Modified: 2025-04-05 17:06 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,256.45 KB, text/plain)
2024-12-09 10:04 UTC, Agostino Sarubbo
Details
<cstdint> include (opentelemetry-cpp-1.16.1-cstdint.patch,698 bytes, patch)
2025-04-05 17:00 UTC, tdr
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-12-09 10:04:34 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-cpp/opentelemetry-cpp-1.16.1 fails to compile.
Discovered on: arm64 (internal ref: tinderbox_arm64)
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-12-09 10:04:35 UTC
Created attachment 913650 [details]
build.log

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


FAILED: sdk/src/logs/CMakeFiles/opentelemetry_logs.dir/readable_log_record.cc.o 
/var/tmp/portage/dev-cpp/opentelemetry-cpp-1.16.1/work/opentelemetry-cpp-1.16.1/api/include/opentelemetry/logs/severity.h:20:21: error: found ‘:’ in nested-name-specifier, expected ‘::’
Comment 3 Sv. Lockal 2025-01-10 16:13:17 UTC
Reported to upstream - https://github.com/open-telemetry/opentelemetry-cpp/issues/3239

I'll add 2 fixes (build fails for 2 different reasons both in clang and gcc-15).
Comment 4 tdr 2025-04-05 16:59:46 UTC
does look like cdstdint include patch was accepted upstream but the fix is not yet in portage

attachment opentelemetry-cpp-1.16.1-cstdint.patch (will add) allows building with gcc-15.0.1_pre20250330
Comment 5 tdr 2025-04-05 17:00:19 UTC
Created attachment 923596 [details, diff]
<cstdint> include
Comment 6 tdr 2025-04-05 17:06:48 UTC
portage version is versions behind
   upstream has up to 1.20.0 
   portage latest has only 1.16.1

patch was not applied to 1.16.1 release upstream