Installing problem in fbthrift of fbcunn

248 views
Skip to first unread message

Hwaran Lee

unread,
Nov 11, 2015, 9:26:09 AM11/11/15
to torch7

While I installing fbthrift of fbcunn, I've got the following error.


===================
In file included from gen-cpp2/Sasl_types.tcc:13:0,
                 from gen-cpp2/Sasl_types.cpp:9:
../../../thrift/lib/cpp2/protocol/BinaryProtocol.h:26:14: error: expected constructor, destructor, or type conversion before ‘(’ token
 DECLARE_int32(thrift_cpp2_protocol_reader_string_limit);
              ^
../../../thrift/lib/cpp2/protocol/BinaryProtocol.h:27:14: error: expected constructor, destructor, or type conversion before ‘(’ token
 DECLARE_int32(thrift_cpp2_protocol_reader_container_limit);
              ^
../../../thrift/lib/cpp2/protocol/BinaryProtocol.h: In constructor ‘apache::thrift::BinaryProtocolReader::BinaryProtocolReader()’:
../../../thrift/lib/cpp2/protocol/BinaryProtocol.h:169:21: error: ‘FLAGS_thrift_cpp2_protocol_reader_string_limit’ was not declared in this scope
     : string_limit_(FLAGS_thrift_cpp2_protocol_reader_string_limit)
                     ^
../../../thrift/lib/cpp2/protocol/BinaryProtocol.h:170:24: error: ‘FLAGS_thrift_cpp2_protocol_reader_container_limit’ was not declared in this scope
     , container_limit_(FLAGS_thrift_cpp2_protocol_reader_container_limit)
                        ^
In file included from gen-cpp2/Sasl_types.tcc:14:0,
                 from gen-cpp2/Sasl_types.cpp:9:
../../../thrift/lib/cpp2/protocol/CompactProtocol.h: At global scope:
../../../thrift/lib/cpp2/protocol/CompactProtocol.h:28:14: error: expected constructor, destructor, or type conversion before ‘(’ token
 DECLARE_int32(thrift_cpp2_protocol_reader_string_limit);
              ^
../../../thrift/lib/cpp2/protocol/CompactProtocol.h:29:14: error: expected constructor, destructor, or type conversion before ‘(’ token
 DECLARE_int32(thrift_cpp2_protocol_reader_container_limit);
              ^
../../../thrift/lib/cpp2/protocol/CompactProtocol.h: In constructor ‘apache::thrift::CompactProtocolReader::CompactProtocolReader()’:
../../../thrift/lib/cpp2/protocol/CompactProtocol.h:237:21: error: ‘FLAGS_thrift_cpp2_protocol_reader_string_limit’ was not declared in this scope
     : string_limit_(FLAGS_thrift_cpp2_protocol_reader_string_limit)
                     ^
../../../thrift/lib/cpp2/protocol/CompactProtocol.h:238:24: error: ‘FLAGS_thrift_cpp2_protocol_reader_container_limit’ was not declared in this scope
     , container_limit_(FLAGS_thrift_cpp2_protocol_reader_container_limit)
                        ^
make[5]: *** [gen-cpp2/libsaslstubs_a-Sasl_types.o] Error 1
make[5]: Leaving directory `/tmp/fblualib-build.B07p3w/fbthrift/thrift/lib/cpp2'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/tmp/fblualib-build.B07p3w/fbthrift/thrift/lib/cpp2'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/tmp/fblualib-build.B07p3w/fbthrift/thrift/lib/cpp2'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/fblualib-build.B07p3w/fbthrift/thrift/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/fblualib-build.B07p3w/fbthrift/thrift'
make: *** [all] Error 2

=================================


Anyone can help for me?


Thanks.




Quanzeng You

unread,
Nov 26, 2015, 1:51:23 PM11/26/15
to torch7
add #include <gflags/gflags.h>
Message has been deleted

Hwaran Lee

unread,
Feb 26, 2016, 6:39:53 AM2/26/16
to torch7 on behalf of Sidharth Mudgal

I just re-installed OS.

2016-02-26 9:25 GMT+09:00 Sidharth Mudgal via torch7 <torch7+APn2wQdOnCW2rf-DvR-zccrUJ...@googlegroups.com>:

Did you find a solution to this problem? I am getting the same errors.

--
You received this message because you are subscribed to a topic in the Google Groups "torch7" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/torch7/LLYx4on6v2w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to torch7+un...@googlegroups.com.
To post to this group, send email to tor...@googlegroups.com.
Visit this group at https://groups.google.com/group/torch7.

For more options, visit https://groups.google.com/d/optout.



--
Hwaran Lee
Ph.D. Candidate
Computational NeuroSystems Laboratory
Dept. Electrical Engineering, KAIST
Email : hwara...@gmail.com
Reply all
Reply to author
Forward
0 new messages