-
Notifications
You must be signed in to change notification settings - Fork 104
compile error #39
Description
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