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:
https://centos.pkgs.org/7/centos-sclo-rh-x86_64/llvm-toolset-7-clang-5.0.1-4.el7.x86_64.rpm.html

Apparently you can also get gcc-7 from the same add-on repos:
https://centos.pkgs.org/7/centos-sclo-rh-x86_64/devtoolset-7-gcc-c++-7.3.1-5.16.el7.x86_64.rpm.html

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.