Bug 298082 - devel/grpc 1.83.0,2 fails to build
Summary: devel/grpc 1.83.0,2 fails to build
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Sergey A. Osokin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-08-31 19:26 UTC by tjlegg
Modified: 2026-08-31 21:19 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments
fix build (1.42 KB, patch)
2026-08-31 20:48 UTC, Sergey A. Osokin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tjlegg 2026-08-31 19:26:04 UTC
package name: grpc-1.83.0,2
building for: FreeBSD git15-main-job-01 15.1-STABLE FreeBSD 15.1-STABLE 1501502 amd64
Makefile datestamp: -rw-r--r--  1 root wheel 3278 Aug 31 09:45 /usr/ports/devel/grpc/Makefile

[ 43% 870/1952] /usr/local/libexec/ccache/c++ -Dgrpc_EXPORTS -I/wrkdirs/usr/ports/devel/grpc/work/grpc-1.83.0/include -I/wrkdirs/usr/ports/devel/grpc/work/grpc-1.83.0 -I/wrkdirs/usr/ports/devel/grpc/work/grpc-1.83.0/third_party/address_sorting/include -I/wrkdirs/usr/ports/devel/grpc/work/grpc-1.83.0/src/core/ext/upb-gen -I/wrkdirs/usr/ports/devel/grpc/work/grpc-1.83.0/src/core/ext/upbdefs-gen -I/wrkdirs/usr/ports/devel/grpc/work/grpc-1.83.0/third_party/upb -I/wrkdirs/usr/ports/devel/grpc/work/grpc-1.83.0/third_party/utf8_range -I/wrkdirs/usr/ports/devel/grpc/work/grpc-1.83.0/third_party/xxhash -O2 -pipe -O1  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing   -isystem /usr/local/include -std=c++17  -O2 -pipe -O1  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing   -isystem /usr/local/include -std=c++17  -DNDEBUG -std=c++17 -fPIC -pthread -Wno-float-conversion -Wno-implicit-float-conversion -Wno-implicit-int-float-conversion -Wno-unknown-warning-option -DNOMINMAX -MD -MT CMakeFiles/grpc.dir/src/core/lib/surface/legacy_channel.cc.o -MF CMakeFiles/grpc.dir/src/core/lib/surface/legacy_channel.cc.o.d -o CMakeFiles/grpc.dir/src/core/lib/surface/legacy_channel.cc.o -c /wrkdirs/usr/ports/devel/grpc/work/grpc-1.83.0/src/core/lib/surface/legacy_channel.cc
FAILED: [code=1] CMakeFiles/grpc.dir/src/core/lib/surface/legacy_channel.cc.o 
/usr/local/libexec/ccache/c++ -Dgrpc_EXPORTS -I/wrkdirs/usr/ports/devel/grpc/work/grpc-1.83.0/include -I/wrkdirs/usr/ports/devel/grpc/work/grpc-1.83.0 -I/wrkdirs/usr/ports/devel/grpc/work/grpc-1.83.0/third_party/address_sorting/include -I/wrkdirs/usr/ports/devel/grpc/work/grpc-1.83.0/src/core/ext/upb-gen -I/wrkdirs/usr/ports/devel/grpc/work/grpc-1.83.0/src/core/ext/upbdefs-gen -I/wrkdirs/usr/ports/devel/grpc/work/grpc-1.83.0/third_party/upb -I/wrkdirs/usr/ports/devel/grpc/work/grpc-1.83.0/third_party/utf8_range -I/wrkdirs/usr/ports/devel/grpc/work/grpc-1.83.0/third_party/xxhash -O2 -pipe -O1  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing   -isystem /usr/local/include -std=c++17  -O2 -pipe -O1  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing   -isystem /usr/local/include -std=c++17  -DNDEBUG -std=c++17 -fPIC -pthread -Wno-float-conversion -Wno-implicit-float-conversion -Wno-implicit-int-float-conversion -Wno-unknown-warning-option -DNOMINMAX -MD -MT CMakeFiles/grpc.dir/src/core/lib/surface/legacy_channel.cc.o -MF CMakeFiles/grpc.dir/src/core/lib/surface/legacy_channel.cc.o.d -o CMakeFiles/grpc.dir/src/core/lib/surface/legacy_channel.cc.o -c /wrkdirs/usr/ports/devel/grpc/work/grpc-1.83.0/src/core/lib/surface/legacy_channel.cc
/wrkdirs/usr/ports/devel/grpc/work/grpc-1.83.0/src/core/lib/surface/legacy_channel.cc:183:28: error: object of type 'std::optional<absl::FunctionRef<void (grpc_core::Arena *)>>' cannot be assigned because its copy assignment operator is implicitly deleted
  183 |   args.arena_init_function = arena_init_function;
      |                            ^
/usr/include/c++/v1/optional:730:45: note: explicitly defaulted function was implicitly deleted here
  730 |   _LIBCPP_HIDE_FROM_ABI constexpr optional& operator=(const optional&) = default;
      |                                             ^
/usr/include/c++/v1/optional:586:7: note: copy assignment operator of 'optional<absl::FunctionRef<void (grpc_core::Arena *)>>' is implicitly deleted because base class '__optional_sfinae_assign_base_t<absl::FunctionRef<void (grpc_core::Arena *)>>' (aka '__sfinae_assign_base<(is_copy_constructible<absl::FunctionRef<void (grpc_core::Arena *)>>::value && is_copy_assignable<absl::FunctionRef<void (grpc_core::Arena *)>>::value), (is_move_constructible<absl::FunctionRef<void (grpc_core::Arena *)>>::value && is_move_assignable<absl::FunctionRef<void (grpc_core::Arena *)>>::value)>') has a deleted copy assignment operator
  586 |       private __optional_sfinae_assign_base_t<_Tp> {
      |       ^
/usr/include/c++/v1/__tuple/sfinae_helpers.h:119:25: note: 'operator=' has been explicitly marked deleted here
  119 |   __sfinae_assign_base& operator=(__sfinae_assign_base const&) = delete;
      |                         ^
1 error generated.
Comment 1 Sergey A. Osokin freebsd_committer freebsd_triage 2026-08-31 20:48:12 UTC
Created attachment 274319 [details]
fix build
Comment 2 commit-hook freebsd_committer freebsd_triage 2026-08-31 21:14:35 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6fab803e6a9b64d8ca723b2f5994d5453ab98509

commit 6fab803e6a9b64d8ca723b2f5994d5453ab98509
Author:     Sergey A. Osokin <osa@FreeBSD.org>
AuthorDate: 2026-08-31 20:56:45 +0000
Commit:     Sergey A. Osokin <osa@FreeBSD.org>
CommitDate: 2026-08-31 21:14:03 +0000

    devel/grpc: fix build

    PR:             298082
    Reported by:    fluffy, vvd
    Fixes:          530e64e3e8f417f53430746e7f615c7b147e34d6
    Tested by:      fluffy [aarch64]
    Tested by:      osa    [amd64]

    Bump PORTREVISION.

 devel/grpc/Makefile | 4 ++++
 devel/grpc/distinfo | 4 +++-
 2 files changed, 7 insertions(+), 1 deletion(-)
Comment 3 Sergey A. Osokin freebsd_committer freebsd_triage 2026-08-31 21:19:58 UTC
Fixed, thanks for the report!