Skip to content

Build Failed at Centos 7.9.2009

On CentOS Linux release 7.9.2009 (Core). Cloned the repo (HEAD is at https://github.com/openhwgroup/force-riscv/commit/144fb52a99cde89e73552f88c872c05d2e90b603).

export FORCE_CC=/usr/bin/g++
export FORCE_PYTHON_VER=3.6
export FORCE_PYTHON_LIB=/apps/gcc/8.2.0/libexec/gcc/x86_64-pc-linux-gnu
export FORCE_PYTHON_INC=/usr/include/python3.6m
make

Getting following error

/usr/bin/g++ -c -Wall -std=c++11 -gdwarf-3 -m64 -Werror -O2 -Weffc++ -fvisibility=hidden -D 'ARCH_ENUM_HEADER="EnumsRISCV.h"' -I./inc -I../base/inc -I../3rd_party/inc -I/usr/include/python3.6m -o make_area/obj/TopLevelResources.o ../base/src/TopLevelResources.cc
../base/src/TopLevelResources.cc:50:10: error: base class ‘struct option::Arg’ has a non-virtual destructor [-Werror=effc++]
   struct Arg: public option::Arg
          ^
cc1plus: all warnings being treated as errors
make[3]: *** [make_area/obj/TopLevelResources.o] Error 1

Can someone please help to fix this error?