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

lots of error during compilation in TensorSerialization.cpp #56

Open
raffra opened this issue Jan 22, 2018 · 3 comments
Open

lots of error during compilation in TensorSerialization.cpp #56

raffra opened this issue Jan 22, 2018 · 3 comments

Comments

@raffra
Copy link

raffra commented Jan 22, 2018

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

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

 [......]

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




@shi69
Copy link

shi69 commented Feb 2, 2018

Same error here encountered when compiling TensorSerialization.cpp with NO_THRIFT flag

@shi69
Copy link

shi69 commented Feb 2, 2018

Problem solved.
#42

@covarsha
Copy link

@shi69 I changed THTensorMath.c and THTensorMath.h to their respective versions before the keep dim variable was added. My error remains unchanged. Any help would be appreciated.

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

3 participants