warp-ctc icon indicating copy to clipboard operation
warp-ctc copied to clipboard

fail in python setup.py insstall

Open Pythonisfun opened this issue 5 years ago • 2 comments

generating build/warpctc_pytorch/_warp_ctc/__warp_ctc.c (already up-to-date) not modified: 'build/warpctc_pytorch/_warp_ctc/__warp_ctc.c' running install running bdist_egg running egg_info writing warpctc_pytorch.egg-info/PKG-INFO writing top-level names to warpctc_pytorch.egg-info/top_level.txt writing dependency_links to warpctc_pytorch.egg-info/dependency_links.txt reading manifest file 'warpctc_pytorch.egg-info/SOURCES.txt' writing manifest file 'warpctc_pytorch.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py copying warpctc_pytorch/_warp_ctc/init.py -> build/lib.linux-x86_64-2.7/warpctc_pytorch/_warp_ctc running build_ext building 'warpctc_pytorch._warp_ctc.__warp_ctc' extension gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -std=c99 -fPIC -I/usr/lib64/python2.7/site-packages/torch/utils/ffi/../../lib/include -I/usr/lib64/python2.7/site-packages/torch/utils/ffi/../../lib/include/TH -I/usr/lib64/python2.7/site-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -I/home/CAD409/fang/warp-ctc-0.4.1/include -I/usr/include/python2.7 -c build/warpctc_pytorch/_warp_ctc/__warp_ctc.c -o build/temp.linux-x86_64-2.7/build/warpctc_pytorch/_warp_ctc/__warp_ctc.o -std=c99 -std=c++11 -fPIC -std=c99 -DWARPCTC_ENABLE_GPU cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default] gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -std=c99 -fPIC -I/usr/lib64/python2.7/site-packages/torch/utils/ffi/../../lib/include -I/usr/lib64/python2.7/site-packages/torch/utils/ffi/../../lib/include/TH -I/usr/lib64/python2.7/site-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -I/home/CAD409/fang/warp-ctc-0.4.1/include -I/usr/include/python2.7 -c /home/CAD409/fang/warp-ctc-0.4.1/pytorch_binding/src/binding.cpp -o build/temp.linux-x86_64-2.7/home/CAD409/fang/warp-ctc-0.4.1/pytorch_binding/src/binding.o -std=c99 -std=c++11 -fPIC -std=c99 -DWARPCTC_ENABLE_GPU cc1plus: warning: command line option ‘-std=c99’ is valid for C/ObjC but not for C++ [enabled by default] cc1plus: warning: command line option ‘-std=c99’ is valid for C/ObjC but not for C++ [enabled by default] cc1plus: warning: command line option ‘-std=c99’ is valid for C/ObjC but not for C++ [enabled by default] In file included from /usr/lib64/python2.7/site-packages/torch/utils/ffi/../../lib/include/THC/THC.h:4:0, from /home/CAD409/fang/warp-ctc-0.4.1/pytorch_binding/src/binding.cpp:9: /usr/lib64/python2.7/site-packages/torch/utils/ffi/../../lib/include/THC/THCGeneral.h:12:18: fatal error: cuda.h: No such file or directory #include "cuda.h" ^ compilation terminated. error: command 'gcc' failed with exit status 1 How can I solve this problem??thanks a lot

Pythonisfun avatar Mar 12 '19 15:03 Pythonisfun

I have the same problem. Have you solved it?

generating build/warpctc_pytorch/_warp_ctc/__warp_ctc.c (already up-to-date) not modified: 'build/warpctc_pytorch/_warp_ctc/__warp_ctc.c' running install running bdist_egg running egg_info writing warpctc_pytorch.egg-info/PKG-INFO writing top-level names to warpctc_pytorch.egg-info/top_level.txt writing dependency_links to warpctc_pytorch.egg-info/dependency_links.txt reading manifest file 'warpctc_pytorch.egg-info/SOURCES.txt' writing manifest file 'warpctc_pytorch.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py copying warpctc_pytorch/_warp_ctc/init.py -> build/lib.linux-x86_64-2.7/warpctc_pytorch/_warp_ctc running build_ext building 'warpctc_pytorch._warp_ctc.__warp_ctc' extension gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -std=c99 -fPIC -I/usr/lib64/python2.7/site-packages/torch/utils/ffi/../../lib/include -I/usr/lib64/python2.7/site-packages/torch/utils/ffi/../../lib/include/TH -I/usr/lib64/python2.7/site-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -I/home/CAD409/fang/warp-ctc-0.4.1/include -I/usr/include/python2.7 -c build/warpctc_pytorch/_warp_ctc/__warp_ctc.c -o build/temp.linux-x86_64-2.7/build/warpctc_pytorch/_warp_ctc/__warp_ctc.o -std=c99 -std=c++11 -fPIC -std=c99 -DWARPCTC_ENABLE_GPU cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default] gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -std=c99 -fPIC -I/usr/lib64/python2.7/site-packages/torch/utils/ffi/../../lib/include -I/usr/lib64/python2.7/site-packages/torch/utils/ffi/../../lib/include/TH -I/usr/lib64/python2.7/site-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -I/home/CAD409/fang/warp-ctc-0.4.1/include -I/usr/include/python2.7 -c /home/CAD409/fang/warp-ctc-0.4.1/pytorch_binding/src/binding.cpp -o build/temp.linux-x86_64-2.7/home/CAD409/fang/warp-ctc-0.4.1/pytorch_binding/src/binding.o -std=c99 -std=c++11 -fPIC -std=c99 -DWARPCTC_ENABLE_GPU cc1plus: warning: command line option ‘-std=c99’ is valid for C/ObjC but not for C++ [enabled by default] cc1plus: warning: command line option ‘-std=c99’ is valid for C/ObjC but not for C++ [enabled by default] cc1plus: warning: command line option ‘-std=c99’ is valid for C/ObjC but not for C++ [enabled by default] In file included from /usr/lib64/python2.7/site-packages/torch/utils/ffi/../../lib/include/THC/THC.h:4:0, from /home/CAD409/fang/warp-ctc-0.4.1/pytorch_binding/src/binding.cpp:9: /usr/lib64/python2.7/site-packages/torch/utils/ffi/../../lib/include/THC/THCGeneral.h:12:18: fatal error: cuda.h: No such file or directory #include "cuda.h" ^ compilation terminated. error: command 'gcc' failed with exit status 1 How can I solve this problem??thanks a lot

I have the same problem. Have you solved it?

yanguuu avatar May 13 '19 14:05 yanguuu

The problem is conda.

liuzhuang1024 avatar Jun 05 '19 13:06 liuzhuang1024