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

macos-14: newton-3.14/sdk/dgCore/dgVectorSimd.h: error: unknown type name '__m128' #327

Open
jonesmz opened this issue May 30, 2024 · 2 comments

Comments

@jonesmz
Copy link
Contributor

jonesmz commented May 30, 2024

macos-14 with the default system compiler errors out when compiling translation units which include this header.

https://github.com/TheOpenSpaceProgram/osp-magnum/actions/runs/9298107395/job/25589389932

@JulioJerez
Copy link
Contributor

JulioJerez commented May 30, 2024

I replaced vsprintf with vsnprintf, I do not know what to do about the simd.
somehow is missing a header of a compiler flag, which is weird afte all these years.
what platform is that?

if thsi is building on a non intel, them either in cmake of in the default header you sould select the scalar arithmetic
some of the new PC are now using arm, which are neon, but I have not try that yet.

at this point is probably better to upgrade to newton 4, which has proper new and scale math classes.

@JulioJerez
Copy link
Contributor

ok I check the header and the error log say you are build on a mac, so my guess is that you are on a newer arm mac.

in header file E:\newton\newton-dynamics\newton-3.14\sdk\dgCore\dgTypes.h
line 142

uncomment this line. //#define DG_SCALAR_VECTOR_CLASS

you have to edit the cmake and deselect all of the simd option.
the new macs, do not really get too much gain from explict simd anyway.

but my best advise is that you try to go to newton 4 it is far, far better than 3. and it is the version that active supported.

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