I'm working on a RHEL6 system with a software project, that requires C++11. This requirement forces me forgo the base compiler included with the OS (gcc-4.4.7) and use a manually-built one (gcc-8.2.0).
Things work except for valgrind and gdb. Neither tool reports debugging information. gdb can neither step through the code, nor print variables. valgrind, likewise, detects errors but is unable to give more precise information.
I tried recompiling with
-g -ggdb3 -gdwarf-2 -- to no avail...