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

build error #48

Open
mengya22 opened this issue Aug 18, 2017 · 6 comments
Open

build error #48

mengya22 opened this issue Aug 18, 2017 · 6 comments

Comments

@mengya22
Copy link

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

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

@HidayatRahman
Copy link

Same here did you Found any Solution for the Error ?

@ghost
Copy link

ghost commented Sep 15, 2017

getting the same

@HidayatRahman
Copy link

I have Solved the Error by Installing THPP Code Very Slow Version

Download this Version
git clone -b patch-1 https://github.com/codeVerySlow/thpp/

Then change the compiler from GNU++11 to GNU++14 in makeList.txt file
"... -std=gnu++11" to "... -std=gnu++14"

After that you can run build.sh

Cheers,

@msiraj83
Copy link

Dear @hidayat786 i Have follow your instruction but now i am facing another .. The screen shot is attached .. can any body help me....
thpp_error

Thanks

@FLOWERCLOUD
Copy link

/home/flowercloud/Downloads/thpp/thpp/test/StorageTest.cpp: In member function ‘virtual void thpp::test::Storage_CustomAllocator_Test::TestBody()’:
/home/flowercloud/Downloads/thpp/thpp/test/StorageTest.cpp:64:24: error: ‘class thpp::Storage’ has no member named ‘getIOBuf’
auto buf = storage.getIOBuf();
^
/home/flowercloud/Downloads/thpp/thpp/test/StorageTest.cpp:78:24: error: ‘class thpp::Storage’ has no member named ‘getIOBuf’
auto buf = storage.getIOBuf();
^
make[2]: *** [test/CMakeFiles/storage_test.dir/StorageTest.cpp.o] Error 1
make[1]: *** [test/CMakeFiles/storage_test.dir/all] Error 2

i just comment the cmakelist in dir test
#ADD_EXECUTABLE(storage_test StorageTest.cpp)
#TARGET_LINK_LIBRARIES(storage_test thpp gtest gtest_main)
#ADD_TEST(storage_test storage_test)

@saxenarohit
Copy link

But after commenting if I try to install fblualib it gives

In file included from /home/u556552/torch/install/include/thpp/Tensor.h:14:0, from /tmp/fblualib-build.NiwTzw/fblualib/fblualib/../fblualib/LuaUtils.h:19, from /tmp/fblualib-build.NiwTzw/fblualib/fblualib/LuaUtils.cpp:11: /home/u556552/torch/install/include/thpp/Storage.h:22:43: fatal error: thpp/if/gen-cpp2/Tensor_types.h: No such file or directory

which tracks to thpp

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

5 participants