Repository: flutter
Issue: [Proposal] Support $CXX environment variable
Labels: c: new feature,tool,platform-windows,platform-linux,c: proposal,a: build,P3,team-tool,triaged-tool

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

This is mostly a duplicate of #61418. The issue author was suggested to install a metapackage, and was happy this far, but this does not really solve the original question. Of course it's possible to install the metapackage or just temporarily make `/usr/bin/clang++` a symlink to the desired location, but the environment variable should be respected too.

It works well for pure CMake projects in general, so seems like the configuration generated by Flutter intervenes into this somehow.

## Steps to Reproduce

<!-- Please tell us exactly how to reproduce the problem you are running into. -->

1. Try to build [FluffyChat](https://gitlab.com/famedly/fluffychat) for GNU/Linux with the compiler location other than `/usr/bin/clang++`.

## Logs

<details>
<summary>Logs</summary>

<!--
      Include the full logs of the commands you are running between the lines
      with the backticks below. If you are running any "flutter" commands,
      please include the output of running them with "--verbose"; for example,
      the output of running "flutter --verbose create foo".
-->

```
@bq:23:37:56:/media/d/temp/git/fluffychat$ CXX=/usr/bin/clang++-11 /Programs/elf/flutter/bin/flutter build linux --release
 --verbose
[+1181 ms] executing: uname -m
[ +496 ms] Exit code 0 from: uname -m
[  +13 ms] x86_64
[ +102 ms] executing: [/media/d/Program Files/elf/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +222 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] fb57da5f945d02ef4f98dfd9409a72b7cce74268
[   +8 ms] executing: [/media/d/Program Files/elf/flutter/] git tag --points-at fb57da5f945d02ef4f98dfd9409a72b7cce74268
[ +253 ms] Exit code 0 from: git tag --points-at fb57da5f945d02ef4f98dfd9409a72b7cce74268
[   +1 ms] 3.0.1
[ +144 ms] executing: [/media/d/Program Files/elf/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +57 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[   +1 ms] origin/stable
[   +3 ms] executing: [/media/d/Program Files/elf/flutter/] git ls-remote --get-url origin
[  +74 ms] Exit code 0 from: git ls-remote --get-url origin
[  +12 ms] https://github.com/flutter/flutter.git
[+2186 ms] executing: [/media/d/Program Files/elf/flutter/] git rev-parse --abbrev-ref HEAD
[ +118 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[+1528 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +9 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[  +89 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[  +16 ms] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[  +20 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +6 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[   +6 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[   +4 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[   +2 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[+1366 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[  +91 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[   +6 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +13 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +6 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[  +26 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[  +12 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +5 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +8 ms] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[  +14 ms] Artifact Instance of 'PubDependencies' is not required, skipping update.
[+1272 ms] Initializing file store
[  +79 ms] Done initializing file store
[+1562 ms] Skipping target: gen_localizations
[  +59 ms] Persisting file store
[ +150 ms] Done persisting file store
[ +194 ms] Skipping pub get: version match.
[ +735 ms] Found plugin native_imaging at /media/d/Program
Files/elf/flutter/.pub-cache/git/native_imaging-8c6a5afe2c965b79b5959bb4b49c4aad020cb980/
[ +301 ms] Found plugin connectivity_plus_web at /media/d/Program
Files/elf/flutter/.pub-cache/git/plus_plugins-a04401cb48abe92d138c0e9288b360739994a9e9/packages/connectivity_plus/connecti
vity_plus_web/
[  +69 ms] Found plugin qr_code_scanner at /media/d/Program
Files/elf/flutter/.pub-cache/git/qr_code_scanner-0feca6f15042c279ff575c559a3430df917b623d/
[ +112 ms] Found plugin geolocator_android at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/hanntech-gmbh.gitlab.io%47free2pass%47flutter-geolocator-floss%47/geolocator_android-1
.0.1/
[ +578 ms] Found plugin audio_session at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/audio_session-0.1.6+1/
[ +186 ms] Found plugin callkeep at /media/d/Program Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/callkeep-0.3.2/
[ +257 ms] Found plugin connectivity_plus at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-2.2.1/
[ +101 ms] Found plugin connectivity_plus_linux at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus_linux-1.3.0/
[  +76 ms] Found plugin connectivity_plus_macos at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus_macos-1.2.1/
[ +104 ms] Found plugin connectivity_plus_windows at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus_windows-1.2.0/
[ +405 ms] Found plugin desktop_drop at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/desktop_drop-0.3.3/
[  +39 ms] Found plugin desktop_lifecycle at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/desktop_lifecycle-0.1.0/
[  +98 ms] Found plugin device_info_plus at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/device_info_plus-3.2.2/
[  +50 ms] Found plugin device_info_plus_linux at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/device_info_plus_linux-2.1.1/
[  +84 ms] Found plugin device_info_plus_macos at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/device_info_plus_macos-2.2.2/
[  +97 ms] Found plugin device_info_plus_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/device_info_plus_web-2.1.0/
[  +66 ms] Found plugin device_info_plus_windows at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/device_info_plus_windows-2.1.1/
[  +67 ms] Found plugin disk_space at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/disk_space-0.2.1/
[  +70 ms] Found plugin dynamic_color at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/dynamic_color-1.2.2/
[ +109 ms] Found plugin emoji_picker_flutter at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/emoji_picker_flutter-1.1.2/
[ +189 ms] Found plugin file_picker at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/file_picker-4.5.1/
[ +131 ms] Found plugin file_selector at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector-0.8.2+1/
[  +48 ms] Found plugin file_selector_linux at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector_linux-0.0.2+1/
[  +37 ms] Found plugin file_selector_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector_web-0.8.1+3/
[  +41 ms] Found plugin flutter_app_badger at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_badger-1.3.0/
[ +155 ms] Found plugin flutter_file_dialog at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_file_dialog-2.3.0/
[ +148 ms] Found plugin flutter_keyboard_visibility at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility-5.2.0/
[ +136 ms] Found plugin flutter_keyboard_visibility_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility_web-2.0.0/
[ +105 ms] Found plugin flutter_local_notifications at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_local_notifications-9.4.1/
[ +259 ms] Found plugin flutter_native_splash at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_native_splash-2.1.2+1/
[  +83 ms] Found plugin flutter_olm at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_olm-1.2.0/
[  +54 ms] Found plugin flutter_openssl_crypto at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_openssl_crypto-0.1.0/
[  +48 ms] Found plugin flutter_plugin_android_lifecycle at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-2.0.5/
[  +33 ms] Found plugin flutter_ringtone_player at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_ringtone_player-3.1.1/
[  +62 ms] Found plugin flutter_secure_storage at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage-5.0.2/
[  +46 ms] Found plugin flutter_secure_storage_linux at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage_linux-1.1.0/
[  +80 ms] Found plugin flutter_secure_storage_macos at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage_macos-1.1.0/
[  +72 ms] Found plugin flutter_secure_storage_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage_web-1.0.2/
[  +48 ms] Found plugin flutter_secure_storage_windows at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage_windows-1.1.2/
[ +154 ms] Found plugin flutter_web_auth at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_web_auth-0.4.1/
[  +67 ms] Found plugin flutter_webrtc at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webrtc-0.8.4/
[ +106 ms] Found plugin geolocator at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator-7.7.1/
[  +39 ms] Found plugin geolocator_apple at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator_apple-1.2.2/
[  +96 ms] Found plugin geolocator_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator_web-2.0.6/
[ +251 ms] Found plugin image_picker at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.8.4+11/
[  +76 ms] Found plugin image_picker_for_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker_for_web-2.1.6/
[ +105 ms] Found plugin just_audio at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/just_audio-0.9.20/
[  +41 ms] Found plugin just_audio_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/just_audio_web-0.4.7/
[ +409 ms] Found plugin move_to_background at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/move_to_background-1.0.2/
[ +170 ms] Found plugin package_info_plus at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/package_info_plus-1.4.2/
[  +47 ms] Found plugin package_info_plus_linux at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/package_info_plus_linux-1.0.5/
[  +27 ms] Found plugin package_info_plus_macos at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/package_info_plus_macos-1.3.0/
[ +100 ms] Found plugin package_info_plus_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/package_info_plus_web-1.0.5/
[  +25 ms] Found plugin package_info_plus_windows at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/package_info_plus_windows-1.0.5/
[  +84 ms] Found plugin path_provider at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.9/
[  +38 ms] Found plugin path_provider_android at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_android-2.0.12/
[  +32 ms] Found plugin path_provider_ios at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_ios-2.0.8/
[  +32 ms] Found plugin path_provider_linux at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.5/
[  +30 ms] Found plugin path_provider_macos at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.5/
[  +75 ms] Found plugin path_provider_windows at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.5/
[  +48 ms] Found plugin permission_handler at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-9.2.0/
[  +15 ms] Found plugin permission_handler_android at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler_android-9.0.2+1/
[  +19 ms] Found plugin permission_handler_apple at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler_apple-9.0.3/
[  +68 ms] Found plugin permission_handler_windows at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler_windows-0.1.0/
[ +262 ms] Found plugin receive_sharing_intent at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/receive_sharing_intent-1.4.5/
[  +32 ms] Found plugin record at /media/d/Program Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/record-3.0.3/
[  +36 ms] Found plugin record_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/record_web-0.2.1/
[ +122 ms] Found plugin share_plus at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus-4.0.4/
[  +42 ms] Found plugin share_plus_linux at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus_linux-3.0.0/
[  +24 ms] Found plugin share_plus_macos at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus_macos-3.0.0/
[  +65 ms] Found plugin share_plus_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus_web-3.0.0/
[  +50 ms] Found plugin share_plus_windows at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus_windows-3.0.0/
[  +29 ms] Found plugin shared_preferences at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.13/
[  +55 ms] Found plugin shared_preferences_android at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_android-2.0.11/
[  +46 ms] Found plugin shared_preferences_ios at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_ios-2.1.0/
[  +20 ms] Found plugin shared_preferences_linux at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-2.1.0/
[  +33 ms] Found plugin shared_preferences_macos at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-2.0.3/
[  +46 ms] Found plugin shared_preferences_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-2.0.3/
[  +36 ms] Found plugin shared_preferences_windows at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_windows-2.1.0/
[ +168 ms] Found plugin sqflite at /media/d/Program Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.2/
[ +284 ms] Found plugin uni_links at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/uni_links-0.5.1/
[  +28 ms] Found plugin uni_links_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/uni_links_web-0.1.0/
[  +32 ms] Found plugin unifiedpush at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/unifiedpush-4.0.0/
[  +28 ms] Found plugin unifiedpush_android at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/unifiedpush_android-1.0.0/
[  +88 ms] Found plugin url_launcher at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.20/
[  +36 ms] Found plugin url_launcher_android at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_android-6.0.15/
[  +23 ms] Found plugin url_launcher_ios at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_ios-6.0.15/
[  +12 ms] Found plugin url_launcher_linux at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-3.0.0/
[  +22 ms] Found plugin url_launcher_macos at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-3.0.0/
[  +35 ms] Found plugin url_launcher_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.6/
[  +28 ms] Found plugin url_launcher_windows at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-3.0.0/
[  +70 ms] Found plugin video_compress at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/video_compress-3.1.0/
[  +18 ms] Found plugin video_player at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-2.3.0/
[  +53 ms] Found plugin video_player_android at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/video_player_android-2.3.2/
[  +15 ms] Found plugin video_player_avfoundation at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/video_player_avfoundation-2.3.1/
[  +33 ms] Found plugin video_player_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/video_player_web-2.0.7/
[  +49 ms] Found plugin wakelock at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.6.1+2/
[  +56 ms] Found plugin wakelock_macos at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock_macos-0.4.0/
[  +61 ms] Found plugin wakelock_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock_web-0.4.0/
[ +296 ms] Found plugin integration_test at /media/d/Program Files/elf/flutter/packages/integration_test/
[+1273 ms] Found plugin native_imaging at /media/d/Program
Files/elf/flutter/.pub-cache/git/native_imaging-8c6a5afe2c965b79b5959bb4b49c4aad020cb980/
[  +25 ms] Found plugin connectivity_plus_web at /media/d/Program
Files/elf/flutter/.pub-cache/git/plus_plugins-a04401cb48abe92d138c0e9288b360739994a9e9/packages/connectivity_plus/connecti
vity_plus_web/
[  +33 ms] Found plugin qr_code_scanner at /media/d/Program
Files/elf/flutter/.pub-cache/git/qr_code_scanner-0feca6f15042c279ff575c559a3430df917b623d/
[  +50 ms] Found plugin geolocator_android at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/hanntech-gmbh.gitlab.io%47free2pass%47flutter-geolocator-floss%47/geolocator_android-1
.0.1/
[  +99 ms] Found plugin audio_session at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/audio_session-0.1.6+1/
[  +48 ms] Found plugin callkeep at /media/d/Program Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/callkeep-0.3.2/
[ +101 ms] Found plugin connectivity_plus at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-2.2.1/
[  +11 ms] Found plugin connectivity_plus_linux at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus_linux-1.3.0/
[   +5 ms] Found plugin connectivity_plus_macos at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus_macos-1.2.1/
[  +36 ms] Found plugin connectivity_plus_windows at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus_windows-1.2.0/
[ +142 ms] Found plugin desktop_drop at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/desktop_drop-0.3.3/
[  +51 ms] Found plugin desktop_lifecycle at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/desktop_lifecycle-0.1.0/
[  +52 ms] Found plugin device_info_plus at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/device_info_plus-3.2.2/
[  +22 ms] Found plugin device_info_plus_linux at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/device_info_plus_linux-2.1.1/
[  +27 ms] Found plugin device_info_plus_macos at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/device_info_plus_macos-2.2.2/
[  +48 ms] Found plugin device_info_plus_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/device_info_plus_web-2.1.0/
[  +21 ms] Found plugin device_info_plus_windows at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/device_info_plus_windows-2.1.1/
[  +23 ms] Found plugin disk_space at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/disk_space-0.2.1/
[  +12 ms] Found plugin dynamic_color at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/dynamic_color-1.2.2/
[  +58 ms] Found plugin emoji_picker_flutter at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/emoji_picker_flutter-1.1.2/
[  +65 ms] Found plugin file_picker at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/file_picker-4.5.1/
[  +20 ms] Found plugin file_selector at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector-0.8.2+1/
[  +31 ms] Found plugin file_selector_linux at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector_linux-0.0.2+1/
[  +37 ms] Found plugin file_selector_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector_web-0.8.1+3/
[  +61 ms] Found plugin flutter_app_badger at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_badger-1.3.0/
[  +32 ms] Found plugin flutter_file_dialog at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_file_dialog-2.3.0/
[  +29 ms] Found plugin flutter_keyboard_visibility at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility-5.2.0/
[  +34 ms] Found plugin flutter_keyboard_visibility_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility_web-2.0.0/
[  +33 ms] Found plugin flutter_local_notifications at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_local_notifications-9.4.1/
[  +77 ms] Found plugin flutter_native_splash at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_native_splash-2.1.2+1/
[  +39 ms] Found plugin flutter_olm at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_olm-1.2.0/
[  +38 ms] Found plugin flutter_openssl_crypto at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_openssl_crypto-0.1.0/
[  +11 ms] Found plugin flutter_plugin_android_lifecycle at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-2.0.5/
[  +25 ms] Found plugin flutter_ringtone_player at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_ringtone_player-3.1.1/
[  +27 ms] Found plugin flutter_secure_storage at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage-5.0.2/
[  +28 ms] Found plugin flutter_secure_storage_linux at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage_linux-1.1.0/
[  +38 ms] Found plugin flutter_secure_storage_macos at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage_macos-1.1.0/
[  +37 ms] Found plugin flutter_secure_storage_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage_web-1.0.2/
[  +42 ms] Found plugin flutter_secure_storage_windows at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage_windows-1.1.2/
[ +101 ms] Found plugin flutter_web_auth at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_web_auth-0.4.1/
[  +37 ms] Found plugin flutter_webrtc at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webrtc-0.8.4/
[ +299 ms] Found plugin geolocator at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator-7.7.1/
[  +17 ms] Found plugin geolocator_apple at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator_apple-1.2.2/
[  +33 ms] Found plugin geolocator_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator_web-2.0.6/
[+1163 ms] Found plugin image_picker at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.8.4+11/
[  +15 ms] Found plugin image_picker_for_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker_for_web-2.1.6/
[ +104 ms] Found plugin just_audio at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/just_audio-0.9.20/
[  +38 ms] Found plugin just_audio_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/just_audio_web-0.4.7/
[ +925 ms] Found plugin move_to_background at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/move_to_background-1.0.2/
[  +44 ms] Found plugin package_info_plus at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/package_info_plus-1.4.2/
[   +5 ms] Found plugin package_info_plus_linux at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/package_info_plus_linux-1.0.5/
[   +5 ms] Found plugin package_info_plus_macos at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/package_info_plus_macos-1.3.0/
[   +8 ms] Found plugin package_info_plus_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/package_info_plus_web-1.0.5/
[   +5 ms] Found plugin package_info_plus_windows at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/package_info_plus_windows-1.0.5/
[  +28 ms] Found plugin path_provider at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.9/
[  +15 ms] Found plugin path_provider_android at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_android-2.0.12/
[  +10 ms] Found plugin path_provider_ios at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_ios-2.0.8/
[  +32 ms] Found plugin path_provider_linux at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.5/
[  +19 ms] Found plugin path_provider_macos at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.5/
[  +32 ms] Found plugin path_provider_windows at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.5/
[  +28 ms] Found plugin permission_handler at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-9.2.0/
[   +9 ms] Found plugin permission_handler_android at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler_android-9.0.2+1/
[   +5 ms] Found plugin permission_handler_apple at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler_apple-9.0.3/
[   +7 ms] Found plugin permission_handler_windows at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler_windows-0.1.0/
[ +109 ms] Found plugin receive_sharing_intent at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/receive_sharing_intent-1.4.5/
[   +6 ms] Found plugin record at /media/d/Program Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/record-3.0.3/
[  +21 ms] Found plugin record_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/record_web-0.2.1/
[  +71 ms] Found plugin share_plus at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus-4.0.4/
[  +14 ms] Found plugin share_plus_linux at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus_linux-3.0.0/
[   +6 ms] Found plugin share_plus_macos at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus_macos-3.0.0/
[  +24 ms] Found plugin share_plus_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus_web-3.0.0/
[   +5 ms] Found plugin share_plus_windows at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus_windows-3.0.0/
[  +10 ms] Found plugin shared_preferences at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.13/
[   +5 ms] Found plugin shared_preferences_android at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_android-2.0.11/
[   +4 ms] Found plugin shared_preferences_ios at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_ios-2.1.0/
[  +47 ms] Found plugin shared_preferences_linux at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-2.1.0/
[  +29 ms] Found plugin shared_preferences_macos at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-2.0.3/
[  +26 ms] Found plugin shared_preferences_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-2.0.3/
[  +27 ms] Found plugin shared_preferences_windows at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_windows-2.1.0/
[ +163 ms] Found plugin sqflite at /media/d/Program Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.2/
[ +120 ms] Found plugin uni_links at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/uni_links-0.5.1/
[  +13 ms] Found plugin uni_links_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/uni_links_web-0.1.0/
[  +27 ms] Found plugin unifiedpush at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/unifiedpush-4.0.0/
[  +17 ms] Found plugin unifiedpush_android at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/unifiedpush_android-1.0.0/
[ +107 ms] Found plugin url_launcher at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.20/
[  +14 ms] Found plugin url_launcher_android at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_android-6.0.15/
[  +56 ms] Found plugin url_launcher_ios at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_ios-6.0.15/
[  +16 ms] Found plugin url_launcher_linux at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-3.0.0/
[  +37 ms] Found plugin url_launcher_macos at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-3.0.0/
[  +42 ms] Found plugin url_launcher_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.6/
[  +31 ms] Found plugin url_launcher_windows at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-3.0.0/
[  +97 ms] Found plugin video_compress at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/video_compress-3.1.0/
[  +15 ms] Found plugin video_player at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-2.3.0/
[  +35 ms] Found plugin video_player_android at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/video_player_android-2.3.2/
[  +16 ms] Found plugin video_player_avfoundation at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/video_player_avfoundation-2.3.1/
[  +46 ms] Found plugin video_player_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/video_player_web-2.0.7/
[  +80 ms] Found plugin wakelock at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.6.1+2/
[  +33 ms] Found plugin wakelock_macos at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock_macos-0.4.0/
[  +50 ms] Found plugin wakelock_web at /media/d/Program
Files/elf/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock_web-0.4.0/
[ +210 ms] Found plugin integration_test at /media/d/Program Files/elf/flutter/packages/integration_test/
[+2220 ms] Generating
/media/d/temp/git/fluffychat/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[+2499 ms] 💪 Building with sound null safety 💪
[ +420 ms] Building Linux application...
[ +659 ms] executing: [build/linux/x64/release/] cmake -G Ninja -DCMAKE_BUILD_TYPE=Release
-DFLUTTER_TARGET_PLATFORM=linux-x64 /media/d/temp/git/fluffychat/linux
[+1137 ms] CMake Error at /usr/share/cmake-3.22/Modules/CMakeDetermineCXXCompiler.cmake:48 (message):
[  +47 ms]   Could not find compiler set in environment variable CXX:
[   +9 ms]   clang++.
[  +13 ms] Call Stack (most recent call first):
[  +21 ms]   CMakeLists.txt:2 (project)
[   +9 ms] CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
[  +54 ms] -- Configuring incomplete, errors occurred!
[  +13 ms] See also "/media/d/temp/git/fluffychat/build/linux/x64/release/CMakeFiles/CMakeOutput.log".
[ +522 ms] Building Linux application... (completed in 2 215ms)
[  +25 ms] "flutter linux" took 30 819ms.
[ +145 ms] Unable to generate build files
[  +22 ms]
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      _runCmake (package:flutter_tools/src/linux/build_linux.dart:156:5)
           <asynchronous suspension>
           #2      buildLinux (package:flutter_tools/src/linux/build_linux.dart:76:5)
           <asynchronous suspension>
           #3      BuildLinuxCommand.runCommand (package:flutter_tools/src/commands/build_linux.dart:85:5)
           <asynchronous suspension>
           #4      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1183:27)
           <asynchronous suspension>
           #5      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #6      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand.<anonymous closure>
           (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
           <asynchronous suspension>
           #8      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #9      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
           <asynchronous suspension>
           #10     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
           <asynchronous suspension>
           #11     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #12     main (package:flutter_tools/executable.dart:94:3)
           <asynchronous suspension>


[ +760 ms] ensureAnalyticsSent: 657ms
[  +17 ms] Running shutdown hooks
[   +3 ms] Shutdown hooks complete
[  +24 ms] exiting with code 1
@bq:23:38:42:/media/d/temp/git/fluffychat$
```

<!-- If possible, paste the output of running `flutter doctor -v` here. -->

```
@bq:23:38:42:/media/d/temp/git/fluffychat$ CXX=/usr/bin/clang++-11 /Programs/elf/flutter/bin/flutter doctor -v
[✓] Flutter (Channel stable, 3.0.1, on Debian GNU/Linux bookworm/sid 5.10.0-8-amd64, locale ru_UA.UTF-8)
    • Flutter version 3.0.1 at /media/d/Program Files/elf/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision fb57da5f94 (11 дней назад), 2022-05-19 15:50:29 -0700
    • Engine revision caaafc5604
    • Dart version 2.17.1
    • DevTools version 2.12.2

[✗] Android toolchain - develop for Android devices
    • Android SDK at /usr/lib/android-sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.

[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✗] Linux toolchain - develop for Linux desktop
    ✗ clang++ is required for Linux development.
      It is likely available from your distribution (e.g.: apt install clang), or can be downloaded from
      https://releases.llvm.org/
    • cmake version 3.22.1
    • ninja version 1.10.1
    • pkg-config version 0.29.2

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).

[✓] Connected device (1 available)
    • Linux (desktop) • linux • linux-x64 • Debian GNU/Linux bookworm/sid 5.10.0-8-amd64

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 4 categories.
@bq:23:42:40:/media/d/temp/git/fluffychat$
```

</details>