# Tmva-cuda compiling error

**URL:** <https://root-forum.cern.ch/t/tmva-cuda-compiling-error/28427>\
**Category:** TMVA\
**Created:** [March 24, 2018, 9:28am UTC](https://root-forum.cern.ch/t/tmva-cuda-compiling-error/28427 "2018-03-24T09:28:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![moricciani](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/b9e5f3/32.png) [@moricciani](https://root-forum.cern.ch/u/moricciani)\
**Post date:** [March 24, 2018, 9:28am UTC](https://root-forum.cern.ch/t/tmva-cuda-compiling-error/28427/1 "2018-03-24T09:28:55Z")

</div>

Hi,  
I try to compile root v6.12.06 TMVA-CUDA on ubuntu but I got error. Please anyone could help me ?

This is the configuration phase:  
\<Dario.Moricciani@darioXPS:~/Software/build\> cmake -Dgdml=ON -Dfortran=ON -Dcuda=ON -Dcxx14=ON -Dphythi6=…/General/pythia6 CMAKE\_Fortran\_COMPILER=/usr/bin/gfortran -DCMAKE\_INSTALL\_PREFIX=…/root\_v6.12.06-source …/root-6.12.06/  
– The C compiler identification is GNU 5.4.1  
– The CXX compiler identification is GNU 5.4.1  
– Check for working C compiler: /usr/bin/cc  
– Check for working C compiler: /usr/bin/cc – works  
– Detecting C compiler ABI info  
– Detecting C compiler ABI info - done  
– Detecting C compile features  
– Detecting C compile features - done  
– Check for working CXX compiler: /usr/bin/c++  
– Check for working CXX compiler: /usr/bin/c++ – works  
– Detecting CXX compiler ABI info  
– Detecting CXX compiler ABI info - done  
– Detecting CXX compile features  
– Detecting CXX compile features - done  
– Looking for a Fortran compiler  
– Looking for a Fortran compiler - /usr/bin/f95  
– The Fortran compiler identification is GNU 5.4.1  
– Check for working Fortran compiler: /usr/bin/gfortran  
– Check for working Fortran compiler: /usr/bin/gfortran – works  
– Detecting Fortran compiler ABI info  
– Detecting Fortran compiler ABI info - done  
– Checking whether /usr/bin/gfortran supports Fortran 90  
– Checking whether /usr/bin/gfortran supports Fortran 90 – yes  
– Found GCC. Major version 5, minor version 4  
– c++11 mode requested but superseded by request for c++14 mode  
– Performing Test HAS\_CXX14  
– Performing Test HAS\_CXX14 - Success  
– Looking for pthread.h  
– Looking for pthread.h - found  
– Looking for pthread\_create  
– Looking for pthread\_create - not found  
– Looking for pthread\_create in pthreads  
– Looking for pthread\_create in pthreads - not found  
– Looking for pthread\_create in pthread  
– Looking for pthread\_create in pthread - found  
– Found Threads: TRUE  
– Found a 64bit system  
– Found GNU compiler collection  
– Performing Test GLIBCXX\_USE\_CXX11\_ABI  
– Performing Test GLIBCXX\_USE\_CXX11\_ABI - Success  
– ROOT Platform: linux  
– ROOT Architecture: linuxx8664gcc  
– Build Type: RelWithDebInfo  
– Compiler Flags: -pipe -m64 -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -fPIC -pthread -std=c++14 -O2 -g -DNDEBUG  
– Looking for ZLib  
– Found ZLIB: /usr/lib/x86\_64-linux-gnu/libz.so (found version “1.2.8”)  
– Looking for Unuran  
– Could NOT find UNURAN (missing: UNURAN\_LIBRARY UNURAN\_INCLUDE\_DIR)  
– Unuran not found. Switching on builtin\_unuran option  
– Looking for Freetype  
– Found Freetype: /usr/lib/x86\_64-linux-gnu/libfreetype.so  
– Looking for PCRE  
– Found PCRE: /usr/include  
– Looking for LZMA  
– Found LZMA includes at /usr/include  
– Found LZMA library at /usr/lib/x86\_64-linux-gnu/liblzma.so  
– Looking for LZ4  
– LZ4 not found. Switching on builtin\_lz4 option  
– Building LZ4 version v1.7.5 included in ROOT itself  
– Looking for X11  
– Looking for XOpenDisplay in /usr/lib/x86\_64-linux-gnu/libX11.so;/usr/lib/x86\_64-linux-gnu/libXext.so  
– Looking for XOpenDisplay in /usr/lib/x86\_64-linux-gnu/libX11.so;/usr/lib/x86\_64-linux-gnu/libXext.so - found  
– Looking for gethostbyname  
– Looking for gethostbyname - found  
– Looking for connect  
– Looking for connect - found  
– Looking for remove  
– Looking for remove - found  
– Looking for shmat  
– Looking for shmat - found  
– Looking for IceConnectionNumber in ICE  
– Looking for IceConnectionNumber in ICE - found  
– Found X11: /usr/lib/x86\_64-linux-gnu/libX11.so  
– X11\_INCLUDE\_DIR: /usr/include  
– X11\_LIBRARIES: /usr/lib/x86\_64-linux-gnu/libSM.so;/usr/lib/x86\_64-linux-gnu/libICE.so;/usr/lib/x86\_64-linux-gnu/libX11.so;/usr/lib/x86\_64-linux-gnu/libXext.so  
– X11\_Xpm\_INCLUDE\_PATH: /usr/include  
– X11\_Xpm\_LIB: /usr/lib/x86\_64-linux-gnu/libXpm.so  
– X11\_Xft\_INCLUDE\_PATH: /usr/include  
– X11\_Xft\_LIB: /usr/lib/x86\_64-linux-gnu/libXft.so  
– X11\_Xext\_INCLUDE\_PATH:  
– X11\_Xext\_LIB: /usr/lib/x86\_64-linux-gnu/libXext.so  
– Performing Test GIF\_GifFileType\_UserData  
– Performing Test GIF\_GifFileType\_UserData - Success  
– Found GIF: /usr/lib/x86\_64-linux-gnu/libgif.so (found version “4”)  
– Found TIFF: /usr/lib/x86\_64-linux-gnu/libtiff.so (found version “4.0.6”)  
– Found PNG: /usr/lib/x86\_64-linux-gnu/libpng.so (found version “1.2.54”)  
– Found JPEG: /usr/lib/x86\_64-linux-gnu/libjpeg.so  
– Building AfterImage library included in ROOT itself  
– Looking for GSL  
– Found GSL: /usr/include (found suitable version “2.1”, minimum required is “1.10”)  
– Looking for Python  
– Found PythonInterp: /usr/bin/python (found version “2.7.12”)  
– Found Python interpreter version 2.7  
– Found PythonLibs: /usr/lib/x86\_64-linux-gnu/libpython2.7.so (found version “2.7.12”)  
– Found NUMPY: /usr/lib/python2.7/dist-packages/numpy/core/include (found version “1.11.0”)  
– Looking for OpenGL  
– Found OpenGL: /usr/lib/x86\_64-linux-gnu/libGL.so  
– Looking for gl2ps  
– Could NOT find GL2PS (missing: GL2PS\_LIBRARY GL2PS\_INCLUDE\_DIR)  
– gl2ps not found. Switching on builtin\_gl2ps option  
– Looking for LibXml2  
– Found LibXml2: /usr/lib/x86\_64-linux-gnu/libxml2.so (found version “2.9.3”)  
– Looking for OpenSSL  
– Found OpenSSL: /usr/lib/x86\_64-linux-gnu/libssl.so;/usr/lib/x86\_64-linux-gnu/libcrypto.so (found version “1.0.2g”)  
– Looking for Castor  
– Could NOT find CASTOR (missing: CASTOR\_shift\_LIBRARY CASTOR\_INCLUDE\_DIR)  
– Castor not found. Switching off castor option  
– Looking for MySQL  
– Found MYSQL: /usr/include/mysql  
– Looking for Oracle  
– Oracle not found.  
– Oracle: You can specify includes: -DORACLE\_PATH\_INCLUDES=/usr/include/oracle/10.2.0.3/client  
– currently found includes:  
– Oracle: You can specify libs: -DORACLE\_PATH\_LIB=/usr/lib/oracle/10.2.0.3/client/lib  
– currently found libs: ORACLE\_LIBRARY\_OCCI-NOTFOUND;ORACLE\_LIBRARY\_CLNTSH-NOTFOUND;ORACLE\_LIBRARY\_LNNZ-NOTFOUND  
– Oracle not found. Switching off oracle option  
– Looking for PostgreSQL  
– Could NOT find PostgreSQL (missing: POSTGRESQL\_INCLUDE\_DIR POSTGRESQL\_LIBRARY)  
– PostgreSQL not found. Switching off pgsql option  
– Looking for SQLite  
– Found PkgConfig: /usr/bin/pkg-config (found version “0.29.1”)  
– Could NOT find Sqlite (missing: SQLITE\_INCLUDE\_DIR SQLITE\_LIBRARIES)  
– SQLite not found. Switching off sqlite option  
– Looking for Pythia6  
– Looking for Pythia8  
– Found Pythia8: /home/dario/Software/General/pythia8212/include  
– Looking for FFTW3  
– Found fftw3 includes at /usr/include  
– Found fftw3 library at /usr/lib/x86\_64-linux-gnu/libfftw3.so  
– Looking for CFITSIO  
– Found CFITSIO: /usr/include  
– Found CFITSIO version: 3.37  
– Looking for XROOTD  
– XROOTD not found. Set environment variable XRDSYS to point to your XROOTD installation  
– Alternatively, you can also enable the option ‘builtin\_xrootd’ to build XROOTD internally  
– For the time being switching OFF ‘xrootd’ option  
– Could NOT find GFAL (missing: GFAL\_INCLUDE\_DIR SRM\_IFCE\_INCLUDE\_DIR GFAL\_LIBRARY)  
– GFAL library not found. Set variable GFAL\_DIR to point to your gfal installation  
and the variable SRM\_IFCE\_DIR to the srm\_ifce installation  
– For the time being switching OFF ‘gfal’ option  
– Looking for DAVIX  
– Could NOT find DAVIX (missing: DAVIX\_INCLUDE\_DIR DAVIX\_LIBRARY)  
– Davix not found. You can enable the option ‘builtin\_davix’ to build the library internally’  
– For the time being switching off ‘davix’ option  
– Looking for TBB  
– Found TBB: /usr (found version “4.4”)  
– Looking for CUDA for optional parts of TMVA  
– Detected request for c++14, requiring minimum version CUDA 9.0 (default 7.5)  
– Found CUDA: /usr/local/cuda (found suitable version “9.0”, minimum required is “9.0”)  
– Looking for BLAS for optional parts of TMVA  
– Looking for Fortran sgemm  
– Looking for Fortran sgemm - found  
– A library with BLAS API found.  
– Enabled support for: asimage astiff builtin\_afterimage builtin\_ftgl builtin\_gl2ps builtin\_glew builtin\_llvm builtin\_lz4 builtin\_unuran cling cuda cxx14 exceptions explicitlink fftw3 fitsio fortran gdml genvector http imt mathmore mysql opengl pch pythia6 pythia8 python roofit root7 shared ssl thread tmva x11 xft xml  
– The ASM compiler identification is GNU  
– Found assembler: /usr/bin/cc  
– Looking for backtrace  
– Looking for backtrace - found  
– backtrace facility detected in default set of libraries  
– Found Backtrace: /usr/include  
– Native target architecture is X86  
– Threads disabled.  
– Doxygen disabled.  
– Go bindings disabled.  
– Could NOT find OCaml (missing: OCAMLFIND OCAML\_VERSION OCAML\_STDLIB\_PATH)  
– Could NOT find OCaml (missing: OCAMLFIND OCAML\_VERSION OCAML\_STDLIB\_PATH)  
– OCaml bindings disabled.  
– LLVM host triple: x86\_64-unknown-linux-gnu  
– LLVM default target triple: x86\_64-unknown-linux-gnu  
– Building with -fPIC  
– Constructing LLVMBuild project information  
fatal: Needed a single revision  
– Linker detection: GNU ld  
– SysLibs: rt;dl;tinfo;-lpthread;/usr/lib/x86\_64-linux-gnu/libz.so  
– Targeting X86  
– Could NOT find Z3 (missing: Z3\_LIBRARIES Z3\_INCLUDE\_DIR) (Required is at least version “4.5”)  
– Clang version: 5.0.0  
– Cling version (from VERSION file): ROOT\_0.6~dev  
– Cling will look for C++ headers in ‘/usr/include/c++/5:/usr/include/x86\_64-linux-gnu/c++/5:/usr/include/c++/5/backward’ at runtime.  
– And if not found, will invoke: ‘g+±5’ for them.  
– Performing Test CXX\_HAS\_Wno\_maybe\_uninitialized  
– Performing Test CXX\_HAS\_Wno\_maybe\_uninitialized - Success  
– Performing Test CXX\_HAS\_fno\_rtti  
– Performing Test CXX\_HAS\_fno\_rtti - Success  
– Performing Test C\_HAS\_Wno\_strict\_overflow  
– Performing Test C\_HAS\_Wno\_strict\_overflow - Success  
– Performing Test C\_HAS\_Wno\_maybe\_uninitialized  
– Performing Test C\_HAS\_Wno\_maybe\_uninitialized - Success  
– Performing Test C\_HAS\_Wno\_parentheses\_equality  
– Performing Test C\_HAS\_Wno\_parentheses\_equality - Success  
– Performing Test CXX\_HAS\_Wno\_delete\_non\_virtual\_dtor  
– Performing Test CXX\_HAS\_Wno\_delete\_non\_virtual\_dtor - Success  
– Performing Test CXX\_HAS\_Wno\_misleading\_indentation  
– Performing Test CXX\_HAS\_Wno\_misleading\_indentation - Success  
– Performing Test CXX\_HAS\_Wno\_overloaded\_virtual  
– Performing Test CXX\_HAS\_Wno\_overloaded\_virtual - Success  
– Performing Test CXX\_HAS\_fno\_strict\_aliasing  
– Performing Test CXX\_HAS\_fno\_strict\_aliasing - Success  
– Performing Test CXX\_HAS\_Wno\_parentheses\_equality  
– Performing Test CXX\_HAS\_Wno\_parentheses\_equality - Success  
– Performing Test found\_setresuid  
– Performing Test found\_setresuid - Success  
– Performing Test found\_stdstringview  
– Performing Test found\_stdstringview - Failed  
– Performing Test found\_stdexpstringview  
– Performing Test found\_stdexpstringview - Success  
– Performing Test found\_stod\_stringview  
– Performing Test found\_stod\_stringview - Failed  
– Performing Test found\_stdapply  
– Performing Test found\_stdapply - Failed  
– Performing Test found\_stdinvoke  
– Performing Test found\_stdinvoke - Failed  
– Performing Test found\_attribute\_always\_inline  
– Performing Test found\_attribute\_always\_inline - Success  
Running /home/dario/Software/root-6.12.06/build/unix/compiledata.sh  
Making /home/dario/Software/build/include/compiledata.h  
– Configuring done  
– Generating done  
– Build files have been written to: /home/dario/Software/build  
\<Dario.Moricciani@darioXPS:~/Software/build\>  
\<Dario.Moricciani@darioXPS:~/Software/build\>

This is the error which I got :  
[80%] Building NVCC (Device) object tmva/tmva/CMakeFiles/dnn\_cuda.dir/src/DNN/Architectures/dnn\_cuda\_generated\_Cuda.cu.o  
/usr/lib/gcc/x86\_64-linux-gnu/5/include/stddef.h(436): error: identifier “nullptr” is undefined

/usr/lib/gcc/x86\_64-linux-gnu/5/include/stddef.h(436): error: expected a “;”

/usr/include/x86\_64-linux-gnu/c++/5/bits/c++config.h(200): error: expected a “;”

/usr/include/c++/5/exception(63): error: expected a “;”

/usr/include/c++/5/exception(68): error: expected a “;”

/usr/include/c++/5/exception(76): error: expected a “;”

/usr/include/c++/5/exception(83): error: expected a “;”

/usr/include/c++/5/exception(93): error: expected a “{”

/usr/include/c++/5/bits/exception\_ptr.h(64): error: function “std::current\_exception” returns incomplete type “std::\_\_exception\_ptr::exception\_ptr”

/usr/include/c++/5/bits/exception\_ptr.h(64): error: expected a “{”

/usr/include/c++/5/bits/exception\_ptr.h(79): error: expected a “;”

/usr/include/c++/5/bits/exception\_ptr.h(81): error: expected a “;”

/usr/include/c++/5/bits/exception\_ptr.h(82): error: expected a “;”

/usr/include/c++/5/bits/exception\_ptr.h(84): error: expected a “;”

/usr/include/c++/5/bits/exception\_ptr.h(86): error: declaration is incompatible with previous “std::current\_exception”  
(64): here

/usr/include/c++/5/bits/exception\_ptr.h(86): error: use of a local type to declare a function

/usr/include/c++/5/bits/exception\_ptr.h(86): error: expected a “;”

/usr/include/c++/5/bits/exception\_ptr.h(87): error: use of a local type to declare a function

/usr/include/c++/5/bits/exception\_ptr.h(90): error: expected a “;”

/usr/include/c++/5/bits/exception\_ptr.h(92): error: expected a “;”

/usr/include/c++/5/bits/exception\_ptr.h(95): error: incomplete type is not allowed

/usr/include/c++/5/bits/exception\_ptr.h(95): error: expected a “;”

/usr/include/c++/5/bits/exception\_ptr.h(116): error: expected a “;”

/usr/include/c++/5/bits/exception\_ptr.h(126): error: expected a “;”

/usr/include/c++/5/bits/exception\_ptr.h(143): error: use of a local type to declare a function

/usr/include/c++/5/bits/exception\_ptr.h(144): error: expected a “;”

/usr/include/c++/5/bits/exception\_ptr.h(147): error: expected a “;”

/usr/include/c++/5/bits/exception\_ptr.h(152): error: use of a local type to declare a function

/usr/include/c++/5/bits/exception\_ptr.h(153): error: expected a “;”

/usr/include/c++/5/bits/exception\_ptr.h(156): error: use of a local type to declare a function

/usr/include/c++/5/bits/exception\_ptr.h(157): error: expected a “;”

/usr/include/c++/5/bits/exception\_ptr.h(160): error: use of a local type to declare a function

/usr/include/c++/5/bits/exception\_ptr.h(161): error: expected a “;”

/usr/include/c++/5/bits/exception\_ptr.h(169): error: expected a “;”

/usr/include/c++/5/bits/exception\_ptr.h(195): error: expected a “;”

/usr/include/c++/5/bits/nested\_exception.h(57): error: incomplete type is not allowed

/usr/include/c++/5/bits/nested\_exception.h(60): error: expected a “;”

/usr/include/c++/5/bits/nested\_exception.h(64): error: expected a “;”

/usr/include/c++/5/bits/nested\_exception.h(66): error: expected a “;”

/usr/include/c++/5/bits/nested\_exception.h(78): error: expected a “;”

/usr/include/c++/5/bits/nested\_exception.h(73): error: identifier “rethrow\_exception” is undefined

/usr/include/c++/5/bits/nested\_exception.h(74): error: namespace “std” has no member “terminate”

/usr/include/c++/5/new(96): error: expected a “{”

/usr/include/c++/5/new(111): error: allocation operator may not be declared in a namespace

/usr/include/c++/5/new(113): error: allocation operator may not be declared in a namespace

/usr/include/c++/5/new(115): error: deallocation operator may not be declared in a namespace

/usr/include/c++/5/new(115): error: expected a “{”

/usr/include/c++/5/new(130): error: identifier “\_\_p” is undefined

/usr/include/c++/5/new(131): error: allocation operator may not be declared in a namespace

/usr/include/c++/5/new(131): error: expected a “{”

/usr/include/c++/5/new(135): error: deallocation operator may not be declared in a namespace

/usr/include/c++/5/new(135): error: expected a “{”

/usr/include/c++/5/new(136): error: deallocation operator may not be declared in a namespace

/usr/include/c++/5/new(136): error: expected a “{”

/usr/include/c++/5/bits/cpp\_type\_traits.h(185): error: identifier “char16\_t” is undefined

/usr/include/c++/5/bits/cpp\_type\_traits.h(192): error: identifier “char32\_t” is undefined

/usr/include/c++/5/bits/cpp\_type\_traits.h(192): error: class “std::\_\_is\_integer\<\>” has already been defined

/usr/include/c++/5/bits/cpp\_type\_traits.h(344): error: namespace “std::\_\_gnu\_cxx” has no member “\_\_normal\_iterator”

/usr/include/c++/5/bits/cpp\_type\_traits.h(344): error: expected a “\>”

/usr/include/c++/5/ext/type\_traits.h(159): error: inline specifier allowed on function declarations only

/usr/include/c++/5/ext/type\_traits.h(160): error: declaration is incompatible with overloaded function “\_\_gnu\_cxx::\_\_is\_null\_pointer”  
(150): here

/usr/include/c++/5/ext/type\_traits.h(160): error: namespace “std” has no member “nullptr\_t”

/usr/include/c++/5/ext/type\_traits.h(161): error: expected a “;”

/usr/include/c++/5/ext/type\_traits.h(173): error: a template argument list is not allowed in a declaration of a primary template

/usr/include/c++/5/ext/type\_traits.h(177): error: \_\_promote is not a template

/usr/include/c++/5/ext/type\_traits.h(181): error: \_\_promote is not a template

/usr/include/c++/5/ext/type\_traits.h(185): error: \_\_promote is not a template

/usr/include/c++/5/ext/type\_traits.h(189): error: \_\_promote is not a template

/usr/include/c++/5/ext/type\_traits.h(189): error: expected a “\>”

/usr/include/c++/5/ext/type\_traits.h(189): error: the global scope has no “\_\_type”

/usr/include/c++/5/ext/type\_traits.h(197): error: \_\_promote is not a template

/usr/include/c++/5/ext/type\_traits.h(197): error: expected a “\>”

/usr/include/c++/5/ext/type\_traits.h(197): error: the global scope has no “\_\_type”

/usr/include/c++/5/ext/type\_traits.h(206): error: \_\_promote is not a template

/usr/include/c++/5/ext/type\_traits.h(206): error: expected a “\>”

/usr/include/c++/5/ext/type\_traits.h(206): error: the global scope has no “\_\_type”

/usr/include/c++/5/cmath(80): error: inline specifier allowed on function declarations only

/usr/include/c++/5/cmath(80): error: expected a “;”

/usr/include/c++/5/cmath(105): error: inline specifier allowed on function declarations only

/usr/include/c++/5/cmath(105): error: variable “std::constexpr” has already been defined

/usr/include/c++/5/cmath(105): error: expected a “;”

/usr/include/c++/5/cmath(124): error: inline specifier allowed on function declarations only

/usr/include/c++/5/cmath(124): error: variable “std::constexpr” has already been defined

/usr/include/c++/5/cmath(124): error: expected a “;”

/usr/include/c++/5/cmath(143): error: inline specifier allowed on function declarations only

/usr/include/c++/5/cmath(143): error: variable “std::constexpr” has already been defined

/usr/include/c++/5/cmath(143): error: expected a “;”

/usr/include/c++/5/cmath(162): error: inline specifier allowed on function declarations only

/usr/include/c++/5/cmath(162): error: variable “std::constexpr” has already been defined

/usr/include/c++/5/cmath(162): error: expected a “;”

/usr/include/c++/5/cmath(183): error: inline specifier allowed on function declarations only

/usr/include/c++/5/cmath(183): error: variable “std::constexpr” has already been defined

/usr/include/c++/5/cmath(183): error: expected a “;”

/usr/include/c++/5/cmath(202): error: inline specifier allowed on function declarations only

/usr/include/c++/5/cmath(202): error: variable “std::constexpr” has already been defined

/usr/include/c++/5/cmath(202): error: expected a “;”

/usr/include/c++/5/cmath(221): error: inline specifier allowed on function declarations only

/usr/include/c++/5/cmath(221): error: variable “std::constexpr” has already been defined

/usr/include/c++/5/cmath(221): error: expected a “;”

/usr/include/c++/5/cmath(240): error: inline specifier allowed on function declarations only

Error limit reached.  
100 errors detected in the compilation of “/tmp/tmpxft\_0000431d\_00000000-6\_Cuda.cpp1.ii”.  
Compilation terminated.  
CMake Error at dnn\_cuda\_generated\_Cuda.cu.o.cmake:268 (message):  
Error generating file  
/home/dario/Software/build/tmva/tmva/CMakeFiles/dnn\_cuda.dir/src/DNN/Architectures/./dnn\_cuda\_generated\_Cuda.cu.o

tmva/tmva/CMakeFiles/dnn\_cuda.dir/build.make:63: recipe for target ‘tmva/tmva/CMakeFiles/dnn\_cuda.dir/src/DNN/Architectures/dnn\_cuda\_generated\_Cuda.cu.o’ failed  
make[2]: \*\*\* [tmva/tmva/CMakeFiles/dnn\_cuda.dir/src/DNN/Architectures/dnn\_cuda\_generated\_Cuda.cu.o] Error 1  
CMakeFiles/Makefile2:28580: recipe for target ‘tmva/tmva/CMakeFiles/dnn\_cuda.dir/all’ failed  
make[1]: \*\*\* [tmva/tmva/CMakeFiles/dnn\_cuda.dir/all] Error 2  
Makefile:149: recipe for target ‘all’ failed  
make: \*\*\* [all] Error 2  
\<Dario.Moricciani@darioXPS:~/Software/build\>

---

<div class="post-metadata">

**Author:** ![kialbert](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/kialbert/32/16537_2.png) [@kialbert](https://root-forum.cern.ch/u/kialbert)\
**Post date:** [March 24, 2018, 10:32am UTC](https://root-forum.cern.ch/t/tmva-cuda-compiling-error/28427/2 "2018-03-24T10:32:50Z")

</div>

This might be an issue with cuda and c++14. Try configure with -Dcxx11=on -Dcxx14=off.

Cheers,  
Kim

---

<div class="post-metadata">

**Author:** ![moricciani](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/b9e5f3/32.png) [@moricciani](https://root-forum.cern.ch/u/moricciani)\
**Post date:** [March 24, 2018, 12:42pm UTC](https://root-forum.cern.ch/t/tmva-cuda-compiling-error/28427/3 "2018-03-24T12:42:51Z")

</div>

[46%] Building CXX object core/cont/CMakeFiles/Cont.dir/src/TRefTable.cxx.o  
In file included from /usr/include/c++/5/experimental/string\_view:39:0,  
from /home/dario/Software/build/include/RStringView.h:24,  
from /home/dario/Software/build/include/TString.h:28,  
from /home/dario/Software/build/include/TCollection.h:29,  
from /home/dario/Software/build/include/TSeqCollection.h:25,  
from /home/dario/Software/build/include/TObjArray.h:25,  
from /home/dario/Software/root-6.12.06/core/cont/src/TRefTable.cxx:42:  
/usr/include/c++/5/bits/c++14\_warning.h:32:2: error: #error This file requires compiler and library support for the forthcoming ISO C++ 2014 standard. This support is currently experimental, and must be enabled with the -std=c++1y or -std=gnu++1y compiler options.  
#error This file requires compiler and library support for the forthcoming   
^  
[46%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/BinaryStreamRef.cpp.o  
In file included from /home/dario/Software/build/include/TString.h:28:0,  
from /home/dario/Software/build/include/TCollection.h:29,  
from /home/dario/Software/build/include/TSeqCollection.h:25,  
from /home/dario/Software/build/include/TObjArray.h:25,  
from /home/dario/Software/root-6.12.06/core/cont/src/TRefTable.cxx:42:  
/home/dario/Software/build/include/RStringView.h:32:37: error: ‘experimental’ in namespace ‘std’ does not name a type  
using basic\_string\_view = ::std::experimental::basic\_string\_view\<\_CharT,\_Traits\>;  
^  
/home/dario/Software/build/include/RStringView.h:35:12: error: ‘basic\_string\_view’ does not name a type  
typedef basic\_string\_view string\_view;  
^  
/home/dario/Software/build/include/RStringView.h:36:12: error: ‘basic\_string\_view’ does not name a type  
typedef basic\_string\_view\<char16\_t\> u16string\_view;  
^  
/home/dario/Software/build/include/RStringView.h:37:12: error: ‘basic\_string\_view’ does not name a type  
typedef basic\_string\_view\<char32\_t\> u32string\_view;  
^  
/home/dario/Software/build/include/RStringView.h:38:12: error: ‘basic\_string\_view’ does not name a type  
typedef basic\_string\_view\<wchar\_t\> wstring\_view;  
^  
/home/dario/Software/build/include/RStringView.h:48:28: error: ‘std::stod’ declared as an ‘inline’ variable  
inline double stod(std::string\_view str, size\_t \*pos)  
^  
/home/dario/Software/build/include/RStringView.h:48:23: error: ‘string\_view’ is not a member of ‘std’  
inline double stod(std::string\_view str, size\_t _pos)  
^  
/home/dario/Software/build/include/RStringView.h:48:52: error: expected primary-expression before ‘_’ token  
inline double stod(std::string\_view str, size\_t \*pos)  
^  
/home/dario/Software/build/include/RStringView.h:48:53: error: ‘pos’ was not declared in this scope  
inline double stod(std::string\_view str, size\_t \*pos)  
^  
/home/dario/Software/build/include/RStringView.h:48:56: error: expression list treated as compound expression in initializer [-fpermissive]  
inline double stod(std::string\_view str, size\_t \*pos)  
^  
/home/dario/Software/build/include/RStringView.h:49:4: error: expected ‘,’ or ‘;’ before ‘{’ token  
{  
^  
/home/dario/Software/build/include/RStringView.h:67:17: error: expected type-specifier  
operator std::string\_view() const { return std::string\_view(fData,fLength); }  
^  
In file included from /home/dario/Software/build/include/TCollection.h:29:0,  
from /home/dario/Software/build/include/TSeqCollection.h:25,  
from /home/dario/Software/build/include/TObjArray.h:25,  
from /home/dario/Software/root-6.12.06/core/cont/src/TRefTable.cxx:42:  
/home/dario/Software/build/include/TString.h:104:13: error: expected type-specifier  
operator std::string\_view() const { return std::string\_view(Data(),fExtent); }  
^  
/home/dario/Software/build/include/TString.h:257:23: error: ‘string\_view’ in namespace ‘std’ does not name a type  
TString(const std::string\_view &sub);  
^  
/home/dario/Software/build/include/TString.h:293:37: error: ‘string\_view’ in namespace ‘std’ does not name a type  
TString &operator=(const std::string\_view &s);  
^  
/home/dario/Software/build/include/TString.h:420:9: error: ‘string\_view’ in namespace ‘std’ does not name a type  
std::string\_view View() const { return std::string\_view(GetPointer(),Length()); }  
^  
In file included from /home/dario/Software/build/include/TCollection.h:29:0,  
from /home/dario/Software/build/include/TSeqCollection.h:25,  
from /home/dario/Software/build/include/TObjArray.h:25,  
from /home/dario/Software/root-6.12.06/core/cont/src/TRefTable.cxx:42:  
/home/dario/Software/build/include/TString.h:785:53: error: ‘string\_view’ in namespace ‘std’ does not name a type  
inline Bool\_t operator==(const char _s1, const std::string\_view &s2)  
^  
/home/dario/Software/build/include/TString.h:785:68: error: ‘Bool\_t operator==(const char_, const int&)’ must have an argument of class or enumerated type  
inline Bool\_t operator==(const char \*s1, const std::string\_view &s2)  
^  
/home/dario/Software/build/include/TString.h:790:37: error: ‘string\_view’ in namespace ‘std’ does not name a type  
inline Bool\_t operator==(const std::string\_view &s1, const char _s2)  
^  
/home/dario/Software/build/include/TString.h:790:68: error: ‘Bool\_t operator==(const int&, const char_)’ must have an argument of class or enumerated type  
inline Bool\_t operator==(const std::string\_view &s1, const char _s2)  
^  
/home/dario/Software/build/include/TString.h:803:37: error: ‘string\_view’ in namespace ‘std’ does not name a type  
std::string printValue(const std::string\_view_ val);  
^  
[46%] Building CXX object interpreter/llvm/src/lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/MCAsmParserExtension.cpp.o  
core/cont/CMakeFiles/Cont.dir/build.make:86: recipe for target ‘core/cont/CMakeFiles/Cont.dir/src/TRefTable.cxx.o’ failed  
make[2]: \*\*\* [core/cont/CMakeFiles/Cont.dir/src/TRefTable.cxx.o] Error 1  
CMakeFiles/Makefile2:15697: recipe for target ‘core/cont/CMakeFiles/Cont.dir/all’ failed  
make[1]: \*\*\* [core/cont/CMakeFiles/Cont.dir/all] Error 2  
make[1]: \*\*\* Waiting for unfinished jobs…

---

<div class="post-metadata">

**Author:** ![kialbert](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/kialbert/32/16537_2.png) [@kialbert](https://root-forum.cern.ch/u/kialbert)\
**Post date:** [March 24, 2018, 3:11pm UTC](https://root-forum.cern.ch/t/tmva-cuda-compiling-error/28427/4 "2018-03-24T15:11:55Z")

</div>

You’re still compiling with cxx14 I think.

Cheers,  
Kim
