Skip to content

Instantly share code, notes, and snippets.

@eseidel
Created February 24, 2023 21:10
Show Gist options
  • Save eseidel/112ee5ac416b86f63a310ad8a0ead64c to your computer and use it in GitHub Desktop.
Save eseidel/112ee5ac416b86f63a310ad8a0ead64c to your computer and use it in GitHub Desktop.
eseidel@erics-mbp src % ./flutter/tools/gn --no-goma --unoptimized --mac-cpu=arm64
Using prebuilt Dart SDK binary. If you are editing Dart sources and wish to compile the Dart SDK, set `--no-prebuilt-dart-sdk`.
Generating GN files in: out/host_debug_unopt_arm64
WARNING at the command-line "--args":1:1213: Build argument has no effect.
is_debug=true use_goma=false goma_dir="None" flutter_build_web_sdk=false full_dart_sdk=false skia_enable_flutter_defines=true skia_use_dng_sdk=false skia_use_sfntly=false skia_enable_pdf=false skia_use_x11=false skia_use_wuffs=true skia_use_expat=false skia_use_fontconfig=false skia_use_legacy_layer_bounds=true skia_use_icu=true is_official_build=true android_full_debug=false is_clang=true skia_gl_standard="" use_clang_static_analyzer=false enable_coverage=false enable_lto=false host_os="mac" host_cpu="x64" target_os="mac" target_cpu="arm64" dart_target_arch="arm64" mac_sdk_min="10.14" mac_deployment_target="10.14.0" use_ios_simulator=false flutter_use_fontconfig=false dart_component_kind="static_library" embedder_for_target=false dart_lib_export_symbols=false flutter_runtime_mode="debug" dart_version_git_info=true dart_runtime_mode="develop" enable_desktop_embeddings=true bssl_use_clang_integrated_as=true skia_use_gl=true allow_deprecated_api_calls=true skia_use_metal=true shell_enable_metal=true skia_use_vulkan=true skia_use_vma=false shell_enable_vulkan=true disable_hidden_visibility=false flutter_prebuilt_dart_sdk=true dart_sdk_output="built-dart-sdk" stripped_symbols=true angle_build_all=false angle_has_astc_encoder=false angle_use_x11=false angle_use_wayland=false angle_enable_vulkan_validation_layers=false angle_vulkan_headers_dir="//third_party/vulkan-deps/vulkan-headers/src" angle_vulkan_loader_dir="//third_party/vulkan-deps/vulkan-loader/src" angle_vulkan_tools_dir="//third_party/vulkan-deps/vulkan-tools/src"
^----
The variable "angle_build_all" was set as a build argument
but never appeared in a declare_args() block in any buildfile.
To view all possible args, run "gn args --list <out_dir>"
The build continued as if that argument was unspecified.
Generating Xcode projects took 119ms
Generating compile_commands took 28ms
Done. Made 917 targets from 287 files in 3736ms
eseidel@erics-mbp src % ninja -C out/host_debug_unopt_arm64
ninja: Entering directory `out/host_debug_unopt_arm64'
[1/6187] CXX obj/flutter/flutter_vma/flutter_vma.flutter_vma.o
FAILED: obj/flutter/flutter_vma/flutter_vma.flutter_vma.o
../../buildtools/mac-x64/clang/bin/clang++ -MD -MF obj/flutter/flutter_vma/flutter_vma.flutter_vma.o.d -DUSE_OPENSSL=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_LIBCPP_DISABLE_AVAILABILITY=1 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -D_DEBUG -DVK_USE_PLATFORM_METAL_EXT -DVMA_DYNAMIC_VULKAN_FUNCTIONS=0 -DVMA_STATIC_VULKAN_FUNCTIONS=0 -I../.. -Igen -I../../third_party/libcxx/include -I../../third_party/libcxxabi/include -I../../build/secondary/third_party/libcxx/config -I../../third_party/vulkan-deps/vulkan-headers/src/include -I../../third_party/vulkan_memory_allocator/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -mmacosx-version-min=10.14.0 -fno-strict-aliasing -fstack-protector-all -arch arm64 -fcolor-diagnostics -Wall -Wextra -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-deprecated-copy -Wno-psabi -Wno-unqualified-std-cast-call -Wno-non-c-typedef-for-linkage -Wno-range-loop-construct -Wunguarded-availability -Wno-deprecated-declarations -fvisibility=hidden -Wstring-conversion -Wnewline-eof -O0 -g2 -fvisibility-inlines-hidden -std=c++17 -fno-rtti -nostdinc++ -nostdinc++ -fvisibility=hidden -fno-exceptions -stdlib=libc++ -Wno-c++98-compat-extra-semi -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-nullability-completeness -Wno-suggest-destructor-override -Wno-suggest-override -Wno-unused-private-field -Wno-unused-variable -c ../../flutter/flutter_vma/flutter_vma.cc -o obj/flutter/flutter_vma/flutter_vma.flutter_vma.o
/bin/sh: ../../buildtools/mac-x64/clang/bin/clang++: Bad CPU type in executable
[2/6187] CXX obj/flutter/fml/command_line.command_line.o
FAILED: obj/flutter/fml/command_line.command_line.o
../../buildtools/mac-x64/clang/bin/clang++ -MD -MF obj/flutter/fml/command_line.command_line.o.d -DUSE_OPENSSL=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_LIBCPP_DISABLE_AVAILABILITY=1 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -D_DEBUG -DFLUTTER_RUNTIME_MODE_DEBUG=1 -DFLUTTER_RUNTIME_MODE_PROFILE=2 -DFLUTTER_RUNTIME_MODE_RELEASE=3 -DFLUTTER_RUNTIME_MODE_JIT_RELEASE=4 -DDART_LEGACY_API=\[\[deprecated\]\] -DFLUTTER_RUNTIME_MODE=1 -DFLUTTER_JIT_RUNTIME=1 -I../.. -Igen -I../../third_party/libcxx/include -I../../third_party/libcxxabi/include -I../../build/secondary/third_party/libcxx/config -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -mmacosx-version-min=10.14.0 -fno-strict-aliasing -fstack-protector-all -arch arm64 -fcolor-diagnostics -Wall -Wextra -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-deprecated-copy -Wno-psabi -Wno-unqualified-std-cast-call -Wno-non-c-typedef-for-linkage -Wno-range-loop-construct -Wunguarded-availability -Wno-deprecated-declarations -fvisibility=hidden -Wstring-conversion -Wnewline-eof -O0 -g2 -fvisibility-inlines-hidden -std=c++17 -fno-rtti -nostdinc++ -nostdinc++ -fvisibility=hidden -fno-exceptions -stdlib=libc++ -c ../../flutter/fml/command_line.cc -o obj/flutter/fml/command_line.command_line.o
/bin/sh: ../../buildtools/mac-x64/clang/bin/clang++: Bad CPU type in executable
[4/6187] CXX obj/flutter/fml/string_conversion.string_conversion.o
FAILED: obj/flutter/fml/string_conversion.string_conversion.o
../../buildtools/mac-x64/clang/bin/clang++ -MD -MF obj/flutter/fml/string_conversion.string_conversion.o.d -D_LIBCPP_DISABLE_DEPRECATION_WARNINGS -DUSE_OPENSSL=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_LIBCPP_DISABLE_AVAILABILITY=1 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -D_DEBUG -DFLUTTER_RUNTIME_MODE_DEBUG=1 -DFLUTTER_RUNTIME_MODE_PROFILE=2 -DFLUTTER_RUNTIME_MODE_RELEASE=3 -DFLUTTER_RUNTIME_MODE_JIT_RELEASE=4 -DDART_LEGACY_API=\[\[deprecated\]\] -DFLUTTER_RUNTIME_MODE=1 -DFLUTTER_JIT_RUNTIME=1 -I../.. -Igen -I../../third_party/libcxx/include -I../../third_party/libcxxabi/include -I../../build/secondary/third_party/libcxx/config -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -mmacosx-version-min=10.14.0 -fno-strict-aliasing -fstack-protector-all -arch arm64 -fcolor-diagnostics -Wall -Wextra -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-deprecated-copy -Wno-psabi -Wno-unqualified-std-cast-call -Wno-non-c-typedef-for-linkage -Wno-range-loop-construct -Wunguarded-availability -Wno-deprecated-declarations -fvisibility=hidden -Wstring-conversion -Wnewline-eof -O0 -g2 -fvisibility-inlines-hidden -std=c++17 -fno-rtti -nostdinc++ -nostdinc++ -fvisibility=hidden -fno-exceptions -stdlib=libc++ -c ../../flutter/fml/string_conversion.cc -o obj/flutter/fml/string_conversion.string_conversion.o
/bin/sh: ../../buildtools/mac-x64/clang/bin/clang++: Bad CPU type in executable
[6/6187] CXX obj/flutter/shell/platfor.../common_cpp_switches.engine_switches.o
FAILED: obj/flutter/shell/platform/common/common_cpp_switches.engine_switches.o
../../buildtools/mac-x64/clang/bin/clang++ -MD -MF obj/flutter/shell/platform/common/common_cpp_switches.engine_switches.o.d -DUSE_OPENSSL=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_LIBCPP_DISABLE_AVAILABILITY=1 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -D_DEBUG -DFLUTTER_RUNTIME_MODE_DEBUG=1 -DFLUTTER_RUNTIME_MODE_PROFILE=2 -DFLUTTER_RUNTIME_MODE_RELEASE=3 -DFLUTTER_RUNTIME_MODE_JIT_RELEASE=4 -DDART_LEGACY_API=\[\[deprecated\]\] -DFLUTTER_RUNTIME_MODE=1 -DFLUTTER_JIT_RUNTIME=1 -I../.. -Igen -I../../third_party/libcxx/include -I../../third_party/libcxxabi/include -I../../build/secondary/third_party/libcxx/config -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -mmacosx-version-min=10.14.0 -fno-strict-aliasing -fstack-protector-all -arch arm64 -fcolor-diagnostics -Wall -Wextra -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-deprecated-copy -Wno-psabi -Wno-unqualified-std-cast-call -Wno-non-c-typedef-for-linkage -Wno-range-loop-construct -Wunguarded-availability -Wno-deprecated-declarations -fvisibility=hidden -Wstring-conversion -Wnewline-eof -O0 -g2 -fvisibility-inlines-hidden -std=c++17 -fno-rtti -nostdinc++ -nostdinc++ -fvisibility=hidden -fno-exceptions -stdlib=libc++ -c ../../flutter/shell/platform/common/engine_switches.cc -o obj/flutter/shell/platform/common/common_cpp_switches.engine_switches.o
/bin/sh: ../../buildtools/mac-x64/clang/bin/clang++: Bad CPU type in executable
[11/6187] CXX obj/flutter/runtime/test_font.test_font_data.o
FAILED: obj/flutter/runtime/test_font.test_font_data.o
../../buildtools/mac-x64/clang/bin/clang++ -MD -MF obj/flutter/runtime/test_font.test_font_data.o.d -DEMBED_TEST_FONT_DATA=1 -DUSE_OPENSSL=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_LIBCPP_DISABLE_AVAILABILITY=1 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -D_DEBUG -DSK_TYPEFACE_FACTORY_CORETEXT -DSK_GL -DSK_METAL -DSK_ENABLE_DUMP_GPU -DSK_SUPPORT_GPU=1 -DSK_VULKAN -DSK_CODEC_DECODES_JPEG -DSK_ENCODE_JPEG -DSK_CODEC_DECODES_PNG -DSK_ENCODE_PNG -DSK_CODEC_DECODES_WEBP -DSK_ENCODE_WEBP -DSK_HAS_WUFFS_LIBRARY -DSK_DISABLE_AAA -DSK_LEGACY_IGNORE_DRAW_VERTICES_BLEND_WITH_NO_SHADER -DSK_DISABLE_LEGACY_SHADERCONTEXT -DSK_DISABLE_LOWP_RASTER_PIPELINE -DSK_FORCE_RASTER_PIPELINE_BLITTER -DSK_METAL_WAIT_UNTIL_SCHEDULED -DSK_DISABLE_EFFECT_DESERIALIZATION -DSK_ENABLE_SKSL -DSK_ENABLE_PRECOMPILE -DSK_USE_PERFETTO -DSK_LEGACY_LAYER_BOUNDS_EXPANSION -DSK_ENABLE_API_AVAILABLE -I../.. -Igen -I../../third_party/libcxx/include -I../../third_party/libcxxabi/include -I../../build/secondary/third_party/libcxx/config -I../../third_party/skia -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -mmacosx-version-min=10.14.0 -fno-strict-aliasing -fstack-protector-all -arch arm64 -fcolor-diagnostics -Wall -Wextra -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-deprecated-copy -Wno-psabi -Wno-unqualified-std-cast-call -Wno-non-c-typedef-for-linkage -Wno-range-loop-construct -Wunguarded-availability -Wno-deprecated-declarations -fvisibility=hidden -Wstring-conversion -Wnewline-eof -O0 -g2 -fvisibility-inlines-hidden -std=c++17 -fno-rtti -nostdinc++ -nostdinc++ -fvisibility=hidden -fno-exceptions -stdlib=libc++ -c ../../flutter/runtime/test_font_data.cc -o obj/flutter/runtime/test_font.test_font_data.o
/bin/sh: ../../buildtools/mac-x64/clang/bin/clang++: Bad CPU type in executable
[14/6187] ACTION //flutter/shell/platf...ers(//build/toolchain/mac:clang_arm64)
ninja: build stopped: subcommand failed.
eseidel@erics-mbp src %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment