sampepose / flownet2-tf

FlowNet 2.0: Evolution of Optical Flow Estimation with Deep Networks
MIT License
403 stars 195 forks source link

nvcc fatal : Value '' is not defined for option 'std' #78

Open PoojaGhaywate opened 5 years ago

PoojaGhaywate commented 5 years ago

Env: cuda: 8.0 cudnn: 5.1 tensorflow: 1.12.0 Ubuntu 14.04

I followed the instructions in Wxjwjj's post. Still get errors.

/usr/local/cuda/bin/nvcc --expt-relaxed-constexpr -g -std= -DNDEBUG c++11 -Ipython -c "import tensorflow; print(tensorflow.sysconfig.get_include())" -I"/usr/local/cuda/include" -DGOOGLE_CUDA=1 -D_MWAITXINTRIN_H_INCLUDED -D_FORCE_INLINES -D__STRICT_ANSI__ -D_GLIBCXX_USE_CXX11_ABI=0 -c src/ops/preprocessing/kernels/data_augmentation.cu.cc -x cu -Xcompiler -fPIC -o src/ops/build/data_augmentation.o nvcc fatal : Value '' is not defined for option 'std' make: *** [preprocessing] Error 1

How to solve this?

Iamanorange commented 5 years ago

Do not put -DNDEBUG inside -std=c++11.

PoojaGhaywate commented 5 years ago

Thank you @lamanorange Can you just help me about where to put -DNDBUG in CFLAGS command line

Iamanorange commented 5 years ago

Anywhere. Just do NOT put one flag insider another flag.

PoojaGhaywate commented 5 years ago

when I put at the end of CFLAGS I got this error

oesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(100): error: name followed by "::" must be a class or namespace name bash: syntax error near unexpected token 100' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(101): error: expected an identifier bash: syntax error near unexpected token101' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(101): error: expected a ";" bash: syntax error near unexpected token 101' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(103): error: expected a declaration bash: syntax error near unexpected token103' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(105): error: TTypes is not a template bash: syntax error near unexpected token 105' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(108): error: name followed by "::" must be a class or namespace name bash: syntax error near unexpected token108' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(125): warning: parsing restarts here after previous syntax error bash: syntax error near unexpected token 125' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(125): error: expected a ";" bash: syntax error near unexpected token125' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/c++/4.8/bits/stringfwd.h(68): error: basic_string is not a template bash: syntax error near unexpected token 68' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/c++/4.8/bits/stringfwd.h(74): error: char_traits is not a template bash: syntax error near unexpected token74' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/c++/4.8/bits/stringfwd.h(75): error: char_traits is not a template bash: syntax error near unexpected token 75' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/c++/4.8/bits/stringfwd.h(78): error: basic_string is not a template bash: syntax error near unexpected token78' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/c++/4.8/bits/stringfwd.h(81): error: basic_string is not a template bash: syntax error near unexpected token 81' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/c++/4.8/bits/stringfwd.h(87): error: expected a declaration bash: syntax error near unexpected token87' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/wchar.h(353): error: identifier "wint_t" is undefined bash: syntax error near unexpected token 353' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/wchar.h(357): error: identifier "wint_t" is undefined bash: syntax error near unexpected token357' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/wchar.h(745): error: identifier "wint_t" is undefined bash: syntax error near unexpected token 745' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/wchar.h(746): error: identifier "wint_t" is undefined bash: syntax error near unexpected token746' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/wchar.h(752): error: identifier "wint_t" is undefined bash: syntax error near unexpected token 752' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/wchar.h(759): error: identifier "wint_t" is undefined bash: syntax error near unexpected token759' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/wchar.h(760): error: identifier "wint_t" is undefined bash: syntax error near unexpected token 760' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/wchar.h(766): error: identifier "wint_t" is undefined bash: syntax error near unexpected token766' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/wchar.h(789): error: identifier "wint_t" is undefined bash: syntax error near unexpected token 789' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/wchar.h(789): error: identifier "wint_t" is undefined bash: syntax error near unexpected token789' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/wchar.h(801): error: identifier "wint_t" is undefined bash: syntax error near unexpected token 801' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/wchar.h(802): error: identifier "wint_t" is undefined bash: syntax error near unexpected token802' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/wchar.h(810): error: identifier "wint_t" is undefined bash: syntax error near unexpected token 810' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/wchar.h(818): error: identifier "wint_t" is undefined bash: syntax error near unexpected token818' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/wchar.h(827): error: identifier "wint_t" is undefined bash: syntax error near unexpected token 827' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/wchar.h(828): error: identifier "wint_t" is undefined bash: syntax error near unexpected token828' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/c++/4.8/cwchar(139): error: the global scope has no "wint_t" bash: syntax error near unexpected token 139' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/c++/4.8/iosfwd(76): error: char_traits is not a template bash: syntax error near unexpected token76' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/c++/4.8/iosfwd(79): error: char_traits is not a template bash: syntax error near unexpected token 79' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/c++/4.8/iosfwd(82): error: char_traits is not a template bash: syntax error near unexpected token82' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/c++/4.8/iosfwd(85): error: char_traits is not a template bash: syntax error near unexpected token 85' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/c++/4.8/iosfwd(88): error: char_traits is not a template bash: syntax error near unexpected token88' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/c++/4.8/iosfwd(91): error: char_traits is not a template bash: syntax error near unexpected token 91' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/c++/4.8/iosfwd(92): error: allocator is not a template bash: syntax error near unexpected token92' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/c++/4.8/iosfwd(95): error: char_traits is not a template bash: syntax error near unexpected token 95' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ /usr/include/c++/4.8/iosfwd(96): error: allocator is not a template bash: syntax error near unexpected token96' coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ Error limit reached. Error: command not found coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ 100 errors detected in the compilation of "/tmp/tmpxft_00001307_00000000-7_data_augmentation.cu.cpp1.ii". 100: command not found coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ Compilation terminated. Compilation: command not found coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ make: *** [preprocessing] Error 4 No command 'make:' found, did you mean: Command 'makeg' from package 'xutils-dev' (main) Command 'make' from package 'make' (main) make:: command not found coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ clear

coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ make all /usr/local/cuda/bin/nvcc --expt-relaxed-constexpr -g -std=c++11 -Ipython -c "import tensorflow; print(tensorflow.sysconfig.get_include())" -I"/usr/local/cuda/include" -DGOOGLE_CUDA=1 -DNDBUG -D_MWAITXINTRIN_H_INCLUDED -D_FORCE_INLINES -D__STRICT_ANSI__ -D_GLIBCXX_USE_CXX11_ABI=0 -c src/ops/preprocessing/kernels/data_augmentation.cu.cc -x cu -Xcompiler -fPIC -o src/ops/build/data_augmentation.o nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). /home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(19): error: this declaration has no storage class or type specifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(19): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(43): warning: parsing restarts here after previous syntax error

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(46): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(47): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(47): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(47): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(50): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(50): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(50): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(53): warning: parsing restarts here after previous syntax error

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(56): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(57): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(57): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(57): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(59): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(59): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(59): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(64): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(64): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(64): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(64): error: explicit type is missing ("int" assumed)

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(64): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(67): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(68): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(68): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(70): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(70): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(70): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(70): error: explicit type is missing ("int" assumed)

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(70): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(73): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(74): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(74): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(78): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(78): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(78): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(78): error: explicit type is missing ("int" assumed)

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(78): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(80): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(81): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(81): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(83): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(83): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(83): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(83): error: explicit type is missing ("int" assumed)

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(83): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(85): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(86): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(86): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(90): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(90): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(90): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(90): error: explicit type is missing ("int" assumed)

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(90): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(93): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(94): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(94): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(98): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(98): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(98): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(98): error: explicit type is missing ("int" assumed)

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(98): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(100): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(101): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(101): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(103): error: expected a declaration

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(105): error: TTypes is not a template

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(108): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(125): warning: parsing restarts here after previous syntax error

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(125): error: expected a ";"

/usr/include/c++/4.8/bits/stringfwd.h(68): error: basic_string is not a template

/usr/include/c++/4.8/bits/stringfwd.h(74): error: char_traits is not a template

/usr/include/c++/4.8/bits/stringfwd.h(75): error: char_traits is not a template

/usr/include/c++/4.8/bits/stringfwd.h(78): error: basic_string is not a template

/usr/include/c++/4.8/bits/stringfwd.h(81): error: basic_string is not a template

/usr/include/c++/4.8/bits/stringfwd.h(87): error: expected a declaration

