Dougal-s / Aether

An algorithmic reverb LV2 based on Cloudseed
https://dougal-s.github.io/Aether/
MIT License
170 stars 10 forks source link

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

Open ogrisel opened 2 years ago

ogrisel commented 2 years ago

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
Dougal-s commented 2 years ago

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!