Open eli-schwartz opened 3 months ago
Thanks for the fixes. I've suspended work on Bullet/PyBullet for now, except for high-urgency fixes. Since the Super Tux Kart project uses an old version, I would recommend making these changes over there (they seem to not use system Bullet). https://github.com/supertuxkart/stk-code/issues/5035 Is that possible?
Unfortunately fixing it just in supertuxkart doesn't help. I discovered the supertuxkart issue later, and mostly unrelatedly. Fixing supertuxkart won't help for other software that does link to (a single system copy of) bullet, such as godot, ogre, efl, openmw, gazebo...
Since someone else has offered a PR to implement the fixes, it seems like it should be relatively easy to review those fixes and merge them. The vast majority of development effort has been expended by someone else. :)
I tried to compile with LTO:
-flto=4 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing
The -Werror=* flags are important to detect cases where the compiler can try to optimize based on assuming UB cannot happen, and miscompile code that has UB in it. strict-aliasing issues are always bad but LTO can make them even worse.
I got this error:
and similar. Github won't let me post the entire error as it is too long...
Original downstream report (against 3.21, but as noted above I verified it on 3.25 as well): https://bugs.gentoo.org/863275 Full build log including all 8 miscompiling files: build.log