Bug: `mach build` fails with `Illegal instruction     (core dumped)`
Status: RESOLVED
Priority: --
Resolution: INVALID
Created: 2024-02-19 15:08:43+00:00
Resolved: 2024-02-19 17:08:31+00:00

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0

Steps to reproduce:

Build [Firefox 123.0][1]:

    mee_build() {
        export CARGO_HOME=$B/.cargo
        ${S}/mach build
    }

l1]: https://ftp.mozilla.org/pub/firefox/releases/123.0/source/firefox-123.0.source.tar.xz


Actual results:

    Collecting appdirs>=1.4
      Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
    Requirement already satisfied: Click>=7 in /dev/shm/bee-pmenzel/firefox/firefox-123.0-0/source/third_party/python/click (from glean_parser~=11.0->glean-sdk==56.1.0) (8.1.6)
    Collecting diskcache>=4
      Using cached diskcache-5.6.3-py3-none-any.whl (45 kB)
    Requirement already satisfied: Jinja2>=2.10.1 in /dev/shm/bee-pmenzel/firefox/firefox-123.0-0/source/third_party/python/Jinja2 (from glean_parser~=11.0->glean-sdk==56.1.0) (3.1.2)
    Requirement already satisfied: jsonschema>=3.0.2 in /dev/shm/bee-pmenzel/firefox/firefox-123.0-0/source/third_party/python/jsonschema (from glean_parser~=11.0->glean-sdk==56.1.0) (4.17.3)
    Collecting PyYAML>=5.3.1
      Using cached PyYAML-6.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (757 kB)
    Requirement already satisfied: MarkupSafe>=2.0 in /dev/shm/bee-pmenzel/firefox/firefox-123.0-0/source/third_party/python/MarkupSafe/src (from Jinja2>=2.10.1->glean_parser~=11.0->glean-sdk==56.1.0) (2.0.1)
    Requirement already satisfied: attrs>=17.4.0 in /dev/shm/bee-pmenzel/firefox/firefox-123.0-0/source/third_party/python/attrs (from jsonschema>=3.0.2->glean_parser~=11.0->glean-sdk==56.1.0) (23.1.0)
    Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in /dev/shm/bee-pmenzel/firefox/firefox-123.0-0/source/third_party/python/pyrsistent (from jsonschema>=3.0.2->glean_parser~=11.0->glean-sdk==56.1.0) (0.16.0)
    Requirement already satisfied: six in /dev/shm/bee-pmenzel/firefox/firefox-123.0-0/source/third_party/python/six (from pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0->jsonschema>=3.0.2->glean_parser~=11.0->glean-sdk==56.1.0) (1.16.0)
    Installing collected packages: appdirs, semver, PyYAML, diskcache, glean_parser, glean-sdk
    Successfully installed PyYAML-6.0.1 appdirs-1.4.4 diskcache-5.6.3 glean-sdk-56.1.0 glean_parser-11.1.0 semver-3.0.2
    Collecting psutil<=5.9.4,>=5.4.2
      Using cached psutil-5.9.4-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (280 kB)
    Installing collected packages: psutil
    Successfully installed psutil-5.9.4
    Collecting zstandard<=0.22.0,>=0.11.1
      Using cached zstandard-0.22.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.4 MB)
    Installing collected packages: zstandard
    Successfully installed zstandard-0.22.0
    /home/pmenzel/bee-files/./firefox.be0: line 44: 14233 Illegal instruction     (core dumped) ${S}/mach build
    $ dmesg | tail -1
    [Mon Feb 19 15:31:06 2024] traps: python3[14233] trap invalid opcode ip:7f7e1ec423cd sp:7fff3094f2d0 error:0 in libffi.so.8.1.2[7f7e1ec41000+a000]


Expected results:

The build should succeed.