Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Clang 19 compilation failure #1684

Open
jwinarske opened this issue Jan 22, 2025 · 2 comments
Open

[Bug] Clang 19 compilation failure #1684

jwinarske opened this issue Jan 22, 2025 · 2 comments

Comments

@jwinarske
Copy link

jwinarske commented Jan 22, 2025

[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
@google-oss-bot
Copy link

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@jwinarske
Copy link
Author

Seems like only internal business requirements are a priority with this repo. Do I drop support for firebase Linux?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants