Skip to content

[flutter release] Bad CPU type in executable error on mac M1 bots #136219

Closed
@XilaiZhang

Description

@XilaiZhang

failed build links: https://ci.chromium.org/ui/p/dart-internal/builders/flutter/Mac%20engine_release_builder/369/overview, https://ci.chromium.org/p/dart-internal/builders/flutter/Mac%20Production%20Engine%20Drone/7263

sir @godofredoc pointed out that there could be deeper underlying problems since the builds should be using the correct architecture binaries

sample error looks like:

../../buildtools/mac-x64/clang/bin/clang++ -MD -MF obj/flutter/assets/assets.asset_manager.o.d -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 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -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=2 -I../.. -Igen -I../../third_party/libcxx/include -I../../third_party/libcxxabi/include -I../../build/secondary/third_party/libcxx/config -isysroot /Volumes/Work/s/w/ir/cache/osx_sdk/xcode_14e300c/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk -miphoneos-version-min=11.0 -fno-strict-aliasing -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-deprecated-literal-operator -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 -Os -fno-ident -fdata-sections -ffunction-sections -flto -g2 -Wunreachable-code -fvisibility-inlines-hidden -std=c++17 -fno-rtti -nostdinc++ -nostdinc++ -fvisibility=hidden -fno-exceptions -stdlib=libc++ -c ../../flutter/assets/asset_manager.cc -o obj/flutter/assets/assets.asset_manager.o
/bin/sh: ../../buildtools/mac-x64/clang/bin/clang++: Bad CPU type in executable
[8/4851] STAMP obj/flutter/fml/build_config.stamp
ninja: build stopped: subcommand failed.

Metadata

Metadata

Assignees

Labels

engineflutter/engine repository. See also e: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions