Try to build the latest pre-release[1] of the ODB compiler from source so that it uses the system GCC. See the INSTALL file inside for details on how to do it. [1] https://codesynthesis.com/~boris/tmp/odb/pre-release/b.3/