Opened 6 months ago

Last modified 3 weeks ago

#72889 assigned defect

aom @3.12.1_0: arm64 Sequoia 15.6.1: C++ versions less than C++14 are not supported

Reported by: kwolcott Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version:
Keywords: arm64 sequoia Cc: hapaguy (Brian Kurt Fujikawa), Dave-Allured (Dave Allured)
Port: aom

Description (last modified by ryandesign (Ryan Carsten Schmidt))

aom @3.12.1_0: C++ versions less than C++14 are not supported

This is the first error that I see, which makes no sense to me since my OS was just offically patched yesterday.

arm64 Sequoia 15.6.1

clang++ --version
Apple clang version 17.0.0 (clang-1700.0.13.5)
Target: arm64-apple-darwin24.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Attachments (2)

aom_port_installation_form_source_fails.log.bz2 (9.8 KB) - added by kwolcott 6 months ago.
GIMP MacOS Build Log.txt (150.4 KB) - added by lukaso (Lukas Oberhuber) 6 months ago.
This is a build on an older MacOS. So I think the issue isn't the latest MacOS.

Download all attachments as: .zip

Change History (15)

comment:1 Changed 6 months ago by jmroot (Joshua Root)

Owner: set to MarcusCalhoun-Lopez
Status: newassigned

Changed 6 months ago by lukaso (Lukas Oberhuber)

Attachment: GIMP MacOS Build Log.txt added

This is a build on an older MacOS. So I think the issue isn't the latest MacOS.

comment:2 Changed 6 months ago by lukaso (Lukas Oberhuber)

That build was in Rosetta 2 x86_64 on arm.

comment:3 Changed 6 months ago by jmroot (Joshua Root)

The build is using -std=c++11 and one of the included headers (from gtest) wants at least C++14.

comment:4 Changed 6 months ago by hapaguy (Brian Kurt Fujikawa)

Cc: hapaguy added

comment:5 Changed 6 months ago by hapaguy (Brian Kurt Fujikawa)

Cc: hapaguy removed

comment:6 Changed 6 months ago by hapaguy (Brian Kurt Fujikawa)

Cc: hapaguy added

comment:7 Changed 6 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: sequoia added; Sequoia removed

But aom doesn't depend on the gtest port and the error says:

:info:build In file included from /opt/local/var/macports/build/aom-e880fda7/work/aom-3.12.1/third_party/googletest/src/googletest/src/gtest-all.cc:38:
:info:build In file included from /opt/local/include/gtest/gtest.h:63:
:info:build In file included from /opt/local/include/gtest/gtest-assertion-result.h:46:
:info:build In file included from /opt/local/include/gtest/gtest-message.h:57:
:info:build /opt/local/include/gtest/internal/gtest-port.h:279:2: error: C++ versions less than C++14 are not supported.
:info:build   279 | #error C++ versions less than C++14 are not supported.
:info:build       |  ^

So it's trying to build a bundled copy of google test (presumably an older version that doesn't require C++14) but is inadvertently finding the headers of MacPorts gtest (which error when told by aom to use C++11 since they require C++14 or newer).

sudo port -f deactivate gtest and sudo port clean aom would theoretically work around the problem.

comment:8 Changed 6 months ago by kwolcott

Hi Ryan;

Your suggestion appears to work fine, as aom installed without complaint after the gtest deactivate and aom clean. I have not re-activated gtest (yet).

Thanks, Ken Wolcott

comment:9 Changed 6 months ago by lukaso (Lukas Oberhuber)

Does this mean the two packages are incompatible? Or is this just a temporary workaround?

comment:10 Changed 6 months ago by ryandesign (Ryan Carsten Schmidt)

It's a bug in the aom port that should be fixed so that the workaround is no longer needed.

comment:11 Changed 6 months ago by Dave-Allured (Dave Allured)

Cc: Dave-Allured added

comment:12 Changed 6 months ago by Dave-Allured (Dave Allured)

@ryandesign what do you suggest? Configure "aom" to always disable the bundled "gtest"?

comment:13 Changed 3 weeks ago by kwolcott

I have successfully installed aom some time ago.

Ken Wolcott

Note: See TracTickets for help on using tickets.