/usr/include/wchar.h(353): error: identifier "wint_t" is undefined

/usr/include/wchar.h(357): error: identifier "wint_t" is undefined

/usr/include/wchar.h(745): error: identifier "wint_t" is undefined

/usr/include/wchar.h(746): error: identifier "wint_t" is undefined

/usr/include/wchar.h(752): error: identifier "wint_t" is undefined

/usr/include/wchar.h(759): error: identifier "wint_t" is undefined

/usr/include/wchar.h(760): error: identifier "wint_t" is undefined

/usr/include/wchar.h(766): error: identifier "wint_t" is undefined

/usr/include/wchar.h(789): error: identifier "wint_t" is undefined

/usr/include/wchar.h(789): error: identifier "wint_t" is undefined

/usr/include/wchar.h(801): error: identifier "wint_t" is undefined

/usr/include/wchar.h(802): error: identifier "wint_t" is undefined

/usr/include/wchar.h(810): error: identifier "wint_t" is undefined

/usr/include/wchar.h(818): error: identifier "wint_t" is undefined

/usr/include/wchar.h(827): error: identifier "wint_t" is undefined

/usr/include/wchar.h(828): error: identifier "wint_t" is undefined

/usr/include/c++/4.8/cwchar(139): error: the global scope has no "wint_t"

/usr/include/c++/4.8/iosfwd(76): error: char_traits is not a template

/usr/include/c++/4.8/iosfwd(79): error: char_traits is not a template

/usr/include/c++/4.8/iosfwd(82): error: char_traits is not a template

/usr/include/c++/4.8/iosfwd(85): error: char_traits is not a template

/usr/include/c++/4.8/iosfwd(88): error: char_traits is not a template

/usr/include/c++/4.8/iosfwd(91): error: char_traits is not a template

/usr/include/c++/4.8/iosfwd(92): error: allocator is not a template

/usr/include/c++/4.8/iosfwd(95): error: char_traits is not a template

/usr/include/c++/4.8/iosfwd(96): error: allocator is not a template

Error limit reached. 100 errors detected in the compilation of "/tmp/tmpxft_0000133f_00000000-7_data_augmentation.cu.cpp1.ii". Compilation terminated. make: *** [preprocessing] Error 4 coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ What I can do??

Iamanorange commented 5 years ago

You missed the quotation mark for TF_INCLUDE in Makefile.

Attention: It is `PATH`(back quote), not \'PATH\'(single quote) or \"PATH\"(double quote).

Iamanorange commented 5 years ago

And it should be -DNDEBUG not -DNDBUG.

PoojaGhaywate commented 5 years ago

@Iamanorange I have done all the changes you said.But it again showing the same error what I can do now?

Iamanorange commented 5 years ago

Paste error log.

PoojaGhaywate commented 5 years ago

@Iamanorange The error is like this

(base) coesip@coesip-HP-Z230-SFF-Workstation:~/Desktop/flownet2$ make /usr/local/cuda/bin/nvcc -g -std=c++11 -I"python -c "import tensorflow; print(tensorflow.sysconfig.get_include())"" -I"/usr/local/cuda/include" -DGOOGLE_CUDA=1 -DNDEBUG -D_MWAITXINTRIN_H_INCLUDED -D_FORCE_INLINES -D__STRICT_ANSI__ -D_GLIBCXX_USE_CXX11_ABI=0 -c src/ops/preprocessing/kernels/data_augmentation.cu.cc -x cu -Xcompiler -fPIC -o src/ops/build/data_augmentation.o nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). /home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(19): error: this declaration has no storage class or type specifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(19): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(43): warning: parsing restarts here after previous syntax error

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(46): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(47): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(47): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(47): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(50): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(50): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(50): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(53): warning: parsing restarts here after previous syntax error

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(56): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(57): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(57): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(57): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(59): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(59): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(59): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(64): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(64): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(64): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(64): error: explicit type is missing ("int" assumed)

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(64): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(67): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(68): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(68): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(70): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(70): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(70): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(70): error: explicit type is missing ("int" assumed)

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(70): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(73): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(74): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(74): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(78): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(78): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(78): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(78): error: explicit type is missing ("int" assumed)

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(78): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(80): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(81): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(81): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(83): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(83): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(83): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(83): error: explicit type is missing ("int" assumed)

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(83): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(85): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(86): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(86): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(90): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(90): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(90): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(90): error: explicit type is missing ("int" assumed)

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(90): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(93): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(94): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(94): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(98): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(98): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(98): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(98): error: explicit type is missing ("int" assumed)

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(98): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(100): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(101): error: expected an identifier

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(101): error: expected a ";"

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(103): error: expected a declaration

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(105): error: TTypes is not a template

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(108): error: name followed by "::" must be a class or namespace name

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(125): warning: parsing restarts here after previous syntax error

