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

Error building on XCode11 #2418

Closed
spencerkohan opened this issue Sep 24, 2019 · 4 comments
Closed

Error building on XCode11 #2418

spencerkohan opened this issue Sep 24, 2019 · 4 comments

Comments

@spencerkohan
Copy link

I have a project which was previously linking against bullet 2.88 using XCode 10 (as installed by homebrew) and everything was working perfectly. Now since upgrading to XCode11 I have an error on line 335 in btVector3.h:

y = bt_splat_ps(y, 0x80);

error: Argument value 10880 is outside the valid range [0, 255]

It appears to be the macro invocation on bt_splat_ps.

The compiler being used is clang, with language dialect C++17.

I am not aware what has changed with regard to XCode which could be causing this issue.

@wduminy
Copy link

wduminy commented Oct 27, 2019

@spencerkohan I can suggest a work-around until the problem is investigated further.

Add this snippet to bullet/src/LinearMath/btVector3.h.
Just below #define BT_VECTOR3_H

#ifdef __clang__
#pragma clang diagnostic ignored "-Wargument-outside-range"
#endif

@Bo98
Copy link

Bo98 commented Nov 13, 2019

@spencerkohan Just to add here, since I noticed you mentioned Homebrew, I've applied commit 7638b7c onto the 2.88 source base and an update is now available on Homebrew. If you install the latest from Homebrew it should work now.

@erwincoumans
Copy link
Member

should be fixed now.

@collenjones
Copy link

@erwincoumans FYI the fix does not appear to have solved this issue but @wduminy's suggestion works

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

5 participants