CentOS 7 cannot build Octave 6

Problem description

Bug Entry: GNU Octave - Bugs: bug #60749, Vanilla CentOS 7 cannot build... [Savannah]

My system

Any idea where to look at?

One idea would be to look at what the build error message says.

centos-7 comes with gcc-4.8.5 which is not fully c++11. Try clang-5 instead that should be available at:

Apparently you can also get gcc-7 from the same add-on repos:

I’ll check it out and get back to you.

If you use gcc-7 you need to activate those tools first:

. /opt/rh/devtoolset-7/enable

Notice that you also have other toolset’s available: 8, 9 and 10 with the corresponding gcc releases. The same instructions apply above by replacing 7 with the appropriated version number.