Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 953624 - sys-apps/usbguard-1.13-r2 fails to build with dev-libs/protobuf-30.2 - error: invalid initialization of reference of type 'const std::string&' {aka 'const std::__cxx11::basic_string<char>&'}
Summary: sys-apps/usbguard-1.13-r2 fails to build with dev-libs/protobuf-30.2 - error:...
Status: IN_PROGRESS
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sebastian Pipping
URL: https://github.com/USBGuard/usbguard/...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2025-04-12 08:00 UTC by 154koz3j6
Modified: 2025-04-28 16:21 UTC (History)
4 users (show)

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


Attachments
Build.log (build.log,138.42 KB, text/x-log)
2025-04-12 08:00 UTC, 154koz3j6
Details
Emerge --info (emerge-info.txt,9.83 KB, text/plain)
2025-04-12 08:01 UTC, 154koz3j6
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 154koz3j6 2025-04-12 08:00:49 UTC
Created attachment 924436 [details]
Build.log

Per the attached title.

usbguard-1.14-r2 fails to build with the following error:

error: invalid initialization of reference of type 'const std::string&' {aka 'const std::__cxx11::basic_string<char>&'} from expression of type 'google::protobuf::internal::GetTypeNameReturnType' {aka 'std::basic_string_view<char>'}

This previously wasn't an issue prior to updating in the last few days, and it built fine, even with GCC 15.

Please see the attached build.log and emerge --info.
Comment 1 154koz3j6 2025-04-12 08:01:08 UTC
Created attachment 924437 [details]
Emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-04-12 14:42:56 UTC
Nothing to do with GCC, everything to do with new Protobuf.
Comment 3 Maciej S. Szmigiero 2025-04-21 20:25:28 UTC
Confirming, the pull request linked from the issue at ${URL} fixes it for me.
Comment 4 154koz3j6 2025-04-23 12:10:24 UTC
Can further confirm that applying the diff linked works for me to build.
Comment 5 Sebastian Pipping gentoo-dev 2025-04-28 16:19:17 UTC
I've just asked for a new release upstream…