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

Failed to install after installing current folly and fbthrift #38

Open
deckyal opened this issue Apr 28, 2017 · 8 comments
Open

Failed to install after installing current folly and fbthrift #38

deckyal opened this issue Apr 28, 2017 · 8 comments

Comments

@deckyal
Copy link

deckyal commented Apr 28, 2017

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

@sumanthprabhu
Copy link

sumanthprabhu commented May 11, 2017

you just need to compile with 'std=c++14'. While installing each of folly and fbthrift, do the following

  1. Navigate to the configure.ac file
  2. Add the line - AX_CXX_COMPILE_STDCXX(14)
  3. Continue with the installation instructions

Once folly and fbthrift get installed, then try installing thpp.

@yuanyuangoo
Copy link

sumanthprabhu:
Thanks. I tried your method. stilling the same.

@twmht
Copy link

twmht commented Jul 21, 2017

@sumanthprabhu

I tried your solution, but not work.

Here is the compilation errors, it complained about

/usr/local/include/thrift/lib/cpp2/FrozenTApplicationException.h:19:43: fatal error: thrift/lib/cpp2/frozen/Frozen.h: No such file or directroy

the full log

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

@zoe218
Copy link

zoe218 commented Jul 26, 2017

@twmht hello, did you solve this error?
/usr/local/include/thrift/lib/cpp2/FrozenTApplicationException.h:19:43: fatal error: thrift/lib/cpp2/frozen/Frozen.h: No such file or directroy

@twmht
Copy link

twmht commented Jul 26, 2017

@zoe218

nope, Did you have the same error?

@senisioi
Copy link

Actually, folly is compiled with 'std=c++14' and thpp has an explicit statement in CMakeLists.txt: SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
But it seems folly does not compile well with c++11 and thpp does not compile if I set the flag -std=-std=gnu++14.

@msiraj83
Copy link

i have the same problem..... is any body correct this ..
thanks

@senisioi
Copy link

Yes, this needs to be compiled with C++14 flags:
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++14")
and merge this pull request locally in your branch:
https://github.com/facebook/thpp/pull/42/files

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants