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

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

Open
PoojaGhaywate opened this issue Jan 28, 2019 · 11 comments
Open

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

PoojaGhaywate opened this issue Jan 28, 2019 · 11 comments

Comments

@PoojaGhaywate
Copy link

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

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

@PoojaGhaywate
Copy link
Author

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

@Iamanorange
Copy link

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

@PoojaGhaywate
Copy link
Author

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 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(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 token 103'
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 token 108'
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 token 125'
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 token 74'
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 token 78'
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 token 87'
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 token 357'
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 token 746'
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 token 759'
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 token 766'
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 token 789'
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 token 802'
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 token 818'
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 token 828'
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 token 76'
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 token 82'
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 token 88'
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 token 92'
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 token 96'
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
Copy link

Iamanorange commented Jan 29, 2019

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

And it should be -DNDEBUG not -DNDBUG.

@PoojaGhaywate
Copy link
Author

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

@Iamanorange
Copy link

Paste error log.

@PoojaGhaywate
Copy link
Author

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

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

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

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

3 participants