[MacPorts] #74324: "Error: Failed to build aom" on macOS 10.7 - 10.9
MacPorts
noreply at macports.org
Sat Aug 15 18:35:44 UTC 2026
#74324: "Error: Failed to build aom" on macOS 10.7 - 10.9
----------------------------+------------------------
Reporter: scrutinizer11 | Owner: reneeotten
Type: defect | Status: reopened
Priority: Normal | Milestone:
Component: ports | Version: 2.12.5
Resolution: | Keywords:
Port: aom |
----------------------------+------------------------
Comment (by Dave-Allured):
> Missing assert.h include maybe?
No. I checked the code; that `include` is in there. I think this is a
wrong version of assert.h.
`static_assert` was a macro provided by assert.h, starting at C11. It is
no longer provided by assert.h at C23. I think this means that
`static_assert` was added as a keyword directly in newer compilers. If
MacPorts is providing a too-recent version of assert.h, combined with an
earlier compiler such as clang-16, that would explain this specific error.
https://cppreference.net/c/language/static_assert.html
If this is right, then I can think of two remedies:
* Blacklist earlier compilers lacking the direct `static_assert` keyword,
but continue to specify C11 standard;
* or provide a correct version of assert.h when using clang-16.
I do not know how to select an alternate version of assert.h. That is all
I have for now.
--
Ticket URL: <https://trac.macports.org/ticket/74324#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list