Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ogrisel opened this issue Mar 2, 2022 · 1 comment

Comments

@ogrisel
Copy link

ogrisel commented Mar 2, 2022

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants