-
-
Notifications
You must be signed in to change notification settings - Fork 908
Description
Is your feature request related to a problem? Please describe.
btop fails to compile on Red Hat 7.9.
Describe the solution you'd like
I would like to be able to compile btop on Red Hat 7.9.
Describe alternatives you've considered
When I try to compile btop on Red Hat 7, I get an error:
[btop]$ make
PLATFORM ?| Linux
ARCH ?| x86_64
GPU_SUPPORT :| true
CXX ?| g++ (7.3.1)
CC ?| cc (7.3.1)
THREADS :| 2
REQFLAGS !| -std=c++23
WARNFLAGS :| -Wall -Wextra -pedantic
OPTFLAGS :| -O2
LDCXXFLAGS :| -pthread -DFMT_HEADER_ONLY -D_GLIBCXX_ASSERTIONS -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_DEBUG -D_FILE_OFFSET_BITS=64 -fexceptions -fstack-clash-protection -fstack-protector -DGPU_SUPPORT
CXXFLAGS +|
LDFLAGS +|
Building btop++ (v1.4.6) Linux x86_64
Command 'lowdown' not found: skipping generating man page btop.1
Compiling src/btop.cpp
g++: error: unrecognized command line option ‘-std=c++23’; did you mean ‘-std=c++03’?
make: *** [Makefile:397: obj/btop.o] Error 1
Additional context
I was able to install devtoolset-7 on Red Hat 7, but I'm guessing that is not enough.
Installed:
devtoolset-7-gcc-c++.x86_64 0:7.3.1-5.16.el7 devtoolset-7-make.x86_64 1:4.2.1-3.el7
Dependency Installed:
audit-libs-python.x86_64 0:2.8.5-4.el7 checkpolicy.x86_64 0:2.5-8.el7
devtoolset-7-binutils.x86_64 0:2.28-11.el7 devtoolset-7-gcc.x86_64 0:7.3.1-5.16.el7
devtoolset-7-libstdc++-devel.x86_64 0:7.3.1-5.16.el7 devtoolset-7-runtime.x86_64 0:7.1-4.el7
libsemanage-python.x86_64 0:2.5-14.el7 policycoreutils-python.x86_64 0:2.5-34.el7
python-IPy.noarch 0:0.75-6.el7 scl-utils.x86_64 0:20130529-19.el7
setools-libs.x86_64 0:3.3.8-4.el7
Complete!
[rwurttem@rh7test1 btop]$ scl enable devtoolset-7 bash
[rwurttem@rh7test1 btop]$ gcc --version
gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)