Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

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

@ypruan

Description

@ypruan

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions