godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.07k stars 20.19k forks source link

Compilation fail with Bullet in Webassembly templates #12720

Closed nylnook closed 6 years ago

nylnook commented 6 years ago

Operating system or device, Godot version, GPU Model and driver (if graphics related): Arclinux 64bit, Godot 3 Compiled today

Issue description: I tried to compile the Webassembly templates today to test if #11804 was indeed fixed, but compilation failed with Bullet:

$ export EMSCRIPTEN_ROOT=/usr/lib/emscripten
$ scons platform=javascript target=release wasm=yes
scons: Reading SConscript files ...
Checking for C header file mntent.h... yes
scons: done reading SConscript files.
scons: Building targets ...
[  0%] Install file: "misc/dist/html/default.html" as "bin/.javascript_zip/godot.html"
[  1%] build_gles3_headers(["drivers/gles3/shaders/canvas_shadow.glsl.gen.h"], ["drivers/gles3/shaders/canvas_shadow.glsl"])
[  1%] build_gles3_headers(["drivers/gles3/shaders/cube_to_dp.glsl.gen.h"], ["drivers/gles3/shaders/cube_to_dp.glsl"])
[  1%] build_gles3_headers(["drivers/gles3/shaders/effect_blur.glsl.gen.h"], ["drivers/gles3/shaders/effect_blur.glsl"])
[  1%] build_gles3_headers(["drivers/gles3/shaders/exposure.glsl.gen.h"], ["drivers/gles3/shaders/exposure.glsl"])
[  1%] build_gles3_headers(["drivers/gles3/shaders/resolve.glsl.gen.h"], ["drivers/gles3/shaders/resolve.glsl"])
[  1%] build_gles3_headers(["drivers/gles3/shaders/scene.glsl.gen.h"], ["drivers/gles3/shaders/scene.glsl"])
[  1%] build_gles3_headers(["drivers/gles3/shaders/screen_space_reflection.glsl.gen.h"], ["drivers/gles3/shaders/screen_space_reflection.glsl"])
[  1%] build_gles3_headers(["drivers/gles3/shaders/ssao.glsl.gen.h"], ["drivers/gles3/shaders/ssao.glsl"])
[  1%] build_gles3_headers(["drivers/gles3/shaders/ssao_blur.glsl.gen.h"], ["drivers/gles3/shaders/ssao_blur.glsl"])
[  1%] build_gles3_headers(["drivers/gles3/shaders/ssao_minify.glsl.gen.h"], ["drivers/gles3/shaders/ssao_minify.glsl"])
[  1%] build_gles3_headers(["drivers/gles3/shaders/subsurf_scattering.glsl.gen.h"], ["drivers/gles3/shaders/subsurf_scattering.glsl"])
[  1%] build_gles3_headers(["drivers/gles3/shaders/tonemap.glsl.gen.h"], ["drivers/gles3/shaders/tonemap.glsl"])
[  1%] build_gles3_headers(["drivers/gles3/shaders/blend_shape.glsl.gen.h"], ["drivers/gles3/shaders/blend_shape.glsl"])
[  1%] build_gles3_headers(["drivers/gles3/shaders/canvas.glsl.gen.h"], ["drivers/gles3/shaders/canvas.glsl"])
[  2%] build_gles3_headers(["drivers/gles3/shaders/copy.glsl.gen.h"], ["drivers/gles3/shaders/copy.glsl"])
[  2%] build_gles3_headers(["drivers/gles3/shaders/cubemap_filter.glsl.gen.h"], ["drivers/gles3/shaders/cubemap_filter.glsl"])
[  2%] build_gles3_headers(["drivers/gles3/shaders/particles.glsl.gen.h"], ["drivers/gles3/shaders/particles.glsl"])
[  3%] run(["core/method_bind.gen.inc", "core/method_bind_ext.gen.inc"], ["core/make_binders.py"])
[  4%] Compiling ==> platform/javascript/os_javascript.cpp
[  4%] Compiling ==> platform/javascript/audio_driver_javascript.cpp
[  4%] Compiling ==> platform/javascript/javascript_main.cpp
[  4%] Compiling ==> platform/javascript/power_javascript.cpp
[  4%] Compiling ==> platform/javascript/javascript_eval.cpp
[  4%] Compiling ==> main/performance.cpp
[  4%] Compiling ==> main/input_default.cpp
[  4%] make_app_icon(["main/app_icon.gen.h"], ["main/app_icon.png"])
[  4%] make_splash(["main/splash.gen.h"], ["main/splash.png"])
[  7%] Compiling ==> main/main.cpp
[  7%] Linking Static Library ==> main/libmain.javascript.opt.webassembly.bc
Ranlib Library         ==> main/libmain.javascript.opt.webassembly.bc
[  7%] Compiling ==> main/tests/test_image.cpp
[  7%] Compiling ==> main/tests/test_math.cpp
[  8%] Compiling ==> main/tests/test_physics.cpp
[  8%] Compiling ==> main/tests/test_io.cpp
[  8%] Compiling ==> main/tests/test_gdscript.cpp
[  8%] Compiling ==> main/tests/test_main.cpp
[  8%] Compiling ==> main/tests/test_render.cpp
[  8%] Compiling ==> main/tests/test_gui.cpp
[  8%] Compiling ==> main/tests/test_oa_hash_map.cpp
[  8%] Compiling ==> main/tests/test_ordered_hash_map.cpp
[  8%] Compiling ==> main/tests/test_string.cpp
[  8%] Compiling ==> main/tests/test_physics_2d.cpp
[  8%] Compiling ==> main/tests/test_shader_lang.cpp
[  9%] Linking Static Library ==> main/tests/libtests.javascript.opt.webassembly.bc
Ranlib Library         ==> main/tests/libtests.javascript.opt.webassembly.bc
[  9%] Compiling ==> modules/register_module_types.gen.cpp
[ 10%] Compiling ==> thirdparty/bullet/src/BulletCollision/BroadphaseCollision/btAxisSweep3.cpp
[ 10%] Compiling ==> thirdparty/bullet/src/BulletCollision/BroadphaseCollision/btBroadphaseProxy.cpp
[ 10%] Compiling ==> thirdparty/bullet/src/BulletCollision/BroadphaseCollision/btCollisionAlgorithm.cpp
[ 10%] Compiling ==> thirdparty/bullet/src/BulletCollision/BroadphaseCollision/btDbvt.cpp
[ 10%] Compiling ==> thirdparty/bullet/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp
[ 10%] Compiling ==> thirdparty/bullet/src/BulletCollision/BroadphaseCollision/btDispatcher.cpp
[ 10%] Compiling ==> thirdparty/bullet/src/BulletCollision/BroadphaseCollision/btOverlappingPairCache.cpp
[ 10%] Compiling ==> thirdparty/bullet/src/BulletCollision/BroadphaseCollision/btQuantizedBvh.cpp
[ 10%] Compiling ==> thirdparty/bullet/src/BulletCollision/BroadphaseCollision/btSimpleBroadphase.cpp
[ 11%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionDispatch/btActivatingCollisionAlgorithm.cpp
[ 11%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionDispatch/btBoxBoxCollisionAlgorithm.cpp
[ 11%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionDispatch/btBox2dBox2dCollisionAlgorithm.cpp
[ 11%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionDispatch/btBoxBoxDetector.cpp
[ 11%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionDispatch/btCollisionDispatcher.cpp
[ 11%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionDispatch/btCollisionDispatcherMt.cpp
[ 11%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionDispatch/btCollisionObject.cpp
[ 12%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionDispatch/btCollisionWorld.cpp
[ 13%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionDispatch/btCollisionWorldImporter.cpp
[ 13%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionDispatch/btCompoundCollisionAlgorithm.cpp
[ 13%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionDispatch/btCompoundCompoundCollisionAlgorithm.cpp
[ 13%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionDispatch/btConvexConcaveCollisionAlgorithm.cpp
[ 13%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionDispatch/btConvexConvexAlgorithm.cpp
[ 13%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionDispatch/btConvexPlaneCollisionAlgorithm.cpp
[ 13%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionDispatch/btConvex2dConvex2dAlgorithm.cpp
[ 13%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionDispatch/btDefaultCollisionConfiguration.cpp
[ 13%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionDispatch/btEmptyCollisionAlgorithm.cpp
[ 13%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionDispatch/btGhostObject.cpp
[ 13%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionDispatch/btHashedSimplePairCache.cpp
[ 13%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionDispatch/btInternalEdgeUtility.cpp
[ 13%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionDispatch/btManifoldResult.cpp
[ 14%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionDispatch/btSimulationIslandManager.cpp
[ 14%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionDispatch/btSphereBoxCollisionAlgorithm.cpp
[ 14%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionDispatch/btSphereSphereCollisionAlgorithm.cpp
[ 14%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionDispatch/btSphereTriangleCollisionAlgorithm.cpp
[ 14%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionDispatch/btUnionFind.cpp
[ 14%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionDispatch/SphereTriangleDetector.cpp
[ 14%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btBoxShape.cpp
[ 14%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btBox2dShape.cpp
[ 14%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btBvhTriangleMeshShape.cpp
[ 14%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btCapsuleShape.cpp
[ 14%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btCollisionShape.cpp
[ 14%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btCompoundShape.cpp
[ 14%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btConcaveShape.cpp
[ 14%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btConeShape.cpp
[ 14%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btConvexHullShape.cpp
[ 14%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btConvexInternalShape.cpp
[ 14%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btConvexPointCloudShape.cpp
[ 14%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btConvexPolyhedron.cpp
[ 14%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btConvexShape.cpp
[ 15%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btConvex2dShape.cpp
[ 15%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btConvexTriangleMeshShape.cpp
[ 15%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btCylinderShape.cpp
[ 15%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btEmptyShape.cpp
[ 15%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btHeightfieldTerrainShape.cpp
[ 15%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btMinkowskiSumShape.cpp
[ 15%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btMultimaterialTriangleMeshShape.cpp
[ 15%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btMultiSphereShape.cpp
[ 15%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btOptimizedBvh.cpp
[ 15%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btPolyhedralConvexShape.cpp
[ 15%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btScaledBvhTriangleMeshShape.cpp
[ 15%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btShapeHull.cpp
[ 15%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btSphereShape.cpp
[ 15%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btStaticPlaneShape.cpp
[ 15%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btStridingMeshInterface.cpp
[ 15%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btTetrahedronShape.cpp
[ 16%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btTriangleBuffer.cpp
[ 16%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btTriangleCallback.cpp
[ 16%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btTriangleIndexVertexArray.cpp
[ 16%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btTriangleIndexVertexMaterialArray.cpp
[ 16%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btTriangleMesh.cpp
[ 16%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btTriangleMeshShape.cpp
[ 16%] Compiling ==> thirdparty/bullet/src/BulletCollision/CollisionShapes/btUniformScalingShape.cpp
[ 16%] Compiling ==> thirdparty/bullet/src/BulletCollision/Gimpact/btContactProcessing.cpp
[ 16%] Compiling ==> thirdparty/bullet/src/BulletCollision/Gimpact/btGenericPoolAllocator.cpp
[ 16%] Compiling ==> thirdparty/bullet/src/BulletCollision/Gimpact/btGImpactBvh.cpp
[ 16%] Compiling ==> thirdparty/bullet/src/BulletCollision/Gimpact/btGImpactCollisionAlgorithm.cpp
[ 16%] Compiling ==> thirdparty/bullet/src/BulletCollision/Gimpact/btGImpactQuantizedBvh.cpp
[ 16%] Compiling ==> thirdparty/bullet/src/BulletCollision/Gimpact/btGImpactShape.cpp
[ 16%] Compiling ==> thirdparty/bullet/src/BulletCollision/Gimpact/btTriangleShapeEx.cpp
[ 17%] Compiling ==> thirdparty/bullet/src/BulletCollision/Gimpact/gim_box_set.cpp
[ 17%] Compiling ==> thirdparty/bullet/src/BulletCollision/Gimpact/gim_contact.cpp
[ 17%] Compiling ==> thirdparty/bullet/src/BulletCollision/Gimpact/gim_memory.cpp
[ 17%] Compiling ==> thirdparty/bullet/src/BulletCollision/Gimpact/gim_tri_collision.cpp
[ 17%] Compiling ==> thirdparty/bullet/src/BulletCollision/NarrowPhaseCollision/btContinuousConvexCollision.cpp
[ 17%] Compiling ==> thirdparty/bullet/src/BulletCollision/NarrowPhaseCollision/btConvexCast.cpp
[ 17%] Compiling ==> thirdparty/bullet/src/BulletCollision/NarrowPhaseCollision/btGjkConvexCast.cpp
[ 17%] Compiling ==> thirdparty/bullet/src/BulletCollision/NarrowPhaseCollision/btGjkEpa2.cpp
[ 17%] Compiling ==> thirdparty/bullet/src/BulletCollision/NarrowPhaseCollision/btGjkEpaPenetrationDepthSolver.cpp
[ 17%] Compiling ==> thirdparty/bullet/src/BulletCollision/NarrowPhaseCollision/btGjkPairDetector.cpp
[ 17%] Compiling ==> thirdparty/bullet/src/BulletCollision/NarrowPhaseCollision/btMinkowskiPenetrationDepthSolver.cpp
[ 17%] Compiling ==> thirdparty/bullet/src/BulletCollision/NarrowPhaseCollision/btPersistentManifold.cpp
[ 17%] Compiling ==> thirdparty/bullet/src/BulletCollision/NarrowPhaseCollision/btRaycastCallback.cpp
[ 17%] Compiling ==> thirdparty/bullet/src/BulletCollision/NarrowPhaseCollision/btSubSimplexConvexCast.cpp
[ 17%] Compiling ==> thirdparty/bullet/src/BulletCollision/NarrowPhaseCollision/btVoronoiSimplexSolver.cpp
[ 17%] Compiling ==> thirdparty/bullet/src/BulletCollision/NarrowPhaseCollision/btPolyhedralContactClipping.cpp
[ 17%] Compiling ==> thirdparty/bullet/src/BulletDynamics/Character/btKinematicCharacterController.cpp
[ 18%] Compiling ==> thirdparty/bullet/src/BulletDynamics/ConstraintSolver/btConeTwistConstraint.cpp
[ 18%] Compiling ==> thirdparty/bullet/src/BulletDynamics/ConstraintSolver/btContactConstraint.cpp
[ 18%] Compiling ==> thirdparty/bullet/src/BulletDynamics/ConstraintSolver/btFixedConstraint.cpp
[ 18%] Compiling ==> thirdparty/bullet/src/BulletDynamics/ConstraintSolver/btGearConstraint.cpp
[ 18%] Compiling ==> thirdparty/bullet/src/BulletDynamics/ConstraintSolver/btGeneric6DofConstraint.cpp
[ 18%] Compiling ==> thirdparty/bullet/src/BulletDynamics/ConstraintSolver/btGeneric6DofSpringConstraint.cpp
[ 18%] Compiling ==> thirdparty/bullet/src/BulletDynamics/ConstraintSolver/btGeneric6DofSpring2Constraint.cpp
[ 18%] Compiling ==> thirdparty/bullet/src/BulletDynamics/ConstraintSolver/btHinge2Constraint.cpp
[ 18%] Compiling ==> thirdparty/bullet/src/BulletDynamics/ConstraintSolver/btHingeConstraint.cpp
[ 18%] Compiling ==> thirdparty/bullet/src/BulletDynamics/ConstraintSolver/btPoint2PointConstraint.cpp
[ 18%] Compiling ==> thirdparty/bullet/src/BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.cpp
[ 19%] Compiling ==> thirdparty/bullet/src/BulletDynamics/ConstraintSolver/btNNCGConstraintSolver.cpp
[ 19%] Compiling ==> thirdparty/bullet/src/BulletDynamics/ConstraintSolver/btSliderConstraint.cpp
[ 19%] Compiling ==> thirdparty/bullet/src/BulletDynamics/ConstraintSolver/btSolve2LinearConstraint.cpp
[ 19%] Compiling ==> thirdparty/bullet/src/BulletDynamics/ConstraintSolver/btTypedConstraint.cpp
[ 19%] Compiling ==> thirdparty/bullet/src/BulletDynamics/ConstraintSolver/btUniversalConstraint.cpp
[ 19%] Compiling ==> thirdparty/bullet/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorld.cpp
[ 19%] Compiling ==> thirdparty/bullet/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorldMt.cpp
[ 19%] Compiling ==> thirdparty/bullet/src/BulletDynamics/Dynamics/btSimulationIslandManagerMt.cpp
[ 19%] Compiling ==> thirdparty/bullet/src/BulletDynamics/Dynamics/btRigidBody.cpp
[ 19%] Compiling ==> thirdparty/bullet/src/BulletDynamics/Dynamics/btSimpleDynamicsWorld.cpp
[ 19%] Compiling ==> thirdparty/bullet/src/BulletDynamics/Vehicle/btRaycastVehicle.cpp
[ 19%] Compiling ==> thirdparty/bullet/src/BulletDynamics/Vehicle/btWheelInfo.cpp
[ 19%] Compiling ==> thirdparty/bullet/src/BulletDynamics/Featherstone/btMultiBody.cpp
[ 20%] Compiling ==> thirdparty/bullet/src/BulletDynamics/Featherstone/btMultiBodyConstraintSolver.cpp
[ 20%] Compiling ==> thirdparty/bullet/src/BulletDynamics/Featherstone/btMultiBodyDynamicsWorld.cpp
[ 20%] Compiling ==> thirdparty/bullet/src/BulletDynamics/Featherstone/btMultiBodyJointLimitConstraint.cpp
[ 20%] Compiling ==> thirdparty/bullet/src/BulletDynamics/Featherstone/btMultiBodyConstraint.cpp
[ 20%] Compiling ==> thirdparty/bullet/src/BulletDynamics/Featherstone/btMultiBodyPoint2Point.cpp
[ 20%] Compiling ==> thirdparty/bullet/src/BulletDynamics/Featherstone/btMultiBodyFixedConstraint.cpp
[ 20%] Compiling ==> thirdparty/bullet/src/BulletDynamics/Featherstone/btMultiBodySliderConstraint.cpp
[ 20%] Compiling ==> thirdparty/bullet/src/BulletDynamics/Featherstone/btMultiBodyJointMotor.cpp
[ 20%] Compiling ==> thirdparty/bullet/src/BulletDynamics/Featherstone/btMultiBodyGearConstraint.cpp
[ 20%] Compiling ==> thirdparty/bullet/src/BulletDynamics/MLCPSolvers/btDantzigLCP.cpp
[ 20%] Compiling ==> thirdparty/bullet/src/BulletDynamics/MLCPSolvers/btMLCPSolver.cpp
[ 20%] Compiling ==> thirdparty/bullet/src/BulletDynamics/MLCPSolvers/btLemkeAlgorithm.cpp
[ 21%] Compiling ==> thirdparty/bullet/src/BulletInverseDynamics/IDMath.cpp
[ 21%] Compiling ==> thirdparty/bullet/src/BulletInverseDynamics/MultiBodyTree.cpp
[ 21%] Compiling ==> thirdparty/bullet/src/BulletInverseDynamics/details/MultiBodyTreeInitCache.cpp
[ 21%] Compiling ==> thirdparty/bullet/src/BulletInverseDynamics/details/MultiBodyTreeImpl.cpp
[ 21%] Compiling ==> thirdparty/bullet/src/BulletSoftBody/btSoftBody.cpp
[ 21%] Compiling ==> thirdparty/bullet/src/BulletSoftBody/btSoftBodyConcaveCollisionAlgorithm.cpp
[ 21%] Compiling ==> thirdparty/bullet/src/BulletSoftBody/btSoftBodyHelpers.cpp
[ 21%] Compiling ==> thirdparty/bullet/src/BulletSoftBody/btSoftBodyRigidBodyCollisionConfiguration.cpp
[ 21%] Compiling ==> thirdparty/bullet/src/BulletSoftBody/btSoftRigidCollisionAlgorithm.cpp
[ 22%] Compiling ==> thirdparty/bullet/src/BulletSoftBody/btSoftRigidDynamicsWorld.cpp
[ 22%] Compiling ==> thirdparty/bullet/src/BulletSoftBody/btSoftMultiBodyDynamicsWorld.cpp
[ 22%] Compiling ==> thirdparty/bullet/src/BulletSoftBody/btSoftSoftCollisionAlgorithm.cpp
[ 22%] Compiling ==> thirdparty/bullet/src/BulletSoftBody/btDefaultSoftBodySolver.cpp
[ 22%] Compiling ==> thirdparty/bullet/src/clew/clew.c
[ 22%] Compiling ==> thirdparty/bullet/src/LinearMath/btAlignedAllocator.cpp
[ 22%] Compiling ==> thirdparty/bullet/src/LinearMath/btConvexHull.cpp
[ 22%] Compiling ==> thirdparty/bullet/src/LinearMath/btConvexHullComputer.cpp
[ 22%] Compiling ==> thirdparty/bullet/src/LinearMath/btGeometryUtil.cpp
[ 22%] Compiling ==> thirdparty/bullet/src/LinearMath/btPolarDecomposition.cpp
[ 22%] Compiling ==> thirdparty/bullet/src/LinearMath/btQuickprof.cpp
[ 22%] Compiling ==> thirdparty/bullet/src/LinearMath/btSerializer.cpp
[ 22%] Compiling ==> thirdparty/bullet/src/LinearMath/btSerializer64.cpp
[ 22%] Compiling ==> thirdparty/bullet/src/LinearMath/btThreads.cpp
[ 22%] Compiling ==> thirdparty/bullet/src/LinearMath/btVector3.cpp
[ 22%] Compiling ==> modules/bullet/btRayShape.cpp
[ 23%] Compiling ==> modules/bullet/rigid_body_bullet.cpp
[ 23%] Compiling ==> modules/bullet/hinge_joint_bullet.cpp
[ 23%] Compiling ==> modules/bullet/bullet_physics_server.cpp
[ 23%] Compiling ==> modules/bullet/cone_twist_joint_bullet.cpp
[ 23%] Compiling ==> modules/bullet/godot_ray_world_algorithm.cpp
[ 23%] Compiling ==> modules/bullet/area_bullet.cpp
[ 23%] Compiling ==> modules/bullet/constraint_bullet.cpp
[ 23%] Compiling ==> modules/bullet/pin_joint_bullet.cpp
[ 23%] Compiling ==> modules/bullet/generic_6dof_joint_bullet.cpp
[ 23%] Compiling ==> modules/bullet/collision_object_bullet.cpp
[ 23%] Compiling ==> modules/bullet/godot_result_callbacks.cpp
[ 24%] Compiling ==> modules/bullet/shape_owner_bullet.cpp
[ 24%] Compiling ==> modules/bullet/godot_collision_configuration.cpp
[ 24%] Compiling ==> modules/bullet/slider_joint_bullet.cpp
[ 24%] Compiling ==> modules/bullet/bullet_types_converter.cpp
[ 24%] Compiling ==> modules/bullet/shape_bullet.cpp
[ 24%] Compiling ==> modules/bullet/godot_collision_dispatcher.cpp
[ 24%] Compiling ==> modules/bullet/soft_body_bullet.cpp
[ 24%] Compiling ==> modules/bullet/register_types.cpp
[ 24%] Compiling ==> modules/bullet/joint_bullet.cpp
[ 24%] Compiling ==> modules/bullet/space_bullet.cpp
modules/bullet/space_bullet.cpp:121:28: error: cannot use dynamic_cast with
      -fno-rtti
        btConvexShape *btConvex = dynamic_cast<btConvexShape *>(shape->c...
                                  ^
modules/bullet/space_bullet.cpp:153:35: error: cannot use dynamic_cast with
      -fno-rtti
        btConvexShape *bt_convex_shape = dynamic_cast<btConvexShape *>(s...
                                         ^
modules/bullet/space_bullet.cpp:203:28: error: cannot use dynamic_cast with
      -fno-rtti
        btConvexShape *btConvex = dynamic_cast<btConvexShape *>(shape->c...
                                  ^
modules/bullet/space_bullet.cpp:237:28: error: cannot use dynamic_cast with
      -fno-rtti
        btConvexShape *btConvex = dynamic_cast<btConvexShape *>(shape->c...
                                  ^
modules/bullet/space_bullet.cpp:927:37: error: cannot use dynamic_cast with
      -fno-rtti
                        btConvexShape *convex_shape_test(dynamic_cast<bt...
                                                         ^
5 errors generated.
ERROR:root:compiler frontend failed to generate LLVM bitcode, halting
scons: *** [modules/bullet/space_bullet.javascript.opt.webassembly.bc] Error 1
scons: building terminated because of errors.

Am I doing something wrong (but it's not the first time I do this), or is there a bug with the fresh add of Bullet ?

Thanks for your work !

mrgreywater commented 6 years ago

Those dynamic_casts should probably be replaced with static_casts. ref: #12641

leonkrause commented 6 years ago

@AndreaCatania Godot is built without runtime type information (-fno-rtti) on some platforms, can you solve this without dynamic_cast?

AndreaCatania commented 6 years ago

I'll check if it's possible. I let you know

On Nov 15, 2017 11:07 PM, "Leon Krause" notifications@github.com wrote:

@AndreaCatania https://github.com/andreacatania Godot is built without runtime type information (-fno-rtti) on some platforms, can you solve this without dynamic_cast?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/godotengine/godot/issues/12720#issuecomment-344744790, or mute the thread https://github.com/notifications/unsubscribe-auth/AH9MRyEwd_2b-n9caba8HHZnBuHxL08Hks5s22C3gaJpZM4QUdny .

neikeq commented 6 years ago

I think you could use btCollisionShape::isConvex().

AndreaCatania commented 6 years ago

Fixed: https://github.com/godotengine/godot/pull/13046

nylnook commented 6 years ago

Thanks a lot for the fix, but I'm sorry there is still work to do... : #13078

nylnook commented 6 years ago

Sorry, this is really fixed... thanks everyone !