flutter cmake issue

hello guys i am facing this issue in building flutter build for linux over snapcraft

[ +1 ms] CMake Error at /snap/flutter/141/usr/share/cmake-3.16/Modules/CMakeTestCXXCompiler.cmake:53 (message):
[ +2 ms] The C++ compiler
[ ] “/snap/flutter/current/usr/bin/clang++”
[ ] is not able to compile a simple test program.
[ ] It fails with the following output:
[ ] Change Dir: /root/parts/workstatus/build/build/linux/x64/release/CMakeFiles/CMakeTmp
[ ] Run Build Command(s):/snap/flutter/current/usr/bin/ninja cmTC_60c22 && [1/2] Building CXX object CMakeFiles/cmTC_60c22.dir/testCXXCompiler.cxx.o
[ ] [2/2] Linking CXX executable cmTC_60c22
[ ] FAILED: cmTC_60c22

If you run with --debug-trycompile, you should be able to go into that CMakeTmp directory and see what might be up. CMakeFiles/CMakeError.log is also of interest here.

[ +7 ms] Building Windows application…
[ +4 ms] executing: C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe -S
C:\Users\junAI\StudioProjects\intellifarm_old\windows -B C:\Users\junAI\StudioProjects\intellifarm_old\build\windows\x64 -G Visual Studio 17 2022 -A x64
-DFLUTTER_TARGET_PLATFORM=windows-x64
[ +182 ms] – Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
[ +56 ms] – Using cached Firebase SDK zip file
[ ] – Using cached extracted Firebase SDK
[ +12 ms] CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:119 (add_subdirectory):
[ +5 ms] The source directory
[ +10 ms] C:/Users/junAI/StudioProjects/intellifarm_old/build/windows/x64/extracted/firebase_cpp_sdk_windows
[ +1 ms] does not contain a CMakeLists.txt file.
[ +3 ms] CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:125 (get_target_property):
[ +6 ms] get_target_property() called with non-existent target “firebase_app”.
[ +1 ms] CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:126 (string):
[ +1 ms] string sub-command REPLACE requires at least four arguments.
[ ] CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:127 (set_target_properties):
[ +1 ms] set_target_properties Can not find target to add properties to:
[ ] firebase_app
[ ] CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:125 (get_target_property):
[ ] get_target_property() called with non-existent target “firebase_auth”.
[ ] CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:126 (string):
[ ] string sub-command REPLACE requires at least four arguments.
[ ] CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:127 (set_target_properties):
[ ] set_target_properties Can not find target to add properties to:
[ ] firebase_auth
[ ] CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:125 (get_target_property):
[ ] get_target_property() called with non-existent target “firebase_storage”.
[ ] CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:126 (string):
[ ] string sub-command REPLACE requires at least four arguments.
[ ] CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:127 (set_target_properties):
[ +1 ms] set_target_properties Can not find target to add properties to:
[ +1 ms] firebase_storage
[ ] CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:125 (get_target_property):
[ ] get_target_property() called with non-existent target “firebase_firestore”.
[ ] CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:126 (string):
[ ] string sub-command REPLACE requires at least four arguments.
[ ] CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:127 (set_target_properties):
[ ] set_target_properties Can not find target to add properties to:
[ ] firebase_firestore
[ +1 ms] – Configuring incomplete, errors occurred!
[ +29 ms] Building Windows application… (completed in 323ms)
[ ] “flutter windows” took 2,254ms.
[ +8 ms] Unable to generate build files
[ +1 ms]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1 _runCmakeGeneration (package:flutter_tools/src/windows/build_windows.dart:209:5)

#2 buildWindows (package:flutter_tools/src/windows/build_windows.dart:101:5)

#3 BuildWindowsCommand.runCommand (package:flutter_tools/src/commands/build_windows.dart:66:5)

#4 FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:1394:27)

#5 AppContext.run. (package:flutter_tools/src/base/context.dart:153:19)

#6 CommandRunner.runCommand (package:args/command_runner.dart:212:13)

#7 FlutterCommandRunner.runCommand. (package:flutter_tools/src/runner/flutter_command_runner.dart:372:9)

#8 AppContext.run. (package:flutter_tools/src/base/context.dart:153:19)

#9 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:308:5)

#10 run.. (package:flutter_tools/runner.dart:130:9)

#11 AppContext.run. (package:flutter_tools/src/base/context.dart:153:19)

#12 main (package:flutter_tools/executable.dart:93:3)

[ +273 ms] ensureAnalyticsSent: 265ms
[ ] Running 0 shutdown hooks
[ ] Shutdown hooks complete
[ ] exiting with code 1