overte-org / overte

Overte open source virtual worlds platform.
https://overte.org/
Other
128 stars 47 forks source link

internal compiler errors on Ubuntu 24.04 #965

Closed JulianGro closed 1 month ago

JulianGro commented 1 month ago
FAILED: src/BulletCollision/CMakeFiles/BulletCollision.dir/CollisionShapes/btConvexTriangleMeshShape.o 
/usr/bin/c++ -DBT_USE_EGL -DNO_OPENGL3 -DUSE_GRAPHICAL_BENCHMARK -I/root/overte-files/vcpkg/3e9e2477-release/buildtrees/bullet3/src/392524cc77-dc9ca24e83.clean/src -O3 -fPIC -ggdb -msse3 -falign-functions  -fPIC -O3 -DNDEBUG -MD -MT src/BulletCollision/CMakeFiles/BulletCollision.dir/CollisionShapes/btConvexTriangleMeshShape.o -MF src/BulletCollision/CMakeFiles/BulletCollision.dir/CollisionShapes/btConvexTriangleMeshShape.o.d -o src/BulletCollision/CMakeFiles/BulletCollision.dir/CollisionShapes/btConvexTriangleMeshShape.o -c /root/overte-files/vcpkg/3e9e2477-release/buildtrees/bullet3/src/392524cc77-dc9ca24e83.clean/src/BulletCollision/CollisionShapes/btConvexTriangleMeshShape.cpp
during IPA pass: inline
/root/overte-files/vcpkg/3e9e2477-release/buildtrees/bullet3/src/392524cc77-dc9ca24e83.clean/src/BulletCollision/CollisionShapes/btConvexTriangleMeshShape.cpp: In member function ‘void btConvexTriangleMeshShape::calculatePrincipalAxisTransform(btTransform&, btVector3&, btScalar&) const’:
/root/overte-files/vcpkg/3e9e2477-release/buildtrees/bullet3/src/392524cc77-dc9ca24e83.clean/src/BulletCollision/CollisionShapes/btConvexTriangleMeshShape.cpp:280:22: internal compiler error: Segmentation fault
  280 |         i.diagonalize(principal.getBasis(), btScalar(0.00001), 20);
      |         ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0x1c3925a internal_error(char const*, ...)
    ???:0
0x1c6dfe2 get_combined_adhoc_loc(line_maps*, unsigned int, source_range, void*, unsigned int)
    ???:0
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-13/README.Bugs> for instructions.

"internal compiler error" suggest to me that the compiler itself crashed instead of there being an issue with the bullet code?

The issue does not occur on Ubuntu 24.04 aarch64.

JulianGro commented 1 month ago

Similar error when building nodejs:

during GIMPLE pass: copyprop
../deps/icu-small/source/i18n/timezone.cpp: In static member function ‘static icu_74::TZEnumeration* icu_74::TZEnumeration::create(USystemTimeZoneType, const char*, const int32_t*, UErrorCode&)’:
../deps/icu-small/source/i18n/timezone.cpp:825:27: internal compiler error: Segmentation fault
  825 |     static TZEnumeration* create(USystemTimeZoneType type, const char* region, const int32_t* rawOffset, UErrorCode& ec) {
      |                           ^~~~~~
0x1c3925a internal_error(char const*, ...)
    ???:0
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-13/README.Bugs> for instructions.

So I guess the GCC version that comes with Ubuntu 24.04 is just bugged.

JulianGro commented 1 month ago

I am closing this for now, since it works fine on GitHub Actions.