[Bug] error LNK2001: unresolved external symbol _Avx2WmemEnabled
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- cmake, cpp
- 領域
- build-system, databases, desktop
調査の方向性
提供された CMake および Visual Studio コマンドを使用して quickstart-cpp/firestore/testapp で失敗を再現し、その後 SDK 13.0.0 と 13.1 および 13.2 を比較します。リンクされた最小限の例と、未解決の _Avx2WmemEnabled シンボルに関する LLVM issue を確認し、SDK のビルドパイプラインを調査します。Windows Debug の testapp が影響を受ける SDK バージョンで正常にリンクできれば完了です。
索引モデルが issue の本文から書いたものです。
説明
[REQUIRED] Please fill in the following fields:
- Pre-built SDK from the website or open-source from this repo: prebuilt from this repo's GitHub release page
- Firebase C++ SDK version: 13.1 and 13.2
- Problematic Firebase Component: Firestore
- Other Firebase Components in use: Auth
- Platform you are using the C++ SDK on: Windows
- Platform you are targeting: Windows desktop
[REQUIRED] Please describe the issue here:
Linking the Windows firebase.lib with MSVC fails with the error:
[build] firebase_firestore.lib(4c456a4b533e2a6acad4654868657312_firestore_util.dir_Debug_path.obj) : error LNK2001: unresolved external symbol _Avx2WmemEnabled [C:\Users\ABrun\Documents\git\quickstart-cpp\build\desktop_testapp.vcxproj]
Reproduction steps with the quickstart Firestore testapp:
$env:FIREBASE_CPP_SDK_DIR = "$env:USERPROFILE/Downloads/firebase_cpp_sdk_13.1.0/firebase_cpp_sdk"
git clone https://github.com/firebase/quickstart-cpp
cd quickstart-cpp/firestore/testapp
Set-Alias cmakevs "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe"
cmakevs -S . -B build -G "Visual Studio 17 2022" -A x64 -DCMAKE_EXE_LINKER_FLAGS=/ignore:4099
cmakevs --build build --config Debug
Visual Studio Community 2022: 17.14.18 (October 2025)
MSVC: 14.44.35207
The error happens every time. The build succeeds with Firebase SDK version 13.0.0 and 12.8.0. The error also happens on another minimal example I created at https://github.com/adabru/mre-firebase-crash-cpp.
With Google I only found https://github.com/llvm/llvm-project/issues/154595. It mentions a bug in llvm. The fix was merged on Aug 22. So maybe a llvm update in the Firebase SDK build pipeline might fix this.
- 主要言語
- C++
- スター
- 326
- フォーク
- 138
- 平均マージ
- 2日 16時間
- マージ済み PR(30日)
- 3
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
firebase/firebase-cpp-sdk のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
firebase/firebase-cpp-sdk#1905 · コメント 2 件 ·
-
api: firestore
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
firebase/firebase-cpp-sdk#1920 · コメント 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 70/100
firebase/firebase-cpp-sdk#1904 · コメント 1 件 ·
-
new type: question
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
firebase/firebase-cpp-sdk#1892 · コメント 1 件 ·
-
nightly-testing
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
firebase/firebase-cpp-sdk#1859 ·
firebase/firebase-cpp-sdk の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
ros2/message_filters#338 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
subsurface/subsurface#4984 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
google-ai-edge/LiteRT-LM#3739 ·