-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
ios builds fail with "unrecognized asm int $3
"
#1127
Comments
I confirm seeing this. |
It was fixed by #1084 |
Good to know, thanks. |
What is the resolution? |
@BharatiyaKaran for M1 macs I think Catch2 authors need to provide a proper inline asm. Currently it relies on platform (mac or ios) to pick the right variant, but m1 macs act more like ios in this regard by using aarch64 asm just like iphone. |
Thanks berkus: Got the resolution from some other place on internet: //#define CATCH_TRAP() asm("int $3\n" : : ) /* NOLINT */ |
@BharatiyaKaran I believe it should be the same as in CATCH_PLATFORM_IPHONE. |
See original change in catchorg/Catch2#1127
* * Fix inline assemble in catch.hpp dependency for ARM Macs See original change in catchorg/Catch2#1127
* * Fix inline assemble in catch.hpp dependency for ARM Macs See original change in catchorg/Catch2#1127
#3125) * minor refactor to reduce num calls to get size of Array property * Avoid duplicate transformation to Ground frame when computing path length * remove_unused_variable * Remove macros that are replaceable by Vec3 operators * Inline usage of Macro in WrapEllipsoid * More refactoring, use det for determinant, vec operators instead of loops, inline method CalcDistanceSquaredPointToLine * Update continuous_integration.yml Do not use cached dependencies built before osx upgrade on github * Remove rather than comment out function that was moved to header and inlined. * Update GeometryPath.cpp Reuse variable for wrapSetSize * Update continuous_integration.yml Undo cache change since we verified build succeeds without it. * Use normSqr for consistency * Use UnitVec3 instead of Vec3 for plane normal * Avoid tweaking tangent points of WrapCylinder when single object wrapping, allow for optimization if disableVisualization is true. Fix test cases accordingly * Add MocoAngularVelocityTrackingGoal to bindings; add option for quaternion table in MocoOrientationTrackingGoal * Complete fixes for setRotationReference(); update changelog * fix load issue with scale tool (#3110) * fix load issue scale tool load issue if model or marker set file is given as an absolute path, and the tool was created from a setup file. update error message to better reflect possible issues. * update CHANGELOG * Add extendPostScale() to DeGrooteFregly2016Muscle (#3108) * Add extendPostScale() to DeGrooteFregly2016Muscle * Update changelog * Update continuous_integration.yml (#3115) * Update continuous_integration.yml Allow fresh build on osx to use latest github Action environment * Update continuous_integration.yml set CMake variable for OSX_DEPLOYMENT to 11 * Update continuous_integration.yml Restore mac osx-10.15 and target 10.10 for deployment * Fix inline assemble in catch.hpp dependency for ARM Macs (#3118) * * Fix inline assemble in catch.hpp dependency for ARM Macs See original change in catchorg/Catch2#1127 * Avoid tweaking tangent points of WrapCylinder when single object wrapping, allow for optimization if disableVisualization is true. Fix test cases accordingly * disableVisualization when creating MocoProblem for Model * Avoid messages about missing files if visualization is off. * fix comments per PR review * Disable visualization for all internal models used by MccoProblem * Fix typo/mistake in variable name * Couple other places to disable visualization for models internal to Moco and MocoInverse * improve comments per feedback on PR * Use finer grain includes per PR review * Retire Mtx::CrossProduct wrapper method for Vec3 operator * Remove now unused methods for CrossProduct, Interpolation, Translation, Rotation of data * Fix case for pathname of UnitVec.h * Use norm for Mtx::Magnitude * Remove redundant call to disableVisualization * Remove Mtx::Angle and inline references to it. * Replace Mtx::Normalize with Vec3.normalize * Update standard input for testMocoInverse This reverts commit fa4daa8. * Minor rearrangement per feedback on PR * Eliminate Mtx class, move remaining 2 functions to WrapMath * Inline replace DotProduct with operator, and remove from WrapMath.h, remove unused test case * Rename Normalize to NormalizeOrZero * Update WrapMath.h Test removal of zeroing output vector to bring NormalizeOrZero closer to normalize * Remove unused methods in WrapMath class, for consistency restore all WrapMath::NormalizeOrZero instances * Remove unused methods in WrapMath class, for consistency restore all WrapMath::NormalizeOrZero instances * Update std again based on latest wrapping code update * Update ModelProcessor.h Undo disableVisualization per feedback on PR Co-authored-by: Nicholas Bianco <[email protected]> Co-authored-by: carmichaelong <[email protected]> Co-authored-by: Keenon Werling <[email protected]>
Description
error: cannot compile inline asm
:1:2: error: invalid instruction
int $3
^
Steps to reproduce
Build using Catch 2.0.1 for ios/armv7
Because not all ios devices are x86. The offending code is:
Direct link to the horrible mess: here
Extra information
The text was updated successfully, but these errors were encountered: