Internal compiler error: Segmentation fault

Bug #1788161 reported by Christoph Tieben
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
odb (Ubuntu)
New
Undecided
Unassigned

Bug Description

By the try to compile something with the odb gcc plugin you will receive an internal compiler error.

For example:
[ 0%] Generating ../odb_gen/UniversalTransverseMercatorCS_odb.cpp
*** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins.
Event | Plugins
PLUGIN_START_UNIT | odb
PLUGIN_PRAGMAS | odb
PLUGIN_OVERRIDE_GATE | odb
during GIMPLE pass: *warn_unused_result
In file included from ../include/sempr/storage/DBObject.hpp:9,
                 from ../include/sempr/entity/Entity.hpp:11,
                 from ../include/sempr/entity/spatial/reference/SpatialReference.hpp:5,
                 from ../include/sempr/entity/spatial/reference/GlobalCS.hpp:4,
                 from ../include/sempr/entity/spatial/reference/ProjectionCS.hpp:4,
                 from /home/ctieben/Development/sempr/src/../include/sempr/entity/spatial/reference/UniversalTransverseMercatorCS.hpp:4:
../include/sempr/storage/History.hpp: In function ‘void __static_initialization_and_destruction_0(int, int)’:
../include/sempr/storage/History.hpp:73:33: internal compiler error: Segmentation fault
 typedef History<unsigned long> ULongHistory;
                                 ^~~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-8/README.Bugs> for instructions.
make[2]: *** [src/CMakeFiles/sempr_core.dir/build.make:222: odb_gen/UniversalTransverseMercatorCS_odb.cpp] Error 1
make[1]: *** [CMakeFiles/Makefile2:86: src/CMakeFiles/sempr_core.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

Sources: https://github.com/sempr-tk/sempr

System: Description:
Ubuntu Cosmic Cuttlefish (development branch)
Release: 18.10

odb:
  Installed: 2.4.0-8
  Candidate: 2.4.0-8
  Version table:
 *** 2.4.0-8 500
        500 http://de.archive.ubuntu.com/ubuntu cosmic/universe amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Christoph Tieben (c-tieben) wrote :

On Ubuntu 18.04 the odb package still contains the db pragma bug.
See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=889664

So currently only the odb package for xenial is fine.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.