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

Error gcc unsupported when run make #173

Open
vanchung1995 opened this issue Aug 20, 2020 · 3 comments
Open

Error gcc unsupported when run make #173

vanchung1995 opened this issue Aug 20, 2020 · 3 comments

Comments

@vanchung1995
Copy link

I ran these commands and it raised this error:

git clone https://github.com/SeanNaren/warp-ctc.git
cd warp-ctc
mkdir build; cd build
cmake ..
make

Screenshot from 2020-08-20 10-10-55

@ghsticker
Copy link

you solved this problem?

@ritwikmishra
Copy link

ritwikmishra commented Nov 2, 2020

I was facing the same problem. I didn't want to uninstall gcc because other projects might need it.

Solution:
Install gcc-5 (technically it should work on gcc-6 also but I didn't try). So install gcc-5.

sudo apt install g++-5
sudo apt install gcc-5

Do not update the alternatives. Let gcc-5 live peacefully with the current gcc version.

Then instead of cmake .. do this cmake -D CMAKE_C_COMPILER:string=gcc-5 -D CMAKE_CXX_COMPILER=g++-5 ../

Simple

It worked for me.

UPDATE: when the following error came
Need to add -std=c++11 to CMAKE_CXX_FLAGS

I just replaced all the std=c++14 in CMakeLists.txt file with std=c++11

@KiriKoppelgaard
Copy link

I solve the issue by defining a previous version of gcc, like this: cmake .. -DCMAKE_C_COMPILER=gcc-7

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

4 participants