Aether icon indicating copy to clipboard operation
Aether copied to clipboard

Build error on macOS 12.2.1 / xcode clang/13.0.0: undeclared identifier '__builtin_ia32_emms'

Open ogrisel opened this issue 2 years ago • 1 comments

I followed the instructions to brew install the deps and git clone in recursive mode and then build in sequential model (without -j 4) make it easier to find the first error message, which is the following:

[  0%] Built target copy_fonts
[  6%] Building CXX object src/DSP/CMakeFiles/aether_dsp.dir/aether_dsp_lv2.cpp.o
In file included from /Users/ogrisel/code/Aether/src/DSP/aether_dsp_lv2.cpp:8:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/xmmintrin.h:13:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/mmintrin.h:33:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?
    __builtin_ia32_emms();
    ^
❯ xcode-select --version
xcode-select version 2392.
❯ clang --version
Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: arm64-apple-darwin21.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

ogrisel avatar Mar 02 '22 18:03 ogrisel

Sorry for taking so long to reply. I haven't been able to test it on an M1 mac but the latest commit c85b83e072a294f1b71151f5c5b6c46e27afd566 should fix the issue!

Dougal-s avatar Apr 10 '22 02:04 Dougal-s