Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Failed at Centos 7.9.2009 #77

Open
superbchetan opened this issue Jul 6, 2023 · 5 comments
Open

Build Failed at Centos 7.9.2009 #77

superbchetan opened this issue Jul 6, 2023 · 5 comments

Comments

@superbchetan
Copy link

On CentOS Linux release 7.9.2009 (Core). Cloned the repo (HEAD is at 144fb52).

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?

@hanfeng0114
Copy link
Contributor

Follow the steps to reigister eclipse account and join openhw mattermost:
https://www.openhwgroup.org/register/
https://mattermost.openhwgroup.org/all-users/channels/vtg-force-riscv#

Please join mattermost, we can chat there more timely.

@hanfeng0114
Copy link
Contributor

We tried centos linux release 7.8.2003 and gcc 7.4.0.
There is no resources to restore your scenario.
Hope we can discuss it in mattermost.

@superbchetan
Copy link
Author

Thank you @hanfeng0114. I have joined the mattermost channel.

@hanfeng0114
Copy link
Contributor

Please review the suggestions of issue #76 .
If not fixed, please replay this issue with the cmake build error message.
Then we can make a meeting about it by mattermost.

@shirsathharshal70
Copy link

https://stackoverflow.com/questions/21198907/how-can-i-remove-the-warning-that-my-iterator-has-a-non-virtual-destructor-when
I was able to bypass it by commenting utils/make/Makefile.common L49
This was adding the compilation command with the -Weffc++ option. But unable to compile successfully. Got some linker errors laters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants