compile errors with toolset LLVM for Visual Studio 2017 (LLVM_v141) #3621
StanPepels
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I was trying to compile bullet with visual studio 2017 with toolset " LLVM for Visual Studio 2017 (LLVM_v141)" (set via CMake) when I ran into the following compile error.
btScalar.h(325,16): error : overloaded 'operator+' must have at least one parameter of class or enumeration type btScalar.h(330,16): error : overloaded 'operator-' must have at least one parameter of class or enumeration type
I Tried commenting out the operator overloads (issue here is that _m128 is not a user defined type) which brought me to the following
btSequentialImpulseConstraintSolver.cpp(122,27): message : expanded from macro 'DOT_PRODUCT' btSequentialImpulseConstraintSolver.cpp(118,23): message : expanded from macro 'SSE4_DP' btSequentialImpulseConstraintSolver.cpp(186,131): error : use of undeclared identifier '_mm_dp_ps' btSequentialImpulseConstraintSolver.cpp(122,27): message : expanded from macro 'DOT_PRODUCT' btSequentialImpulseConstraintSolver.cpp(118,23): message : expanded from macro 'SSE4_DP' btSequentialImpulseConstraintSolver.cpp(187,42): error : use of undeclared identifier '_mm_dp_ps' btSequentialImpulseConstraintSolver.cpp(122,27): message : expanded from macro 'DOT_PRODUCT' btSequentialImpulseConstraintSolver.cpp(118,23): message : expanded from macro 'SSE4_DP' btSequentialImpulseConstraintSolver.cpp(187,131): error : use of undeclared identifier '_mm_dp_ps' btSequentialImpulseConstraintSolver.cpp(122,27): message : expanded from macro 'DOT_PRODUCT' btSequentialImpulseConstraintSolver.cpp(118,23): message : expanded from macro 'SSE4_DP' btSequentialImpulseConstraintSolver.cpp(188,17): error : use of undeclared identifier '_mm_fnmadd_ps' btSequentialImpulseConstraintSolver.cpp(132,25): message : expanded from macro 'FMNADD' btSequentialImpulseConstraintSolver.cpp(189,17): error : use of undeclared identifier '_mm_fnmadd_ps' btSequentialImpulseConstraintSolver.cpp(132,25): message : expanded from macro 'FMNADD' btSequentialImpulseConstraintSolver.cpp(193,75): error : use of undeclared identifier '_mm_blendv_ps' btSequentialImpulseConstraintSolver.cpp(194,49): error : use of undeclared identifier '_mm_blendv_ps' btSequentialImpulseConstraintSolver.cpp(195,51): error : use of undeclared identifier '_mm_fmadd_ps' btSequentialImpulseConstraintSolver.cpp(130,24): message : expanded from macro 'FMADD' btSequentialImpulseConstraintSolver.cpp(196,52): error : use of undeclared identifier '_mm_fmadd_ps' btSequentialImpulseConstraintSolver.cpp(130,24): message : expanded from macro 'FMADD' btSequentialImpulseConstraintSolver.cpp(197,51): error : use of undeclared identifier '_mm_fmadd_ps' btSequentialImpulseConstraintSolver.cpp(130,24): message : expanded from macro 'FMADD' btSequentialImpulseConstraintSolver.cpp(198,52): error : use of undeclared identifier '_mm_fmadd_ps' btSequentialImpulseConstraintSolver.cpp(130,24): message : expanded from macro 'FMADD' btSequentialImpulseConstraintSolver.cpp(240,42): error : use of undeclared identifier '_mm_dp_ps' btSequentialImpulseConstraintSolver.cpp(122,27): message : expanded from macro 'DOT_PRODUCT' btSequentialImpulseConstraintSolver.cpp(118,23): message : expanded from macro 'SSE4_DP' btSequentialImpulseConstraintSolver.cpp(240,131): error : use of undeclared identifier '_mm_dp_ps' btSequentialImpulseConstraintSolver.cpp(122,27): message : expanded from macro 'DOT_PRODUCT' btSequentialImpulseConstraintSolver.cpp(118,23): message : expanded from macro 'SSE4_DP' btSequentialImpulseConstraintSolver.cpp(241,42): error : use of undeclared identifier '_mm_dp_ps' btSequentialImpulseConstraintSolver.cpp(122,27): message : expanded from macro 'DOT_PRODUCT' btSequentialImpulseConstraintSolver.cpp(118,23): message : expanded from macro 'SSE4_DP' btSequentialImpulseConstraintSolver.cpp(241,131): error : use of undeclared identifier '_mm_dp_ps' btSequentialImpulseConstraintSolver.cpp(122,27): message : expanded from macro 'DOT_PRODUCT' btSequentialImpulseConstraintSolver.cpp(118,23): message : expanded from macro 'SSE4_DP' btSequentialImpulseConstraintSolver.cpp(242,17): error : use of undeclared identifier '_mm_fnmadd_ps' btSequentialImpulseConstraintSolver.cpp(132,25): message : expanded from macro 'FMNADD' btSequentialImpulseConstraintSolver.cpp(243,17): error : use of undeclared identifier '_mm_fnmadd_ps' btSequentialImpulseConstraintSolver.cpp(132,25): message : expanded from macro 'FMNADD' btSequentialImpulseConstraintSolver.cpp(246,17): error : use of undeclared identifier '_mm_blendv_ps' btSequentialImpulseConstraintSolver.cpp(246,17): error : fatal error: too many errors emitted, stopping now [-ferror-limit=]
I Attempted to fix those as well and managed to get some of the fixes but in the end I couldn't find a solution. I'm not very knowledgeable about the code thats breaking (seems like something with regards to intrinsics?) I checked the declerations of the functions and they seem to be defind in <intrin.h> which is included.
Maybe i'm missing something obvious?
Beta Was this translation helpful? Give feedback.
All reactions