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

Example won’t compile on x86 MacOS #15

Open
maxpoletaev opened this issue May 25, 2024 · 0 comments
Open

Example won’t compile on x86 MacOS #15

maxpoletaev opened this issue May 25, 2024 · 0 comments

Comments

@maxpoletaev
Copy link

maxpoletaev commented May 25, 2024

I'm not sure if macOS is supported, but I'm getting this error when I try to run an example from the README:

$ ./goat example/src/avx_mul_to.c
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/_types.h:36:1: architecture not supported
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:55:25: `__darwin_blkcnt_t`: expected declaration: IDENTIFIER
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:1022:1: Unsupported architecture
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/immintrin.h:14:1: "This header is only meant to be used on x86 and x64 architecture"
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:14:1: "This header is only meant to be used on x86 and x64 architecture"
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:1288:27: `__m64`: expected primary-expression
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/xmmintrin.h:14:1: "This header is only meant to be used on x86 and x64 architecture"

It works just fine if I compile it with Clang. The error seems to be coming from the C parser (modernc) that this tool uses, but I'm not entirely sure what's causing it.

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

1 participant