[Nasm-bugs] [Bug 3392685] New: dav1d build for Firefox fails to build on macOS using Homebrew NASM 2.15.01

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Mon Jun 29 11:26:11 PDT 2020


https://bugzilla.nasm.us/show_bug.cgi?id=3392685

            Bug ID: 3392685
           Summary: dav1d build for Firefox fails to build on macOS using
                    Homebrew NASM 2.15.01
           Product: NASM
           Version: 2.15 (development)
          Hardware: All
                OS: All
            Status: OPEN
          Severity: normal
          Priority: Medium
         Component: Assembler
          Assignee: nobody at nasm.us
          Reporter: rstewart at mozilla.com
                CC: chang.seok.bae at intel.com, gorcunov at gmail.com,
                    hpa at zytor.com, nasm-bugs at nasm.us
     Obtained from: From OS distribution

As of
[yesterday](https://github.com/Homebrew/homebrew-core/commit/29c1c18ea2bd82a1a53fbb1453f91bb05828738a),
Homebrew installs `nasm` 2.15.01. When attempting to build `dav1d` in the
Firefox build using that version of `nasm` to perform the assembly, the build
fails unconditionally with an OOM error:

```
 5:14.56 /usr/local/bin/nasm -o cpuid.o -f macho64
-I/Users/rickystewart/src/mozilla-unified/third_party/dav1d/src/
-DHAVE_AVX512ICL=1
-I/Users/rickystewart/src/mozilla-unified/media/libdav1d/asm/x86_64/osx/  
/Users/rickystewart/src/mozilla-unified/third_party/dav1d/src/x86/cpuid.asm
 5:14.60 critical:
/Users/rickystewart/src/mozilla-unified/third_party/dav1d/src/x86/cpuid.asm:47:
out of memory!
```

The includes and source file being assembled can all be found in the
[`mozilla-central`](https://searchfox.org/mozilla-central/source) repository;
e.g. `cpuid.asm` can be found
[here](https://searchfox.org/mozilla-central/source/third_party/dav1d/src/x86/cpuid.asm).

The issue can be fixed by installing an old version of `nasm` (2.14.03 works),
so this does appear to be a bug in the new version.

For reference, see the [original Firefox
bug](https://bugzilla.mozilla.org/show_bug.cgi?id=1649049).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.


More information about the Nasm-bugs mailing list