/home/coesip/anaconda2/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h(125): error: expected a ";"

/usr/include/c++/4.8/bits/stringfwd.h(68): error: basic_string is not a template

/usr/include/c++/4.8/bits/stringfwd.h(74): error: char_traits is not a template

/usr/include/c++/4.8/bits/stringfwd.h(75): error: char_traits is not a template

/usr/include/c++/4.8/bits/stringfwd.h(78): error: basic_string is not a template

/usr/include/c++/4.8/bits/stringfwd.h(81): error: basic_string is not a template

/usr/include/c++/4.8/bits/stringfwd.h(87): error: expected a declaration

/usr/include/wchar.h(353): error: identifier "wint_t" is undefined

/usr/include/wchar.h(357): error: identifier "wint_t" is undefined

/usr/include/wchar.h(745): error: identifier "wint_t" is undefined

/usr/include/wchar.h(746): error: identifier "wint_t" is undefined

/usr/include/wchar.h(752): error: identifier "wint_t" is undefined

/usr/include/wchar.h(759): error: identifier "wint_t" is undefined

/usr/include/wchar.h(760): error: identifier "wint_t" is undefined

/usr/include/wchar.h(766): error: identifier "wint_t" is undefined

/usr/include/wchar.h(789): error: identifier "wint_t" is undefined

/usr/include/wchar.h(789): error: identifier "wint_t" is undefined

/usr/include/wchar.h(801): error: identifier "wint_t" is undefined

/usr/include/wchar.h(802): error: identifier "wint_t" is undefined

/usr/include/wchar.h(810): error: identifier "wint_t" is undefined

/usr/include/wchar.h(818): error: identifier "wint_t" is undefined

/usr/include/wchar.h(827): error: identifier "wint_t" is undefined

/usr/include/wchar.h(828): error: identifier "wint_t" is undefined

/usr/include/c++/4.8/cwchar(139): error: the global scope has no "wint_t"

/usr/include/c++/4.8/iosfwd(76): error: char_traits is not a template

/usr/include/c++/4.8/iosfwd(79): error: char_traits is not a template

/usr/include/c++/4.8/iosfwd(82): error: char_traits is not a template

/usr/include/c++/4.8/iosfwd(85): error: char_traits is not a template

/usr/include/c++/4.8/iosfwd(88): error: char_traits is not a template

/usr/include/c++/4.8/iosfwd(91): error: char_traits is not a template

/usr/include/c++/4.8/iosfwd(92): error: allocator is not a template

/usr/include/c++/4.8/iosfwd(95): error: char_traits is not a template

/usr/include/c++/4.8/iosfwd(96): error: allocator is not a template

Error limit reached. 100 errors detected in the compilation of "/tmp/tmpxft_00000e24_00000000-7_data_augmentation.cu.cpp1.ii". Compilation terminated. make: *** [preprocessing] Error 4

Iamanorange commented 5 years ago

May be related to some including problem.

Double check your environment. Official tensorflow 1.12 was build against CUDA 9. If you are using a custom build of tensorflow, try the official build.

I have tested on Ubuntu 16.04, CUDA 9, tensorflow 1.12, gcc 4.8, python 2.7.

sotomotocross commented 3 years ago

@Iamanorange i am trying to make this NN work on my PC (Ubuntu 18.04) I have created an anaconda 3 environment using Python 3.6, Tensorflow-gpu 1.14 & CUDA 10.0. I have also create an anaconda 2 environment using Python 2.7, Tensorflow-gpu 1.10 & CUDA 9.0 In both anaconda environments when i try to make all (as indicated in the repo documentation) the same error comes up. It's about the nvcc that the Makefile doesn't find. You said that you solved the problem and run it ok on your Ubuntu 16.04. Do you have any indications or help? Thank you very much in advance.