Giter VIP home page Giter VIP logo

thpp's Introduction

TH++: A C++ tensor library

TH++ is a C++ tensor library, implemented as a wrapper around the TH library (the low-level tensor library in Torch). There is unfortunately little documentation about TH, but the interface mimics the Lua Tensor interface.

The core of the library is the Tensor<T> class template, where T is a numeric type (usually floating point, float or double). A tensor is a multi-dimensional array, usually in C (row-major) order, but many operations (transpose, slice, etc) are performed by permuting indexes and changing offsets, so the data is no longer contiguous / in row-major order. Read the numpy.ndarray documentation for more details about the strided indexing scheme.

Tensors may also share memory with other tensors; operations that manipulate metadata (select, slice, transpose, etc) will make the destination tensor share memory with the source. To ensure you have a unique copy, call force(Tensor<T>::UNIQUE) on the tensor. Similarly, to ensure you have a contiguous C (row-major) tensor, call force(Tensor<T>::CONTIGUOUS), which may also create a unique copy.

Please see the header file <thpp/Tensor.h> for more details.

thpp's People

Contributors

adamlerer avatar colesbury avatar denisyarats avatar ebetica avatar joostvdoorn avatar ma2bd avatar soumith avatar timlacroix avatar tudor avatar urikz avatar vgao1996 avatar wickedfoo avatar yfeldblum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

thpp's Issues

Build error, can't find Torch configuration file

I'm getting the following error when trying to compile thpp.

command

cmake ..

stdout

-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- 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
-- 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
-- Found Folly: /usr/local/include  
-- Found Glog: /usr/include  
-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/facebook/thpp/thpp/build/CMakeFiles/CMakeOutput.log".

stderr

CMake Error at CMakeLists.txt:26 (FIND_PACKAGE):
  By not providing "FindTorch.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Torch", but
  CMake did not find one.

  Could not find a package configuration file provided by "Torch" with any of
  the following names:

    TorchConfig.cmake
    torch-config.cmake

  Add the installation prefix of "Torch" to CMAKE_PREFIX_PATH or set
  "Torch_DIR" to a directory containing one of the above files.  If "Torch"
  provides a separate development package or SDK, be sure it has been
  installed.

Compile error: make[2]: *** [CMakeFiles/thpp.dir/TensorSerialization.cpp.o] Error 1

I used gcc-4.9.4, ubuntu 14.04 LTS. I got the following error:

In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tts513/torch/install/include/TH/THGenerateIntTypes.h:10,
                 from /home/tts513/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Tensor.h:28,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:19,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tts513/torch/install/include/TH/THGenerateIntTypes.h:11,
                 from /home/tts513/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Tensor.h:28,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:19,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<char>::_max(THCharTensor*, THLongTensor*, THCharTensor*, int)’:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ‘void THCharTensor_max(THCharTensor*, THLongTensor*, THCharTensor*, int, int)’
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
In file included from /home/tts513/torch/install/include/TH/THStorage.h:4:0,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:18,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/tts513/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tts513/torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tts513/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tts513/torch/install/include/TH/generic/THTensorMath.h:72:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(max)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tts513/torch/install/include/TH/THGenerateIntTypes.h:11,
                 from /home/tts513/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Tensor.h:28,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:19,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<char>::_min(THCharTensor*, THLongTensor*, THCharTensor*, int)’:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: too few arguments to function ‘void THCharTensor_min(THCharTensor*, THLongTensor*, THCharTensor*, int, int)’
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
In file included from /home/tts513/torch/install/include/TH/THStorage.h:4:0,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:18,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/tts513/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tts513/torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tts513/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tts513/torch/install/include/TH/generic/THTensorMath.h:73:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(min)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tts513/torch/install/include/TH/THGenerateIntTypes.h:11,
                 from /home/tts513/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Tensor.h:28,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:19,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<char>::_sum(THCharTensor*, THCharTensor*, int)’:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: too few arguments to function ‘void THCharTensor_sum(THCharTensor*, THCharTensor*, int, int)’
     return THTensor_(sum)(r, t, dim);
                                    ^
In file included from /home/tts513/torch/install/include/TH/THStorage.h:4:0,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:18,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/tts513/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tts513/torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tts513/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tts513/torch/install/include/TH/generic/THTensorMath.h:77:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tts513/torch/install/include/TH/THGenerateIntTypes.h:11,
                 from /home/tts513/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Tensor.h:28,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:19,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(sum)(r, t, dim);
                                    ^
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<char>::_prod(THCharTensor*, THCharTensor*, int)’:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: too few arguments to function ‘void THCharTensor_prod(THCharTensor*, THCharTensor*, int, int)’
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from /home/tts513/torch/install/include/TH/THStorage.h:4:0,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:18,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/tts513/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tts513/torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tts513/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tts513/torch/install/include/TH/generic/THTensorMath.h:78:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(prod)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tts513/torch/install/include/TH/THGenerateIntTypes.h:11,
                 from /home/tts513/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Tensor.h:28,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:19,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tts513/torch/install/include/TH/THGenerateIntTypes.h:12,
                 from /home/tts513/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Tensor.h:28,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:19,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<short int>::_max(THShortTensor*, THLongTensor*, THShortTensor*, int)’:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ‘void THShortTensor_max(THShortTensor*, THLongTensor*, THShortTensor*, int, int)’
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
In file included from /home/tts513/torch/install/include/TH/THStorage.h:4:0,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:18,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/tts513/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tts513/torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tts513/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tts513/torch/install/include/TH/generic/THTensorMath.h:72:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(max)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tts513/torch/install/include/TH/THGenerateIntTypes.h:12,
                 from /home/tts513/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Tensor.h:28,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:19,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<short int>::_min(THShortTensor*, THLongTensor*, THShortTensor*, int)’:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: too few arguments to function ‘void THShortTensor_min(THShortTensor*, THLongTensor*, THShortTensor*, int, int)’
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
In file included from /home/tts513/torch/install/include/TH/THStorage.h:4:0,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:18,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/tts513/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tts513/torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tts513/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tts513/torch/install/include/TH/generic/THTensorMath.h:73:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(min)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tts513/torch/install/include/TH/THGenerateIntTypes.h:12,
                 from /home/tts513/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Tensor.h:28,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:19,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<short int>::_sum(THShortTensor*, THShortTensor*, int)’:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: too few arguments to function ‘void THShortTensor_sum(THShortTensor*, THShortTensor*, int, int)’
     return THTensor_(sum)(r, t, dim);
                                    ^
In file included from /home/tts513/torch/install/include/TH/THStorage.h:4:0,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:18,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/tts513/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tts513/torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tts513/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tts513/torch/install/include/TH/generic/THTensorMath.h:77:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tts513/torch/install/include/TH/THGenerateIntTypes.h:12,
                 from /home/tts513/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Tensor.h:28,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:19,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(sum)(r, t, dim);
                                    ^
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<short int>::_prod(THShortTensor*, THShortTensor*, int)’:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: too few arguments to function ‘void THShortTensor_prod(THShortTensor*, THShortTensor*, int, int)’
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from /home/tts513/torch/install/include/TH/THStorage.h:4:0,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:18,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/tts513/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tts513/torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tts513/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tts513/torch/install/include/TH/generic/THTensorMath.h:78:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(prod)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tts513/torch/install/include/TH/THGenerateIntTypes.h:12,
                 from /home/tts513/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Tensor.h:28,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:19,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tts513/torch/install/include/TH/THGenerateIntTypes.h:13,
                 from /home/tts513/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Tensor.h:28,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:19,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<int>::_max(THIntTensor*, THLongTensor*, THIntTensor*, int)’:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ‘void THIntTensor_max(THIntTensor*, THLongTensor*, THIntTensor*, int, int)’
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
In file included from /home/tts513/torch/install/include/TH/THStorage.h:4:0,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:18,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/tts513/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tts513/torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tts513/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tts513/torch/install/include/TH/generic/THTensorMath.h:72:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(max)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tts513/torch/install/include/TH/THGenerateIntTypes.h:13,
                 from /home/tts513/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Tensor.h:28,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:19,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<int>::_min(THIntTensor*, THLongTensor*, THIntTensor*, int)’:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: too few arguments to function ‘void THIntTensor_min(THIntTensor*, THLongTensor*, THIntTensor*, int, int)’
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
In file included from /home/tts513/torch/install/include/TH/THStorage.h:4:0,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:18,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/tts513/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tts513/torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tts513/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tts513/torch/install/include/TH/generic/THTensorMath.h:73:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(min)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tts513/torch/install/include/TH/THGenerateIntTypes.h:13,
                 from /home/tts513/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Tensor.h:28,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:19,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<int>::_sum(THIntTensor*, THIntTensor*, int)’:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: too few arguments to function ‘void THIntTensor_sum(THIntTensor*, THIntTensor*, int, int)’
     return THTensor_(sum)(r, t, dim);
                                    ^
In file included from /home/tts513/torch/install/include/TH/THStorage.h:4:0,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:18,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/tts513/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tts513/torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tts513/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tts513/torch/install/include/TH/generic/THTensorMath.h:77:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tts513/torch/install/include/TH/THGenerateIntTypes.h:13,
                 from /home/tts513/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Tensor.h:28,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:19,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(sum)(r, t, dim);
                                    ^
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<int>::_prod(THIntTensor*, THIntTensor*, int)’:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: too few arguments to function ‘void THIntTensor_prod(THIntTensor*, THIntTensor*, int, int)’
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from /home/tts513/torch/install/include/TH/THStorage.h:4:0,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:18,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/tts513/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tts513/torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tts513/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tts513/torch/install/include/TH/generic/THTensorMath.h:78:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(prod)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tts513/torch/install/include/TH/THGenerateIntTypes.h:13,
                 from /home/tts513/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Tensor.h:28,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:19,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tts513/torch/install/include/TH/THGenerateIntTypes.h:14,
                 from /home/tts513/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Tensor.h:28,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:19,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<long int>::_max(THLongTensor*, THLongTensor*, THLongTensor*, int)’:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ‘void THLongTensor_max(THLongTensor*, THLongTensor*, THLongTensor*, int, int)’
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
In file included from /home/tts513/torch/install/include/TH/THStorage.h:4:0,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:18,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/tts513/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tts513/torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tts513/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tts513/torch/install/include/TH/generic/THTensorMath.h:72:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(max)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tts513/torch/install/include/TH/THGenerateIntTypes.h:14,
                 from /home/tts513/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Tensor.h:28,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:19,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<long int>::_min(THLongTensor*, THLongTensor*, THLongTensor*, int)’:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: too few arguments to function ‘void THLongTensor_min(THLongTensor*, THLongTensor*, THLongTensor*, int, int)’
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
In file included from /home/tts513/torch/install/include/TH/THStorage.h:4:0,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:18,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/tts513/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tts513/torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tts513/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tts513/torch/install/include/TH/generic/THTensorMath.h:73:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(min)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tts513/torch/install/include/TH/THGenerateIntTypes.h:14,
                 from /home/tts513/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Tensor.h:28,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:19,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<long int>::_sum(THLongTensor*, THLongTensor*, int)’:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: too few arguments to function ‘void THLongTensor_sum(THLongTensor*, THLongTensor*, int, int)’
     return THTensor_(sum)(r, t, dim);
                                    ^
In file included from /home/tts513/torch/install/include/TH/THStorage.h:4:0,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:18,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/tts513/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tts513/torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tts513/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tts513/torch/install/include/TH/generic/THTensorMath.h:77:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tts513/torch/install/include/TH/THGenerateIntTypes.h:14,
                 from /home/tts513/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Tensor.h:28,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:19,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(sum)(r, t, dim);
                                    ^
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<long int>::_prod(THLongTensor*, THLongTensor*, int)’:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: too few arguments to function ‘void THLongTensor_prod(THLongTensor*, THLongTensor*, int, int)’
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from /home/tts513/torch/install/include/TH/THStorage.h:4:0,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Storage.h:14,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:18,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/tts513/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tts513/torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tts513/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tts513/torch/install/include/TH/generic/THTensorMath.h:78:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(prod)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tts513/torch/install/include/TH/THGenerateIntTypes.h:14,
                 from /home/tts513/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/detail/Tensor.h:28,
                 from /home/ypruan/tmp/thpp/thpp/../thpp/Tensor.h:19,
                 from /home/ypruan/tmp/thpp/thpp/TensorSerialization.cpp:11:
/home/ypruan/tmp/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(prod)(r, t, dim);
                                     ^
make[2]: *** [CMakeFiles/thpp.dir/TensorSerialization.cpp.o] Error 1
make[1]: *** [CMakeFiles/thpp.dir/all] Error 2
make: *** [all] Error 2

Is this error caused by the wrong edition using of GCC?

error on compiling

Hi everyone, I've been facing this error when compiling the thpp on ubuntu 16.04

./build.sh 
If you don't have folly or thrift installed, try doing
  THPP_NOFB=1 ./build.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   129    0   129    0     0    281      0 --:--:-- --:--:-- --:--:--   282
100  618k  100  618k    0     0   320k      0  0:00:01  0:00:01 --:--:--  783k
curl: Saved to filename 'googletest-release-1.7.0.zip'
Archive:  googletest-release-1.7.0.zip
c99458533a9b4c743ed51537e25989ea55944908
   creating: googletest-release-1.7.0/
  inflating: googletest-release-1.7.0/CHANGES  
  inflating: googletest-release-1.7.0/CMakeLists.txt  
  inflating: googletest-release-1.7.0/CONTRIBUTORS  
  inflating: googletest-release-1.7.0/LICENSE  
  inflating: googletest-release-1.7.0/Makefile.am  
  inflating: googletest-release-1.7.0/README  
   creating: googletest-release-1.7.0/build-aux/
 extracting: googletest-release-1.7.0/build-aux/.keep  
   creating: googletest-release-1.7.0/cmake/
  inflating: googletest-release-1.7.0/cmake/internal_utils.cmake  
   creating: googletest-release-1.7.0/codegear/
  inflating: googletest-release-1.7.0/codegear/gtest.cbproj  
  inflating: googletest-release-1.7.0/codegear/gtest.groupproj  
  inflating: googletest-release-1.7.0/codegear/gtest_all.cc  
  inflating: googletest-release-1.7.0/codegear/gtest_link.cc  
  inflating: googletest-release-1.7.0/codegear/gtest_main.cbproj  
  inflating: googletest-release-1.7.0/codegear/gtest_unittest.cbproj  
  inflating: googletest-release-1.7.0/configure.ac  
   creating: googletest-release-1.7.0/include/
   creating: googletest-release-1.7.0/include/gtest/
  inflating: googletest-release-1.7.0/include/gtest/gtest-death-test.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest-message.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest-param-test.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest-param-test.h.pump  
  inflating: googletest-release-1.7.0/include/gtest/gtest-printers.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest-spi.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest-test-part.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest-typed-test.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest_pred_impl.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest_prod.h  
   creating: googletest-release-1.7.0/include/gtest/internal/
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-death-test-internal.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-filepath.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-internal.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-linked_ptr.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-param-util-generated.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-param-util-generated.h.pump  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-param-util.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-port.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-string.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-tuple.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-tuple.h.pump  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-type-util.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-type-util.h.pump  
   creating: googletest-release-1.7.0/m4/
  inflating: googletest-release-1.7.0/m4/acx_pthread.m4  
  inflating: googletest-release-1.7.0/m4/gtest.m4  
   creating: googletest-release-1.7.0/make/
  inflating: googletest-release-1.7.0/make/Makefile  
   creating: googletest-release-1.7.0/msvc/
  inflating: googletest-release-1.7.0/msvc/gtest-md.sln  
  inflating: googletest-release-1.7.0/msvc/gtest-md.vcproj  
  inflating: googletest-release-1.7.0/msvc/gtest.sln  
  inflating: googletest-release-1.7.0/msvc/gtest.vcproj  
  inflating: googletest-release-1.7.0/msvc/gtest_main-md.vcproj  
  inflating: googletest-release-1.7.0/msvc/gtest_main.vcproj  
  inflating: googletest-release-1.7.0/msvc/gtest_prod_test-md.vcproj  
  inflating: googletest-release-1.7.0/msvc/gtest_prod_test.vcproj  
  inflating: googletest-release-1.7.0/msvc/gtest_unittest-md.vcproj  
  inflating: googletest-release-1.7.0/msvc/gtest_unittest.vcproj  
   creating: googletest-release-1.7.0/samples/
  inflating: googletest-release-1.7.0/samples/prime_tables.h  
  inflating: googletest-release-1.7.0/samples/sample1.cc  
  inflating: googletest-release-1.7.0/samples/sample1.h  
  inflating: googletest-release-1.7.0/samples/sample10_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample1_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample2.cc  
  inflating: googletest-release-1.7.0/samples/sample2.h  
  inflating: googletest-release-1.7.0/samples/sample2_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample3-inl.h  
  inflating: googletest-release-1.7.0/samples/sample3_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample4.cc  
  inflating: googletest-release-1.7.0/samples/sample4.h  
  inflating: googletest-release-1.7.0/samples/sample4_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample5_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample6_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample7_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample8_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample9_unittest.cc  
   creating: googletest-release-1.7.0/scripts/
  inflating: googletest-release-1.7.0/scripts/fuse_gtest_files.py  
  inflating: googletest-release-1.7.0/scripts/gen_gtest_pred_impl.py  
  inflating: googletest-release-1.7.0/scripts/gtest-config.in  
  inflating: googletest-release-1.7.0/scripts/pump.py  
   creating: googletest-release-1.7.0/scripts/test/
  inflating: googletest-release-1.7.0/scripts/test/Makefile  
  inflating: googletest-release-1.7.0/scripts/upload.py  
  inflating: googletest-release-1.7.0/scripts/upload_gtest.py  
   creating: googletest-release-1.7.0/src/
  inflating: googletest-release-1.7.0/src/gtest-all.cc  
  inflating: googletest-release-1.7.0/src/gtest-death-test.cc  
  inflating: googletest-release-1.7.0/src/gtest-filepath.cc  
  inflating: googletest-release-1.7.0/src/gtest-internal-inl.h  
  inflating: googletest-release-1.7.0/src/gtest-port.cc  
  inflating: googletest-release-1.7.0/src/gtest-printers.cc  
  inflating: googletest-release-1.7.0/src/gtest-test-part.cc  
  inflating: googletest-release-1.7.0/src/gtest-typed-test.cc  
  inflating: googletest-release-1.7.0/src/gtest.cc  
  inflating: googletest-release-1.7.0/src/gtest_main.cc  
   creating: googletest-release-1.7.0/test/
  inflating: googletest-release-1.7.0/test/gtest-death-test_ex_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-death-test_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-filepath_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-linked_ptr_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-listener_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-message_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-options_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-param-test2_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-param-test_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-param-test_test.h  
  inflating: googletest-release-1.7.0/test/gtest-port_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-printers_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-test-part_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-tuple_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-typed-test2_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-typed-test_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-typed-test_test.h  
  inflating: googletest-release-1.7.0/test/gtest-unittest-api_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_all_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_break_on_failure_unittest.py  
  inflating: googletest-release-1.7.0/test/gtest_break_on_failure_unittest_.cc  
  inflating: googletest-release-1.7.0/test/gtest_catch_exceptions_test.py  
  inflating: googletest-release-1.7.0/test/gtest_catch_exceptions_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_color_test.py  
  inflating: googletest-release-1.7.0/test/gtest_color_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_env_var_test.py  
  inflating: googletest-release-1.7.0/test/gtest_env_var_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_environment_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_filter_unittest.py  
  inflating: googletest-release-1.7.0/test/gtest_filter_unittest_.cc  
  inflating: googletest-release-1.7.0/test/gtest_help_test.py  
  inflating: googletest-release-1.7.0/test/gtest_help_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_list_tests_unittest.py  
  inflating: googletest-release-1.7.0/test/gtest_list_tests_unittest_.cc  
  inflating: googletest-release-1.7.0/test/gtest_main_unittest.cc  
  inflating: googletest-release-1.7.0/test/gtest_no_test_unittest.cc  
  inflating: googletest-release-1.7.0/test/gtest_output_test.py  
  inflating: googletest-release-1.7.0/test/gtest_output_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_output_test_golden_lin.txt  
  inflating: googletest-release-1.7.0/test/gtest_pred_impl_unittest.cc  
  inflating: googletest-release-1.7.0/test/gtest_premature_exit_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_prod_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_repeat_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_shuffle_test.py  
  inflating: googletest-release-1.7.0/test/gtest_shuffle_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_sole_header_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_stress_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_test_utils.py  
  inflating: googletest-release-1.7.0/test/gtest_throw_on_failure_ex_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_throw_on_failure_test.py  
  inflating: googletest-release-1.7.0/test/gtest_throw_on_failure_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_uninitialized_test.py  
  inflating: googletest-release-1.7.0/test/gtest_uninitialized_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_unittest.cc  
  inflating: googletest-release-1.7.0/test/gtest_xml_outfile1_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_xml_outfile2_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_xml_outfiles_test.py  
  inflating: googletest-release-1.7.0/test/gtest_xml_output_unittest.py  
  inflating: googletest-release-1.7.0/test/gtest_xml_output_unittest_.cc  
  inflating: googletest-release-1.7.0/test/gtest_xml_test_utils.py  
  inflating: googletest-release-1.7.0/test/production.cc  
  inflating: googletest-release-1.7.0/test/production.h  
   creating: googletest-release-1.7.0/xcode/
   creating: googletest-release-1.7.0/xcode/Config/
  inflating: googletest-release-1.7.0/xcode/Config/DebugProject.xcconfig  
  inflating: googletest-release-1.7.0/xcode/Config/FrameworkTarget.xcconfig  
  inflating: googletest-release-1.7.0/xcode/Config/General.xcconfig  
  inflating: googletest-release-1.7.0/xcode/Config/ReleaseProject.xcconfig  
  inflating: googletest-release-1.7.0/xcode/Config/StaticLibraryTarget.xcconfig  
  inflating: googletest-release-1.7.0/xcode/Config/TestTarget.xcconfig  
   creating: googletest-release-1.7.0/xcode/Resources/
  inflating: googletest-release-1.7.0/xcode/Resources/Info.plist  
   creating: googletest-release-1.7.0/xcode/Samples/
   creating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/
  inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/Info.plist  
   creating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/WidgetFramework.xcodeproj/
  inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/WidgetFramework.xcodeproj/project.pbxproj  
  inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/runtests.sh  
  inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/widget.cc  
  inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/widget.h  
  inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/widget_test.cc  
   creating: googletest-release-1.7.0/xcode/Scripts/
  inflating: googletest-release-1.7.0/xcode/Scripts/runtests.sh  
  inflating: googletest-release-1.7.0/xcode/Scripts/versiongenerate.py  
   creating: googletest-release-1.7.0/xcode/gtest.xcodeproj/
  inflating: googletest-release-1.7.0/xcode/gtest.xcodeproj/project.pbxproj  
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- 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
-- Found Torch7 in /home/user/torch/install
-- Found Folly: /usr/local/include  
-- Found Thrift: /usr/local/include  
-- Performing Test HAS_NO_AS_NEEDED
-- Performing Test HAS_NO_AS_NEEDED - Success
-- Found Glog: /usr/include  
-- Found PythonInterp: /home/user/anaconda2/bin/python (found version "2.7.12") 
-- 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  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/projects/torch/fblualib/fblualib/thpp/thpp/build
[  5%] Generating thpp/if/gen-cpp2/Tensor_types.h, thpp/if/gen-cpp2/Tensor_types.tcc, thpp/if/gen-cpp2/Tensor_constants.h, thpp/if/gen-cpp2/Tensor_types.cpp, thpp/if/gen-cpp2/Tensor_constants.cpp
Scanning dependencies of target thpp
[ 10%] Building CXX object CMakeFiles/thpp.dir/Storage.cpp.o
[ 15%] Building CXX object CMakeFiles/thpp.dir/StorageSerialization.cpp.o
[ 21%] Building CXX object CMakeFiles/thpp.dir/detail/StorageDefs.cpp.o
[ 26%] Building CXX object CMakeFiles/thpp.dir/TensorSerialization.cpp.o
[ 31%] Building CXX object CMakeFiles/thpp.dir/detail/TensorDefs.cpp.o
[ 36%] Building CXX object CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_types.cpp.o
In file included from /usr/local/include/folly/io/async/Request.h:27:0,
                 from /usr/local/include/folly/io/async/EventBase.h:44,
                 from /usr/local/include/folly/io/async/AsyncSocketBase.h:19,
                 from /usr/local/include/folly/io/async/AsyncTransport.h:22,
                 from /usr/local/include/folly/io/async/AsyncSocket.h:26,
                 from /usr/local/include/thrift/lib/cpp/async/TAsyncSocket.h:19,
                 from /usr/local/include/thrift/lib/cpp2/server/Cpp2ConnContext.h:20,
                 from /home/user/projects/torch/fblualib/fblualib/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.tcc:14,
                 from /home/user/projects/torch/fblualib/fblualib/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:9:
