Skip to content

Dart internal generators failing with bad architecture binary error #128098

@godofredoc

Description

@godofredoc

There are two errors caused by the builds running on mac m1s:

Jazzy does not work on mac m1:

https://ci.chromium.org/p/dart-internal/builders/flutter/Mac%20Production%20Engine%20Drone/4730?

/Volumes/Work/s/w/ir/cache/builder/src/flutter /Volumes/Work/s/w/ir/cache/builder
/Volumes/Work/s/w/ir/cache/ruby/.cipd/pkgs/0/7BJOF4R2SzfKZnk0BZpiDRQmb_RD79GlZrPpOydeydIC/lib/ruby/3.1.0/rubygems/specification.rb:1453:in `rescue in block in activate_dependencies': Could not find 'sqlite3' (~> 1.3) among 131 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/Users/chrome-bot/.local/share/gem/ruby/3.1.0:/Volumes/Work/s/w/ir/cache/ruby/.cipd/pkgs/0/7BJOF4R2SzfKZnk0BZpiDRQmb_RD79GlZrPpOydeydIC/lib/ruby/gems/3.1.0:/Volumes/Work/s/w/ir/cache/gems/ruby/3.1.0' at: /Volumes/Work/s/w/ir/cache/gems/ruby/3.1.0/specifications/jazzy-0.14.3.gemspec, execute `gem env` for more information
	from /Volumes/Work/s/w/ir/cache/ruby/.cipd/pkgs/0/7BJOF4R2SzfKZnk0BZpiDRQmb_RD79GlZrPpOydeydIC/lib/ruby/3.1.0/rubygems/specification.rb:1450:in `block in activate_dependencies'
	from /Volumes/Work/s/w/ir/cache/ruby/.cipd/pkgs/0/7BJOF4R2SzfKZnk0BZpiDRQmb_RD79GlZrPpOydeydIC/lib/ruby/3.1.0/rubygems/specification.rb:1439:in `each'
	from /Volumes/Work/s/w/ir/cache/ruby/.cipd/pkgs/0/7BJOF4R2SzfKZnk0BZpiDRQmb_RD79GlZrPpOydeydIC/lib/ruby/3.1.0/rubygems/specification.rb:1439:in `activate_dependencies'
	from /Volumes/Work/s/w/ir/cache/ruby/.cipd/pkgs/0/7BJOF4R2SzfKZnk0BZpiDRQmb_RD79GlZrPpOydeydIC/lib/ruby/3.1.0/rubygems/specification.rb:1421:in `activate'
	from /Volumes/Work/s/w/ir/cache/ruby/.cipd/pkgs/0/7BJOF4R2SzfKZnk0BZpiDRQmb_RD79GlZrPpOydeydIC/lib/ruby/3.1.0/rubygems.rb:286:in `block in activate_bin_path'
	from /Volumes/Work/s/w/ir/cache/ruby/.cipd/pkgs/0/7BJOF4R2SzfKZnk0BZpiDRQmb_RD79GlZrPpOydeydIC/lib/ruby/3.1.0/rubygems.rb:285:in `synchronize'
	from /Volumes/Work/s/w/ir/cache/ruby/.cipd/pkgs/0/7BJOF4R2SzfKZnk0BZpiDRQmb_RD79GlZrPpOydeydIC/lib/ruby/3.1.0/rubygems.rb:285:in `activate_bin_path'
	from /Volumes/Work/s/w/ir/cache/gems/ruby/3.1.0/bin/jazzy:38:in `<main>'

Trying to run dsym on arm64 using x64 binaries:

https://ci.chromium.org/p/dart-internal/builders/flutter/Mac%20Production%20Engine%20Drone/4729?

Traceback (most recent call last):
  File "/Volumes/Work/s/w/ir/cache/builder/src/flutter/sky/tools/create_macos_framework.py", line 210, in <module>
    sys.exit(main())
  File "/Volumes/Work/s/w/ir/cache/builder/src/flutter/sky/tools/create_macos_framework.py", line 92, in main
    process_framework(dst, args, fat_framework, fat_framework_binary)
  File "/Volumes/Work/s/w/ir/cache/builder/src/flutter/sky/tools/create_macos_framework.py", line 138, in process_framework
    subprocess.check_call([DSYMUTIL, '-o', dsym_out, fat_framework_binary])
  File "/Volumes/Work/s/w/ir/cipd_bin_packages/cpython3/lib/python3.8/subprocess.py", line 359, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/Volumes/Work/s/w/ir/cipd_bin_packages/cpython3/lib/python3.8/subprocess.py", line 340, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/Volumes/Work/s/w/ir/cipd_bin_packages/cpython3/lib/python3.8/subprocess.py", line 858, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/Volumes/Work/s/w/ir/cipd_bin_packages/cpython3/lib/python3.8/subprocess.py", line 1704, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 86] Bad CPU type in executable: '/Volumes/Work/s/w/ir/cache/builder/src/flutter/sky/tools/../../../buildtools/mac-x64/clang/bin/dsymutil'

Short term solution:

Run top level orchestrator builds on mac x64 machines.

Long term solution:

Support running dsym tool on arm64 machines and support jazzy on arm64

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions