SeanNaren / warp-ctc

Pytorch Bindings for warp-ctc
Apache License 2.0
756 stars 271 forks source link

Error while installing warp-ctc #150

Open kamathhrishi opened 4 years ago

kamathhrishi commented 4 years ago

I tried to install it on Mac OS with the command python setup.py install and I got the following errors.

/Users/hrishikesh/anaconda3/envs/syft/lib/python3.6/site-packages/torch/utils/cpp_extension.py:171: UserWarning: 

                               !! WARNING !!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Your compiler (g++) is not compatible with the compiler Pytorch was
built with for this platform, which is clang++ on darwin. Please
use clang++ to to compile your extension. Alternatively, you may
compile PyTorch from source using g++, and then you can also use
g++ to compile your extension.

See https://github.com/pytorch/pytorch/blob/master/CONTRIBUTING.md for help
with compiling PyTorch from source.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

                              !! WARNING !!

  platform=sys.platform))
building 'warpctc_pytorch._warp_ctc' extension
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/hrishikesh/anaconda3/envs/syft/include -arch x86_64 -I/Users/hrishikesh/anaconda3/envs/syft/include -arch x86_64 -I/Users/hrishikesh/Hrishikesh/Projects/Speech_Recognition/deepspeech.pytorch/warp-ctc/include -I/Users/hrishikesh/anaconda3/envs/syft/lib/python3.6/site-packages/torch/include -I/Users/hrishikesh/anaconda3/envs/syft/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/Users/hrishikesh/anaconda3/envs/syft/lib/python3.6/site-packages/torch/include/TH -I/Users/hrishikesh/anaconda3/envs/syft/lib/python3.6/site-packages/torch/include/THC -I/Users/hrishikesh/anaconda3/envs/syft/include/python3.6m -c src/binding.cpp -o build/temp.macosx-10.7-x86_64-3.6/src/binding.o -std=c++11 -fPIC -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_warp_ctc -D_GLIBCXX_USE_CXX11_ABI=0
src/binding.cpp:1:10: fatal error: 'iostream' file not found
#include <iostream>
         ^~~~~~~~~~
1 error generated.
error: command 'gcc' failed with exit status 1