Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[Bug] Clang 19 compilation failure

未关闭
#1,684 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
cpp
领域
build-system

调研方向

使用 workspace-automation 命令在 Fedora 41 上重现失败,并检查 third_party/flatbuffers/include/flatbuffers/flatbuffers.h,尤其是第 834、1002 和 1874 行附近的赋值。通过 external/src/flatbuffers/src/reflection.cpp 检查相关的编译路径,并确认 Firebase C++ SDK 能够在 Clang 19 下成功构建,且不会出现 deleted-operator 错误。

由索引模型根据 Issue 内容生成。

描述

needs-triage new type: question
[REQUIRED] Please fill in the following fields:
  • Pre-built SDK from the website or open-source from this repo: source
  • Firebase C++ SDK version: v12.5.0
  • Problematic Firebase Component: third_party - flatbuffers
  • Other Firebase Components in use: Cloud, Auth, Storage, common
  • Platform you are using the C++ SDK on: Ubuntu 20 to Linux Fedora 41
  • Platform you are targeting: desktop, embedded Linux (Yocto)
[REQUIRED] Please describe the issue here:

SDK fails to build with Clang 19 (Fedora 41). With minimal patch it builds fine on Clang 10 (Ubuntu 20).

This error will be repeated Nx depending on CPU count used in build:

In file included from /mnt/raid10/workspace-automation/app/firebase-cpp-sdk/cmake-build-release/external/src/flatbuffers/src/reflection.cpp:17:
In file included from /mnt/raid10/workspace-automation/app/firebase-cpp-sdk/cmake-build-release/external/src/flatbuffers/include/flatbuffers/reflection.h:25:
In file included from /mnt/raid10/workspace-automation/app/firebase-cpp-sdk/cmake-build-release/external/src/flatbuffers/include/flatbuffers/reflection_generated.h:7:
/mnt/raid10/workspace-automation/app/firebase-cpp-sdk/cmake-build-release/external/src/flatbuffers/include/flatbuffers/flatbuffers.h:1874:12: error: overload resolution selected deleted operator '='
 1874 |       buf_ = other.buf_;
      |       ~~~~ ^ ~~~~~~~~~~
/mnt/raid10/workspace-automation/app/firebase-cpp-sdk/cmake-build-release/external/src/flatbuffers/include/flatbuffers/flatbuffers.h:1002:44: note: candidate function has been explicitly deleted
 1002 |   FLATBUFFERS_DELETE_FUNC(vector_downward &operator=(const vector_downward &))
      |                                            ^
/mnt/raid10/workspace-automation/app/firebase-cpp-sdk/cmake-build-release/external/src/flatbuffers/include/flatbuffers/flatbuffers.h:834:20: note: candidate function not viable: expects an rvalue for 1st argument
  834 |   vector_downward &operator=(vector_downward &&other) {
      |                    ^         ~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Steps to reproduce:

Fedora 41

git clone https://github.com/meta-flutter/workspace-automation
cd workspace-automation
./flutter_workspace.py --enable=firebase-cpp-sdk
主要语言
C++
星标
326
派生
138
平均合并
2 天 16 小时
30 天内合并 PR
3

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

firebase/firebase-cpp-sdk 的其他 Issue

查看 firebase/firebase-cpp-sdk 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。