I don't really know if this is the right place to go with this. It's not a question, and I'm not telling anyone in particular to fix something.
I have a project with which I've compiled an optimized, static BP before, using GCC 4.6 and BP 2.81.
I messed it up somewhere, likely causing a static initialization fiasco. Long story short, I installed a both new compiler, GCC 4-8-1,
a new IDE (Netbeans 7.4) and fetched the latest BP (2.82 r2704 at the time)
I tried to compile a new static lib but cc1plus.exe crashes. (Disabling optimizations or using only -O1 solves this)
My project however, segfaults when I initialize my instances of
btDbvtBroadphase
btDefaultCollisionConfiguration
btCollisionDispatcher
btSequentialImpulseConstraintSolver
btDiscreteDynamicsWorld
(in that order, in the ctor for the only class that uses BP)
I should've learned this before (but I became too confident):
Don't, or at least rarely, upgrade your compiler. Chances are one is doing something else wrong, which needs to be fixed.
But it looks like this could genuinely be a fault with the new GCC. My log is as follows:
Code: Select all
g++ -c -O2 -Isrc -MMD -MP -MF "build\Release\MinGW-Windows\src\BulletCollision\CollisionDispatch\btInternalEdgeUtility.o.d" -o build\Release\MinGW-Windows\src\BulletCollision\CollisionDispatch\btInternalEdgeUtility.o src\BulletCollision\CollisionDispatch\btInternalEdgeUtility.cpp
src\BulletCollision\CollisionDispatch\btInternalEdgeUtility.cpp: In member function 'virtual void btConnectivityProcessor::processTriangle(btVector3*, int, int)':
src\BulletCollision\CollisionDispatch\btInternalEdgeUtility.cpp:310:2: internal compiler error: Segmentation fault
}
^
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
src\BulletCollision\CollisionDispatch\btInternalEdgeUtility.cpp:310:2: internal compiler error: Aborted
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
g++.exe: internal compiler error: Aborted (program cc1plus)
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <http:\\gcc.gnu.org\bugs.html> for instructions.
make.exe[2]: *** [build\Release\MinGW-Windows\src\BulletCollision\CollisionDispatch\btInternalEdgeUtility.o] Error 4
make.exe[2]: Leaving directory '\c\Users\User\Documents\NetBeansProjects\Bullet Physics'
make.exe[1]: *** [.build-conf] Error 2
make.exe[1]: Leaving directory '\c\Users\User\Documents\NetBeansProjects\Bullet Physics'
make: *** [.build-impl] Error 2