HawkAaron / warp-transducer

A fast parallel implementation of RNN Transducer.
Apache License 2.0
307 stars 124 forks source link

building error #91

Open jinggaizi opened 3 years ago

jinggaizi commented 3 years ago

which version of gcc/cmake should i choose when i build warp-transducer, cmake is fine but occur error when make c++/7.3.0/type_traits(177): error: "conjunction_v" is not a function or static data member c++/7.3.0/type_traits(177): error: "constexpr" is not valid here c++/7.3.0/type_traits(180): error: "disjunction_v" is not a function or static data member c++/7.3.0/type_traits(180): error: "constexpr" is not valid here c++/7.3.0/type_traits(183): error: "negation_v" is not a function or static data member c++/7.3.0/type_traits(183): error: "constexpr" is not valid here c++/7.3.0/type_traits(2656): error: "is_swappable_v" is not a function or static data member ...... Error limit reached. 100 errors detected in the compilation of "/tmp/tmpxft_00009036_00000000-14_rnnt_entrypoint.compute_75.cpp1.ii". Compilation terminated. CMake Error at warprnnt_generated_rnnt_entrypoint.cu.o.cmake:264 (message): Error generating file warp-transducer/build/CMakeFiles/warprnnt.dir/src/./warprnnt_generated_rnnt_entrypoint.cu.o

make[2]: [CMakeFiles/warprnnt.dir/src/warprnnt_generated_rnnt_entrypoint.cu.o] Error 1 make[1]: [CMakeFiles/warprnnt.dir/all] Error 2

i change some version of cmake and version ,but it didn't work

ZhangAustin commented 3 years ago

I had the same error with gcc-9.

specify the gcc-8 and cuda path solved my problem:

cmake -D CMAKE_C_COMPILER=/usr/bin/gcc-8 -D CMAKE_CXX_COMPILER=/usr/bin/g++-8 -D CMAKE_CXX_FLAGS="-I /usr/local/cuda/targets/x86_64-linux/include/ -L /usr/lib" -D CMAKE_PREFIX_PATH="/usr/local/cuda" ..