Bug 1989079 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

When running a raptor test with `--gecko-profile` flag (ex. `./mach raptor -t amazon --gecko-profile`) on an M4 Mac,  the following error occurred:

```
0:18:29 CRITICAL -  raptor-gecko-profile Critical: Encountered an exception during profile symbolication
```
Logging the exception gives:

```
20:18:29     INFO -  raptor-gecko-profile Info: [Errno 86] Bad CPU type in executable: '/Users/animalan/firefox/testing/mozbase/mozgeckoprofiler/mozgeckoprofiler/dump_syms_mac'
```
The issue seems to be due to the [dump_syms_mac](https://searchfox.org/firefox-main/source/testing/mozbase/mozgeckoprofiler/mozgeckoprofiler/dump_syms_mac) binary being an x86-64 executable. 

```
file /Users/animalan/firefox/testing/mozbase/mozgeckoprofiler/mozgeckoprofiler/dump_syms_mac

/Users/animalan/firefox/testing/mozbase/mozgeckoprofiler/mozgeckoprofiler/dump_syms_mac: Mach-O 64-bit executable x86_64
```

A workaround for ARM Macs is just installing Rosetta i.e. running something like:

```
softwareupdate --install-rosetta --agree-to-license
xattr -dr com.apple.quarantine /Users/animalan/firefox/testing/mozbase/mozgeckoprofiler/mozgeckoprofiler/dump_syms_mac
chmod +x /Users/animalan/firefox/testing/mozbase/mozgeckoprofiler/mozgeckoprofiler/dump_syms_mac
```

Including a static binary directly into source seems problematic. Ideally this binary should be removed or dealt with more dynamically  (possibly in symbolication patch [1970961](bugzilla.mozilla.org/show_bug.cgi?id=1970961)).  The [`dump_syms`](https://github.com/mozilla/dump_syms) Rust rewrite (which offers Apple ARM builds) might be useful here.
When running a raptor test with `--gecko-profile` flag (ex. `./mach raptor -t amazon --gecko-profile`) on an M4 Mac,  the following error occurred:

```
0:18:29 CRITICAL -  raptor-gecko-profile Critical: Encountered an exception during profile symbolication
```
Logging the exception gives:

```
20:18:29     INFO -  raptor-gecko-profile Info: [Errno 86] Bad CPU type in executable: '/Users/animalan/firefox/testing/mozbase/mozgeckoprofiler/mozgeckoprofiler/dump_syms_mac'
```
The issue seems to be due to the [dump_syms_mac](https://searchfox.org/firefox-main/source/testing/mozbase/mozgeckoprofiler/mozgeckoprofiler/dump_syms_mac) binary being an x86-64 executable. 

```
file /Users/animalan/firefox/testing/mozbase/mozgeckoprofiler/mozgeckoprofiler/dump_syms_mac

/Users/animalan/firefox/testing/mozbase/mozgeckoprofiler/mozgeckoprofiler/dump_syms_mac: Mach-O 64-bit executable x86_64
```

A workaround for ARM Macs is just installing Rosetta i.e. running something like:

```
softwareupdate --install-rosetta --agree-to-license
xattr -dr com.apple.quarantine /Users/animalan/firefox/testing/mozbase/mozgeckoprofiler/mozgeckoprofiler/dump_syms_mac
chmod +x /Users/animalan/firefox/testing/mozbase/mozgeckoprofiler/mozgeckoprofiler/dump_syms_mac
```

Including a static binary directly into source seems problematic. Ideally this binary should be removed or dealt with more dynamically  (possibly in bug 1970961).  The [`dump_syms`](https://github.com/mozilla/dump_syms) Rust rewrite (which offers Apple ARM builds) might be useful here.

Back to Bug 1989079 Comment 0