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

building error #91

Open
jinggaizi opened this issue May 27, 2021 · 1 comment
Open

building error #91

jinggaizi opened this issue May 27, 2021 · 1 comment

Comments

@jinggaizi
Copy link

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
Copy link

ZhangAustin commented Nov 8, 2021

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" ..

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

2 participants