/usr/local/include/folly/Synchronized.h:157:37: error: ‘withWLock’ function uses ‘auto’ type specifier without trailing return type
   auto withWLock(Function&& function) {
                                     ^
/usr/local/include/folly/Synchronized.h:157:37: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:163:39: error: ‘withWLock’ function uses ‘auto’ type specifier without trailing return type
   auto withWLock(Function&& function) const {
                                       ^
/usr/local/include/folly/Synchronized.h:163:39: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:179:40: error: ‘withWLockPtr’ function uses ‘auto’ type specifier without trailing return type
   auto withWLockPtr(Function&& function) {
                                        ^
/usr/local/include/folly/Synchronized.h:179:40: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:183:42: error: ‘withWLockPtr’ function uses ‘auto’ type specifier without trailing return type
   auto withWLockPtr(Function&& function) const {
                                          ^
/usr/local/include/folly/Synchronized.h:183:42: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:194:39: error: ‘withRLock’ function uses ‘auto’ type specifier without trailing return type
   auto withRLock(Function&& function) const {
                                       ^
/usr/local/include/folly/Synchronized.h:194:39: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:201:42: error: ‘withRLockPtr’ function uses ‘auto’ type specifier without trailing return type
   auto withRLockPtr(Function&& function) const {
                                          ^
/usr/local/include/folly/Synchronized.h:201:42: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:275:39: error: ‘withULock’ function uses ‘auto’ type specifier without trailing return type
   auto withULock(Function&& function) const {
                                       ^
/usr/local/include/folly/Synchronized.h:275:39: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:293:40: error: ‘withULockPtr’ function uses ‘auto’ type specifier without trailing return type
   auto withULockPtr(Function&& function) {
                                        ^
/usr/local/include/folly/Synchronized.h:293:40: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:297:42: error: ‘withULockPtr’ function uses ‘auto’ type specifier without trailing return type
   auto withULockPtr(Function&& function) const {
                                          ^
/usr/local/include/folly/Synchronized.h:297:42: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:370:36: error: ‘withLock’ function uses ‘auto’ type specifier without trailing return type
   auto withLock(Function&& function) {
                                    ^
/usr/local/include/folly/Synchronized.h:370:36: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:376:38: error: ‘withLock’ function uses ‘auto’ type specifier without trailing return type
   auto withLock(Function&& function) const {
                                      ^
/usr/local/include/folly/Synchronized.h:376:38: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:392:39: error: ‘withLockPtr’ function uses ‘auto’ type specifier without trailing return type
   auto withLockPtr(Function&& function) {
                                       ^
/usr/local/include/folly/Synchronized.h:392:39: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:396:41: error: ‘withLockPtr’ function uses ‘auto’ type specifier without trailing return type
   auto withLockPtr(Function&& function) const {
                                         ^
/usr/local/include/folly/Synchronized.h:396:41: note: deduced return type only available with -std=c++14 or -std=gnu++14
CMakeFiles/thpp.dir/build.make:198: recipe for target 'CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_types.cpp.o' failed
make[2]: *** [CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_types.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/thpp.dir/all' failed
make[1]: *** [CMakeFiles/thpp.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

Any ideas how to resolve this?

Error while linking storage_test

Hi,

Running Ubuntu 16.04.2 LTS, I'm facing an error also referred in issue #50 (the issue was closed by
@freshcoderman without providing a direct solution to the problem).

My initial goal is to install fblualib, which provides an easy installation script, which however fails from fbthrift (which does not compile with autoreconf anymore).
I'm now trying to compile THPP.

As of today, I have installed all dependencies without a problem, including fbthrift.

While running build.sh (same issue with cmake), I'm facing the following linking error:

[ 80%] Linking CXX executable storage_test
../libthpp.so: undefined reference to `apache::thrift::protocol::TProtocolException::throwExceededSizeLimit()'
../libthpp.so: undefined reference to `apache::thrift::protocol::TProtocolException::throwReportedTypeMismatch()'
../libthpp.so: undefined reference to `apache::thrift::util::detail::throwInvalidVarint()'
../libthpp.so: undefined reference to `apache::thrift::protocol::TProtocolException::throwMissingRequiredField(folly::Range<char const*>, folly::Range<char const*>)'
../libthpp.so: undefined reference to `apache::thrift::CompactProtocolReader::throwBadType(unsigned char)'
../libthpp.so: undefined reference to `apache::thrift::protocol::TProtocolException::throwNegativeSize()'
../libthpp.so: undefined reference to `apache::thrift::protocol::TProtocolException::throwBoolValueOutOfRange(unsigned char)'
collect2: error: ld returned 1 exit status

The definitions seem to appear in libthriftprotocol.a
nm /usr/local/lib/libthriftprotocol.a | grep 'throwExceed returns

000000000000034f T _ZN6apache6thrift6detail4json22throwExceededSizeLimitEll
                 U _ZN6apache6thrift6detail4json22throwExceededSizeLimitEll
                 U _ZN6apache6thrift8protocol18TProtocolException22throwExceededSizeLimitEv
                 U _ZN6apache6thrift8protocol18TProtocolException22throwExceededSizeLimitEv

Is there something wrong with fbthrift?
I'm trying understand this error and work my way around...

The compilation line which poses error (make VERBOSE=1)

/usr/bin/c++    -std=gnu++14   CMakeFiles/storage_test.dir/StorageTest.cpp.o  -o storage_test  -L/home/me/faces/torch/install/lib -rdynamic ../libthpp.so ../googletest-release-1.7.0/libgtest.a ../googletest-release-1.7.0/libgtest_main.a /home/me/faces/torch/install/lib/libTH.so.0 -lopenblas -lrt -lm /usr/local/lib/libfolly.so /usr/local/lib/libthrift.a /usr/local/lib/libthriftcpp2.a -lglog ../googletest-release-1.7.0/libgtest.a -lpthread -Wl,-rpath,/home/me/faces/thpp/thpp/build2:/home/me/faces/torch/install/lib:/usr/local/lib 

We can notice that libthriftprotocol.a is not mentioned, so I tried a manual addition:

/usr/bin/c++    -std=gnu++14   CMakeFiles/storage_test.dir/StorageTest.cpp.o  -o storage_test  -L/home/brenoust/faces/torch/install/lib -rdynamic ../libthpp.so ../googletest-release-1.7.0/libgtest.a ../googletest-release-1.7.0/libgtest_main.a /home/brenoust/faces/torch/install/lib/libTH.so.0 -lopenblas -lrt -lm /usr/local/lib/libfolly.so /usr/local/lib/libthrift.a /usr/local/lib/libthriftprotocol.a /usr/local/lib/libthriftcpp2.a -lglog ../googletest-release-1.7.0/libgtest.a -lpthread -Wl,-rpath,/home/brenoust/faces/thpp/thpp/build2:/home/brenoust/faces/torch/install/lib:/usr/local/lib 

But get some additional errors:

/usr/local/lib/libthriftprotocol.a(CompactProtocol.cpp.o): In function `void apache::thrift::util::detail::readVarintMediumSlow<int, folly::io::Cursor, false>(folly::io::Cursor&, int&, unsigned char const*, unsigned long)':
CompactProtocol.cpp:(.text._ZN6apache6thrift4util6detail20readVarintMediumSlowIiN5folly2io6CursorELb0EEEvRT0_RT_PKhm[_ZN6apache6thrift4util6detail20readVarintMediumSlowIiN5folly2io6CursorELb0EEEvRT0_RT_PKhm]+0x17b): undefined reference to `apache::thrift::util::detail::throwInvalidVarint()'
../libthpp.so: undefined reference to `apache::thrift::protocol::TProtocolException::throwExceededSizeLimit()'
../libthpp.so: undefined reference to `apache::thrift::protocol::TProtocolException::throwReportedTypeMismatch()'
../libthpp.so: undefined reference to `apache::thrift::protocol::TProtocolException::throwMissingRequiredField(folly::Range<char const*>, folly::Range<char const*>)'
../libthpp.so: undefined reference to `apache::thrift::protocol::TProtocolException::throwNegativeSize()'
../libthpp.so: undefined reference to `apache::thrift::protocol::TProtocolException::throwBoolValueOutOfRange(unsigned char)'

Any suggestion?

Side question. It seems that many pull requests including the obvious but necessary -std=gnu++11 -> -std=gnu++14 update for CMakeList have been proposed but never integrated in the repository. It makes me wonder if this project is still maintained or has been abandoned.

Thanks for your help!

fbthrift got no stable version to support compling TH++, is GeneratedHeaderHelper optional?

When building TH++, there is this line in thpp/build/thpp/if/gen-cpp2/Tensor_type.h:

#include <thrift/lib/cpp2/GeneratedHeaderHelper.h>

But at Thrift v0.24, there is no such file.
So, Thrift & Folly can be installed successfully, but when it comes to TH++, I got an error like:

cannot find GeneratedHeaderHelper.h

Since Thrift v2016.09.26 , this file has been added, but according to the README of Thrift, it seems none of those new version can be built completely.

T.T..................... I have tried paste this file from new version into the folder of v0.24, or comment that line , all lead to this new issue:

Scanning dependencies of target thpp
[  7%] Building CXX object CMakeFiles/thpp.dir/Storage.cpp.o
In file included from /home/amax/LavieC/CRNN_ENV/thpp/thpp/../thpp/Storage.h:15:0,
                 from /home/amax/LavieC/CRNN_ENV/thpp/thpp/Storage.cpp:11:
/home/amax/LavieC/CRNN_ENV/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.h:32:47: error: ‘TEnumMapFactory’ in namespace ‘apache::thrift::detail’ does not name a template type
 extern const typename apache::thrift::detail::TEnumMapFactory<ThriftTensorDataType, ThriftTensorDataType>::ValuesToNamesMapType _ThriftTensorDataType_VALUES_TO_NAMES;

Now I got no idea how to install all the dependencies of fblualib, wish you guys could solve this problem.

./bulid.sh : Linking CXX executable tensor_serialization_test ERROR !

Does anyone have the same problem ?
Please help me , thanks in advance ! T_T

tao@tao:thpp$ ./build.sh
If you don't have folly or thrift installed, try doing
  THPP_NOFB=1 ./build.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   129    0   129    0     0    118      0 --:--:--  0:00:01 --:--:--   118
100  618k  100  618k    0     0   157k      0  0:00:03  0:00:03 --:--:--  297k
curl: Saved to filename 'googletest-release-1.7.0.zip'
Archive:  googletest-release-1.7.0.zip
c99458533a9b4c743ed51537e25989ea55944908
   creating: googletest-release-1.7.0/
  inflating: googletest-release-1.7.0/CHANGES  
  inflating: googletest-release-1.7.0/CMakeLists.txt  
  inflating: googletest-release-1.7.0/CONTRIBUTORS  
  inflating: googletest-release-1.7.0/LICENSE  
  inflating: googletest-release-1.7.0/Makefile.am  
  inflating: googletest-release-1.7.0/README  
   creating: googletest-release-1.7.0/build-aux/
 extracting: googletest-release-1.7.0/build-aux/.keep  
   creating: googletest-release-1.7.0/cmake/
  inflating: googletest-release-1.7.0/cmake/internal_utils.cmake  
   creating: googletest-release-1.7.0/codegear/
  inflating: googletest-release-1.7.0/codegear/gtest.cbproj  
  inflating: googletest-release-1.7.0/codegear/gtest.groupproj  
  inflating: googletest-release-1.7.0/codegear/gtest_all.cc  
  inflating: googletest-release-1.7.0/codegear/gtest_link.cc  
  inflating: googletest-release-1.7.0/codegear/gtest_main.cbproj  
  inflating: googletest-release-1.7.0/codegear/gtest_unittest.cbproj  
  inflating: googletest-release-1.7.0/configure.ac  
   creating: googletest-release-1.7.0/include/
   creating: googletest-release-1.7.0/include/gtest/
  inflating: googletest-release-1.7.0/include/gtest/gtest-death-test.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest-message.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest-param-test.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest-param-test.h.pump  
  inflating: googletest-release-1.7.0/include/gtest/gtest-printers.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest-spi.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest-test-part.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest-typed-test.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest_pred_impl.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest_prod.h  
   creating: googletest-release-1.7.0/include/gtest/internal/
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-death-test-internal.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-filepath.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-internal.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-linked_ptr.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-param-util-generated.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-param-util-generated.h.pump  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-param-util.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-port.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-string.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-tuple.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-tuple.h.pump  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-type-util.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-type-util.h.pump  
   creating: googletest-release-1.7.0/m4/
  inflating: googletest-release-1.7.0/m4/acx_pthread.m4  
  inflating: googletest-release-1.7.0/m4/gtest.m4  
   creating: googletest-release-1.7.0/make/
  inflating: googletest-release-1.7.0/make/Makefile  
   creating: googletest-release-1.7.0/msvc/
  inflating: googletest-release-1.7.0/msvc/gtest-md.sln  
  inflating: googletest-release-1.7.0/msvc/gtest-md.vcproj  
  inflating: googletest-release-1.7.0/msvc/gtest.sln  
  inflating: googletest-release-1.7.0/msvc/gtest.vcproj  
  inflating: googletest-release-1.7.0/msvc/gtest_main-md.vcproj  
  inflating: googletest-release-1.7.0/msvc/gtest_main.vcproj  
  inflating: googletest-release-1.7.0/msvc/gtest_prod_test-md.vcproj  
  inflating: googletest-release-1.7.0/msvc/gtest_prod_test.vcproj  
  inflating: googletest-release-1.7.0/msvc/gtest_unittest-md.vcproj  
  inflating: googletest-release-1.7.0/msvc/gtest_unittest.vcproj  
   creating: googletest-release-1.7.0/samples/
  inflating: googletest-release-1.7.0/samples/prime_tables.h  
  inflating: googletest-release-1.7.0/samples/sample1.cc  
  inflating: googletest-release-1.7.0/samples/sample1.h  
  inflating: googletest-release-1.7.0/samples/sample10_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample1_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample2.cc  
  inflating: googletest-release-1.7.0/samples/sample2.h  
  inflating: googletest-release-1.7.0/samples/sample2_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample3-inl.h  
  inflating: googletest-release-1.7.0/samples/sample3_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample4.cc  
  inflating: googletest-release-1.7.0/samples/sample4.h  
  inflating: googletest-release-1.7.0/samples/sample4_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample5_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample6_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample7_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample8_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample9_unittest.cc  
   creating: googletest-release-1.7.0/scripts/
  inflating: googletest-release-1.7.0/scripts/fuse_gtest_files.py  
  inflating: googletest-release-1.7.0/scripts/gen_gtest_pred_impl.py  
  inflating: googletest-release-1.7.0/scripts/gtest-config.in  
  inflating: googletest-release-1.7.0/scripts/pump.py  
   creating: googletest-release-1.7.0/scripts/test/
  inflating: googletest-release-1.7.0/scripts/test/Makefile  
  inflating: googletest-release-1.7.0/scripts/upload.py  
  inflating: googletest-release-1.7.0/scripts/upload_gtest.py  
   creating: googletest-release-1.7.0/src/
  inflating: googletest-release-1.7.0/src/gtest-all.cc  
  inflating: googletest-release-1.7.0/src/gtest-death-test.cc  
  inflating: googletest-release-1.7.0/src/gtest-filepath.cc  
  inflating: googletest-release-1.7.0/src/gtest-internal-inl.h  
  inflating: googletest-release-1.7.0/src/gtest-port.cc  
  inflating: googletest-release-1.7.0/src/gtest-printers.cc  
  inflating: googletest-release-1.7.0/src/gtest-test-part.cc  
  inflating: googletest-release-1.7.0/src/gtest-typed-test.cc  
  inflating: googletest-release-1.7.0/src/gtest.cc  
  inflating: googletest-release-1.7.0/src/gtest_main.cc  
   creating: googletest-release-1.7.0/test/
  inflating: googletest-release-1.7.0/test/gtest-death-test_ex_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-death-test_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-filepath_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-linked_ptr_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-listener_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-message_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-options_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-param-test2_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-param-test_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-param-test_test.h  
  inflating: googletest-release-1.7.0/test/gtest-port_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-printers_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-test-part_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-tuple_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-typed-test2_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-typed-test_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-typed-test_test.h  
  inflating: googletest-release-1.7.0/test/gtest-unittest-api_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_all_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_break_on_failure_unittest.py  
  inflating: googletest-release-1.7.0/test/gtest_break_on_failure_unittest_.cc  
  inflating: googletest-release-1.7.0/test/gtest_catch_exceptions_test.py  
  inflating: googletest-release-1.7.0/test/gtest_catch_exceptions_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_color_test.py  
  inflating: googletest-release-1.7.0/test/gtest_color_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_env_var_test.py  
  inflating: googletest-release-1.7.0/test/gtest_env_var_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_environment_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_filter_unittest.py  
  inflating: googletest-release-1.7.0/test/gtest_filter_unittest_.cc  
  inflating: googletest-release-1.7.0/test/gtest_help_test.py  
  inflating: googletest-release-1.7.0/test/gtest_help_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_list_tests_unittest.py  
  inflating: googletest-release-1.7.0/test/gtest_list_tests_unittest_.cc  
  inflating: googletest-release-1.7.0/test/gtest_main_unittest.cc  
  inflating: googletest-release-1.7.0/test/gtest_no_test_unittest.cc  
  inflating: googletest-release-1.7.0/test/gtest_output_test.py  
  inflating: googletest-release-1.7.0/test/gtest_output_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_output_test_golden_lin.txt  
  inflating: googletest-release-1.7.0/test/gtest_pred_impl_unittest.cc  
  inflating: googletest-release-1.7.0/test/gtest_premature_exit_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_prod_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_repeat_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_shuffle_test.py  
  inflating: googletest-release-1.7.0/test/gtest_shuffle_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_sole_header_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_stress_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_test_utils.py  
  inflating: googletest-release-1.7.0/test/gtest_throw_on_failure_ex_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_throw_on_failure_test.py  
  inflating: googletest-release-1.7.0/test/gtest_throw_on_failure_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_uninitialized_test.py  
  inflating: googletest-release-1.7.0/test/gtest_uninitialized_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_unittest.cc  
  inflating: googletest-release-1.7.0/test/gtest_xml_outfile1_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_xml_outfile2_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_xml_outfiles_test.py  
  inflating: googletest-release-1.7.0/test/gtest_xml_output_unittest.py  
  inflating: googletest-release-1.7.0/test/gtest_xml_output_unittest_.cc  
  inflating: googletest-release-1.7.0/test/gtest_xml_test_utils.py  
  inflating: googletest-release-1.7.0/test/production.cc  
  inflating: googletest-release-1.7.0/test/production.h  
   creating: googletest-release-1.7.0/xcode/
   creating: googletest-release-1.7.0/xcode/Config/
  inflating: googletest-release-1.7.0/xcode/Config/DebugProject.xcconfig  
  inflating: googletest-release-1.7.0/xcode/Config/FrameworkTarget.xcconfig  
  inflating: googletest-release-1.7.0/xcode/Config/General.xcconfig  
  inflating: googletest-release-1.7.0/xcode/Config/ReleaseProject.xcconfig  
  inflating: googletest-release-1.7.0/xcode/Config/StaticLibraryTarget.xcconfig  
  inflating: googletest-release-1.7.0/xcode/Config/TestTarget.xcconfig  
   creating: googletest-release-1.7.0/xcode/Resources/
  inflating: googletest-release-1.7.0/xcode/Resources/Info.plist  
   creating: googletest-release-1.7.0/xcode/Samples/
   creating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/
  inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/Info.plist  
   creating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/WidgetFramework.xcodeproj/
  inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/WidgetFramework.xcodeproj/project.pbxproj  
  inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/runtests.sh  
  inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/widget.cc  
  inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/widget.h  
  inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/widget_test.cc  
   creating: googletest-release-1.7.0/xcode/Scripts/
  inflating: googletest-release-1.7.0/xcode/Scripts/runtests.sh  
  inflating: googletest-release-1.7.0/xcode/Scripts/versiongenerate.py  
   creating: googletest-release-1.7.0/xcode/gtest.xcodeproj/
  inflating: googletest-release-1.7.0/xcode/gtest.xcodeproj/project.pbxproj  
-- The C compiler identification is GNU 4.9.4
-- The CXX compiler identification is GNU 4.9.4
-- 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
-- Found Torch7 in /home/tao/Tao/torch/install
-- Found Folly: /usr/local/include  
-- Found Thrift: /usr/local/include  
-- Performing Test HAS_NO_AS_NEEDED
-- Performing Test HAS_NO_AS_NEEDED - Success
-- Found Glog: /usr/local/include  
-- Found PythonInterp: /usr/bin/python (found version "2.7.6") 
-- 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  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tao/Documents/thpp-master/thpp/build
[  5%] Generating thpp/if/gen-cpp2/Tensor_data.h, thpp/if/gen-cpp2/Tensor_types.h, thpp/if/gen-cpp2/Tensor_types.tcc, thpp/if/gen-cpp2/Tensor_constants.h, thpp/if/gen-cpp2/Tensor_data.cpp, thpp/if/gen-cpp2/Tensor_types.cpp, thpp/if/gen-cpp2/Tensor_constants.cpp
Scanning dependencies of target thpp
[ 10%] Building CXX object CMakeFiles/thpp.dir/Storage.cpp.o
[ 15%] Building CXX object CMakeFiles/thpp.dir/StorageSerialization.cpp.o
[ 20%] Building CXX object CMakeFiles/thpp.dir/detail/StorageDefs.cpp.o
[ 25%] Building CXX object CMakeFiles/thpp.dir/TensorSerialization.cpp.o
[ 30%] Building CXX object CMakeFiles/thpp.dir/detail/TensorDefs.cpp.o
[ 35%] Building CXX object CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_data.cpp.o
[ 40%] Building CXX object CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_types.cpp.o
[ 45%] Building CXX object CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_constants.cpp.o
[ 50%] Linking CXX shared library libthpp.so
[ 50%] Built target thpp
Scanning dependencies of target gtest
[ 55%] Building CXX object googletest-release-1.7.0/CMakeFiles/gtest.dir/src/gtest-all.cc.o
[ 60%] Linking CXX static library libgtest.a
[ 60%] Built target gtest
Scanning dependencies of target gtest_main
[ 65%] Building CXX object googletest-release-1.7.0/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
[ 70%] Linking CXX static library libgtest_main.a
[ 70%] Built target gtest_main
Scanning dependencies of target tensor_serialization_test
[ 75%] Building CXX object test/CMakeFiles/tensor_serialization_test.dir/TensorSerializationTest.cpp.o
[ 80%] Linking CXX executable tensor_serialization_test
../libthpp.so: undefined reference to `apache::thrift::protocol::TProtocolException::throwExceededSizeLimit()'
/usr/local/lib/libthriftcpp2.so: undefined reference to `ASN1_STRING_get0_data'
/usr/local/lib/libthriftcpp2.so: undefined reference to `SSL_SESSION_up_ref'
/usr/local/lib/libthriftcpp2.so: undefined reference to `DH_set0_pqg'
/usr/local/lib/libfolly.so: undefined reference to `SSL_get0_alpn_selected'
/usr/local/lib/libfolly.so: undefined reference to `X509_get_signature_nid'
/usr/local/lib/libfolly.so: undefined reference to `SSL_CTX_set_alpn_select_cb'
../libthpp.so: undefined reference to `apache::thrift::protocol::TProtocolException::throwBoolValueOutOfRange(unsigned char)'
/usr/local/lib/libthriftcpp2.so: undefined reference to `OPENSSL_sk_num'
../libthpp.so: undefined reference to `apache::thrift::CompactProtocolReader::throwBadType(unsigned char)'
../libthpp.so: undefined reference to `apache::thrift::protocol::TProtocolException::throwNegativeSize()'
/usr/local/lib/libthriftcpp2.so: undefined reference to `OPENSSL_sk_value'
/usr/local/lib/libthriftcpp2.so: undefined reference to `X509_up_ref'
/usr/local/lib/libfolly.so: undefined reference to `SSL_CTX_set_alpn_protos'
collect2: error: ld returned 1 exit status
make[2]: *** [test/tensor_serialization_test] Error 1
make[1]: *** [test/CMakeFiles/tensor_serialization_test.dir/all] Error 2
make: *** [all] Error 2

build error: ‘class thpp::Storage<float>’ has no member named ‘getIOBuf’

A duplicate of this has been closed a few days ago by the author but there is no solution that works so I'm 'reopening' it here.

thpp (master or v1) fail to compile with the above error, whether or not NO_FOLLY and NO_THRIFT are specified. Please give a solution without folly as that seems a lot simpler than reverting to why folly doesn't properly install.
System: latest 14.04 LTS Ubuntu, with torch and nothing else installed

Fail to build with current folly

Some error reported and seems it happened because of folly:
[ 40%] Building CXX object CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_types.cpp.o
In file included from /usr/local/include/folly/io/async/Request.h:27:0,
from /usr/local/include/folly/io/async/EventBase.h:45,
from /usr/local/include/folly/io/async/AsyncSocketBase.h:19,
from /usr/local/include/folly/io/async/AsyncTransport.h:22,
from /usr/local/include/folly/io/async/AsyncSocket.h:26,
from /usr/local/include/thrift/lib/cpp/async/TAsyncSocket.h:19,
from /usr/local/include/thrift/lib/cpp2/server/Cpp2ConnContext.h:20,
from /home/ano/workspace/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.tcc:14,
from /home/ano/workspace/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:9:
/usr/local/include/folly/Synchronized.h:157:37: error: ‘withWLock’ function uses ‘aut’ type specifier without trailing return type
auto withWLock(Function&& function) {
^
/usr/local/include/folly/Synchronized.h:157:37: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:163:39: error: ‘withWLock’ function uses ‘aut’ type specifier without trailing return type
auto withWLock(Function&& function) const {
^
/usr/local/include/folly/Synchronized.h:163:39: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:179:40: error: ‘withWLockPtr’ function uses ‘auto’ type specifier without trailing return type
auto withWLockPtr(Function&& function) {
^
/usr/local/include/folly/Synchronized.h:179:40: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:183:42: error: ‘withWLockPtr’ function uses ‘auto’ type specifier without trailing return type
auto withWLockPtr(Function&& function) const {
^
/usr/local/include/folly/Synchronized.h:183:42: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:194:39: error: ‘withRLock’ function uses ‘aut’ type specifier without trailing return type
auto withRLock(Function&& function) const {
^
/usr/local/include/folly/Synchronized.h:194:39: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:201:42: error: ‘withRLockPtr’ function uses ‘auto’ type specifier without trailing return type
auto withRLockPtr(Function&& function) const {
^
/usr/local/include/folly/Synchronized.h:201:42: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:275:39: error: ‘withULock’ function uses ‘aut’ type specifier without trailing return type
auto withULock(Function&& function) const {
^
/usr/local/include/folly/Synchronized.h:275:39: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:293:40: error: ‘withULockPtr’ function uses ‘auto’ type specifier without trailing return type
auto withULockPtr(Function&& function) {
^
/usr/local/include/folly/Synchronized.h:293:40: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:297:42: error: ‘withULockPtr’ function uses ‘auto’ type specifier without trailing return type
auto withULockPtr(Function&& function) const {
^
/usr/local/include/folly/Synchronized.h:297:42: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:370:36: error: ‘withLock’ function uses ‘auto’ type specifier without trailing return type
auto withLock(Function&& function) {
^
/usr/local/include/folly/Synchronized.h:370:36: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:376:38: error: ‘withLock’ function uses ‘auto’ type specifier without trailing return type
auto withLock(Function&& function) const {
^
/usr/local/include/folly/Synchronized.h:376:38: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:392:39: error: ‘withLockPtr’ function uses ‘auto’ type specifier without trailing return type
auto withLockPtr(Function&& function) {
^
/usr/local/include/folly/Synchronized.h:392:39: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:396:41: error: ‘withLockPtr’ function uses ‘auto’ type specifier without trailing return type
auto withLockPtr(Function&& function) const {
^
/usr/local/include/folly/Synchronized.h:396:41: note: deduced return type only available with -std=c++14 or -std=gnu++14
CMakeFiles/thpp.dir/build.make:228: recipe for target 'CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_types.cpp.o' failed
make[2]: *** [CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_types.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/thpp.dir/all' failed
make[1]: *** [CMakeFiles/thpp.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

folly synchronised.h install fails for thpp

I'm getting the following error while compiling thpp:

[ 1%] Building CXX object CMakeFiles/wangle.dir/acceptor/Acceptor.cpp.o In file included from /usr/local/include/folly/io/async/Request.h:27:0, from /usr/local/include/folly/io/async/EventBase.h:44, from /usr/local/include/folly/io/async/AsyncSocketBase.h:19, from /usr/local/include/folly/io/async/AsyncTransport.h:22, from /usr/local/include/folly/io/async/AsyncSocket.h:26, from /usr/local/include/folly/io/async/AsyncSSLSocket.h:23, from /tmp/follythrift-build.cQz7Vt/wangle/wangle/../wangle/ssl/SSLUtil.h:14, from /tmp/follythrift-build.cQz7Vt/wangle/wangle/../wangle/acceptor/ServerSocketConfig.h:15, from /tmp/follythrift-build.cQz7Vt/wangle/wangle/../wangle/acceptor/Acceptor.h:12, from /tmp/follythrift-build.cQz7Vt/wangle/wangle/acceptor/Acceptor.cpp:10: /usr/local/include/folly/Synchronized.h:157:37: error: ‘withWLock’ function uses ‘auto’ type specifier without trailing return type auto withWLock(Function&& function) { ^ /usr/local/include/folly/Synchronized.h:157:37: note: deduced return type only available with -std=c++14 or -std=gnu++14 /usr/local/include/folly/Synchronized.h:163:39: error: ‘withWLock’ function uses ‘auto’ type specifier without trailing return type auto withWLock(Function&& function) const { ^ /usr/local/include/folly/Synchronized.h:163:39: note: deduced return type only available with -std=c++14 or -std=gnu++14 /usr/local/include/folly/Synchronized.h:179:40: error: ‘withWLockPtr’ function uses ‘auto’ type specifier without trailing return type auto withWLockPtr(Function&& function) { ^ /usr/local/include/folly/Synchronized.h:179:40: note: deduced return type only available with -std=c++14 or -std=gnu++14 /usr/local/include/folly/Synchronized.h:183:42: error: ‘withWLockPtr’ function uses ‘auto’ type specifier without trailing return type auto withWLockPtr(Function&& function) const { ^ /usr/local/include/folly/Synchronized.h:183:42: note: deduced return type only available with -std=c++14 or -std=gnu++14 /usr/local/include/folly/Synchronized.h:194:39: error: ‘withRLock’ function uses ‘auto’ type specifier without trailing return type auto withRLock(Function&& function) const { ^ /usr/local/include/folly/Synchronized.h:194:39: note: deduced return type only available with -std=c++14 or -std=gnu++14 /usr/local/include/folly/Synchronized.h:201:42: error: ‘withRLockPtr’ function uses ‘auto’ type specifier without trailing return type auto withRLockPtr(Function&& function) const { ^ /usr/local/include/folly/Synchronized.h:201:42: note: deduced return type only available with -std=c++14 or -std=gnu++14 /usr/local/include/folly/Synchronized.h:275:39: error: ‘withULock’ function uses ‘auto’ type specifier without trailing return type auto withULock(Function&& function) const { ^ /usr/local/include/folly/Synchronized.h:275:39: note: deduced return type only available with -std=c++14 or -std=gnu++14 /usr/local/include/folly/Synchronized.h:293:40: error: ‘withULockPtr’ function uses ‘auto’ type specifier without trailing return type auto withULockPtr(Function&& function) { ^ /usr/local/include/folly/Synchronized.h:293:40: note: deduced return type only available with -std=c++14 or -std=gnu++14 /usr/local/include/folly/Synchronized.h:297:42: error: ‘withULockPtr’ function uses ‘auto’ type specifier without trailing return type auto withULockPtr(Function&& function) const { ^ /usr/local/include/folly/Synchronized.h:297:42: note: deduced return type only available with -std=c++14 or -std=gnu++14 /usr/local/include/folly/Synchronized.h:370:36: error: ‘withLock’ function uses ‘auto’ type specifier without trailing return type auto withLock(Function&& function) { ^ /usr/local/include/folly/Synchronized.h:370:36: note: deduced return type only available with -std=c++14 or -std=gnu++14 /usr/local/include/folly/Synchronized.h:376:38: error: ‘withLock’ function uses ‘auto’ type specifier without trailing return type auto withLock(Function&& function) const { ^ /usr/local/include/folly/Synchronized.h:376:38: note: deduced return type only available with -std=c++14 or -std=gnu++14 /usr/local/include/folly/Synchronized.h:392:39: error: ‘withLockPtr’ function uses ‘auto’ type specifier without trailing return type auto withLockPtr(Function&& function) { ^ /usr/local/include/folly/Synchronized.h:392:39: note: deduced return type only available with -std=c++14 or -std=gnu++14 /usr/local/include/folly/Synchronized.h:396:41: error: ‘withLockPtr’ function uses ‘auto’ type specifier without trailing return type auto withLockPtr(Function&& function) const {

Is there any workaround?

lots of error during compilation in TensorSerialization.cpp

Hi all, I have problems with thrift too, so I run ./build.sh placing NOTHRIFT flag. So I've no more thrift related error. Other has appeared, that seem to be related to Torch API. I have latest torch (git clone 2 days ago and current thpp). What can I do? Any help is appreciated.
I pasted only first and last section of the error output, I'm attaching a complete log as a txt file.
THPP_compile_error.txt

  inflating: googletest-release-1.7.0/xcode/gtest.xcodeproj/project.pbxproj 
-- Found Torch7 in /home/francesco/torch/install
-- Configuring done
-- Generating done
-- Build files have been written to: /home/francesco/openface/thpp/thpp/build
[  7%] Building CXX object CMakeFiles/thpp.dir/TensorSerialization.cpp.o
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/francesco/torch/install/include/TH/THGenerateFloatTypes.h:10,
                 from /home/francesco/torch/install/include/TH/THGenerateAllTypes.h:10,
                 from /home/francesco/openface/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/francesco/openface/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/francesco/openface/thpp/thpp/TensorSerialization.cpp:11:
/home/francesco/openface/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<float> >::_max(THFloatTensor*, THLongTensor*, THFloatTensor*, int)’:
/home/francesco/openface/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ‘void THFloatTensor_max(THFloatTensor*, THLongTensor*, THFloatTensor*, int, int)’
     return THTensor_(max)(values, indices, t, dim);

 [......]

CMakeFiles/thpp.dir/build.make:134: recipe for target 'CMakeFiles/thpp.dir/TensorSerialization.cpp.o' failed
make[2]: *** [CMakeFiles/thpp.dir/TensorSerialization.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/thpp.dir/all' failed
make[1]: *** [CMakeFiles/thpp.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2




error when running ./build.sh

I am not sure if it's the problem of fbthrift, any suggestion will be appreciated
I have already change gnu++11 to gnu++14
The errors are :
[ 80%] Linking CXX executable storage_test
../libthpp.so: undefined reference to apache::thrift::protocol::TProtocolException::throwExceededSizeLimit()' ../libthpp.so: undefined reference to apache::thrift::protocol::TProtocolException::throwReportedTypeMismatch()'
../libthpp.so: undefined reference to apache::thrift::util::detail::throwInvalidVarint()' ../libthpp.so: undefined reference to apache::thrift::protocol::TProtocolException::throwMissingRequiredField(folly::Range<char const*>, folly::Range<char const*>)'
../libthpp.so: undefined reference to apache::thrift::CompactProtocolReader::throwBadType(unsigned char)' ../libthpp.so: undefined reference to apache::thrift::protocol::TProtocolException::throwNegativeSize()'
collect2: error: ld returned 1 exit status
test/CMakeFiles/storage_test.dir/build.make:104: recipe for target 'test/storage_test' failed
make[2]: *** [test/storage_test] Error 1
CMakeFiles/Makefile2:222: recipe for target 'test/CMakeFiles/storage_test.dir/all' failed
make[1]: *** [test/CMakeFiles/storage_test.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

../libthpp.so: undefined reference to `apache::thrift::protocol::TProtocolException::throwExceededSizeLimit()'

hi all, when I compiled thpp using the ./build.sh, it has occured this problem
[ 75%] Building CXX object test/CMakeFiles/storage_test.dir/StorageTest.cpp.o
[ 80%] Linking CXX executable storage_test
../libthpp.so: undefined reference to apache::thrift::protocol::TProtocolException::throwExceededSizeLimit()' ../libthpp.so: undefined reference to apache::thrift::protocol::TProtocolException::throwReportedTypeMismatch()'
../libthpp.so: undefined reference to apache::thrift::util::detail::throwInvalidVarint()' ../libthpp.so: undefined reference to apache::thrift::protocol::TProtocolException::throwMissingRequiredField(folly::Range<char const*>, folly::Range<char const*>)'
../libthpp.so: undefined reference to apache::thrift::CompactProtocolReader::throwBadType(unsigned char)' ../libthpp.so: undefined reference to apache::thrift::protocol::TProtocolException::throwNegativeSize()'
../libthpp.so: undefined reference to double_conversion::StringToDoubleConverter::StringToDouble(char const*, int, int*) const' ../libthpp.so: undefined reference to double_conversion::DoubleToStringConverter::ToShortestIeeeNumber(double, double_conversion::StringBuilder*, double_conversion::DoubleToStringConverter::DtoaMode) const'
../libthpp.so: undefined reference to double_conversion::DoubleToStringConverter::ToExponential(double, int, double_conversion::StringBuilder*) const' ../libthpp.so: undefined reference to double_conversion::DoubleToStringConverter::ToFixed(double, int, double_conversion::StringBuilder*) const'
../libthpp.so: undefined reference to `apache::thrift::protocol::TProtocolException::throwBoolValueOutOfRange(unsigned char)'
collect2: error: ld returned 1 exit status
test/CMakeFiles/storage_test.dir/build.make:104: recipe for target 'test/storage_test' failed
make[2]: *** [test/storage_test] Error 1
CMakeFiles/Makefile2:222: recipe for target 'test/CMakeFiles/storage_test.dir/all' failed
make[1]: *** [test/CMakeFiles/storage_test.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

does anybody can help me ?thanks in advance!

Error on installation

Hi Guys,

I am getting following error on Ubuntu 14.04 LTS and gcc 4.8.2, I have tried some fresh build as suggested in issue #4 but no luck,

/usr/local/lib/libthriftcpp2.so: undefined reference to `folly::wangle::IOThreadPoolExecutor::IOThreadPoolExecutor(unsigned long, std::shared_ptrfolly::wangle::ThreadFactory)'
collect2: error: ld returned 1 exit status
make[2]: *** [test/tensor_serialization_test] Error 1
make[1]: *** [test/CMakeFiles/tensor_serialization_test.dir/all] Error 2
make: *** [all] Error 2

Many thanks,

Can't build thpp, getting error: ‘class thpp::Storage<float>’ has no member named ‘getIOBuf’ auto buf = storage.getIOBuf();

I'm trying to build thpp with the following command:
rm -r build && NO_FOLLY=1 NO_THRIFT=1 THPP_NOFB=1 ./build.sh

But it's failing with the error

If you don't have folly or thrift installed, try doing
  THPP_NOFB=1 ./build.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   129    0   129    0     0    194      0 --:--:-- --:--:-- --:--:--   201
100  618k  100  618k    0     0   259k      0  0:00:02  0:00:02 --:--:--  626k
curl: Saved to filename 'googletest-release-1.7.0.zip'
Archive:  googletest-release-1.7.0.zip
c99458533a9b4c743ed51537e25989ea55944908
   creating: googletest-release-1.7.0/
  inflating: googletest-release-1.7.0/CHANGES  
  inflating: googletest-release-1.7.0/CMakeLists.txt  
  inflating: googletest-release-1.7.0/CONTRIBUTORS  
  inflating: googletest-release-1.7.0/LICENSE  
  inflating: googletest-release-1.7.0/Makefile.am  
  inflating: googletest-release-1.7.0/README  
   creating: googletest-release-1.7.0/build-aux/
 extracting: googletest-release-1.7.0/build-aux/.keep  
   creating: googletest-release-1.7.0/cmake/
  inflating: googletest-release-1.7.0/cmake/internal_utils.cmake  
   creating: googletest-release-1.7.0/codegear/
  inflating: googletest-release-1.7.0/codegear/gtest.cbproj  
  inflating: googletest-release-1.7.0/codegear/gtest.groupproj  
  inflating: googletest-release-1.7.0/codegear/gtest_all.cc  
  inflating: googletest-release-1.7.0/codegear/gtest_link.cc  
  inflating: googletest-release-1.7.0/codegear/gtest_main.cbproj  
  inflating: googletest-release-1.7.0/codegear/gtest_unittest.cbproj  
  inflating: googletest-release-1.7.0/configure.ac  
   creating: googletest-release-1.7.0/include/
   creating: googletest-release-1.7.0/include/gtest/
  inflating: googletest-release-1.7.0/include/gtest/gtest-death-test.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest-message.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest-param-test.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest-param-test.h.pump  
  inflating: googletest-release-1.7.0/include/gtest/gtest-printers.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest-spi.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest-test-part.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest-typed-test.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest_pred_impl.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest_prod.h  
   creating: googletest-release-1.7.0/include/gtest/internal/
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-death-test-internal.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-filepath.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-internal.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-linked_ptr.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-param-util-generated.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-param-util-generated.h.pump  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-param-util.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-port.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-string.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-tuple.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-tuple.h.pump  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-type-util.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-type-util.h.pump  
   creating: googletest-release-1.7.0/m4/
  inflating: googletest-release-1.7.0/m4/acx_pthread.m4  
  inflating: googletest-release-1.7.0/m4/gtest.m4  
   creating: googletest-release-1.7.0/make/
  inflating: googletest-release-1.7.0/make/Makefile  
   creating: googletest-release-1.7.0/msvc/
  inflating: googletest-release-1.7.0/msvc/gtest-md.sln  
  inflating: googletest-release-1.7.0/msvc/gtest-md.vcproj  
  inflating: googletest-release-1.7.0/msvc/gtest.sln  
  inflating: googletest-release-1.7.0/msvc/gtest.vcproj  
  inflating: googletest-release-1.7.0/msvc/gtest_main-md.vcproj  
  inflating: googletest-release-1.7.0/msvc/gtest_main.vcproj  
  inflating: googletest-release-1.7.0/msvc/gtest_prod_test-md.vcproj  
  inflating: googletest-release-1.7.0/msvc/gtest_prod_test.vcproj  
  inflating: googletest-release-1.7.0/msvc/gtest_unittest-md.vcproj  
  inflating: googletest-release-1.7.0/msvc/gtest_unittest.vcproj  
   creating: googletest-release-1.7.0/samples/
  inflating: googletest-release-1.7.0/samples/prime_tables.h  
  inflating: googletest-release-1.7.0/samples/sample1.cc  
  inflating: googletest-release-1.7.0/samples/sample1.h  
  inflating: googletest-release-1.7.0/samples/sample10_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample1_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample2.cc  
  inflating: googletest-release-1.7.0/samples/sample2.h  
  inflating: googletest-release-1.7.0/samples/sample2_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample3-inl.h  
  inflating: googletest-release-1.7.0/samples/sample3_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample4.cc  
  inflating: googletest-release-1.7.0/samples/sample4.h  
  inflating: googletest-release-1.7.0/samples/sample4_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample5_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample6_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample7_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample8_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample9_unittest.cc  
   creating: googletest-release-1.7.0/scripts/
  inflating: googletest-release-1.7.0/scripts/fuse_gtest_files.py  
  inflating: googletest-release-1.7.0/scripts/gen_gtest_pred_impl.py  
  inflating: googletest-release-1.7.0/scripts/gtest-config.in  
  inflating: googletest-release-1.7.0/scripts/pump.py  
   creating: googletest-release-1.7.0/scripts/test/
  inflating: googletest-release-1.7.0/scripts/test/Makefile  
  inflating: googletest-release-1.7.0/scripts/upload.py  
  inflating: googletest-release-1.7.0/scripts/upload_gtest.py  
   creating: googletest-release-1.7.0/src/
  inflating: googletest-release-1.7.0/src/gtest-all.cc  
  inflating: googletest-release-1.7.0/src/gtest-death-test.cc  
  inflating: googletest-release-1.7.0/src/gtest-filepath.cc  
  inflating: googletest-release-1.7.0/src/gtest-internal-inl.h  
  inflating: googletest-release-1.7.0/src/gtest-port.cc  
  inflating: googletest-release-1.7.0/src/gtest-printers.cc  
  inflating: googletest-release-1.7.0/src/gtest-test-part.cc  
  inflating: googletest-release-1.7.0/src/gtest-typed-test.cc  
  inflating: googletest-release-1.7.0/src/gtest.cc  
  inflating: googletest-release-1.7.0/src/gtest_main.cc  
   creating: googletest-release-1.7.0/test/
  inflating: googletest-release-1.7.0/test/gtest-death-test_ex_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-death-test_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-filepath_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-linked_ptr_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-listener_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-message_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-options_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-param-test2_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-param-test_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-param-test_test.h  
  inflating: googletest-release-1.7.0/test/gtest-port_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-printers_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-test-part_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-tuple_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-typed-test2_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-typed-test_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-typed-test_test.h  
  inflating: googletest-release-1.7.0/test/gtest-unittest-api_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_all_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_break_on_failure_unittest.py  
  inflating: googletest-release-1.7.0/test/gtest_break_on_failure_unittest_.cc  
  inflating: googletest-release-1.7.0/test/gtest_catch_exceptions_test.py  
  inflating: googletest-release-1.7.0/test/gtest_catch_exceptions_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_color_test.py  
  inflating: googletest-release-1.7.0/test/gtest_color_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_env_var_test.py  
  inflating: googletest-release-1.7.0/test/gtest_env_var_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_environment_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_filter_unittest.py  
  inflating: googletest-release-1.7.0/test/gtest_filter_unittest_.cc  
  inflating: googletest-release-1.7.0/test/gtest_help_test.py  
  inflating: googletest-release-1.7.0/test/gtest_help_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_list_tests_unittest.py  
  inflating: googletest-release-1.7.0/test/gtest_list_tests_unittest_.cc  
  inflating: googletest-release-1.7.0/test/gtest_main_unittest.cc  
  inflating: googletest-release-1.7.0/test/gtest_no_test_unittest.cc  
  inflating: googletest-release-1.7.0/test/gtest_output_test.py  
  inflating: googletest-release-1.7.0/test/gtest_output_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_output_test_golden_lin.txt  
  inflating: googletest-release-1.7.0/test/gtest_pred_impl_unittest.cc  
  inflating: googletest-release-1.7.0/test/gtest_premature_exit_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_prod_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_repeat_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_shuffle_test.py  
  inflating: googletest-release-1.7.0/test/gtest_shuffle_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_sole_header_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_stress_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_test_utils.py  
  inflating: googletest-release-1.7.0/test/gtest_throw_on_failure_ex_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_throw_on_failure_test.py  
  inflating: googletest-release-1.7.0/test/gtest_throw_on_failure_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_uninitialized_test.py  
  inflating: googletest-release-1.7.0/test/gtest_uninitialized_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_unittest.cc  
  inflating: googletest-release-1.7.0/test/gtest_xml_outfile1_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_xml_outfile2_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_xml_outfiles_test.py  
  inflating: googletest-release-1.7.0/test/gtest_xml_output_unittest.py  
  inflating: googletest-release-1.7.0/test/gtest_xml_output_unittest_.cc  
  inflating: googletest-release-1.7.0/test/gtest_xml_test_utils.py  
  inflating: googletest-release-1.7.0/test/production.cc  
  inflating: googletest-release-1.7.0/test/production.h  
   creating: googletest-release-1.7.0/xcode/
   creating: googletest-release-1.7.0/xcode/Config/
  inflating: googletest-release-1.7.0/xcode/Config/DebugProject.xcconfig  
  inflating: googletest-release-1.7.0/xcode/Config/FrameworkTarget.xcconfig  
  inflating: googletest-release-1.7.0/xcode/Config/General.xcconfig  
  inflating: googletest-release-1.7.0/xcode/Config/ReleaseProject.xcconfig  
  inflating: googletest-release-1.7.0/xcode/Config/StaticLibraryTarget.xcconfig  
  inflating: googletest-release-1.7.0/xcode/Config/TestTarget.xcconfig  
   creating: googletest-release-1.7.0/xcode/Resources/
  inflating: googletest-release-1.7.0/xcode/Resources/Info.plist  
   creating: googletest-release-1.7.0/xcode/Samples/
   creating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/
  inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/Info.plist  
   creating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/WidgetFramework.xcodeproj/
  inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/WidgetFramework.xcodeproj/project.pbxproj  
  inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/runtests.sh  
  inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/widget.cc  
  inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/widget.h  
  inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/widget_test.cc  
   creating: googletest-release-1.7.0/xcode/Scripts/
  inflating: googletest-release-1.7.0/xcode/Scripts/runtests.sh  
  inflating: googletest-release-1.7.0/xcode/Scripts/versiongenerate.py  
   creating: googletest-release-1.7.0/xcode/gtest.xcodeproj/
  inflating: googletest-release-1.7.0/xcode/gtest.xcodeproj/project.pbxproj  
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 4.9.3
-- 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
-- Found Torch7 in /home/arsey/torch/install
-- Performing Test HAS_NO_AS_NEEDED
-- Performing Test HAS_NO_AS_NEEDED - Success
-- Found Glog: /usr/local/include  
-- Found PythonInterp: /home/arsey/anaconda3/bin/python (found version "3.5.2") 
-- 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  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/arsey/Desktop/logo/thpp/thpp/build
Scanning dependencies of target thpp
[  7%] Building CXX object CMakeFiles/thpp.dir/Storage.cpp.o
[ 14%] Building CXX object CMakeFiles/thpp.dir/StorageSerialization.cpp.o
[ 21%] Building CXX object CMakeFiles/thpp.dir/detail/StorageDefs.cpp.o
[ 28%] Building CXX object CMakeFiles/thpp.dir/TensorSerialization.cpp.o
[ 35%] Building CXX object CMakeFiles/thpp.dir/detail/TensorDefs.cpp.o
[ 42%] Linking CXX shared library libthpp.so
[ 42%] Built target thpp
Scanning dependencies of target gtest
[ 50%] Building CXX object googletest-release-1.7.0/CMakeFiles/gtest.dir/src/gtest-all.cc.o
[ 57%] Linking CXX static library libgtest.a
[ 57%] Built target gtest
Scanning dependencies of target gtest_main
[ 64%] Building CXX object googletest-release-1.7.0/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
[ 71%] Linking CXX static library libgtest_main.a
[ 71%] Built target gtest_main
Scanning dependencies of target storage_test
[ 78%] Building CXX object test/CMakeFiles/storage_test.dir/StorageTest.cpp.o
/home/arsey/Desktop/logo/thpp/thpp/test/StorageTest.cpp: In member function ‘virtual void thpp::test::Storage_CustomAllocator_Test::TestBody()’:
/home/arsey/Desktop/logo/thpp/thpp/test/StorageTest.cpp:64:24: error: ‘class thpp::Storage<float>’ has no member named ‘getIOBuf’
     auto buf = storage.getIOBuf();
                        ^
/home/arsey/Desktop/logo/thpp/thpp/test/StorageTest.cpp:78:24: error: ‘class thpp::Storage<float>’ has no member named ‘getIOBuf’
     auto buf = storage.getIOBuf();
                        ^
test/CMakeFiles/storage_test.dir/build.make:62: recipe for target 'test/CMakeFiles/storage_test.dir/StorageTest.cpp.o' failed
make[2]: *** [test/CMakeFiles/storage_test.dir/StorageTest.cpp.o] Error 1
CMakeFiles/Makefile2:220: recipe for target 'test/CMakeFiles/storage_test.dir/all' failed
make[1]: *** [test/CMakeFiles/storage_test.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

It looks like even with flags NO_FOLLY=1 NO_THRIFT=1 THPP_NOFB=1 it is still trying to use folly

BTW when I'm trying to install folly, on the step make check, I'm getting an error too:

Making check in .
make[1]: Entering directory '/home/arsey/Desktop/logo/folly/folly'
make[1]: Leaving directory '/home/arsey/Desktop/logo/folly/folly'
Making check in test
make[1]: Entering directory '/home/arsey/Desktop/logo/folly/folly/test'
Making check in .
make[2]: Entering directory '/home/arsey/Desktop/logo/folly/folly/test'
make  libfollytestmain.la libgtest.la foreach_benchmark benchmark_test concurrent_skiplist_benchmark conv_benchmark sorted_vector_types_test foreach_test hash_test timeout_queue_test conv_test expected_test range_test math_test bits_test bit_iterator_test spin_lock_test array_test small_locks_test packed_sync_ptr_test small_vector_test discriminated_ptr_test cpuid_test fbstring_test_using_jemalloc thread_cached_int_test thread_local_test fbvector_test dynamic_test json_test scope_guard_test endian_test rw_spinlock_test synchronized_test lock_traits_test concurrent_skiplist_test histogram_test group_varint_test map_util_test string_test producer_consumer_queue_test atomic_hash_array_test atomic_hash_map_test format_test fingerprint_test portability_test spooky_hash_v1_test spooky_hash_v2_test token_bucket_test thread_name_test indestructible_test portability_clock_gettime_wrappers_test portability_time_test portability_constexpr_test try_test unit_test futures_test function_test ssl_test mallctl_helper_test apply_tuple_test partial_test singleton_thread_local_test
make[3]: Entering directory '/home/arsey/Desktop/logo/folly/folly/test'
make[3]: 'libfollytestmain.la' is up to date.
make[3]: 'libgtest.la' is up to date.
/bin/bash ../libtool  --tag=CXX   --mode=link g++  -std=gnu++1y -g -O2 -lboost_context -lboost_program_options -lboost_thread -lboost_filesystem -lboost_system -lboost_regex -lpthread -lboost_chrono  -lssl -lcrypto  -o foreach_benchmark ForeachBenchmark.o libfollytestmain.la ../libfollybenchmark.la -llzma -lz -lsnappy -llz4 -liberty -ljemalloc -levent -ldouble-conversion -lglog -lgflags 
libtool: link: g++ -std=gnu++1y -g -O2 -o .libs/foreach_benchmark ForeachBenchmark.o  ./.libs/libfollytestmain.a /home/arsey/Desktop/logo/folly/folly/.libs/libfolly.so -lboost_context -lboost_program_options -lboost_thread -lboost_filesystem -lboost_system -lboost_regex -lboost_chrono -lssl -lcrypto -lpthread ../.libs/libfollybenchmark.so -llzma -lz -lsnappy -llz4 -liberty -ljemalloc -levent -ldouble-conversion /usr/local/lib/libglog.so -lgflags
/home/arsey/Desktop/logo/folly/folly/.libs/libfolly.so: undefined reference to `boost::program_options::invalid_option_value::invalid_option_value(std::string const&)'
/home/arsey/Desktop/logo/folly/folly/.libs/libfolly.so: undefined reference to `boost::program_options::detail::cmdline::cmdline(std::vector<std::string, std::allocator<std::string> > const&)'
../.libs/libfollybenchmark.so: undefined reference to `boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > > >::maybe_assign(boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > > > const&)'
../.libs/libfollybenchmark.so: undefined reference to `boost::re_detail::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::construct_init(boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::_match_flags)'
/home/arsey/Desktop/logo/folly/folly/.libs/libfolly.so: undefined reference to `boost::program_options::options_description::options_description(std::string const&, unsigned int, unsigned int)'
/home/arsey/Desktop/logo/folly/folly/.libs/libfolly.so: undefined reference to `google::SetCommandLineOption(char const*, char const*)'
/home/arsey/Desktop/logo/folly/folly/.libs/libfolly.so: undefined reference to `boost::program_options::to_internal(std::string const&)'
/home/arsey/Desktop/logo/folly/folly/.libs/libfolly.so: undefined reference to `google::GetCommandLineOption(char const*, std::string*)'
/home/arsey/Desktop/logo/folly/folly/.libs/libfolly.so: undefined reference to `boost::program_options::error_with_option_name::substitute_placeholders(std::string const&) const'
collect2: error: ld returned 1 exit status
Makefile:1383: recipe for target 'foreach_benchmark' failed
make[3]: *** [foreach_benchmark] Error 1
make[3]: Leaving directory '/home/arsey/Desktop/logo/folly/folly/test'
Makefile:2550: recipe for target 'check-am' failed
make[2]: *** [check-am] Error 2
make[2]: Leaving directory '/home/arsey/Desktop/logo/folly/folly/test'
Makefile:1854: recipe for target 'check-recursive' failed
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory '/home/arsey/Desktop/logo/folly/folly/test'
Makefile:1722: recipe for target 'check-recursive' failed
make: *** [check-recursive] Error 1```

make error

Hello, recently I've got following error.

[ 7%] Building CXX object CMakeFiles/thpp.dir/TensorSerialization.cpp.o In file included from thpp/detail/TensorGeneric.h:1:0, from /home/kangdongh/torch/install/include/TH/THGenerateFloatTypes.h:10, from /home/kangdongh/torch/install/include/TH/THGenerateAllTypes.h:10, from /home/kangdongh/Torch/depend/thpp/thpp/../thpp/detail/Tensor.h:30, from /home/kangdongh/Torch/depend/thpp/thpp/../thpp/Tensor.h:16, from /home/kangdongh/Torch/depend/thpp/thpp/TensorSerialization.cpp:11: /home/kangdongh/Torch/depend/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ??static void thpp::detail::TensorOps<thpp::Tensor<float> >::_max(THFloatTensor*, THLongTensor*, THFloatTensor*, int)??: /home/kangdongh/Torch/depend/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ??void THFloatTensor_max(THFloatTensor*, THLongTensor*, THFloatTensor*, int, int)?? return THTensor_(max)(values, indices, t, dim); ^ In file included from /home/kangdongh/torch/install/include/TH/THStorage.h:4:0, from /home/kangdongh/Torch/depend/thpp/thpp/../thpp/detail/Storage.h:14, from /home/kangdongh/Torch/depend/thpp/thpp/../thpp/Storage.h:30, from /home/kangdongh/Torch/depend/thpp/thpp/../thpp/Tensor.h:14, from /home/kangdongh/Torch/depend/thpp/thpp/TensorSerialization.cpp:11:
(... many lines are omitted)

w/ 16.04 LTS with g++ 5.4.0
I guess that this error is due to conflicting w/ current torch version, then how can I solve this problem?

thanks.

error: ‘make_unique’ is not a member of ‘std’

The new problem occured . When I installed the folly and fbthrift , I plan to install the thpp , but it is so sad, I meet an error and don‘t know how to solve , please help solve it . Thanks in advance!

[ 10%] Building CXX object CMakeFiles/thpp.dir/Storage.cpp.o
In file included from /home/tao/Downloads/thpp-1.0/thpp/build/thpp/if/gen-cpp2/Tensor_types.h:13:0,
                 from /home/tao/Downloads/thpp-1.0/thpp/../thpp/Storage.h:15,
                 from /home/tao/Downloads/thpp-1.0/thpp/Storage.cpp:11:
/usr/local/include/folly/io/Cursor.h: In member function ‘size_t folly::io::detail::CursorBase<Derived, BufType>::cloneAtMost(std::unique_ptr<folly::IOBuf>&, size_t)’:
/usr/local/include/folly/io/Cursor.h:443:13: error: ‘make_unique’ is not a member of ‘std’
       buf = std::make_unique<folly::IOBuf>();
             ^
/usr/local/include/folly/io/Cursor.h:443:13: note: suggested alternative:
In file included from /usr/local/include/thrift/lib/cpp/Thrift.h:23:0,
                 from /usr/local/include/thrift/lib/cpp2/Thrift.h:20,
                 from /home/tao/Downloads/thpp-1.0/thpp/build/thpp/if/gen-cpp2/Tensor_types.h:9,
                 from /home/tao/Downloads/thpp-1.0/thpp/../thpp/Storage.h:15,
                 from /home/tao/Downloads/thpp-1.0/thpp/Storage.cpp:11:
/usr/local/include/folly/Memory.h:65:1: note:   ‘folly::make_unique’
 make_unique(Args&&...) = delete;
 ^
In file included from /home/tao/Downloads/thpp-1.0/thpp/build/thpp/if/gen-cpp2/Tensor_types.h:13:0,
                 from /home/tao/Downloads/thpp-1.0/thpp/../thpp/Storage.h:15,
                 from /home/tao/Downloads/thpp-1.0/thpp/Storage.cpp:11:
/usr/local/include/folly/io/Cursor.h:443:42: error: expected primary-expression before ‘>’ token
       buf = std::make_unique<folly::IOBuf>();
                                          ^
/usr/local/include/folly/io/Cursor.h:443:44: error: expected primary-expression before ‘)’ token
       buf = std::make_unique<folly::IOBuf>();
                                            ^
In file included from /home/tao/Downloads/thpp-1.0/thpp/../thpp/Storage.h:16:0,
                 from /home/tao/Downloads/thpp-1.0/thpp/Storage.cpp:11:
/usr/local/include/folly/Malloc.h: In function ‘bool folly::usingJEMalloc()’:
/usr/local/include/folly/Malloc.h:150:35: error: redefinition of ‘bool folly::usingJEMalloc()’
 FOLLY_MALLOC_NOINLINE inline bool usingJEMalloc() noexcept {
                                   ^
In file included from /usr/local/include/folly/FBString.h:59:0,
                 from /usr/local/include/folly/io/IOBuf.h:31,
                 from /usr/local/include/thrift/lib/cpp2/protocol/Protocol.h:25,
                 from /home/tao/Downloads/thpp-1.0/thpp/build/thpp/if/gen-cpp2/Tensor_types.h:10,
                 from /home/tao/Downloads/thpp-1.0/thpp/../thpp/Storage.h:15,
                 from /home/tao/Downloads/thpp-1.0/thpp/Storage.cpp:11:
/usr/local/include/folly/memory/Malloc.h:150:35: note: ‘bool folly::usingJEMalloc()’ previously defined here
 FOLLY_MALLOC_NOINLINE inline bool usingJEMalloc() noexcept {
                                   ^
In file included from /home/tao/Downloads/thpp-1.0/thpp/../thpp/Storage.h:16:0,
                 from /home/tao/Downloads/thpp-1.0/thpp/Storage.cpp:11:
/usr/local/include/folly/Malloc.h: In function ‘size_t folly::goodMallocSize(size_t)’:
/usr/local/include/folly/Malloc.h:201:15: error: redefinition of ‘size_t folly::goodMallocSize(size_t)’
 inline size_t goodMallocSize(size_t minSize) noexcept {
               ^
In file included from /usr/local/include/folly/FBString.h:59:0,
                 from /usr/local/include/folly/io/IOBuf.h:31,
                 from /usr/local/include/thrift/lib/cpp2/protocol/Protocol.h:25,
                 from /home/tao/Downloads/thpp-1.0/thpp/build/thpp/if/gen-cpp2/Tensor_types.h:10,
                 from /home/tao/Downloads/thpp-1.0/thpp/../thpp/Storage.h:15,
                 from /home/tao/Downloads/thpp-1.0/thpp/Storage.cpp:11:
/usr/local/include/folly/memory/Malloc.h:198:15: note: ‘size_t folly::goodMallocSize(size_t)’ previously defined here
 inline size_t goodMallocSize(size_t minSize) noexcept {
               ^
In file included from /home/tao/Downloads/thpp-1.0/thpp/../thpp/Storage.h:16:0,
                 from /home/tao/Downloads/thpp-1.0/thpp/Storage.cpp:11:
/usr/local/include/folly/Malloc.h: At global scope:
/usr/local/include/folly/Malloc.h:218:21: error: redefinition of ‘const size_t folly::jemallocMinInPlaceExpandable’
 static const size_t jemallocMinInPlaceExpandable = 4096;
                     ^
In file included from /usr/local/include/folly/FBString.h:59:0,
                 from /usr/local/include/folly/io/IOBuf.h:31,
                 from /usr/local/include/thrift/lib/cpp2/protocol/Protocol.h:25,
                 from /home/tao/Downloads/thpp-1.0/thpp/build/thpp/if/gen-cpp2/Tensor_types.h:10,
                 from /home/tao/Downloads/thpp-1.0/thpp/../thpp/Storage.h:15,
                 from /home/tao/Downloads/thpp-1.0/thpp/Storage.cpp:11:
/usr/local/include/folly/memory/Malloc.h:215:21: note: ‘const size_t folly::jemallocMinInPlaceExpandable’ previously defined here
 static const size_t jemallocMinInPlaceExpandable = 4096;
                     ^
In file included from /home/tao/Downloads/thpp-1.0/thpp/../thpp/Storage.h:16:0,
                 from /home/tao/Downloads/thpp-1.0/thpp/Storage.cpp:11:
/usr/local/include/folly/Malloc.h: In function ‘void* folly::checkedMalloc(size_t)’:
/usr/local/include/folly/Malloc.h:224:14: error: redefinition of ‘void* folly::checkedMalloc(size_t)’
 inline void* checkedMalloc(size_t size) {
              ^
In file included from /usr/local/include/folly/FBString.h:59:0,
                 from /usr/local/include/folly/io/IOBuf.h:31,
                 from /usr/local/include/thrift/lib/cpp2/protocol/Protocol.h:25,
                 from /home/tao/Downloads/thpp-1.0/thpp/build/thpp/if/gen-cpp2/Tensor_types.h:10,
                 from /home/tao/Downloads/thpp-1.0/thpp/../thpp/Storage.h:15,
                 from /home/tao/Downloads/thpp-1.0/thpp/Storage.cpp:11:
/usr/local/include/folly/memory/Malloc.h:221:14: note: ‘void* folly::checkedMalloc(size_t)’ previously defined here
 inline void* checkedMalloc(size_t size) {
              ^
In file included from /home/tao/Downloads/thpp-1.0/thpp/../thpp/Storage.h:16:0,
                 from /home/tao/Downloads/thpp-1.0/thpp/Storage.cpp:11:
/usr/local/include/folly/Malloc.h: In function ‘void* folly::checkedCalloc(size_t, size_t)’:
/usr/local/include/folly/Malloc.h:230:14: error: redefinition of ‘void* folly::checkedCalloc(size_t, size_t)’
 inline void* checkedCalloc(size_t n, size_t size) {
              ^
In file included from /usr/local/include/folly/FBString.h:59:0,
                 from /usr/local/include/folly/io/IOBuf.h:31,
                 from /usr/local/include/thrift/lib/cpp2/protocol/Protocol.h:25,
                 from /home/tao/Downloads/thpp-1.0/thpp/build/thpp/if/gen-cpp2/Tensor_types.h:10,
                 from /home/tao/Downloads/thpp-1.0/thpp/../thpp/Storage.h:15,
                 from /home/tao/Downloads/thpp-1.0/thpp/Storage.cpp:11:
/usr/local/include/folly/memory/Malloc.h:229:14: note: ‘void* folly::checkedCalloc(size_t, size_t)’ previously defined here
 inline void* checkedCalloc(size_t n, size_t size) {
              ^
In file included from /home/tao/Downloads/thpp-1.0/thpp/../thpp/Storage.h:16:0,
                 from /home/tao/Downloads/thpp-1.0/thpp/Storage.cpp:11:
/usr/local/include/folly/Malloc.h: In function ‘void* folly::checkedRealloc(void*, size_t)’:
/usr/local/include/folly/Malloc.h:236:14: error: redefinition of ‘void* folly::checkedRealloc(void*, size_t)’
 inline void* checkedRealloc(void* ptr, size_t size) {
              ^
In file included from /usr/local/include/folly/FBString.h:59:0,
                 from /usr/local/include/folly/io/IOBuf.h:31,
                 from /usr/local/include/thrift/lib/cpp2/protocol/Protocol.h:25,
                 from /home/tao/Downloads/thpp-1.0/thpp/build/thpp/if/gen-cpp2/Tensor_types.h:10,
                 from /home/tao/Downloads/thpp-1.0/thpp/../thpp/Storage.h:15,
                 from /home/tao/Downloads/thpp-1.0/thpp/Storage.cpp:11:
/usr/local/include/folly/memory/Malloc.h:237:14: note: ‘void* folly::checkedRealloc(void*, size_t)’ previously defined here
 inline void* checkedRealloc(void* ptr, size_t size) {
              ^
In file included from /home/tao/Downloads/thpp-1.0/thpp/../thpp/Storage.h:16:0,
                 from /home/tao/Downloads/thpp-1.0/thpp/Storage.cpp:11:
/usr/local/include/folly/Malloc.h: In function ‘void* folly::smartRealloc(void*, size_t, size_t, size_t)’:
/usr/local/include/folly/Malloc.h:254:64: error: redefinition of ‘void* folly::smartRealloc(void*, size_t, size_t, size_t)’
 FOLLY_MALLOC_CHECKED_MALLOC FOLLY_MALLOC_NOINLINE inline void* smartRealloc(
                                                                ^
In file included from /usr/local/include/folly/FBString.h:59:0,
                 from /usr/local/include/folly/io/IOBuf.h:31,
                 from /usr/local/include/thrift/lib/cpp2/protocol/Protocol.h:25,
                 from /home/tao/Downloads/thpp-1.0/thpp/build/thpp/if/gen-cpp2/Tensor_types.h:10,
                 from /home/tao/Downloads/thpp-1.0/thpp/../thpp/Storage.h:15,
                 from /home/tao/Downloads/thpp-1.0/thpp/Storage.cpp:11:
/usr/local/include/folly/memory/Malloc.h:255:64: note: ‘void* folly::smartRealloc(void*, size_t, size_t, size_t)’ previously defined here
 FOLLY_MALLOC_CHECKED_MALLOC FOLLY_MALLOC_NOINLINE inline void* smartRealloc(
                                                                ^
make[2]: *** [CMakeFiles/thpp.dir/Storage.cpp.o] Error 1
make[1]: *** [CMakeFiles/thpp.dir/all] Error 2
make: *** [all] Error 2

build error 'no module named thrift_compiler'

Hi, I'm trying to build thpp and it errors out during the make, with 'no module named thrift_compiler'.

[ 7%] Generating thpp/if/gen-cpp2/Tensor_types.h, thpp/if/gen-cpp2/Tensor_types.tcc, thpp/if/gen-cpp2/Tensor_constants.h, thpp/if/gen-cpp2/Tensor_types.cpp, thpp/if/gen-cpp2/Tensor_constants.cpp
/usr/bin/python: No module named thrift_compiler
make[2]: *** [thpp/if/gen-cpp2/Tensor_types.h] Error 1
make[1]: *** [CMakeFiles/thpp.dir/all] Error 2
make: *** [all] Error 2

I am on Ubuntu 14.04, have installed folly, fbthrift, and reinstalled torch (luajit -e ';;' works).

compile error

hi guys, after installing folly-v0.35.0 and fbthrift-v0.24.0, i ran into this while compiling thpp on ubuntu14.04
can anyone help?

[ 10%] Building CXX object CMakeFiles/thpp.dir/TensorSerialization.cpp.o In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateFloatTypes.h:10, from /torch/install/include/TH/THGenerateAllTypes.h:10, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<float>::_max(THFloatTensor*, THLongTensor*, THFloatTensor*, int)’: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ‘void THFloatTensor_max(THFloatTensor*, THLongTensor*, THFloatTensor*, int, int)’ return THTensor_(max)(values, indices, t, dim); ^ In file included from /torch/install/include/TH/THStorage.h:4:0, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:18, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /torch/install/include/TH/THTensor.h:8:39: note: declared here #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’ #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w ^ /torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’ #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/generic/THTensorMath.h:72:13: note: in expansion of macro ‘THTensor_’ TH_API void THTensor_(max)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateFloatTypes.h:10, from /torch/install/include/TH/THGenerateAllTypes.h:10, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: return-statement with a value, in function returning 'void' [-fpermissive] return THTensor_(max)(values, indices, t, dim); ^ /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<float>::_min(THFloatTensor*, THLongTensor*, THFloatTensor*, int)’: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: too few arguments to function ‘void THFloatTensor_min(THFloatTensor*, THLongTensor*, THFloatTensor*, int, int)’ return THTensor_(min)(values, indices, t, dim); ^ In file included from /torch/install/include/TH/THStorage.h:4:0, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:18, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /torch/install/include/TH/THTensor.h:8:39: note: declared here #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’ #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w ^ /torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’ #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/generic/THTensorMath.h:73:13: note: in expansion of macro ‘THTensor_’ TH_API void THTensor_(min)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateFloatTypes.h:10, from /torch/install/include/TH/THGenerateAllTypes.h:10, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: return-statement with a value, in function returning 'void' [-fpermissive] return THTensor_(min)(values, indices, t, dim); ^ /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<float>::_sum(THFloatTensor*, THFloatTensor*, int)’: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: too few arguments to function ‘void THFloatTensor_sum(THFloatTensor*, THFloatTensor*, int, int)’ return THTensor_(sum)(r, t, dim); ^ In file included from /torch/install/include/TH/THStorage.h:4:0, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:18, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /torch/install/include/TH/THTensor.h:8:39: note: declared here #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’ #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w ^ /torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’ #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/generic/THTensorMath.h:77:13: note: in expansion of macro ‘THTensor_’ TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateFloatTypes.h:10, from /torch/install/include/TH/THGenerateAllTypes.h:10, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: return-statement with a value, in function returning 'void' [-fpermissive] return THTensor_(sum)(r, t, dim); ^ /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<float>::_prod(THFloatTensor*, THFloatTensor*, int)’: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: too few arguments to function ‘void THFloatTensor_prod(THFloatTensor*, THFloatTensor*, int, int)’ return THTensor_(prod)(r, t, dim); ^ In file included from /torch/install/include/TH/THStorage.h:4:0, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:18, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /torch/install/include/TH/THTensor.h:8:39: note: declared here #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’ #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w ^ /torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’ #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/generic/THTensorMath.h:78:13: note: in expansion of macro ‘THTensor_’ TH_API void THTensor_(prod)(THTensor *r_, THTensor *t, int dimension, int keepdim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateFloatTypes.h:10, from /torch/install/include/TH/THGenerateAllTypes.h:10, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: return-statement with a value, in function returning 'void' [-fpermissive] return THTensor_(prod)(r, t, dim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateFloatTypes.h:11, from /torch/install/include/TH/THGenerateAllTypes.h:10, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<double>::_max(THDoubleTensor*, THLongTensor*, THDoubleTensor*, int)’: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ‘void THDoubleTensor_max(THDoubleTensor*, THLongTensor*, THDoubleTensor*, int, int)’ return THTensor_(max)(values, indices, t, dim); ^ In file included from /torch/install/include/TH/THStorage.h:4:0, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:18, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /torch/install/include/TH/THTensor.h:8:39: note: declared here #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’ #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w ^ /torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’ #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/generic/THTensorMath.h:72:13: note: in expansion of macro ‘THTensor_’ TH_API void THTensor_(max)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateFloatTypes.h:11, from /torch/install/include/TH/THGenerateAllTypes.h:10, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: return-statement with a value, in function returning 'void' [-fpermissive] return THTensor_(max)(values, indices, t, dim); ^ /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<double>::_min(THDoubleTensor*, THLongTensor*, THDoubleTensor*, int)’: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: too few arguments to function ‘void THDoubleTensor_min(THDoubleTensor*, THLongTensor*, THDoubleTensor*, int, int)’ return THTensor_(min)(values, indices, t, dim); ^ In file included from /torch/install/include/TH/THStorage.h:4:0, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:18, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /torch/install/include/TH/THTensor.h:8:39: note: declared here #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’ #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w ^ /torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’ #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/generic/THTensorMath.h:73:13: note: in expansion of macro ‘THTensor_’ TH_API void THTensor_(min)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateFloatTypes.h:11, from /torch/install/include/TH/THGenerateAllTypes.h:10, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: return-statement with a value, in function returning 'void' [-fpermissive] return THTensor_(min)(values, indices, t, dim); ^ /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<double>::_sum(THDoubleTensor*, THDoubleTensor*, int)’: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: too few arguments to function ‘void THDoubleTensor_sum(THDoubleTensor*, THDoubleTensor*, int, int)’ return THTensor_(sum)(r, t, dim); ^ In file included from /torch/install/include/TH/THStorage.h:4:0, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:18, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /torch/install/include/TH/THTensor.h:8:39: note: declared here #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’ #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w ^ /torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’ #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/generic/THTensorMath.h:77:13: note: in expansion of macro ‘THTensor_’ TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateFloatTypes.h:11, from /torch/install/include/TH/THGenerateAllTypes.h:10, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: return-statement with a value, in function returning 'void' [-fpermissive] return THTensor_(sum)(r, t, dim); ^ /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<double>::_prod(THDoubleTensor*, THDoubleTensor*, int)’: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: too few arguments to function ‘void THDoubleTensor_prod(THDoubleTensor*, THDoubleTensor*, int, int)’ return THTensor_(prod)(r, t, dim); ^ In file included from /torch/install/include/TH/THStorage.h:4:0, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:18, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /torch/install/include/TH/THTensor.h:8:39: note: declared here #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’ #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w ^ /torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’ #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/generic/THTensorMath.h:78:13: note: in expansion of macro ‘THTensor_’ TH_API void THTensor_(prod)(THTensor *r_, THTensor *t, int dimension, int keepdim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateFloatTypes.h:11, from /torch/install/include/TH/THGenerateAllTypes.h:10, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: return-statement with a value, in function returning 'void' [-fpermissive] return THTensor_(prod)(r, t, dim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateIntTypes.h:10, from /torch/install/include/TH/THGenerateAllTypes.h:11, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<unsigned char>::_max(THByteTensor*, THLongTensor*, THByteTensor*, int)’: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ‘void THByteTensor_max(THByteTensor*, THLongTensor*, THByteTensor*, int, int)’ return THTensor_(max)(values, indices, t, dim); ^ In file included from /torch/install/include/TH/THStorage.h:4:0, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:18, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /torch/install/include/TH/THTensor.h:8:39: note: declared here #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’ #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w ^ /torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’ #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/generic/THTensorMath.h:72:13: note: in expansion of macro ‘THTensor_’ TH_API void THTensor_(max)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateIntTypes.h:10, from /torch/install/include/TH/THGenerateAllTypes.h:11, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: return-statement with a value, in function returning 'void' [-fpermissive] return THTensor_(max)(values, indices, t, dim); ^ /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<unsigned char>::_min(THByteTensor*, THLongTensor*, THByteTensor*, int)’: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: too few arguments to function ‘void THByteTensor_min(THByteTensor*, THLongTensor*, THByteTensor*, int, int)’ return THTensor_(min)(values, indices, t, dim); ^ In file included from /torch/install/include/TH/THStorage.h:4:0, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:18, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /torch/install/include/TH/THTensor.h:8:39: note: declared here #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’ #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w ^ /torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’ #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/generic/THTensorMath.h:73:13: note: in expansion of macro ‘THTensor_’ TH_API void THTensor_(min)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateIntTypes.h:10, from /torch/install/include/TH/THGenerateAllTypes.h:11, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: return-statement with a value, in function returning 'void' [-fpermissive] return THTensor_(min)(values, indices, t, dim); ^ /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<unsigned char>::_sum(THByteTensor*, THByteTensor*, int)’: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: too few arguments to function ‘void THByteTensor_sum(THByteTensor*, THByteTensor*, int, int)’ return THTensor_(sum)(r, t, dim); ^ In file included from /torch/install/include/TH/THStorage.h:4:0, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:18, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /torch/install/include/TH/THTensor.h:8:39: note: declared here #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’ #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w ^ /torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’ #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/generic/THTensorMath.h:77:13: note: in expansion of macro ‘THTensor_’ TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateIntTypes.h:10, from /torch/install/include/TH/THGenerateAllTypes.h:11, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: return-statement with a value, in function returning 'void' [-fpermissive] return THTensor_(sum)(r, t, dim); ^ /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<unsigned char>::_prod(THByteTensor*, THByteTensor*, int)’: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: too few arguments to function ‘void THByteTensor_prod(THByteTensor*, THByteTensor*, int, int)’ return THTensor_(prod)(r, t, dim); ^ In file included from /torch/install/include/TH/THStorage.h:4:0, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:18, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /torch/install/include/TH/THTensor.h:8:39: note: declared here #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’ #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w ^ /torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’ #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/generic/THTensorMath.h:78:13: note: in expansion of macro ‘THTensor_’ TH_API void THTensor_(prod)(THTensor *r_, THTensor *t, int dimension, int keepdim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateIntTypes.h:10, from /torch/install/include/TH/THGenerateAllTypes.h:11, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: return-statement with a value, in function returning 'void' [-fpermissive] return THTensor_(prod)(r, t, dim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateIntTypes.h:11, from /torch/install/include/TH/THGenerateAllTypes.h:11, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<char>::_max(THCharTensor*, THLongTensor*, THCharTensor*, int)’: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ‘void THCharTensor_max(THCharTensor*, THLongTensor*, THCharTensor*, int, int)’ return THTensor_(max)(values, indices, t, dim); ^ In file included from /torch/install/include/TH/THStorage.h:4:0, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:18, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /torch/install/include/TH/THTensor.h:8:39: note: declared here #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’ #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w ^ /torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’ #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/generic/THTensorMath.h:72:13: note: in expansion of macro ‘THTensor_’ TH_API void THTensor_(max)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateIntTypes.h:11, from /torch/install/include/TH/THGenerateAllTypes.h:11, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: return-statement with a value, in function returning 'void' [-fpermissive] return THTensor_(max)(values, indices, t, dim); ^ /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<char>::_min(THCharTensor*, THLongTensor*, THCharTensor*, int)’: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: too few arguments to function ‘void THCharTensor_min(THCharTensor*, THLongTensor*, THCharTensor*, int, int)’ return THTensor_(min)(values, indices, t, dim); ^ In file included from /torch/install/include/TH/THStorage.h:4:0, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:18, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /torch/install/include/TH/THTensor.h:8:39: note: declared here #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’ #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w ^ /torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’ #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/generic/THTensorMath.h:73:13: note: in expansion of macro ‘THTensor_’ TH_API void THTensor_(min)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateIntTypes.h:11, from /torch/install/include/TH/THGenerateAllTypes.h:11, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: return-statement with a value, in function returning 'void' [-fpermissive] return THTensor_(min)(values, indices, t, dim); ^ /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<char>::_sum(THCharTensor*, THCharTensor*, int)’: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: too few arguments to function ‘void THCharTensor_sum(THCharTensor*, THCharTensor*, int, int)’ return THTensor_(sum)(r, t, dim); ^ In file included from /torch/install/include/TH/THStorage.h:4:0, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:18, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /torch/install/include/TH/THTensor.h:8:39: note: declared here #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’ #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w ^ /torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’ #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/generic/THTensorMath.h:77:13: note: in expansion of macro ‘THTensor_’ TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateIntTypes.h:11, from /torch/install/include/TH/THGenerateAllTypes.h:11, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: return-statement with a value, in function returning 'void' [-fpermissive] return THTensor_(sum)(r, t, dim); ^ /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<char>::_prod(THCharTensor*, THCharTensor*, int)’: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: too few arguments to function ‘void THCharTensor_prod(THCharTensor*, THCharTensor*, int, int)’ return THTensor_(prod)(r, t, dim); ^ In file included from /torch/install/include/TH/THStorage.h:4:0, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:18, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /torch/install/include/TH/THTensor.h:8:39: note: declared here #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’ #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w ^ /torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’ #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/generic/THTensorMath.h:78:13: note: in expansion of macro ‘THTensor_’ TH_API void THTensor_(prod)(THTensor *r_, THTensor *t, int dimension, int keepdim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateIntTypes.h:11, from /torch/install/include/TH/THGenerateAllTypes.h:11, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: return-statement with a value, in function returning 'void' [-fpermissive] return THTensor_(prod)(r, t, dim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateIntTypes.h:12, from /torch/install/include/TH/THGenerateAllTypes.h:11, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<short int>::_max(THShortTensor*, THLongTensor*, THShortTensor*, int)’: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ‘void THShortTensor_max(THShortTensor*, THLongTensor*, THShortTensor*, int, int)’ return THTensor_(max)(values, indices, t, dim); ^ In file included from /torch/install/include/TH/THStorage.h:4:0, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:18, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /torch/install/include/TH/THTensor.h:8:39: note: declared here #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’ #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w ^ /torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’ #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/generic/THTensorMath.h:72:13: note: in expansion of macro ‘THTensor_’ TH_API void THTensor_(max)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateIntTypes.h:12, from /torch/install/include/TH/THGenerateAllTypes.h:11, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: return-statement with a value, in function returning 'void' [-fpermissive] return THTensor_(max)(values, indices, t, dim); ^ /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<short int>::_min(THShortTensor*, THLongTensor*, THShortTensor*, int)’: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: too few arguments to function ‘void THShortTensor_min(THShortTensor*, THLongTensor*, THShortTensor*, int, int)’ return THTensor_(min)(values, indices, t, dim); ^ In file included from /torch/install/include/TH/THStorage.h:4:0, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:18, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /torch/install/include/TH/THTensor.h:8:39: note: declared here #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’ #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w ^ /torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’ #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/generic/THTensorMath.h:73:13: note: in expansion of macro ‘THTensor_’ TH_API void THTensor_(min)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateIntTypes.h:12, from /torch/install/include/TH/THGenerateAllTypes.h:11, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: return-statement with a value, in function returning 'void' [-fpermissive] return THTensor_(min)(values, indices, t, dim); ^ /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<short int>::_sum(THShortTensor*, THShortTensor*, int)’: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: too few arguments to function ‘void THShortTensor_sum(THShortTensor*, THShortTensor*, int, int)’ return THTensor_(sum)(r, t, dim); ^ In file included from /torch/install/include/TH/THStorage.h:4:0, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:18, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /torch/install/include/TH/THTensor.h:8:39: note: declared here #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’ #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w ^ /torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’ #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/generic/THTensorMath.h:77:13: note: in expansion of macro ‘THTensor_’ TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateIntTypes.h:12, from /torch/install/include/TH/THGenerateAllTypes.h:11, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: return-statement with a value, in function returning 'void' [-fpermissive] return THTensor_(sum)(r, t, dim); ^ /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<short int>::_prod(THShortTensor*, THShortTensor*, int)’: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: too few arguments to function ‘void THShortTensor_prod(THShortTensor*, THShortTensor*, int, int)’ return THTensor_(prod)(r, t, dim); ^ In file included from /torch/install/include/TH/THStorage.h:4:0, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:18, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /torch/install/include/TH/THTensor.h:8:39: note: declared here #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’ #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w ^ /torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’ #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/generic/THTensorMath.h:78:13: note: in expansion of macro ‘THTensor_’ TH_API void THTensor_(prod)(THTensor *r_, THTensor *t, int dimension, int keepdim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateIntTypes.h:12, from /torch/install/include/TH/THGenerateAllTypes.h:11, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: return-statement with a value, in function returning 'void' [-fpermissive] return THTensor_(prod)(r, t, dim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateIntTypes.h:13, from /torch/install/include/TH/THGenerateAllTypes.h:11, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<int>::_max(THIntTensor*, THLongTensor*, THIntTensor*, int)’: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ‘void THIntTensor_max(THIntTensor*, THLongTensor*, THIntTensor*, int, int)’ return THTensor_(max)(values, indices, t, dim); ^ In file included from /torch/install/include/TH/THStorage.h:4:0, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:18, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /torch/install/include/TH/THTensor.h:8:39: note: declared here #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’ #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w ^ /torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’ #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/generic/THTensorMath.h:72:13: note: in expansion of macro ‘THTensor_’ TH_API void THTensor_(max)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateIntTypes.h:13, from /torch/install/include/TH/THGenerateAllTypes.h:11, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: return-statement with a value, in function returning 'void' [-fpermissive] return THTensor_(max)(values, indices, t, dim); ^ /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<int>::_min(THIntTensor*, THLongTensor*, THIntTensor*, int)’: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: too few arguments to function ‘void THIntTensor_min(THIntTensor*, THLongTensor*, THIntTensor*, int, int)’ return THTensor_(min)(values, indices, t, dim); ^ In file included from /torch/install/include/TH/THStorage.h:4:0, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:18, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /torch/install/include/TH/THTensor.h:8:39: note: declared here #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’ #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w ^ /torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’ #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/generic/THTensorMath.h:73:13: note: in expansion of macro ‘THTensor_’ TH_API void THTensor_(min)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateIntTypes.h:13, from /torch/install/include/TH/THGenerateAllTypes.h:11, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: return-statement with a value, in function returning 'void' [-fpermissive] return THTensor_(min)(values, indices, t, dim); ^ /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<int>::_sum(THIntTensor*, THIntTensor*, int)’: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: too few arguments to function ‘void THIntTensor_sum(THIntTensor*, THIntTensor*, int, int)’ return THTensor_(sum)(r, t, dim); ^ In file included from /torch/install/include/TH/THStorage.h:4:0, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:18, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /torch/install/include/TH/THTensor.h:8:39: note: declared here #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’ #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w ^ /torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’ #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/generic/THTensorMath.h:77:13: note: in expansion of macro ‘THTensor_’ TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateIntTypes.h:13, from /torch/install/include/TH/THGenerateAllTypes.h:11, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: return-statement with a value, in function returning 'void' [-fpermissive] return THTensor_(sum)(r, t, dim); ^ /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<int>::_prod(THIntTensor*, THIntTensor*, int)’: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: too few arguments to function ‘void THIntTensor_prod(THIntTensor*, THIntTensor*, int, int)’ return THTensor_(prod)(r, t, dim); ^ In file included from /torch/install/include/TH/THStorage.h:4:0, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:18, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /torch/install/include/TH/THTensor.h:8:39: note: declared here #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’ #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w ^ /torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’ #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/generic/THTensorMath.h:78:13: note: in expansion of macro ‘THTensor_’ TH_API void THTensor_(prod)(THTensor *r_, THTensor *t, int dimension, int keepdim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateIntTypes.h:13, from /torch/install/include/TH/THGenerateAllTypes.h:11, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: return-statement with a value, in function returning 'void' [-fpermissive] return THTensor_(prod)(r, t, dim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateIntTypes.h:14, from /torch/install/include/TH/THGenerateAllTypes.h:11, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<long int>::_max(THLongTensor*, THLongTensor*, THLongTensor*, int)’: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ‘void THLongTensor_max(THLongTensor*, THLongTensor*, THLongTensor*, int, int)’ return THTensor_(max)(values, indices, t, dim); ^ In file included from /torch/install/include/TH/THStorage.h:4:0, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:18, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /torch/install/include/TH/THTensor.h:8:39: note: declared here #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’ #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w ^ /torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’ #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/generic/THTensorMath.h:72:13: note: in expansion of macro ‘THTensor_’ TH_API void THTensor_(max)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateIntTypes.h:14, from /torch/install/include/TH/THGenerateAllTypes.h:11, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: return-statement with a value, in function returning 'void' [-fpermissive] return THTensor_(max)(values, indices, t, dim); ^ /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<long int>::_min(THLongTensor*, THLongTensor*, THLongTensor*, int)’: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: too few arguments to function ‘void THLongTensor_min(THLongTensor*, THLongTensor*, THLongTensor*, int, int)’ return THTensor_(min)(values, indices, t, dim); ^ In file included from /torch/install/include/TH/THStorage.h:4:0, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:18, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /torch/install/include/TH/THTensor.h:8:39: note: declared here #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’ #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w ^ /torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’ #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/generic/THTensorMath.h:73:13: note: in expansion of macro ‘THTensor_’ TH_API void THTensor_(min)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateIntTypes.h:14, from /torch/install/include/TH/THGenerateAllTypes.h:11, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: return-statement with a value, in function returning 'void' [-fpermissive] return THTensor_(min)(values, indices, t, dim); ^ /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<long int>::_sum(THLongTensor*, THLongTensor*, int)’: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: too few arguments to function ‘void THLongTensor_sum(THLongTensor*, THLongTensor*, int, int)’ return THTensor_(sum)(r, t, dim); ^ In file included from /torch/install/include/TH/THStorage.h:4:0, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:18, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /torch/install/include/TH/THTensor.h:8:39: note: declared here #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’ #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w ^ /torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’ #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/generic/THTensorMath.h:77:13: note: in expansion of macro ‘THTensor_’ TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateIntTypes.h:14, from /torch/install/include/TH/THGenerateAllTypes.h:11, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: return-statement with a value, in function returning 'void' [-fpermissive] return THTensor_(sum)(r, t, dim); ^ /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<long int>::_prod(THLongTensor*, THLongTensor*, int)’: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: too few arguments to function ‘void THLongTensor_prod(THLongTensor*, THLongTensor*, int, int)’ return THTensor_(prod)(r, t, dim); ^ In file included from /torch/install/include/TH/THStorage.h:4:0, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Storage.h:14, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:18, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /torch/install/include/TH/THTensor.h:8:39: note: declared here #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’ #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w ^ /torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’ #define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME) ^ /torch/install/include/TH/generic/THTensorMath.h:78:13: note: in expansion of macro ‘THTensor_’ TH_API void THTensor_(prod)(THTensor *r_, THTensor *t, int dimension, int keepdim); ^ In file included from thpp/detail/TensorGeneric.h:1:0, from /torch/install/include/TH/THGenerateIntTypes.h:14, from /torch/install/include/TH/THGenerateAllTypes.h:11, from /home/amax/Downloads/thpp/thpp/../thpp/detail/Tensor.h:28, from /home/amax/Downloads/thpp/thpp/../thpp/Tensor.h:19, from /home/amax/Downloads/thpp/thpp/TensorSerialization.cpp:11: /home/amax/Downloads/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: return-statement with a value, in function returning 'void' [-fpermissive] return THTensor_(prod)(r, t, dim); ^ make[2]: *** [CMakeFiles/thpp.dir/TensorSerialization.cpp.o] Error 1 make[1]: *** [CMakeFiles/thpp.dir/all] Error 2 make: *** [all] Error 2

Linker Error: undefined reference to `ZSTD_getErrorName'

I was trying to install the latest release and get the following error during make. ( I could successfully install folly, wangle and thrift - the latest release which has a zstd dependancy)

Linking CXX executable tensor_serialization_test /users/minesh.mathew/local/lib/libthrift.so: undefined reference toZSTD_getErrorName'
/users/minesh.mathew/local/lib/libthrift.so: undefined reference to ZSTD_getDecompressedSize' /users/minesh.mathew/local/lib/libthrift.so: undefined reference toZSTD_compressBound'
/users/minesh.mathew/local/lib/libthrift.so: undefined reference to ZSTD_decompress' /users/minesh.mathew/local/lib/libthrift.so: undefined reference toZSTD_isError'
/users/minesh.mathew/local/lib/libthrift.so: undefined reference to ZSTD_compress' collect2: error: ld returned 1 exit status make[2]: *** [test/tensor_serialization_test] Error 1 make[1]: *** [test/CMakeFiles/tensor_serialization_test.dir/all] Error 2 make: *** [all] Error 2

Argument Error: Language cpp2 not defined

seems like generating thpp/if/gen-cpp2/Tensor_data.h error
more info: ubuntu 16.04

If you don't have folly or thrift installed, try doing                                                                                                                                                              
  THPP_NOFB=1 ./build.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   129    0   129    0     0      8      0 --:--:--  0:00:16 --:--:--    34
100  618k  100  618k    0     0  31580      0  0:00:20  0:00:20 --:--:--  221k
curl: Saved to filename 'googletest-release-1.7.0.zip'
Archive:  googletest-release-1.7.0.zip
c99458533a9b4c743ed51537e25989ea55944908
   creating: googletest-release-1.7.0/
  inflating: googletest-release-1.7.0/CHANGES                                                                                                                                                                       
  inflating: googletest-release-1.7.0/CMakeLists.txt
  inflating: googletest-release-1.7.0/CONTRIBUTORS
  inflating: googletest-release-1.7.0/LICENSE
  inflating: googletest-release-1.7.0/Makefile.am
  inflating: googletest-release-1.7.0/README
   creating: googletest-release-1.7.0/build-aux/                                                                                                                                                                    
 extracting: googletest-release-1.7.0/build-aux/.keep
   creating: googletest-release-1.7.0/cmake/
....
....
  inflating: googletest-release-1.7.0/xcode/Scripts/versiongenerate.py
   creating: googletest-release-1.7.0/xcode/gtest.xcodeproj/
  inflating: googletest-release-1.7.0/xcode/gtest.xcodeproj/project.pbxproj
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- 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
-- Found Torch7 in /home/xiefengming/myhome/data/gitRepo/torch/install
-- Found Folly: /usr/local/include
-- Found Thrift: /usr/local/include
-- Performing Test HAS_NO_AS_NEEDED
-- Performing Test HAS_NO_AS_NEEDED - Success
-- Found Glog: /usr/include
-- Found PythonInterp: /home/xiefengming/anaconda3/bin/python (found version "3.6.4")
-- 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
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/fblualib-build.Osdkme/thpp/thpp/build
[  5%] Generating thpp/if/gen-cpp2/Tensor_data.h, thpp/if/gen-cpp2/Tensor_types.h, thpp/if/gen-cpp2/Tensor_types.tcc, thpp/if/gen-cpp2/Tensor_constants.h, thpp/if/gen-cpp2/Tensor_data.cpp, thpp/if/gen-cpp2/Tensor_
types.cpp, thpp/if/gen-cpp2/Tensor_constants.cpp
Argument Error: Language cpp2 not defined.
Scanning dependencies of target thpp
[ 10%] Building CXX object CMakeFiles/thpp.dir/Storage.cpp.o
In file included from /tmp/fblualib-build.Osdkme/thpp/thpp/Storage.cpp:11:0:
/tmp/fblualib-build.Osdkme/thpp/thpp/../thpp/Storage.h:22:43: fatal error: thpp/if/gen-cpp2/Tensor_types.h: No such file or directory                                                                               
compilation terminated.
CMakeFiles/thpp.dir/build.make:84: recipe for target 'CMakeFiles/thpp.dir/Storage.cpp.o' failed
make[2]: *** [CMakeFiles/thpp.dir/Storage.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/thpp.dir/all' failed
make[1]: *** [CMakeFiles/thpp.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

any sugesstions? really making me exhausted

Undefined reference during make related to Linking CXX executable storage_test

So I've run into this error during compilation, not really sure where to begin - If anybody has any ideas that would be great. I'm running on Arch so I believe it might be a dependency problem.

[ 73%] Linking CXX executable storage_test ../libthpp.so: undefined reference to thpp::_ThriftTensorEndiannessEnumDataStorage::names'
../libthpp.so: undefined reference to thpp::_ThriftTensorDataTypeEnumDataStorage::values' ../libthpp.so: undefined reference to thpp::_ThriftTensorEndiannessEnumDataStorage::values'
/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/../../../../lib/libthriftcpp2.so: undefined reference to apache::thrift::transport::THeader::setHeader(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)' ../libthpp.so: undefined reference to thpp::_ThriftTensorDataTypeEnumDataStorage::names'
collect2: error: ld returned 1 exit status
make[2]: *** [test/CMakeFiles/storage_test.dir/build.make:106: test/storage_test] Error 1
make[1]: *** [CMakeFiles/Makefile2:223: test/CMakeFiles/storage_test.dir/all] Error 2
make: *** [Makefile:139: all] Error 2`

when './build.sh' , /usr/local/lib/libglog.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>,

[ 71%] Built target gtest_main
[ 78%] Linking CXX executable storage_test
/usr/bin/ld: warning: libgflags.so.2.2, needed by /usr/local/lib/libglog.so, not found (try using -rpath or -rpath-link)
/usr/local/lib/libglog.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21' /usr/local/lib/libglog.so: undefined reference to vtable for std::__cxx11::basic_ostringstream<char, std::char_traits, std::allocator >@GLIBCXX_3.4.21'
/usr/local/lib/libglog.so: undefined reference to google::FlagRegisterer::FlagRegisterer<int>(char const*, char const*, char const*, int*, int*)' /usr/local/lib/libglog.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_append(char const*, unsigned long)@GLIBCXX_3.4.21'
/usr/local/lib/libglog.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*)@GLIBCXX_3.4.21' /usr/local/lib/libglog.so: undefined reference to vtable for std::__cxx11::basic_stringbuf<char, std::char_traits, std::allocator >@GLIBCXX_3.4.21'
/usr/local/lib/libglog.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)@GLIBCXX_3.4.21' /usr/local/lib/libglog.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_replace_aux(unsigned long, unsigned long, unsigned long, char)@GLIBCXX_3.4.21'
/usr/local/lib/libglog.so: undefined reference to std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::_M_sync(char*, unsigned long, unsigned long)@GLIBCXX_3.4.21' /usr/local/lib/libglog.so: undefined reference to google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, bool*, bool*)'
/usr/local/lib/libglog.so: undefined reference to std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_ostringstream()@GLIBCXX_3.4.21' /usr/local/lib/libglog.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits, std::allocator >::compare(char const*) const@GLIBCXX_3.4.21'
/usr/local/lib/libglog.so: undefined reference to VTT for std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21' /usr/local/lib/libglog.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits, std::allocator >::~basic_string()@GLIBCXX_3.4.21'
/usr/local/lib/libglog.so: undefined reference to google::FlagRegisterer::FlagRegisterer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(char const*, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)' /usr/local/lib/libglog.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)@GLIBCXX_3.4.21'
collect2: error: ld returned 1 exit status
make[2]: *** [test/storage_test] Error 1
make[1]: *** [test/CMakeFiles/storage_test.dir/all] Error 2
make: *** [all] Error 2

i try to mortify CMakeList.txt OPTION(NO_TEST ON), but i got the same problem.

build error

I use THPP_NOFB=1 ./build.sh and I got the error

/home/lay/thpp-master/thpp/../thpp/detail/TensorGeneric.h:201:37: error: return-statement with a value, in function returning 'void' [-fpermissive]
CMakeFiles/thpp.dir/build.make:123: recipe for target 'CMakeFiles/thpp.dir/TensorSerialization.cpp.o' failed
make[2]: *** [CMakeFiles/thpp.dir/TensorSerialization.cpp.o] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/thpp.dir/all' failed
make[1]: *** [CMakeFiles/thpp.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Cpp2Ops::serializedSize functions used in Tensor_types.h are not match the declaration in thrift

After the updating of fbthrift to the newest version, the rebuilding of the thpp met servel problems.
The first problems:

[  7%] Building CXX object CMakeFiles/thpp.dir/Storage.cpp.o
In file included from /opt/packages/thpp/thpp/../thpp/Storage.h:15:0,
                 from /opt/packages/thpp/thpp/Storage.cpp:11:
./thpp/if/gen-cpp2/Tensor_types.h:149:55: error: template-id ‘serializedSize<>’ for ‘uint32_t apache::thrift::Cpp2Ops<thpp::ThriftTensor>::serializedSize(Protocol*, const thpp::ThriftTensor*)’ does not match any template declaration
 template <> template <class Protocol> inline uint32_t Cpp2Ops< ::thpp::ThriftTensor>::serializedSize(Protocol* proto, const  ::thpp::ThriftTensor* obj) {
                                                       ^
./thpp/if/gen-cpp2/Tensor_types.h:153:55: error: template-id ‘serializedSizeZC<>’ for ‘uint32_t apache::thrift::Cpp2Ops<thpp::ThriftTensor>::serializedSizeZC(Protocol*, const thpp::ThriftTensor*)’ does not match any template declaration
 template <> template <class Protocol> inline uint32_t Cpp2Ops< ::thpp::ThriftTensor>::serializedSizeZC(Protocol* proto, const  ::thpp::ThriftTensor* obj) {
                                                       ^
./thpp/if/gen-cpp2/Tensor_types.h:227:55: error: template-id ‘serializedSize<>’ for ‘uint32_t apache::thrift::Cpp2Ops<thpp::ThriftStorage>::serializedSize(Protocol*, const thpp::ThriftStorage*)’ does not match any template declaration
 template <> template <class Protocol> inline uint32_t Cpp2Ops< ::thpp::ThriftStorage>::serializedSize(Protocol* proto, const  ::thpp::ThriftStorage* obj) {
                                                       ^
./thpp/if/gen-cpp2/Tensor_types.h:231:55: error: template-id ‘serializedSizeZC<>’ for ‘uint32_t apache::thrift::Cpp2Ops<thpp::ThriftStorage>::serializedSizeZC(Protocol*, const thpp::ThriftStorage*)’ does not match any template declaration
 template <> template <class Protocol> inline uint32_t Cpp2Ops< ::thpp::ThriftStorage>::serializedSizeZC(Protocol* proto, const  ::thpp::ThriftStorage* obj) {
                                                       ^
make[2]: *** [CMakeFiles/thpp.dir/Storage.cpp.o] Error 1
make[1]: *** [CMakeFiles/thpp.dir/all] Error 2
make: *** [all] Error 2

I viewed the codes of Cpp2Ops class in thrift/lib/cpp2/Thrift.h, and find the reason.
In Thrift.h:
template <> template <class Protocol> inline uint32_t Cpp2Ops< ::thpp::ThriftTensor>::serializedSize(const Protocol* proto, const ::thpp::ThriftTensor* obj)
here is const Protocol* proto not Protocol* proto

I tried to modify the Tensor_type.h file but it was always refreshed after the make command.
So, how to fix it?

can not build with folly and thrift

The environment is Ubuntu 16.04.

I have folly and thrift installed.

[ 10%] Built target gtest
[ 15%] Building CXX object CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_types.cpp.o
[ 20%] Building CXX object CMakeFiles/thpp.dir/TensorSerialization.cpp.o
[ 25%] Building CXX object CMakeFiles/thpp.dir/detail/TensorDefs.cpp.o
Scanning dependencies of target gtest_main
[ 30%] Building CXX object googletest-release-1.7.0/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
In file included from /usr/local/include/thrift/lib/cpp2/GeneratedCodeHelper.h:20:0,
                 from /home/tumh/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.tcc:15,
                 from /home/tumh/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:9:
/usr/local/include/thrift/lib/cpp2/FrozenTApplicationException.h:19:43: fatal error: thrift/lib/cpp2/frozen/Frozen.h: 沒有此一檔案或目錄
compilation terminated.
CMakeFiles/thpp.dir/build.make:228: recipe for target 'CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_types.cpp.o' failed
make[2]: *** [CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_types.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 35%] Linking CXX static library libgtest_main.a
[ 35%] Built target gtest_main
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateFloatTypes.h:10,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:10,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<float> >::_max(THFloatTensor*, THLongTensor*, THFloatTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ‘void THFloatTensor_max(THFloatTensor*, THLongTensor*, THFloatTensor*, int, int)’
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
In file included from /home/tumh/torch/install/include/TH/TH.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:14,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:74:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(max)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateFloatTypes.h:10,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:10,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<float> >::_min(THFloatTensor*, THLongTensor*, THFloatTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: too few arguments to function ‘void THFloatTensor_min(THFloatTensor*, THLongTensor*, THFloatTensor*, int, int)’
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
In file included from /home/tumh/torch/install/include/TH/TH.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:14,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:75:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(min)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateFloatTypes.h:10,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:10,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<float> >::_sum(THFloatTensor*, THFloatTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: too few arguments to function ‘void THFloatTensor_sum(THFloatTensor*, THFloatTensor*, int, int)’
     return THTensor_(sum)(r, t, dim);
                                    ^
In file included from /home/tumh/torch/install/include/TH/TH.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:14,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:79:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateFloatTypes.h:10,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:10,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(sum)(r, t, dim);
                                    ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<float> >::_prod(THFloatTensor*, THFloatTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: too few arguments to function ‘void THFloatTensor_prod(THFloatTensor*, THFloatTensor*, int, int)’
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from /home/tumh/torch/install/include/TH/TH.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:14,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:80:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(prod)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateFloatTypes.h:10,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:10,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateFloatTypes.h:11,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:10,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<double> >::_max(THDoubleTensor*, THLongTensor*, THDoubleTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ‘void THDoubleTensor_max(THDoubleTensor*, THLongTensor*, THDoubleTensor*, int, int)’
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
In file included from /home/tumh/torch/install/include/TH/TH.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:14,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:74:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(max)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateFloatTypes.h:11,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:10,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<double> >::_min(THDoubleTensor*, THLongTensor*, THDoubleTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: too few arguments to function ‘void THDoubleTensor_min(THDoubleTensor*, THLongTensor*, THDoubleTensor*, int, int)’
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
In file included from /home/tumh/torch/install/include/TH/TH.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:14,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:75:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(min)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateFloatTypes.h:11,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:10,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<double> >::_sum(THDoubleTensor*, THDoubleTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: too few arguments to function ‘void THDoubleTensor_sum(THDoubleTensor*, THDoubleTensor*, int, int)’
     return THTensor_(sum)(r, t, dim);
                                    ^
In file included from /home/tumh/torch/install/include/TH/TH.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:14,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:79:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateFloatTypes.h:11,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:10,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(sum)(r, t, dim);
                                    ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<double> >::_prod(THDoubleTensor*, THDoubleTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: too few arguments to function ‘void THDoubleTensor_prod(THDoubleTensor*, THDoubleTensor*, int, int)’
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from /home/tumh/torch/install/include/TH/TH.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:14,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:80:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(prod)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateFloatTypes.h:11,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:10,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:10,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<unsigned char> >::_max(THByteTensor*, THLongTensor*, THByteTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ‘void THByteTensor_max(THByteTensor*, THLongTensor*, THByteTensor*, int, int)’
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
In file included from /home/tumh/torch/install/include/TH/TH.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:14,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:74:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(max)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:10,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<unsigned char> >::_min(THByteTensor*, THLongTensor*, THByteTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: too few arguments to function ‘void THByteTensor_min(THByteTensor*, THLongTensor*, THByteTensor*, int, int)’
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
In file included from /home/tumh/torch/install/include/TH/TH.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:14,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:75:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(min)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:10,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<unsigned char> >::_sum(THByteTensor*, THByteTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: too few arguments to function ‘void THByteTensor_sum(THByteTensor*, THByteTensor*, int, int)’
     return THTensor_(sum)(r, t, dim);
                                    ^
In file included from /home/tumh/torch/install/include/TH/TH.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:14,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:79:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:10,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(sum)(r, t, dim);
                                    ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<unsigned char> >::_prod(THByteTensor*, THByteTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: too few arguments to function ‘void THByteTensor_prod(THByteTensor*, THByteTensor*, int, int)’
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from /home/tumh/torch/install/include/TH/TH.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:14,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:80:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(prod)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:10,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:11,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<char> >::_max(THCharTensor*, THLongTensor*, THCharTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ‘void THCharTensor_max(THCharTensor*, THLongTensor*, THCharTensor*, int, int)’
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
In file included from /home/tumh/torch/install/include/TH/TH.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:14,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:74:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(max)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:11,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<char> >::_min(THCharTensor*, THLongTensor*, THCharTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: too few arguments to function ‘void THCharTensor_min(THCharTensor*, THLongTensor*, THCharTensor*, int, int)’
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
In file included from /home/tumh/torch/install/include/TH/TH.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:14,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:75:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(min)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:11,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<char> >::_sum(THCharTensor*, THCharTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: too few arguments to function ‘void THCharTensor_sum(THCharTensor*, THCharTensor*, int, int)’
     return THTensor_(sum)(r, t, dim);
                                    ^
In file included from /home/tumh/torch/install/include/TH/TH.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:14,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:79:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:11,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(sum)(r, t, dim);
                                    ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<char> >::_prod(THCharTensor*, THCharTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: too few arguments to function ‘void THCharTensor_prod(THCharTensor*, THCharTensor*, int, int)’
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from /home/tumh/torch/install/include/TH/TH.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:14,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:80:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(prod)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:11,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:12,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<short int> >::_max(THShortTensor*, THLongTensor*, THShortTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ‘void THShortTensor_max(THShortTensor*, THLongTensor*, THShortTensor*, int, int)’
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
In file included from /home/tumh/torch/install/include/TH/TH.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:14,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:74:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(max)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:12,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<short int> >::_min(THShortTensor*, THLongTensor*, THShortTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: too few arguments to function ‘void THShortTensor_min(THShortTensor*, THLongTensor*, THShortTensor*, int, int)’
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
In file included from /home/tumh/torch/install/include/TH/TH.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:14,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:75:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(min)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:12,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<short int> >::_sum(THShortTensor*, THShortTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: too few arguments to function ‘void THShortTensor_sum(THShortTensor*, THShortTensor*, int, int)’
     return THTensor_(sum)(r, t, dim);
                                    ^
In file included from /home/tumh/torch/install/include/TH/TH.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:14,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:79:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:12,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(sum)(r, t, dim);
                                    ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<short int> >::_prod(THShortTensor*, THShortTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: too few arguments to function ‘void THShortTensor_prod(THShortTensor*, THShortTensor*, int, int)’
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from /home/tumh/torch/install/include/TH/TH.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:14,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:80:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(prod)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:12,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:13,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<int> >::_max(THIntTensor*, THLongTensor*, THIntTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ‘void THIntTensor_max(THIntTensor*, THLongTensor*, THIntTensor*, int, int)’
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
In file included from /home/tumh/torch/install/include/TH/TH.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:14,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:74:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(max)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:13,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<int> >::_min(THIntTensor*, THLongTensor*, THIntTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: too few arguments to function ‘void THIntTensor_min(THIntTensor*, THLongTensor*, THIntTensor*, int, int)’
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
In file included from /home/tumh/torch/install/include/TH/TH.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:14,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:75:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(min)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:13,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<int> >::_sum(THIntTensor*, THIntTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: too few arguments to function ‘void THIntTensor_sum(THIntTensor*, THIntTensor*, int, int)’
     return THTensor_(sum)(r, t, dim);
                                    ^
In file included from /home/tumh/torch/install/include/TH/TH.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:14,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:79:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:13,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(sum)(r, t, dim);
                                    ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<int> >::_prod(THIntTensor*, THIntTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: too few arguments to function ‘void THIntTensor_prod(THIntTensor*, THIntTensor*, int, int)’
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from /home/tumh/torch/install/include/TH/TH.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:14,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:80:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(prod)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:13,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:14,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<long int> >::_max(THLongTensor*, THLongTensor*, THLongTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ‘void THLongTensor_max(THLongTensor*, THLongTensor*, THLongTensor*, int, int)’
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
In file included from /home/tumh/torch/install/include/TH/TH.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:14,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:74:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(max)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:14,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<long int> >::_min(THLongTensor*, THLongTensor*, THLongTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: too few arguments to function ‘void THLongTensor_min(THLongTensor*, THLongTensor*, THLongTensor*, int, int)’
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
In file included from /home/tumh/torch/install/include/TH/TH.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:14,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:75:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(min)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:14,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<long int> >::_sum(THLongTensor*, THLongTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: too few arguments to function ‘void THLongTensor_sum(THLongTensor*, THLongTensor*, int, int)’
     return THTensor_(sum)(r, t, dim);
                                    ^
In file included from /home/tumh/torch/install/include/TH/TH.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:14,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:79:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:14,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(sum)(r, t, dim);
                                    ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<long int> >::_prod(THLongTensor*, THLongTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: too few arguments to function ‘void THLongTensor_prod(THLongTensor*, THLongTensor*, int, int)’
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from /home/tumh/torch/install/include/TH/TH.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:14,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:80:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(prod)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:14,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/detail/TensorDefs.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(prod)(r, t, dim);
                                     ^
CMakeFiles/thpp.dir/build.make:180: recipe for target 'CMakeFiles/thpp.dir/detail/TensorDefs.cpp.o' failed
make[2]: *** [CMakeFiles/thpp.dir/detail/TensorDefs.cpp.o] Error 1
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateFloatTypes.h:10,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:10,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<float> >::_max(THFloatTensor*, THLongTensor*, THFloatTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ‘void THFloatTensor_max(THFloatTensor*, THLongTensor*, THFloatTensor*, int, int)’
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
In file included from /home/tumh/torch/install/include/TH/THStorage.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/tumh/thpp/thpp/../thpp/Storage.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:14,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:74:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(max)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateFloatTypes.h:10,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:10,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<float> >::_min(THFloatTensor*, THLongTensor*, THFloatTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: too few arguments to function ‘void THFloatTensor_min(THFloatTensor*, THLongTensor*, THFloatTensor*, int, int)’
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
In file included from /home/tumh/torch/install/include/TH/THStorage.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/tumh/thpp/thpp/../thpp/Storage.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:14,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:75:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(min)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateFloatTypes.h:10,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:10,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<float> >::_sum(THFloatTensor*, THFloatTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: too few arguments to function ‘void THFloatTensor_sum(THFloatTensor*, THFloatTensor*, int, int)’
     return THTensor_(sum)(r, t, dim);
                                    ^
In file included from /home/tumh/torch/install/include/TH/THStorage.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/tumh/thpp/thpp/../thpp/Storage.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:14,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:79:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateFloatTypes.h:10,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:10,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(sum)(r, t, dim);
                                    ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<float> >::_prod(THFloatTensor*, THFloatTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: too few arguments to function ‘void THFloatTensor_prod(THFloatTensor*, THFloatTensor*, int, int)’
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from /home/tumh/torch/install/include/TH/THStorage.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/tumh/thpp/thpp/../thpp/Storage.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:14,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:80:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(prod)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateFloatTypes.h:10,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:10,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateFloatTypes.h:11,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:10,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<double> >::_max(THDoubleTensor*, THLongTensor*, THDoubleTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ‘void THDoubleTensor_max(THDoubleTensor*, THLongTensor*, THDoubleTensor*, int, int)’
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
In file included from /home/tumh/torch/install/include/TH/THStorage.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/tumh/thpp/thpp/../thpp/Storage.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:14,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:74:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(max)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateFloatTypes.h:11,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:10,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<double> >::_min(THDoubleTensor*, THLongTensor*, THDoubleTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: too few arguments to function ‘void THDoubleTensor_min(THDoubleTensor*, THLongTensor*, THDoubleTensor*, int, int)’
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
In file included from /home/tumh/torch/install/include/TH/THStorage.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/tumh/thpp/thpp/../thpp/Storage.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:14,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:75:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(min)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateFloatTypes.h:11,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:10,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<double> >::_sum(THDoubleTensor*, THDoubleTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: too few arguments to function ‘void THDoubleTensor_sum(THDoubleTensor*, THDoubleTensor*, int, int)’
     return THTensor_(sum)(r, t, dim);
                                    ^
In file included from /home/tumh/torch/install/include/TH/THStorage.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/tumh/thpp/thpp/../thpp/Storage.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:14,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:79:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateFloatTypes.h:11,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:10,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(sum)(r, t, dim);
                                    ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<double> >::_prod(THDoubleTensor*, THDoubleTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: too few arguments to function ‘void THDoubleTensor_prod(THDoubleTensor*, THDoubleTensor*, int, int)’
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from /home/tumh/torch/install/include/TH/THStorage.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/tumh/thpp/thpp/../thpp/Storage.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:14,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:80:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(prod)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateFloatTypes.h:11,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:10,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:10,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<unsigned char> >::_max(THByteTensor*, THLongTensor*, THByteTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ‘void THByteTensor_max(THByteTensor*, THLongTensor*, THByteTensor*, int, int)’
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
In file included from /home/tumh/torch/install/include/TH/THStorage.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/tumh/thpp/thpp/../thpp/Storage.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:14,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:74:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(max)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:10,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<unsigned char> >::_min(THByteTensor*, THLongTensor*, THByteTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: too few arguments to function ‘void THByteTensor_min(THByteTensor*, THLongTensor*, THByteTensor*, int, int)’
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
In file included from /home/tumh/torch/install/include/TH/THStorage.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/tumh/thpp/thpp/../thpp/Storage.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:14,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:75:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(min)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:10,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<unsigned char> >::_sum(THByteTensor*, THByteTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: too few arguments to function ‘void THByteTensor_sum(THByteTensor*, THByteTensor*, int, int)’
     return THTensor_(sum)(r, t, dim);
                                    ^
In file included from /home/tumh/torch/install/include/TH/THStorage.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/tumh/thpp/thpp/../thpp/Storage.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:14,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:79:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:10,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(sum)(r, t, dim);
                                    ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<unsigned char> >::_prod(THByteTensor*, THByteTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: too few arguments to function ‘void THByteTensor_prod(THByteTensor*, THByteTensor*, int, int)’
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from /home/tumh/torch/install/include/TH/THStorage.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/tumh/thpp/thpp/../thpp/Storage.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:14,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:80:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(prod)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:10,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:11,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<char> >::_max(THCharTensor*, THLongTensor*, THCharTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ‘void THCharTensor_max(THCharTensor*, THLongTensor*, THCharTensor*, int, int)’
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
In file included from /home/tumh/torch/install/include/TH/THStorage.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/tumh/thpp/thpp/../thpp/Storage.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:14,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:74:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(max)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:11,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<char> >::_min(THCharTensor*, THLongTensor*, THCharTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: too few arguments to function ‘void THCharTensor_min(THCharTensor*, THLongTensor*, THCharTensor*, int, int)’
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
In file included from /home/tumh/torch/install/include/TH/THStorage.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/tumh/thpp/thpp/../thpp/Storage.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:14,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:75:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(min)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:11,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<char> >::_sum(THCharTensor*, THCharTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: too few arguments to function ‘void THCharTensor_sum(THCharTensor*, THCharTensor*, int, int)’
     return THTensor_(sum)(r, t, dim);
                                    ^
In file included from /home/tumh/torch/install/include/TH/THStorage.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/tumh/thpp/thpp/../thpp/Storage.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:14,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:79:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:11,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(sum)(r, t, dim);
                                    ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<char> >::_prod(THCharTensor*, THCharTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: too few arguments to function ‘void THCharTensor_prod(THCharTensor*, THCharTensor*, int, int)’
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from /home/tumh/torch/install/include/TH/THStorage.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/tumh/thpp/thpp/../thpp/Storage.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:14,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:80:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(prod)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:11,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:12,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<short int> >::_max(THShortTensor*, THLongTensor*, THShortTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ‘void THShortTensor_max(THShortTensor*, THLongTensor*, THShortTensor*, int, int)’
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
In file included from /home/tumh/torch/install/include/TH/THStorage.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/tumh/thpp/thpp/../thpp/Storage.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:14,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:74:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(max)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:12,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<short int> >::_min(THShortTensor*, THLongTensor*, THShortTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: too few arguments to function ‘void THShortTensor_min(THShortTensor*, THLongTensor*, THShortTensor*, int, int)’
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
In file included from /home/tumh/torch/install/include/TH/THStorage.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/tumh/thpp/thpp/../thpp/Storage.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:14,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:75:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(min)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:12,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<short int> >::_sum(THShortTensor*, THShortTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: too few arguments to function ‘void THShortTensor_sum(THShortTensor*, THShortTensor*, int, int)’
     return THTensor_(sum)(r, t, dim);
                                    ^
In file included from /home/tumh/torch/install/include/TH/THStorage.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/tumh/thpp/thpp/../thpp/Storage.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:14,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:79:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:12,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(sum)(r, t, dim);
                                    ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<short int> >::_prod(THShortTensor*, THShortTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: too few arguments to function ‘void THShortTensor_prod(THShortTensor*, THShortTensor*, int, int)’
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from /home/tumh/torch/install/include/TH/THStorage.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/tumh/thpp/thpp/../thpp/Storage.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:14,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:80:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(prod)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:12,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:13,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<int> >::_max(THIntTensor*, THLongTensor*, THIntTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ‘void THIntTensor_max(THIntTensor*, THLongTensor*, THIntTensor*, int, int)’
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
In file included from /home/tumh/torch/install/include/TH/THStorage.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/tumh/thpp/thpp/../thpp/Storage.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:14,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:74:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(max)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:13,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<int> >::_min(THIntTensor*, THLongTensor*, THIntTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: too few arguments to function ‘void THIntTensor_min(THIntTensor*, THLongTensor*, THIntTensor*, int, int)’
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
In file included from /home/tumh/torch/install/include/TH/THStorage.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/tumh/thpp/thpp/../thpp/Storage.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:14,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:75:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(min)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:13,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<int> >::_sum(THIntTensor*, THIntTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: too few arguments to function ‘void THIntTensor_sum(THIntTensor*, THIntTensor*, int, int)’
     return THTensor_(sum)(r, t, dim);
                                    ^
In file included from /home/tumh/torch/install/include/TH/THStorage.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/tumh/thpp/thpp/../thpp/Storage.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:14,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:79:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:13,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(sum)(r, t, dim);
                                    ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<int> >::_prod(THIntTensor*, THIntTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: too few arguments to function ‘void THIntTensor_prod(THIntTensor*, THIntTensor*, int, int)’
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from /home/tumh/torch/install/include/TH/THStorage.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/tumh/thpp/thpp/../thpp/Storage.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:14,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:80:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(prod)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:13,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:14,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<long int> >::_max(THLongTensor*, THLongTensor*, THLongTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ‘void THLongTensor_max(THLongTensor*, THLongTensor*, THLongTensor*, int, int)’
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
In file included from /home/tumh/torch/install/include/TH/THStorage.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/tumh/thpp/thpp/../thpp/Storage.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:14,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:74:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(max)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:14,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(max)(values, indices, t, dim);
                                                  ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<long int> >::_min(THLongTensor*, THLongTensor*, THLongTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: too few arguments to function ‘void THLongTensor_min(THLongTensor*, THLongTensor*, THLongTensor*, int, int)’
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
In file included from /home/tumh/torch/install/include/TH/THStorage.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/tumh/thpp/thpp/../thpp/Storage.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:14,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:75:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(min)(THTensor *values_, THLongTensor *indices_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:14,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:195:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(min)(values, indices, t, dim);
                                                  ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<long int> >::_sum(THLongTensor*, THLongTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: too few arguments to function ‘void THLongTensor_sum(THLongTensor*, THLongTensor*, int, int)’
     return THTensor_(sum)(r, t, dim);
                                    ^
In file included from /home/tumh/torch/install/include/TH/THStorage.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/tumh/thpp/thpp/../thpp/Storage.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:14,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:79:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:14,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:198:36: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(sum)(r, t, dim);
                                    ^
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<long int> >::_prod(THLongTensor*, THLongTensor*, int)’:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: too few arguments to function ‘void THLongTensor_prod(THLongTensor*, THLongTensor*, int, int)’
     return THTensor_(prod)(r, t, dim);
                                     ^
In file included from /home/tumh/torch/install/include/TH/THStorage.h:4:0,
                 from /home/tumh/thpp/thpp/../thpp/detail/Storage.h:14,
                 from /home/tumh/thpp/thpp/../thpp/Storage.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:14,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/torch/install/include/TH/THTensor.h:8:39: note: declared here
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                                       ^
/home/tumh/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
 #define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
                                     ^
/home/tumh/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
 #define THTensor_(NAME)   TH_CONCAT_4(TH,Real,Tensor_,NAME)
                           ^
/home/tumh/torch/install/include/TH/generic/THTensorMath.h:80:13: note: in expansion of macro ‘THTensor_’
 TH_API void THTensor_(prod)(THTensor *r_, THTensor *t, int dimension, int keepdim);
             ^
In file included from thpp/detail/TensorGeneric.h:1:0,
                 from /home/tumh/torch/install/include/TH/THGenerateIntTypes.h:14,
                 from /home/tumh/torch/install/include/TH/THGenerateAllTypes.h:11,
                 from /home/tumh/thpp/thpp/../thpp/detail/Tensor.h:30,
                 from /home/tumh/thpp/thpp/../thpp/Tensor.h:16,
                 from /home/tumh/thpp/thpp/TensorSerialization.cpp:11:
/home/tumh/thpp/thpp/../thpp/detail/TensorGeneric.h:201:37: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return THTensor_(prod)(r, t, dim);
                                     ^
CMakeFiles/thpp.dir/build.make:156: recipe for target 'CMakeFiles/thpp.dir/TensorSerialization.cpp.o' failed
make[2]: *** [CMakeFiles/thpp.dir/TensorSerialization.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/thpp.dir/all' failed
make[1]: *** [CMakeFiles/thpp.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

Any idea?

thanks

Failed to install after installing current folly and fbthrift

deckyal@deckyal:~/thpp/thpp$ ./build.sh
If you don't have folly or thrift installed, try doing
THPP_NOFB=1 ./build.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 129 0 129 0 0 189 0 --:--:-- --:--:-- --:--:-- 188
100 618k 100 618k 0 0 323k 0 0:00:01 0:00:01 --:--:-- 940k
curl: Saved to filename 'googletest-release-1.7.0.zip'
Archive: googletest-release-1.7.0.zip
c99458533a9b4c743ed51537e25989ea55944908
creating: googletest-release-1.7.0/
inflating: googletest-release-1.7.0/CHANGES
inflating: googletest-release-1.7.0/CMakeLists.txt
inflating: googletest-release-1.7.0/CONTRIBUTORS
inflating: googletest-release-1.7.0/LICENSE
inflating: googletest-release-1.7.0/Makefile.am
inflating: googletest-release-1.7.0/README
creating: googletest-release-1.7.0/build-aux/
extracting: googletest-release-1.7.0/build-aux/.keep
creating: googletest-release-1.7.0/cmake/
inflating: googletest-release-1.7.0/cmake/internal_utils.cmake
creating: googletest-release-1.7.0/codegear/
inflating: googletest-release-1.7.0/codegear/gtest.cbproj
inflating: googletest-release-1.7.0/codegear/gtest.groupproj
inflating: googletest-release-1.7.0/codegear/gtest_all.cc
inflating: googletest-release-1.7.0/codegear/gtest_link.cc
inflating: googletest-release-1.7.0/codegear/gtest_main.cbproj
inflating: googletest-release-1.7.0/codegear/gtest_unittest.cbproj
inflating: googletest-release-1.7.0/configure.ac
creating: googletest-release-1.7.0/include/
creating: googletest-release-1.7.0/include/gtest/
inflating: googletest-release-1.7.0/include/gtest/gtest-death-test.h
inflating: googletest-release-1.7.0/include/gtest/gtest-message.h
inflating: googletest-release-1.7.0/include/gtest/gtest-param-test.h
inflating: googletest-release-1.7.0/include/gtest/gtest-param-test.h.pump
inflating: googletest-release-1.7.0/include/gtest/gtest-printers.h
inflating: googletest-release-1.7.0/include/gtest/gtest-spi.h
inflating: googletest-release-1.7.0/include/gtest/gtest-test-part.h
inflating: googletest-release-1.7.0/include/gtest/gtest-typed-test.h
inflating: googletest-release-1.7.0/include/gtest/gtest.h
inflating: googletest-release-1.7.0/include/gtest/gtest_pred_impl.h
inflating: googletest-release-1.7.0/include/gtest/gtest_prod.h
creating: googletest-release-1.7.0/include/gtest/internal/
inflating: googletest-release-1.7.0/include/gtest/internal/gtest-death-test-internal.h
inflating: googletest-release-1.7.0/include/gtest/internal/gtest-filepath.h
inflating: googletest-release-1.7.0/include/gtest/internal/gtest-internal.h
inflating: googletest-release-1.7.0/include/gtest/internal/gtest-linked_ptr.h
inflating: googletest-release-1.7.0/include/gtest/internal/gtest-param-util-generated.h
inflating: googletest-release-1.7.0/include/gtest/internal/gtest-param-util-generated.h.pump
inflating: googletest-release-1.7.0/include/gtest/internal/gtest-param-util.h
inflating: googletest-release-1.7.0/include/gtest/internal/gtest-port.h
inflating: googletest-release-1.7.0/include/gtest/internal/gtest-string.h
inflating: googletest-release-1.7.0/include/gtest/internal/gtest-tuple.h
inflating: googletest-release-1.7.0/include/gtest/internal/gtest-tuple.h.pump
inflating: googletest-release-1.7.0/include/gtest/internal/gtest-type-util.h
inflating: googletest-release-1.7.0/include/gtest/internal/gtest-type-util.h.pump
creating: googletest-release-1.7.0/m4/
inflating: googletest-release-1.7.0/m4/acx_pthread.m4
inflating: googletest-release-1.7.0/m4/gtest.m4
creating: googletest-release-1.7.0/make/
inflating: googletest-release-1.7.0/make/Makefile
creating: googletest-release-1.7.0/msvc/
inflating: googletest-release-1.7.0/msvc/gtest-md.sln
inflating: googletest-release-1.7.0/msvc/gtest-md.vcproj
inflating: googletest-release-1.7.0/msvc/gtest.sln
inflating: googletest-release-1.7.0/msvc/gtest.vcproj
inflating: googletest-release-1.7.0/msvc/gtest_main-md.vcproj
inflating: googletest-release-1.7.0/msvc/gtest_main.vcproj
inflating: googletest-release-1.7.0/msvc/gtest_prod_test-md.vcproj
inflating: googletest-release-1.7.0/msvc/gtest_prod_test.vcproj
inflating: googletest-release-1.7.0/msvc/gtest_unittest-md.vcproj
inflating: googletest-release-1.7.0/msvc/gtest_unittest.vcproj
creating: googletest-release-1.7.0/samples/
inflating: googletest-release-1.7.0/samples/prime_tables.h
inflating: googletest-release-1.7.0/samples/sample1.cc
inflating: googletest-release-1.7.0/samples/sample1.h
inflating: googletest-release-1.7.0/samples/sample10_unittest.cc
inflating: googletest-release-1.7.0/samples/sample1_unittest.cc
inflating: googletest-release-1.7.0/samples/sample2.cc
inflating: googletest-release-1.7.0/samples/sample2.h
inflating: googletest-release-1.7.0/samples/sample2_unittest.cc
inflating: googletest-release-1.7.0/samples/sample3-inl.h
inflating: googletest-release-1.7.0/samples/sample3_unittest.cc
inflating: googletest-release-1.7.0/samples/sample4.cc
inflating: googletest-release-1.7.0/samples/sample4.h
inflating: googletest-release-1.7.0/samples/sample4_unittest.cc
inflating: googletest-release-1.7.0/samples/sample5_unittest.cc
inflating: googletest-release-1.7.0/samples/sample6_unittest.cc
inflating: googletest-release-1.7.0/samples/sample7_unittest.cc
inflating: googletest-release-1.7.0/samples/sample8_unittest.cc
inflating: googletest-release-1.7.0/samples/sample9_unittest.cc
creating: googletest-release-1.7.0/scripts/
inflating: googletest-release-1.7.0/scripts/fuse_gtest_files.py
inflating: googletest-release-1.7.0/scripts/gen_gtest_pred_impl.py
inflating: googletest-release-1.7.0/scripts/gtest-config.in
inflating: googletest-release-1.7.0/scripts/pump.py
creating: googletest-release-1.7.0/scripts/test/
inflating: googletest-release-1.7.0/scripts/test/Makefile
inflating: googletest-release-1.7.0/scripts/upload.py
inflating: googletest-release-1.7.0/scripts/upload_gtest.py
creating: googletest-release-1.7.0/src/
inflating: googletest-release-1.7.0/src/gtest-all.cc
inflating: googletest-release-1.7.0/src/gtest-death-test.cc
inflating: googletest-release-1.7.0/src/gtest-filepath.cc
inflating: googletest-release-1.7.0/src/gtest-internal-inl.h
inflating: googletest-release-1.7.0/src/gtest-port.cc
inflating: googletest-release-1.7.0/src/gtest-printers.cc
inflating: googletest-release-1.7.0/src/gtest-test-part.cc
inflating: googletest-release-1.7.0/src/gtest-typed-test.cc
inflating: googletest-release-1.7.0/src/gtest.cc
inflating: googletest-release-1.7.0/src/gtest_main.cc
creating: googletest-release-1.7.0/test/
inflating: googletest-release-1.7.0/test/gtest-death-test_ex_test.cc
inflating: googletest-release-1.7.0/test/gtest-death-test_test.cc
inflating: googletest-release-1.7.0/test/gtest-filepath_test.cc
inflating: googletest-release-1.7.0/test/gtest-linked_ptr_test.cc
inflating: googletest-release-1.7.0/test/gtest-listener_test.cc
inflating: googletest-release-1.7.0/test/gtest-message_test.cc
inflating: googletest-release-1.7.0/test/gtest-options_test.cc
inflating: googletest-release-1.7.0/test/gtest-param-test2_test.cc
inflating: googletest-release-1.7.0/test/gtest-param-test_test.cc
inflating: googletest-release-1.7.0/test/gtest-param-test_test.h
inflating: googletest-release-1.7.0/test/gtest-port_test.cc
inflating: googletest-release-1.7.0/test/gtest-printers_test.cc
inflating: googletest-release-1.7.0/test/gtest-test-part_test.cc
inflating: googletest-release-1.7.0/test/gtest-tuple_test.cc
inflating: googletest-release-1.7.0/test/gtest-typed-test2_test.cc
inflating: googletest-release-1.7.0/test/gtest-typed-test_test.cc
inflating: googletest-release-1.7.0/test/gtest-typed-test_test.h
inflating: googletest-release-1.7.0/test/gtest-unittest-api_test.cc
inflating: googletest-release-1.7.0/test/gtest_all_test.cc
inflating: googletest-release-1.7.0/test/gtest_break_on_failure_unittest.py
inflating: googletest-release-1.7.0/test/gtest_break_on_failure_unittest_.cc
inflating: googletest-release-1.7.0/test/gtest_catch_exceptions_test.py
inflating: googletest-release-1.7.0/test/gtest_catch_exceptions_test_.cc
inflating: googletest-release-1.7.0/test/gtest_color_test.py
inflating: googletest-release-1.7.0/test/gtest_color_test_.cc
inflating: googletest-release-1.7.0/test/gtest_env_var_test.py
inflating: googletest-release-1.7.0/test/gtest_env_var_test_.cc
inflating: googletest-release-1.7.0/test/gtest_environment_test.cc
inflating: googletest-release-1.7.0/test/gtest_filter_unittest.py
inflating: googletest-release-1.7.0/test/gtest_filter_unittest_.cc
inflating: googletest-release-1.7.0/test/gtest_help_test.py
inflating: googletest-release-1.7.0/test/gtest_help_test_.cc
inflating: googletest-release-1.7.0/test/gtest_list_tests_unittest.py
inflating: googletest-release-1.7.0/test/gtest_list_tests_unittest_.cc
inflating: googletest-release-1.7.0/test/gtest_main_unittest.cc
inflating: googletest-release-1.7.0/test/gtest_no_test_unittest.cc
inflating: googletest-release-1.7.0/test/gtest_output_test.py
inflating: googletest-release-1.7.0/test/gtest_output_test_.cc
inflating: googletest-release-1.7.0/test/gtest_output_test_golden_lin.txt
inflating: googletest-release-1.7.0/test/gtest_pred_impl_unittest.cc
inflating: googletest-release-1.7.0/test/gtest_premature_exit_test.cc
inflating: googletest-release-1.7.0/test/gtest_prod_test.cc
inflating: googletest-release-1.7.0/test/gtest_repeat_test.cc
inflating: googletest-release-1.7.0/test/gtest_shuffle_test.py
inflating: googletest-release-1.7.0/test/gtest_shuffle_test_.cc
inflating: googletest-release-1.7.0/test/gtest_sole_header_test.cc
inflating: googletest-release-1.7.0/test/gtest_stress_test.cc
inflating: googletest-release-1.7.0/test/gtest_test_utils.py
inflating: googletest-release-1.7.0/test/gtest_throw_on_failure_ex_test.cc
inflating: googletest-release-1.7.0/test/gtest_throw_on_failure_test.py
inflating: googletest-release-1.7.0/test/gtest_throw_on_failure_test_.cc
inflating: googletest-release-1.7.0/test/gtest_uninitialized_test.py
inflating: googletest-release-1.7.0/test/gtest_uninitialized_test_.cc
inflating: googletest-release-1.7.0/test/gtest_unittest.cc
inflating: googletest-release-1.7.0/test/gtest_xml_outfile1_test_.cc
inflating: googletest-release-1.7.0/test/gtest_xml_outfile2_test_.cc
inflating: googletest-release-1.7.0/test/gtest_xml_outfiles_test.py
inflating: googletest-release-1.7.0/test/gtest_xml_output_unittest.py
inflating: googletest-release-1.7.0/test/gtest_xml_output_unittest_.cc
inflating: googletest-release-1.7.0/test/gtest_xml_test_utils.py
inflating: googletest-release-1.7.0/test/production.cc
inflating: googletest-release-1.7.0/test/production.h
creating: googletest-release-1.7.0/xcode/
creating: googletest-release-1.7.0/xcode/Config/
inflating: googletest-release-1.7.0/xcode/Config/DebugProject.xcconfig
inflating: googletest-release-1.7.0/xcode/Config/FrameworkTarget.xcconfig
inflating: googletest-release-1.7.0/xcode/Config/General.xcconfig
inflating: googletest-release-1.7.0/xcode/Config/ReleaseProject.xcconfig
inflating: googletest-release-1.7.0/xcode/Config/StaticLibraryTarget.xcconfig
inflating: googletest-release-1.7.0/xcode/Config/TestTarget.xcconfig
creating: googletest-release-1.7.0/xcode/Resources/
inflating: googletest-release-1.7.0/xcode/Resources/Info.plist
creating: googletest-release-1.7.0/xcode/Samples/
creating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/
inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/Info.plist
creating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/WidgetFramework.xcodeproj/
inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/WidgetFramework.xcodeproj/project.pbxproj
inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/runtests.sh
inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/widget.cc
inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/widget.h
inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/widget_test.cc
creating: googletest-release-1.7.0/xcode/Scripts/
inflating: googletest-release-1.7.0/xcode/Scripts/runtests.sh
inflating: googletest-release-1.7.0/xcode/Scripts/versiongenerate.py
creating: googletest-release-1.7.0/xcode/gtest.xcodeproj/
inflating: googletest-release-1.7.0/xcode/gtest.xcodeproj/project.pbxproj
-- Found Torch7 in /home/deckyal/torch/install
-- Configuring done
-- Generating done
-- Build files have been written to: /home/deckyal/thpp/thpp/build
Scanning dependencies of target thpp
[ 5%] Building CXX object CMakeFiles/thpp.dir/Storage.cpp.o
[ 10%] Building CXX object CMakeFiles/thpp.dir/StorageSerialization.cpp.o
[ 15%] Building CXX object CMakeFiles/thpp.dir/detail/StorageDefs.cpp.o
[ 20%] Building CXX object CMakeFiles/thpp.dir/TensorSerialization.cpp.o
[ 25%] Building CXX object CMakeFiles/thpp.dir/detail/TensorDefs.cpp.o
[ 30%] Building CXX object CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_data.cpp.o
[ 35%] Building CXX object CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_types.cpp.o
In file included from /usr/local/include/folly/io/async/Request.h:27:0,
from /usr/local/include/folly/io/async/EventBase.h:46,
from /usr/local/include/folly/io/async/AsyncSocketBase.h:19,
from /usr/local/include/folly/io/async/AsyncTransport.h:22,
from /usr/local/include/folly/io/async/AsyncSocket.h:26,
from /usr/local/include/thrift/lib/cpp/async/TAsyncSocket.h:19,
from /usr/local/include/thrift/lib/cpp2/server/Cpp2ConnContext.h:20,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.tcc:14,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:9:
/usr/local/include/folly/Synchronized.h:157:37: error: ‘withWLock’ function uses ‘auto’ type specifier without trailing return type
auto withWLock(Function&& function) {
^
/usr/local/include/folly/Synchronized.h:157:37: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:163:39: error: ‘withWLock’ function uses ‘auto’ type specifier without trailing return type
auto withWLock(Function&& function) const {
^
/usr/local/include/folly/Synchronized.h:163:39: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:179:40: error: ‘withWLockPtr’ function uses ‘auto’ type specifier without trailing return type
auto withWLockPtr(Function&& function) {
^
/usr/local/include/folly/Synchronized.h:179:40: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:183:42: error: ‘withWLockPtr’ function uses ‘auto’ type specifier without trailing return type
auto withWLockPtr(Function&& function) const {
^
/usr/local/include/folly/Synchronized.h:183:42: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:194:39: error: ‘withRLock’ function uses ‘auto’ type specifier without trailing return type
auto withRLock(Function&& function) const {
^
/usr/local/include/folly/Synchronized.h:194:39: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:201:42: error: ‘withRLockPtr’ function uses ‘auto’ type specifier without trailing return type
auto withRLockPtr(Function&& function) const {
^
/usr/local/include/folly/Synchronized.h:201:42: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:275:39: error: ‘withULock’ function uses ‘auto’ type specifier without trailing return type
auto withULock(Function&& function) const {
^
/usr/local/include/folly/Synchronized.h:275:39: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:293:40: error: ‘withULockPtr’ function uses ‘auto’ type specifier without trailing return type
auto withULockPtr(Function&& function) {
^
/usr/local/include/folly/Synchronized.h:293:40: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:297:42: error: ‘withULockPtr’ function uses ‘auto’ type specifier without trailing return type
auto withULockPtr(Function&& function) const {
^
/usr/local/include/folly/Synchronized.h:297:42: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:370:36: error: ‘withLock’ function uses ‘auto’ type specifier without trailing return type
auto withLock(Function&& function) {
^
/usr/local/include/folly/Synchronized.h:370:36: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:376:38: error: ‘withLock’ function uses ‘auto’ type specifier without trailing return type
auto withLock(Function&& function) const {
^
/usr/local/include/folly/Synchronized.h:376:38: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:392:39: error: ‘withLockPtr’ function uses ‘auto’ type specifier without trailing return type
auto withLockPtr(Function&& function) {
^
/usr/local/include/folly/Synchronized.h:392:39: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:396:41: error: ‘withLockPtr’ function uses ‘auto’ type specifier without trailing return type
auto withLockPtr(Function&& function) const {
^
/usr/local/include/folly/Synchronized.h:396:41: note: deduced return type only available with -std=c++14 or -std=gnu++14
In file included from /usr/local/include/thrift/lib/cpp/concurrency/ThreadManager.h:436:0,
from /usr/local/include/thrift/lib/cpp2/server/Cpp2ConnContext.h:23,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.tcc:14,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:9:
/usr/local/include/thrift/lib/cpp/concurrency/ThreadManager.tcc: In member function ‘void apache::thrift::concurrency::ThreadManager::ImplT::add(size_t, std::shared_ptrapache::thrift::concurrency::Runnable, int64_t, int64_t, bool, bool)’:
/usr/local/include/thrift/lib/cpp/concurrency/ThreadManager.tcc:401:15: error: ‘make_unique’ is not a member of ‘std’
auto task = std::make_unique(std::move(value),
^
/usr/local/include/thrift/lib/cpp/concurrency/ThreadManager.tcc:401:15: note: suggested alternative:
In file included from /usr/local/include/thrift/lib/cpp/Thrift.h:23:0,
from /usr/local/include/thrift/lib/cpp2/Thrift.h:20,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.h:9,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:7:
/usr/local/include/folly/Memory.h:63:1: note: ‘folly::make_unique’
make_unique(Args&&...) = delete;
^
In file included from /usr/local/include/thrift/lib/cpp/concurrency/ThreadManager.h:436:0,
from /usr/local/include/thrift/lib/cpp2/server/Cpp2ConnContext.h:23,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.tcc:14,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:9:
/usr/local/include/thrift/lib/cpp/concurrency/ThreadManager.tcc:401:36: error: expected primary-expression before ‘>’ token
auto task = std::make_unique(std::move(value),
^
/usr/local/include/thrift/lib/cpp/concurrency/ThreadManager.tcc: In member function ‘bool apache::thrift::concurrency::ThreadManager::ImplT::tryAdd(size_t, std::shared_ptrapache::thrift::concurrency::Runnable)’:
/usr/local/include/thrift/lib/cpp/concurrency/ThreadManager.tcc:436:15: error: ‘make_unique’ is not a member of ‘std’
auto task = std::make_unique(std::move(value),
^
/usr/local/include/thrift/lib/cpp/concurrency/ThreadManager.tcc:436:15: note: suggested alternative:
In file included from /usr/local/include/thrift/lib/cpp/Thrift.h:23:0,
from /usr/local/include/thrift/lib/cpp2/Thrift.h:20,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.h:9,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:7:
/usr/local/include/folly/Memory.h:63:1: note: ‘folly::make_unique’
make_unique(Args&&...) = delete;
^
In file included from /usr/local/include/thrift/lib/cpp/concurrency/ThreadManager.h:436:0,
from /usr/local/include/thrift/lib/cpp2/server/Cpp2ConnContext.h:23,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.tcc:14,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:9:
/usr/local/include/thrift/lib/cpp/concurrency/ThreadManager.tcc:436:36: error: expected primary-expression before ‘>’ token
auto task = std::make_unique(std::move(value),
^
In file included from /usr/local/include/thrift/lib/cpp2/async/SaslServer.h:24:0,
from /usr/local/include/thrift/lib/cpp2/server/Cpp2ConnContext.h:25,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.tcc:14,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:9:
/usr/local/include/folly/ExceptionWrapper.h: At global scope:
/usr/local/include/folly/ExceptionWrapper.h:68:22: error: ‘fold’ function uses ‘auto’ type specifier without trailing return type
auto fold(Fn&&, A&& a) {
^
/usr/local/include/folly/ExceptionWrapper.h:68:22: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/ExceptionWrapper.h:74:44: error: ‘fold’ function uses ‘auto’ type specifier without trailing return type
auto fold(Fn&& fn, A&& a, B&& b, Bs&&... bs) {
^
/usr/local/include/folly/ExceptionWrapper.h:74:44: note: deduced return type only available with -std=c++14 or -std=gnu++14
In file included from /usr/local/include/folly/ExceptionWrapper.h:671:0,
from /usr/local/include/thrift/lib/cpp2/async/SaslServer.h:24,
from /usr/local/include/thrift/lib/cpp2/server/Cpp2ConnContext.h:25,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.tcc:14,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:9:
/usr/local/include/folly/ExceptionWrapper-inl.h:413:46: error: ‘operator()’ function uses ‘auto’ type specifier without trailing return type
auto operator()(ThrowFn&& th, CatchFn& ca) const {
^
/usr/local/include/folly/ExceptionWrapper-inl.h:413:46: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/ExceptionWrapper-inl.h:433:46: error: ‘operator()’ function uses ‘auto’ type specifier without trailing return type
auto operator()(ThrowFn&& th, CatchFn& ca) const {
^
/usr/local/include/folly/ExceptionWrapper-inl.h:433:46: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/ExceptionWrapper-inl.h:459:46: error: ‘operator()’ function uses ‘auto’ type specifier without trailing return type
auto operator()(ThrowFn&& th, CatchFn& ca) const {
^
/usr/local/include/folly/ExceptionWrapper-inl.h:459:46: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/ExceptionWrapper-inl.h:478:46: error: ‘operator()’ function uses ‘auto’ type specifier without trailing return type
auto operator()(ThrowFn&& th, CatchFn& ca) const {
^
/usr/local/include/folly/ExceptionWrapper-inl.h:478:46: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/ExceptionWrapper-inl.h: In member function ‘auto folly::exception_wrapper::HandleStdExceptReduce::operator()(ThrowFn&&, CatchFn&) const’:
/usr/local/include/folly/ExceptionWrapper-inl.h:461:52: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14
return [ th = std::forward(th), &ca ](auto&& continuation)
^
/usr/local/include/folly/ExceptionWrapper-inl.h: In member function ‘auto folly::exception_wrapper::HandleStdExceptReduce::operator()(ThrowFn&&, CatchFn&) const’:
/usr/local/include/folly/ExceptionWrapper-inl.h:479:52: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14
return th = std::forward(th), &ca -> StdEx* {
^
/usr/local/include/folly/ExceptionWrapper-inl.h: In static member function ‘static void folly::exception_wrapper::handle_(std::true_type, This&, CatchFns& ...)’:
/usr/local/include/folly/ExceptionWrapper-inl.h:515:11: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14
[&](auto&& continuation) {
^
/usr/local/include/folly/ExceptionWrapper-inl.h: At global scope:
/usr/local/include/folly/ExceptionWrapper-inl.h:532:25: error: ‘operator()’ function uses ‘auto’ type specifier without trailing return type
auto operator()(Ex& ex) {
^
/usr/local/include/folly/ExceptionWrapper-inl.h:532:25: note: deduced return type only available with -std=c++14 or -std=gnu++14
In file included from /usr/local/include/thrift/lib/cpp2/async/AsyncProcessor.h:33:0,
from /usr/local/include/thrift/lib/cpp2/GeneratedCodeHelper.h:20,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.tcc:15,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:9:
/usr/local/include/wangle/deprecated/rx/Observer.h: In static member function ‘static std::unique_ptr<wangle::Observer > wangle::Observer::create(N&&, E&&, C&&)’:
/usr/local/include/wangle/deprecated/rx/Observer.h:45:12: error: ‘make_unique’ is not a member of ‘std’
return std::make_unique<FunctionObserver>(
^
/usr/local/include/wangle/deprecated/rx/Observer.h:45:12: note: suggested alternative:
In file included from /usr/local/include/thrift/lib/cpp/Thrift.h:23:0,
from /usr/local/include/thrift/lib/cpp2/Thrift.h:20,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.h:9,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:7:
/usr/local/include/folly/Memory.h:63:1: note: ‘folly::make_unique’
make_unique(Args&&...) = delete;
^
In file included from /usr/local/include/thrift/lib/cpp2/async/AsyncProcessor.h:33:0,
from /usr/local/include/thrift/lib/cpp2/GeneratedCodeHelper.h:20,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.tcc:15,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:9:
/usr/local/include/wangle/deprecated/rx/Observer.h:45:47: error: expected primary-expression before ‘>’ token
return std::make_unique<FunctionObserver>(
^
/usr/local/include/wangle/deprecated/rx/Observer.h: In static member function ‘static std::unique_ptr<wangle::Observer > wangle::Observer::create(N&&, E&&)’:
/usr/local/include/wangle/deprecated/rx/Observer.h:55:12: error: ‘make_unique’ is not a member of ‘std’
return std::make_unique<FunctionObserver>(
^
/usr/local/include/wangle/deprecated/rx/Observer.h:55:12: note: suggested alternative:
In file included from /usr/local/include/thrift/lib/cpp/Thrift.h:23:0,
from /usr/local/include/thrift/lib/cpp2/Thrift.h:20,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.h:9,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:7:
/usr/local/include/folly/Memory.h:63:1: note: ‘folly::make_unique’
make_unique(Args&&...) = delete;
^
In file included from /usr/local/include/thrift/lib/cpp2/async/AsyncProcessor.h:33:0,
from /usr/local/include/thrift/lib/cpp2/GeneratedCodeHelper.h:20,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.tcc:15,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:9:
/usr/local/include/wangle/deprecated/rx/Observer.h:55:47: error: expected primary-expression before ‘>’ token
return std::make_unique<FunctionObserver>(
^
/usr/local/include/wangle/deprecated/rx/Observer.h: In static member function ‘static std::unique_ptr<wangle::Observer > wangle::Observer::create(N&&)’:
/usr/local/include/wangle/deprecated/rx/Observer.h:65:12: error: ‘make_unique’ is not a member of ‘std’
return std::make_unique<FunctionObserver>(
^
/usr/local/include/wangle/deprecated/rx/Observer.h:65:12: note: suggested alternative:
In file included from /usr/local/include/thrift/lib/cpp/Thrift.h:23:0,
from /usr/local/include/thrift/lib/cpp2/Thrift.h:20,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.h:9,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:7:
/usr/local/include/folly/Memory.h:63:1: note: ‘folly::make_unique’
make_unique(Args&&...) = delete;
^
In file included from /usr/local/include/thrift/lib/cpp2/async/AsyncProcessor.h:33:0,
from /usr/local/include/thrift/lib/cpp2/GeneratedCodeHelper.h:20,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.tcc:15,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:9:
/usr/local/include/wangle/deprecated/rx/Observer.h:65:47: error: expected primary-expression before ‘>’ token
return std::make_unique<FunctionObserver>(
^
In file included from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.tcc:15:0,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:9:
/usr/local/include/thrift/lib/cpp2/GeneratedCodeHelper.h: In function ‘void apache::thrift::detail::ap::process_pmap(Processor*, apache::thrift::GeneratedAsyncProcessor::ProcessMap<void (Processor::)(std::unique_ptrapache::thrift::ResponseChannel::Request, std::unique_ptrfolly::IOBuf, std::unique_ptr, apache::thrift::Cpp2RequestContext, folly::EventBase*, apache::thrift::concurrency::ThreadManager*)>&, std::unique_ptrapache::thrift::ResponseChannel::Request, std::unique_ptrfolly::IOBuf, apache::thrift::Cpp2RequestContext*, folly::EventBase*, apache::thrift::concurrency::ThreadManager*)’:
/usr/local/include/thrift/lib/cpp2/GeneratedCodeHelper.h:1003:16: error: ‘make_unique’ is not a member of ‘std’
auto iprot = std::make_unique();
^
/usr/local/include/thrift/lib/cpp2/GeneratedCodeHelper.h:1003:16: note: suggested alternative:
In file included from /usr/local/include/thrift/lib/cpp/Thrift.h:23:0,
from /usr/local/include/thrift/lib/cpp2/Thrift.h:20,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.h:9,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:7:
/usr/local/include/folly/Memory.h:63:1: note: ‘folly::make_unique’
make_unique(Args&&...) = delete;
^
In file included from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.tcc:15:0,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:9:
/usr/local/include/thrift/lib/cpp2/GeneratedCodeHelper.h:1003:47: error: expected primary-expression before ‘>’ token
auto iprot = std::make_unique();
^
/usr/local/include/thrift/lib/cpp2/GeneratedCodeHelper.h:1003:49: error: expected primary-expression before ‘)’ token
auto iprot = std::make_unique();
^
/usr/local/include/thrift/lib/cpp2/GeneratedCodeHelper.h: In function ‘std::unique_ptr<typename apache::thrift::detail::si::action_traits_impl<decltype (& F:: operator())>::arg_type> apache::thrift::detail::si::returning_uptr(F&&)’:
/usr/local/include/thrift/lib/cpp2/GeneratedCodeHelper.h:1098:14: error: ‘make_unique’ is not a member of ‘std’
auto ret = std::make_unique<arg>();
^
/usr/local/include/thrift/lib/cpp2/GeneratedCodeHelper.h:1098:14: note: suggested alternative:
In file included from /usr/local/include/thrift/lib/cpp/Thrift.h:23:0,
from /usr/local/include/thrift/lib/cpp2/Thrift.h:20,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.h:9,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:7:
/usr/local/include/folly/Memory.h:63:1: note: ‘folly::make_unique’
make_unique(Args&&...) = delete;
^
In file included from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.tcc:15:0,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:9:
/usr/local/include/thrift/lib/cpp2/GeneratedCodeHelper.h:1098:36: error: expected primary-expression before ‘>’ token
auto ret = std::make_unique<arg>();
^
/usr/local/include/thrift/lib/cpp2/GeneratedCodeHelper.h:1098:39: error: expected primary-expression before ‘)’ token
auto ret = std::make_unique<arg>();
^
In file included from /usr/local/include/thrift/lib/cpp2/protocol/BinaryProtocol.h:289:0,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.tcc:17,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:9:
/usr/local/include/thrift/lib/cpp2/protocol/BinaryProtocol.tcc: In member function ‘uint32_t apache::thrift::BinaryProtocolReader::readBinary(std::unique_ptrfolly::IOBuf&)’:
/usr/local/include/thrift/lib/cpp2/protocol/BinaryProtocol.tcc:557:11: error: ‘make_unique’ is not a member of ‘std’
str = std::make_uniquefolly::IOBuf();
^
/usr/local/include/thrift/lib/cpp2/protocol/BinaryProtocol.tcc:557:11: note: suggested alternative:
In file included from /usr/local/include/thrift/lib/cpp/Thrift.h:23:0,
from /usr/local/include/thrift/lib/cpp2/Thrift.h:20,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.h:9,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:7:
/usr/local/include/folly/Memory.h:63:1: note: ‘folly::make_unique’
make_unique(Args&&...) = delete;
^
In file included from /usr/local/include/thrift/lib/cpp2/protocol/BinaryProtocol.h:289:0,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.tcc:17,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:9:
/usr/local/include/thrift/lib/cpp2/protocol/BinaryProtocol.tcc:557:40: error: expected primary-expression before ‘>’ token
str = std::make_uniquefolly::IOBuf();
^
/usr/local/include/thrift/lib/cpp2/protocol/BinaryProtocol.tcc:557:42: error: expected primary-expression before ‘)’ token
str = std::make_uniquefolly::IOBuf();
^
In file included from /usr/local/include/thrift/lib/cpp2/protocol/CompactProtocol.h:358:0,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.tcc:18,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:9:
/usr/local/include/thrift/lib/cpp2/protocol/CompactProtocol.tcc: In member function ‘uint32_t apache::thrift::CompactProtocolReader::readBinary(std::unique_ptrfolly::IOBuf&)’:
/usr/local/include/thrift/lib/cpp2/protocol/CompactProtocol.tcc:755:11: error: ‘make_unique’ is not a member of ‘std’
str = std::make_uniquefolly::IOBuf();
^
/usr/local/include/thrift/lib/cpp2/protocol/CompactProtocol.tcc:755:11: note: suggested alternative:
In file included from /usr/local/include/thrift/lib/cpp/Thrift.h:23:0,
from /usr/local/include/thrift/lib/cpp2/Thrift.h:20,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.h:9,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:7:
/usr/local/include/folly/Memory.h:63:1: note: ‘folly::make_unique’
make_unique(Args&&...) = delete;
^
In file included from /usr/local/include/thrift/lib/cpp2/protocol/CompactProtocol.h:358:0,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.tcc:18,
from /home/deckyal/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:9:
/usr/local/include/thrift/lib/cpp2/protocol/CompactProtocol.tcc:755:40: error: expected primary-expression before ‘>’ token
str = std::make_uniquefolly::IOBuf();
^
/usr/local/include/thrift/lib/cpp2/protocol/CompactProtocol.tcc:755:42: error: expected primary-expression before ‘)’ token
str = std::make_uniquefolly::IOBuf();
^
CMakeFiles/thpp.dir/build.make:228: recipe for target 'CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_types.cpp.o' failed
make[2]: *** [CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_types.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/thpp.dir/all' failed
make[1]: *** [CMakeFiles/thpp.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

Tensor::str() error

When linking code that invokes Tensor::str() the g++ spits out this error:
"In function 'thpp::Tensor::str() const':
main.cpp: undefined reference to 'thpp:Tensor::kLuaTypename'"

error: ‘sformat’ is not a member of ‘folly’

Hi guys,
I'm trying to install thpp manually for fbcunn but am running into this problem.
OS is Untuntu 14.04.
Any ideas?
Best,
Dimitrios

screen dump:
../thpp/StorageSerialization-inl.h: In function ‘folly::IOBuf thpp::detail::deserialize(ThriftObj&&, thpp::ThriftTensorDataType)’:
../thpp/StorageSerialization-inl.h:62:33: error: ‘sformat’ is not a member of ‘folly’
throw std::invalid_argument(folly::sformat(
^
../thpp/StorageSerialization-inl.h:67:33: error: ‘sformat’ is not a member of ‘folly’
throw std::invalid_argument(folly::sformat(
^

fatal error: thrift/lib/cpp2/frozen/Frozen.h: No such file or directory

[ 20%] Building CXX object CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_types.cpp.o
In file included from /usr/local/include/thrift/lib/cpp2/GeneratedCodeHelper.h:20:0,
from /home/zoe/fblualib_/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.tcc:15,
from /home/zoe/fblualib_/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:9:
/usr/local/include/thrift/lib/cpp2/FrozenTApplicationException.h:19:43: fatal error: thrift/lib/cpp2/frozen/Frozen.h: No such file or directory
compilation terminated.
CMakeFiles/thpp.dir/build.make:228: recipe for target 'CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_types.cpp.o' failed
make[2]: *** [CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_types.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/thpp.dir/all' failed
make[1]: *** [CMakeFiles/thpp.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

cmake error: do not have FindTorch.cmake

the error is
By not providing "FindTorch.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Torch", but CMake did not find one.
I do not have FindTorch.cmake, how can I do with it

New build error

It looks like a change in folly over the past few days has broken thpp builds:

[  7%] Generating thpp/if/gen-cpp2/Tensor_types.h, thpp/if/gen-cpp2/Tensor_types.tcc, thpp/if/gen-cpp2/Tensor_constants.h, thpp/if/gen-cpp2/Tensor_types.cpp, thpp/if/gen-cpp2/Tensor_constants.cpp
Scanning dependencies of target thpp
[ 15%] Building CXX object CMakeFiles/thpp.dir/Storage.cpp.o
/thpp/thpp/Storage.cpp: In function 'void thpp::detail::applySharingMode(folly::IOBuf&, thpp::SharingMode)':
/thpp/thpp/Storage.cpp:66:9: error: 'class folly::IOBuf' has no member named 'makeManagedOne'
     iob.makeManagedOne();
         ^
make[2]: *** [CMakeFiles/thpp.dir/Storage.cpp.o] Error 1
make[1]: *** [CMakeFiles/thpp.dir/all] Error 2
make: *** [all] Error 2

This is from trying to rebuild a Docker that built properly a week ago.

Can someone confirm and advise? Thanks.

Tagging this @soumith because this seems to break fbcunn building.

Build Error

Hi !
I am trying to install TH++ but encounter following error while running build

image

The folder /thpp/thpp/build/thpp/if/gen-cpp2 doesnt have any "Tensor_data.h" file generated in there. That's why "build.make" doesn't generate Tensor_data.cpp and ignores it.

Please help out. I have been stuck on this issue.

Regards

/usr/bin/python: cannot import name frontend

How can i solve that error ? Thanks

/usr/bin/python: cannot import name frontend
CMakeFiles/thpp.dir/build.make:61: recipe for target 'thpp/if/gen-cpp2/Tensor_data.h' failed
make[2]: *** [thpp/if/gen-cpp2/Tensor_data.h] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/thpp.dir/all' failed
make[1]: *** [CMakeFiles/thpp.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

Compile error

Scanning dependencies of target thpp
[ 10%] Building CXX object CMakeFiles/thpp.dir/Storage.cpp.o
In file included from /tmp/fblualib-build.NIRKHA/thpp/thpp/../thpp/Storage.h:22:0,
                 from /tmp/fblualib-build.NIRKHA/thpp/thpp/Storage.cpp:11:
/tmp/fblualib-build.NIRKHA/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.h:44:155: error: no member function ‘enumerators’ declared in ‘apache::thrift::TEnumTraitsBase<thpp::ThriftTensorDataType>’
 hriftTensorDataType, folly::StringPiece>*> TEnumTraitsBase< ::thpp::ThriftTensorDataType>::enumerators();
                                                                                                        ^
/tmp/fblualib-build.NIRKHA/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.h:77:159: error: no member function ‘enumerators’ declared in ‘apache::thrift::TEnumTraitsBase<thpp::ThriftTensorEndianness>’
 tTensorEndianness, folly::StringPiece>*> TEnumTraitsBase< ::thpp::ThriftTensorEndianness>::enumerators();
                                                                                                        ^
CMakeFiles/thpp.dir/build.make:84: recipe for target 'CMakeFiles/thpp.dir/Storage.cpp.o' failed
make[2]: *** [CMakeFiles/thpp.dir/Storage.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/thpp.dir/all' failed
make[1]: *** [CMakeFiles/thpp.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2 ```

CMake Error at gmock-stamp/gmock-download.cmake:16 (message)

When running the script build_fbthrift_folly.sh the following error occurs:

[ 4%] Performing download step (download, verify and extract) for 'gmock'
CMake Error at gmock-stamp/gmock-download.cmake:16 (message):
Command failed: 1

'/usr/bin/cmake' '-Dmake=' '-Dconfig=' '-P' '/tmp/follythrift-build.S2aJu7/wangle/wangle/gmock/src/gmock-stamp/gmock-download-impl.cmake'

See also

/tmp/follythrift-build.S2aJu7/wangle/wangle/gmock/src/gmock-stamp/gmock-download-*.log

make[2]: *** [gmock/src/gmock-stamp/gmock-download] Error 1
make[1]: *** [CMakeFiles/gmock.dir/all] Error 2
make: *** [all] Error 2

CMake Error when installing thpp.

CMake Error

I am trying to install thpp to be used later with fbcunn but I am encountering the following error

CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message): REQUIRED_ARGS (missing: THRIFT_INCLUDE_DIR THRIFT_LIBRARY THRIFT_CPP2_LIBRARY) Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE) cmake/FindThrift.cmake:79 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:27 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!

I am following the instructions here.

Previously, I tried following the instructions here but I was getting an error so I opted to install all the dependencies (Folly, fbthrift, thpp and fblualib) separately. I believe that Folly and fbthrift have been correctly installed.

Missing thpp/thpp/build/thpp/if/gen-cpp2/Tensor_data.cpp when call build.sh

When installing thpp (v1.0-32-g47a6356), I face a missing file error:

c++: error: /home/user/src/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_data.cpp: No such file or directory

I modified the build.sh script to install into a local folder rather than into /usr/local.

user@pc:~/src/thpp/thpp$ git diff build.sh 
diff --git a/thpp/build.sh b/thpp/build.sh
index 79af5d9..808639e 100755
--- a/thpp/build.sh
+++ b/thpp/build.sh
@@ -43,7 +43,7 @@ cd build
 export CMAKE_LIBRARY_PATH=$(dirname $(which th))/../lib
 
 # Configure
-cmake $FB ..
+cmake $FB -DCMAKE_INSTALL_PREFIX=$HOME/.local -DCMAKE_PREFIX_PATH=$HOME/.local ..
 
 # Make
 make

The full output of the installation:

user@pc:~/src/thpp/thpp$ bash build.sh 
If you don't have folly or thrift installed, try doing
  THPP_NOFB=1 ./build.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   129    0   129    0     0    296      0 --:--:-- --:--:-- --:--:--   297
100  618k  100  618k    0     0   412k      0  0:00:01  0:00:01 --:--:--  715k
curl: Saved to filename 'googletest-release-1.7.0.zip'
Archive:  googletest-release-1.7.0.zip
c99458533a9b4c743ed51537e25989ea55944908
   creating: googletest-release-1.7.0/
  inflating: googletest-release-1.7.0/CHANGES  
  inflating: googletest-release-1.7.0/CMakeLists.txt  
  inflating: googletest-release-1.7.0/CONTRIBUTORS  
  inflating: googletest-release-1.7.0/LICENSE  
  inflating: googletest-release-1.7.0/Makefile.am  
  inflating: googletest-release-1.7.0/README  
   creating: googletest-release-1.7.0/build-aux/
 extracting: googletest-release-1.7.0/build-aux/.keep  
   creating: googletest-release-1.7.0/cmake/
  inflating: googletest-release-1.7.0/cmake/internal_utils.cmake  
   creating: googletest-release-1.7.0/codegear/
  inflating: googletest-release-1.7.0/codegear/gtest.cbproj  
  inflating: googletest-release-1.7.0/codegear/gtest.groupproj  
  inflating: googletest-release-1.7.0/codegear/gtest_all.cc  
  inflating: googletest-release-1.7.0/codegear/gtest_link.cc  
  inflating: googletest-release-1.7.0/codegear/gtest_main.cbproj  
  inflating: googletest-release-1.7.0/codegear/gtest_unittest.cbproj  
  inflating: googletest-release-1.7.0/configure.ac  
   creating: googletest-release-1.7.0/include/
   creating: googletest-release-1.7.0/include/gtest/
  inflating: googletest-release-1.7.0/include/gtest/gtest-death-test.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest-message.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest-param-test.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest-param-test.h.pump  
  inflating: googletest-release-1.7.0/include/gtest/gtest-printers.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest-spi.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest-test-part.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest-typed-test.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest_pred_impl.h  
  inflating: googletest-release-1.7.0/include/gtest/gtest_prod.h  
   creating: googletest-release-1.7.0/include/gtest/internal/
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-death-test-internal.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-filepath.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-internal.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-linked_ptr.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-param-util-generated.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-param-util-generated.h.pump  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-param-util.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-port.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-string.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-tuple.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-tuple.h.pump  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-type-util.h  
  inflating: googletest-release-1.7.0/include/gtest/internal/gtest-type-util.h.pump  
   creating: googletest-release-1.7.0/m4/
  inflating: googletest-release-1.7.0/m4/acx_pthread.m4  
  inflating: googletest-release-1.7.0/m4/gtest.m4  
   creating: googletest-release-1.7.0/make/
  inflating: googletest-release-1.7.0/make/Makefile  
   creating: googletest-release-1.7.0/msvc/
  inflating: googletest-release-1.7.0/msvc/gtest-md.sln  
  inflating: googletest-release-1.7.0/msvc/gtest-md.vcproj  
  inflating: googletest-release-1.7.0/msvc/gtest.sln  
  inflating: googletest-release-1.7.0/msvc/gtest.vcproj  
  inflating: googletest-release-1.7.0/msvc/gtest_main-md.vcproj  
  inflating: googletest-release-1.7.0/msvc/gtest_main.vcproj  
  inflating: googletest-release-1.7.0/msvc/gtest_prod_test-md.vcproj  
  inflating: googletest-release-1.7.0/msvc/gtest_prod_test.vcproj  
  inflating: googletest-release-1.7.0/msvc/gtest_unittest-md.vcproj  
  inflating: googletest-release-1.7.0/msvc/gtest_unittest.vcproj  
   creating: googletest-release-1.7.0/samples/
  inflating: googletest-release-1.7.0/samples/prime_tables.h  
  inflating: googletest-release-1.7.0/samples/sample1.cc  
  inflating: googletest-release-1.7.0/samples/sample1.h  
  inflating: googletest-release-1.7.0/samples/sample10_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample1_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample2.cc  
  inflating: googletest-release-1.7.0/samples/sample2.h  
  inflating: googletest-release-1.7.0/samples/sample2_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample3-inl.h  
  inflating: googletest-release-1.7.0/samples/sample3_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample4.cc  
  inflating: googletest-release-1.7.0/samples/sample4.h  
  inflating: googletest-release-1.7.0/samples/sample4_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample5_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample6_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample7_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample8_unittest.cc  
  inflating: googletest-release-1.7.0/samples/sample9_unittest.cc  
   creating: googletest-release-1.7.0/scripts/
  inflating: googletest-release-1.7.0/scripts/fuse_gtest_files.py  
  inflating: googletest-release-1.7.0/scripts/gen_gtest_pred_impl.py  
  inflating: googletest-release-1.7.0/scripts/gtest-config.in  
  inflating: googletest-release-1.7.0/scripts/pump.py  
   creating: googletest-release-1.7.0/scripts/test/
  inflating: googletest-release-1.7.0/scripts/test/Makefile  
  inflating: googletest-release-1.7.0/scripts/upload.py  
  inflating: googletest-release-1.7.0/scripts/upload_gtest.py  
   creating: googletest-release-1.7.0/src/
  inflating: googletest-release-1.7.0/src/gtest-all.cc  
  inflating: googletest-release-1.7.0/src/gtest-death-test.cc  
  inflating: googletest-release-1.7.0/src/gtest-filepath.cc  
  inflating: googletest-release-1.7.0/src/gtest-internal-inl.h  
  inflating: googletest-release-1.7.0/src/gtest-port.cc  
  inflating: googletest-release-1.7.0/src/gtest-printers.cc  
  inflating: googletest-release-1.7.0/src/gtest-test-part.cc  
  inflating: googletest-release-1.7.0/src/gtest-typed-test.cc  
  inflating: googletest-release-1.7.0/src/gtest.cc  
  inflating: googletest-release-1.7.0/src/gtest_main.cc  
   creating: googletest-release-1.7.0/test/
  inflating: googletest-release-1.7.0/test/gtest-death-test_ex_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-death-test_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-filepath_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-linked_ptr_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-listener_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-message_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-options_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-param-test2_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-param-test_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-param-test_test.h  
  inflating: googletest-release-1.7.0/test/gtest-port_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-printers_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-test-part_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-tuple_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-typed-test2_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-typed-test_test.cc  
  inflating: googletest-release-1.7.0/test/gtest-typed-test_test.h  
  inflating: googletest-release-1.7.0/test/gtest-unittest-api_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_all_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_break_on_failure_unittest.py  
  inflating: googletest-release-1.7.0/test/gtest_break_on_failure_unittest_.cc  
  inflating: googletest-release-1.7.0/test/gtest_catch_exceptions_test.py  
  inflating: googletest-release-1.7.0/test/gtest_catch_exceptions_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_color_test.py  
  inflating: googletest-release-1.7.0/test/gtest_color_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_env_var_test.py  
  inflating: googletest-release-1.7.0/test/gtest_env_var_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_environment_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_filter_unittest.py  
  inflating: googletest-release-1.7.0/test/gtest_filter_unittest_.cc  
  inflating: googletest-release-1.7.0/test/gtest_help_test.py  
  inflating: googletest-release-1.7.0/test/gtest_help_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_list_tests_unittest.py  
  inflating: googletest-release-1.7.0/test/gtest_list_tests_unittest_.cc  
  inflating: googletest-release-1.7.0/test/gtest_main_unittest.cc  
  inflating: googletest-release-1.7.0/test/gtest_no_test_unittest.cc  
  inflating: googletest-release-1.7.0/test/gtest_output_test.py  
  inflating: googletest-release-1.7.0/test/gtest_output_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_output_test_golden_lin.txt  
  inflating: googletest-release-1.7.0/test/gtest_pred_impl_unittest.cc  
  inflating: googletest-release-1.7.0/test/gtest_premature_exit_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_prod_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_repeat_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_shuffle_test.py  
  inflating: googletest-release-1.7.0/test/gtest_shuffle_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_sole_header_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_stress_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_test_utils.py  
  inflating: googletest-release-1.7.0/test/gtest_throw_on_failure_ex_test.cc  
  inflating: googletest-release-1.7.0/test/gtest_throw_on_failure_test.py  
  inflating: googletest-release-1.7.0/test/gtest_throw_on_failure_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_uninitialized_test.py  
  inflating: googletest-release-1.7.0/test/gtest_uninitialized_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_unittest.cc  
  inflating: googletest-release-1.7.0/test/gtest_xml_outfile1_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_xml_outfile2_test_.cc  
  inflating: googletest-release-1.7.0/test/gtest_xml_outfiles_test.py  
  inflating: googletest-release-1.7.0/test/gtest_xml_output_unittest.py  
  inflating: googletest-release-1.7.0/test/gtest_xml_output_unittest_.cc  
  inflating: googletest-release-1.7.0/test/gtest_xml_test_utils.py  
  inflating: googletest-release-1.7.0/test/production.cc  
  inflating: googletest-release-1.7.0/test/production.h  
   creating: googletest-release-1.7.0/xcode/
   creating: googletest-release-1.7.0/xcode/Config/
  inflating: googletest-release-1.7.0/xcode/Config/DebugProject.xcconfig  
  inflating: googletest-release-1.7.0/xcode/Config/FrameworkTarget.xcconfig  
  inflating: googletest-release-1.7.0/xcode/Config/General.xcconfig  
  inflating: googletest-release-1.7.0/xcode/Config/ReleaseProject.xcconfig  
  inflating: googletest-release-1.7.0/xcode/Config/StaticLibraryTarget.xcconfig  
  inflating: googletest-release-1.7.0/xcode/Config/TestTarget.xcconfig  
   creating: googletest-release-1.7.0/xcode/Resources/
  inflating: googletest-release-1.7.0/xcode/Resources/Info.plist  
   creating: googletest-release-1.7.0/xcode/Samples/
   creating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/
  inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/Info.plist  
   creating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/WidgetFramework.xcodeproj/
  inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/WidgetFramework.xcodeproj/project.pbxproj  
  inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/runtests.sh  
  inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/widget.cc  
  inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/widget.h  
  inflating: googletest-release-1.7.0/xcode/Samples/FrameworkSample/widget_test.cc  
   creating: googletest-release-1.7.0/xcode/Scripts/
  inflating: googletest-release-1.7.0/xcode/Scripts/runtests.sh  
  inflating: googletest-release-1.7.0/xcode/Scripts/versiongenerate.py  
   creating: googletest-release-1.7.0/xcode/gtest.xcodeproj/
  inflating: googletest-release-1.7.0/xcode/gtest.xcodeproj/project.pbxproj  
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- 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
-- Found Torch7 in /home/user/.local
-- Found Folly: /home/user/.local/include  
-- Found Thrift: /home/user/.local/include  
-- Performing Test HAS_NO_AS_NEEDED
-- Performing Test HAS_NO_AS_NEEDED - Success
-- Found Glog: /usr/include  
-- Found PythonInterp: /usr/bin/python (found version "2.7.12") 
-- 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  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/src/thpp/thpp/build
[  5%] Generating thpp/if/gen-cpp2/Tensor_data.h, thpp/if/gen-cpp2/Tensor_types.h, thpp/if/gen-cpp2/Tensor_types.tcc, thpp/if/gen-cpp2/Tensor_constants.h, thpp/if/gen-cpp2/Tensor_data.cpp, thpp/if/gen-cpp2/Tensor_types.cpp, thpp/if/gen-cpp2/Tensor_constants.cpp
Scanning dependencies of target thpp
[  5%] Generating thpp/if/gen-cpp2/Tensor_data.h, thpp/if/gen-cpp2/Tensor_types.h, thpp/if/gen-cpp2/Tensor_types.tcc, thpp/if/gen-cpp2/Tensor_constants.h, thpp/if/gen-cpp2/Tensor_data.cpp, thpp/if/gen-cpp2/Tensor_types.cpp, thpp/if/gen-cpp2/Tensor_constants.cpp
[ 10%] Building CXX object CMakeFiles/thpp.dir/Storage.cpp.o
[ 15%] Building CXX object CMakeFiles/thpp.dir/StorageSerialization.cpp.o
[ 20%] Building CXX object CMakeFiles/thpp.dir/detail/StorageDefs.cpp.o
[ 25%] Building CXX bject CMakeFiles/thpp.dir/TensorSerialization.cpp.o
[ 30%] Building CXX object CMakeFiles/thpp.dir/detail/TensorDefs.cpp.o
[ 35%] Building CXX object CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_data.cpp.o
c++: error: /home/user/src/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_data.cpp: No such file or directory
c++: fatal error: no input files
compilation terminated.
CMakeFiles/thpp.dir/build.make:204: recipe for target 'CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_data.cpp.o' failed
make[2]: *** [CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_data.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/thpp.dir/all' failed
make[1]: *** [CMakeFiles/thpp.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Test project /home/user/src/thpp/thpp/build
    Start 1: storage_test
Could not find executable storage_test
Looked in the following places:
storage_test
storage_test
Release/storage_test
Release/storage_test
Debug/storage_test
Debug/storage_test
MinSizeRel/storage_test
MinSizeRel/storage_test
RelWithDebInfo/storage_test
RelWithDebInfo/storage_test
Deployment/storage_test
Deployment/storage_test
Development/storage_test
Development/storage_test
Unable to find executable: storage_test
1/3 Test #1: storage_test .....................***Not Run   0.00 sec
    Start 2: tensor_test
Could not find executable tensor_test
Looked in the following places:
tensor_test
tensor_test
Release/tensor_test
Release/tensor_test
Debug/tensor_test
Debug/tensor_test
MinSizeRel/tensor_test
MinSizeRel/tensor_test
RelWithDebInfo/tensor_test
RelWithDebInfo/tensor_test
Deployment/tensor_test
Deployment/tensor_test
Development/tensor_test
Development/tensor_test
Unable to find executable: tensor_test
2/3 Test #2: tensor_test ......................***Not Run   0.00 sec
    Start 3: tensor_serialization_test
Could not find executable tensor_serialization_test
Looked in the following places:
tensor_serialization_test
tensor_serialization_test
Release/tensor_serialization_test
Release/tensor_serialization_test
Debug/tensor_serialization_test
Debug/tensor_serialization_test
MinSizeRel/tensor_serialization_test
MinSizeRel/tensor_serialization_test
RelWithDebInfo/tensor_serialization_test
RelWithDebInfo/tensor_serialization_test
Deployment/tensor_serialization_test
Deployment/tensor_serialization_test
Development/tensor_serialization_test
Development/tensor_serialization_test
Unable to find executable: tensor_serialization_test
3/3 Test #3: tensor_serialization_test ........***Not Run   0.00 sec

0% tests passed, 3 tests failed out of 3

Total Test time (real) =   0.00 sec

The following tests FAILED:
	  1 - storage_test (Not Run)
	  2 - tensor_test (Not Run)
	  3 - tensor_serialization_test (Not Run)
Errors while running CTest
[  5%] Generating thpp/if/gen-cpp2/Tensor_data.h, thpp/if/gen-cpp2/Tensor_types.h, thpp/if/gen-cpp2/Tensor_types.tcc, thpp/if/gen-cpp2/Tensor_constants.h, thpp/if/gen-cpp2/Tensor_data.cpp, thpp/if/gen-cpp2/Tensor_types.cpp, thpp/if/gen-cpp2/Tensor_constants.cpp
Scanning dependencies of target thpp
[  5%] Generating thpp/if/gen-cpp2/Tensor_data.h, thpp/if/gen-cpp2/Tensor_types.h, thpp/if/gen-cpp2/Tensor_types.tcc, thpp/if/gen-cpp2/Tensor_constants.h, thpp/if/gen-cpp2/Tensor_data.cpp, thpp/if/gen-cpp2/Tensor_types.cpp, thpp/if/gen-cpp2/Tensor_constants.cpp
[ 10%] Building CXX object CMakeFiles/thpp.dir/Storage.cpp.o
[ 15%] Building CXX object CMakeFiles/thpp.dir/StorageSerialization.cpp.o
[ 20%] Building CXX object CMakeFiles/thpp.dir/TensorSerialization.cpp.o
[ 25%] Building CXX object CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_data.cpp.o
c++: error: /home/user/src/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_data.cpp: No such file or directory
c++: fatal error: no input files
compilation terminated.
CMakeFiles/thpp.dir/build.make:204: recipe for target 'CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_data.cpp.o' failed
make[2]: *** [CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_data.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/thpp.dir/all' failed
make[1]: *** [CMakeFiles/thpp.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

Gentoo: LUA library for INSTALL_CMOD - thpp search in /usr/lib64 instead of /usr/lib64/lua/5.1

Hi,

I work on Torch ebuilds in my overlay. And got into situation which is quite easy to fix, but to me question which solution is correct.

When I install Torch package I do it as:

DESCRIPTION="Torch is a Lua-based suite for scientific computations based on multidimensional tensors." 
HOMEPAGE="https://github.com/torch/torch7" 
EGIT_REPO_URI="https://github.com/torch/torch7.git" 

.... 
src_configure() { 
   local mycmakeargs=( 
      "-DLUADIR=$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))" 
      "-DLIBDIR=$($(tc-getPKG_CONFIG) --variable INSTALL_LIB $(usex luajit 'luajit' 'lua'))" 
      "-DLUA_BINDIR=$($(tc-getPKG_CONFIG) --variable INSTALL_BIN $(usex luajit 'luajit' 'lua'))" 
      "-DLUA_INCDIR=$($(tc-getPKG_CONFIG) --variable INSTALL_INC $(usex luajit 'luajit' 'lua'))" 
      "-DLUA_LIBDIR=$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD $(usex luajit 'luajit' 'lua'))" 
      "-DSCRIPTS_DIR=$($(tc-getPKG_CONFIG) --variable INSTALL_BIN $(usex luajit 'luajit' 'lua'))" 
      "-DLUALIB=`equery files luajit |grep lib64/libluajit | grep .so | awk 'NR==0; END{print}'`" 
      "-DLUA=/usr/bin/luajit" 
   ) 

   cmake-utils_src_configure 
}

Important is my configuration of LUA libraries. With these settings Torch is installed as following:

Code:
 * QA Notice: The following shared libraries lack a SONAME 
 * /usr/lib64/libtorch.so 

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line -R .note.gnu.gold-version 
   usr/lib64/lua/5.1/libluaT.so.0 
   usr/lib64/libtorch.so 
   usr/lib64/lua/5.1/libTH.so.0 

So some goes directly to /usr/lib64 and some goes to lua subdir, which looks correct to me.

Next I am emerging ebuild for Facebook TH++ library based on Troch using CMAKE from repo as well, but this time the library build fails on:

CMake Error at /usr/share/cmake/torch/TorchExports.cmake:70 (message): 
  The imported target "TH" references the file 

     "/usr/lib64/libTH.so.0" 

  but this file does not exist.  Possible reasons include: 

  * The file was deleted, renamed, or moved to another location. 

  * An install or uninstall procedure did not complete successfully. 

  * The installation package was faulty and contained 

     "/usr/share/cmake/torch/TorchExports.cmake" 

  but not all the files it references. 

Call Stack (most recent call first): 
  /usr/share/cmake/torch/TorchConfig.cmake:29 (INCLUDE) 
  CMakeLists.txt:26 (FIND_PACKAGE)

Could you suggest if the problem is in Cmake files with TH++ by looking in wrong libraries, I can of course write a patch for Gentoo, but more thinking now what is the correct way.

Thank you for suggestions.

Ladislav

I'm trying to build "thpp",but had a complier error

the steps on my Ubuntu 16.04 with cmake 3.9:
1.cd thpp
2.mkdir build
3.cd build
4.cmake ..
and everything is ok
but when it comes to 'make'

the source in the file /detail/TensorGeneric.h
error: return-statement with a value, in function returning 'void' [-fpermissive]
return THTensor_(prod)(r, t, dim);

Why a void function could return something like this? What did I do anything wrong?
Hope to get answer,thanks
2017-08-17 19-04-11

Unable to download gtest1.7.0

When launching the build.sh, it will aotomatically download the gtest1.7.0, but as far as I know the url is unreachable, so can someone fix it?

thpp/if/gen-cpp2/Tensor_types.h: No such file or directory

Hi,
After installing thpp it could not generate if/gen-cpp2/Tensor_types.h files is not created and giving following error while trying to use crnn. Kindly help me in this issue.


In file included from /media/mpl1/mpl_hd1/Utkarsh/ravi/crnn/src/cpp/Tensor.h:14:0,
                 from /media/mpl1/mpl_hd1/Utkarsh/ravi/crnn/src/cpp/ctc.cpp:8:
/home/mpl1/torch/install/include/thpp/Storage.h:22:43: fatal error: thpp/if/gen-cpp2/Tensor_types.h: No such file or directory
compilation terminated.
CMakeFiles/crnn.dir/build.make:86: recipe for target 'CMakeFiles/crnn.dir/ctc.cpp.o' failed
make[2]: *** [CMakeFiles/crnn.dir/ctc.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/crnn.dir/all' failed
make[1]: *** [CMakeFiles/crnn.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
cp: cannot stat '*.so': No such file or directory
(base) mpl1@mpl1:/media/mpl1/mpl_hd1/Utkarsh/ravi/crnn/src$ sh build_cpp.sh
mkdir: cannot create directory ‘build’: File exists
-- Configuring done
-- Generating done
-- Build files have been written to: /media/mpl1/mpl_hd1/Utkarsh/ravi/crnn/src/cpp/build

Regards,
D. RAvi Theja.

Tensor::unfold() error

cannot call Tensor::unfold()

/usr/local/include/thpp/Tensor-inl.h:334:46: error: ‘_unfold’ is not a member of ‘thpp::Tensor<float>::Ops {aka thpp::detail::TensorOps<float>}’
   Ops::_unfold(t_, src.mut(), dim, size, step);

Torch7 is manually installed according to this guide.

Cannot find Torchconfig.cmake

I'm using Ubuntu 14.04
When install thpp, I encounter the following problem:
image

But if I follow the detailed installation tuition, and edit the CMakeList.txt in thpp by setting Torch_DIR to ${HOME}torch/install/share/cmake/torch, this problem can be fixed.

Is it a bug or I have done something wrong during my installation?

Getting a lot of folly Lock errors: withWLock, withWLockPtr, withRLock, withRLockPtr, withULock, withULockPtr

Hello People,

I am getting the following errors when I execute the build.sh script:

In file included from /usr/local/include/folly/io/async/Request.h:27:0,
from /usr/local/include/folly/io/async/EventBase.h:45,
from /usr/local/include/folly/io/async/AsyncSocketBase.h:19,
from /usr/local/include/folly/io/async/AsyncTransport.h:22,
from /usr/local/include/folly/io/async/AsyncSocket.h:26,
from /usr/local/include/thrift/lib/cpp/async/TAsyncSocket.h:19,
from /usr/local/include/thrift/lib/cpp2/server/Cpp2ConnContext.h:20,
from /home/dragon/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.tcc:14,
from /home/dragon/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.cpp:9:
/usr/local/include/folly/Synchronized.h:157:37: error: ‘withWLock’ function uses ‘auto’ type specifier without trailing return type
auto withWLock(Function&& function) {
^
/usr/local/include/folly/Synchronized.h:157:37: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:163:39: error: ‘withWLock’ function uses ‘auto’ type specifier without trailing return type
auto withWLock(Function&& function) const {
^
/usr/local/include/folly/Synchronized.h:163:39: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:179:40: error: ‘withWLockPtr’ function uses ‘auto’ type specifier without trailing return type
auto withWLockPtr(Function&& function) {
^
/usr/local/include/folly/Synchronized.h:179:40: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:183:42: error: ‘withWLockPtr’ function uses ‘auto’ type specifier without trailing return type
auto withWLockPtr(Function&& function) const {
^
/usr/local/include/folly/Synchronized.h:183:42: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:194:39: error: ‘withRLock’ function uses ‘auto’ type specifier without trailing return type
auto withRLock(Function&& function) const {
^
/usr/local/include/folly/Synchronized.h:194:39: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:201:42: error: ‘withRLockPtr’ function uses ‘auto’ type specifier without trailing return type
auto withRLockPtr(Function&& function) const {
^
/usr/local/include/folly/Synchronized.h:201:42: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:275:39: error: ‘withULock’ function uses ‘auto’ type specifier without trailing return type
auto withULock(Function&& function) const {
^
/usr/local/include/folly/Synchronized.h:275:39: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:293:40: error: ‘withULockPtr’ function uses ‘auto’ type specifier without trailing return type
auto withULockPtr(Function&& function) {
^
/usr/local/include/folly/Synchronized.h:293:40: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:297:42: error: ‘withULockPtr’ function uses ‘auto’ type specifier without trailing return type
auto withULockPtr(Function&& function) const {
^
/usr/local/include/folly/Synchronized.h:297:42: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:370:36: error: ‘withLock’ function uses ‘auto’ type specifier without trailing return type
auto withLock(Function&& function) {
^
/usr/local/include/folly/Synchronized.h:370:36: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:376:38: error: ‘withLock’ function uses ‘auto’ type specifier without trailing return type
auto withLock(Function&& function) const {
^
/usr/local/include/folly/Synchronized.h:376:38: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:392:39: error: ‘withLockPtr’ function uses ‘auto’ type specifier without trailing return type
auto withLockPtr(Function&& function) {
^
/usr/local/include/folly/Synchronized.h:392:39: note: deduced return type only available with -std=c++14 or -std=gnu++14
/usr/local/include/folly/Synchronized.h:396:41: error: ‘withLockPtr’ function uses ‘auto’ type specifier without trailing return type
auto withLockPtr(Function&& function) const {
^
/usr/local/include/folly/Synchronized.h:396:41: note: deduced return type only available with -std=c++14 or -std=gnu++14
CMakeFiles/thpp.dir/build.make:228: recipe for target 'CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_types.cpp.o' failed
make[2]: *** [CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_types.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/thpp.dir/all' failed
make[1]: *** [CMakeFiles/thpp.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

Linux: Ubuntu 64 Bits 16.04.1
G++: g++ (Ubuntu 5.4.0-6ubuntu116.04.4) 5.4.0 20160609
GCC: gcc (Ubuntu 5.4.0-6ubuntu116.04.4) 5.4.0 20160609
make: GNU Make 4.1
pkg-config 0.29.1-0ubuntu1
autoconf 2.69-9
autotools-dev 20150820.1
fbthrift: latest from github
folly: latest from github

error when build thpp,wuwuwu,I‘m so sad!

[ 10%] Building CXX object CMakeFiles/thpp.dir/Storage.cpp.o
In file included from /tmp/fblualib-build.uR4GKO/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.h:13:0,
from /tmp/fblualib-build.uR4GKO/thpp/thpp/../thpp/Storage.h:22,
from /tmp/fblualib-build.uR4GKO/thpp/thpp/Storage.cpp:11:
/usr/local/include/folly/io/Cursor.h: In member function ‘size_t folly::io::detail::CursorBase<Derived, BufType>::cloneAtMost(std::unique_ptrfolly::IOBuf&, size_t)’:
/usr/local/include/folly/io/Cursor.h:443:13: error: ‘make_unique’ is not a member of ‘std’
buf = std::make_uniquefolly::IOBuf();
^
/usr/local/include/folly/io/Cursor.h:443:13: note: suggested alternative:
In file included from /usr/local/include/thrift/lib/cpp/Thrift.h:23:0,
from /usr/local/include/thrift/lib/cpp2/Thrift.h:20,
from /tmp/fblualib-build.uR4GKO/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.h:9,
from /tmp/fblualib-build.uR4GKO/thpp/thpp/../thpp/Storage.h:22,
from /tmp/fblualib-build.uR4GKO/thpp/thpp/Storage.cpp:11:
/usr/local/include/folly/Memory.h:63:1: note: ‘folly::make_unique’
make_unique(Args&&...) = delete;
^
In file included from /tmp/fblualib-build.uR4GKO/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.h:13:0,
from /tmp/fblualib-build.uR4GKO/thpp/thpp/../thpp/Storage.h:22,
from /tmp/fblualib-build.uR4GKO/thpp/thpp/Storage.cpp:11:
/usr/local/include/folly/io/Cursor.h:443:42: error: expected primary-expression before ‘>’ token
buf = std::make_uniquefolly::IOBuf();
^
/usr/local/include/folly/io/Cursor.h:443:44: error: expected primary-expression before ‘)’ token
buf = std::make_uniquefolly::IOBuf();
^
CMakeFiles/thpp.dir/build.make:84: recipe for target 'CMakeFiles/thpp.dir/Storage.cpp.o' failed
make[2]: *** [CMakeFiles/thpp.dir/Storage.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/thpp.dir/all' failed
make[1]: *** [CMakeFiles/thpp.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.