SeanNaren / warp-ctc

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

error: command 'gcc' failed with exit status 1 #137

Closed jainszhang closed 5 years ago

jainszhang commented 5 years ago

building 'warpctc_pytorch._warp_ctc' extension gcc -pthread -B /home/jains/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jains/桌面/warp-ctc/include -I/home/jains/anacond/lib/python3.6/site-packages/torch/lib/include -I/home/jains/anaconda3/lib/python3.6/site-packages/torch/lib/include/torch/csrc/api/include -I/home/jains/anaconda3/lib/python3.6/site-packages/torch/lib/include/TH -I/home/jains/anaconda3/lib/python3.6/site-packages/torch/lib/include/THC -I:/usr/local/cuda-9.0/include -I/home/jains/anaconda3/include/python3.6m -c src/binding.cpp -o build/temp.linux-x86_64-3.6/src/binding.o -std=c++11 -fPIC -DWARPCTC_ENABLE_GPU -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_warp_ctc -D_GLIBCXX_USE_CXX11_ABI=0 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from /home/jains/anaconda3/lib/python3.6/site-packages/torch/lib/include/ATen/cuda/CUDAContext.h:5:0, from src/binding.cpp:9: /home/jains/anaconda3/lib/python3.6/site-packages/torch/lib/include/ATen/cuda/CUDAStream.h:6:30: fatal error: cuda_runtime_api.h: 没有那个文件或目录 compilation terminated. error: command 'gcc' failed with exit status 1

ok, my os is ubuntu 16, and my pytorch version is 1.0.1, is this error related to Pytorch Version? thanks...

jainszhang commented 5 years ago

I found pytorch 1.v contains CTCloss, thank you