Upgrade G++ to which minimum version for Centos 6 compatibility

435 Views Asked by At

Our large legacy app compiles with g++ 4.4.7 within 32-bit Centos-6.

However, I'd like to use Address Sanitizer to trouble shoot a problem with glibc corruption; MALLOC_CHECK_ not working but g++ 4.4.7 doesn't support Address Sanitizer.

I installed devtoolset-2 to get g++ v4.8.2 20140120 (Red Hat 4.8.2-15) but now the program doesn't compile because exception_ptr.h Does not support exception propagation

So thinking maybe a newer version of g++ will work. I can't find any repo to install devtoolset-3 on 32-bit Centos. (Is there one?)

Otherwise, if I recompile g++ from source, which version to choose? The GCC Home Page lists all the way to v8.

Would compiling v8 break the other apps on the box (because of ABI incompatibiilty? - which I don't understand fully)? Or best to pick the highest v4.x version?

0

There are 0 best solutions below