Problems with folly installation (facebook thrift)

17 views
Skip to first unread message

Tammy Hikari

unread,
Sep 18, 2019, 2:12:29 PM9/18/19
to Lucida Users
I'm getting the errors bellow:

+ make
make  all-recursive
make[1]: Entering directory '/home/username/lucida/tools/fbthrift/thrift/build/deps/folly/folly'
Making all in .
make[2]: Entering directory '/home/username/lucida/tools/fbthrift/thrift/build/deps/folly/folly'
depbase=`echo io/async/AsyncPipe.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H   -I./.. -pthread -I/usr/include    -std=gnu++1y -g -O2 -MT io/async/AsyncPipe.lo -MD -MP -MF $depbase.Tpo -c -o io/async/AsyncPipe.lo io/async/AsyncPipe.cpp &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  g++ -DHAVE_CONFIG_H -I./.. -pthread -I/usr/include -std=gnu++1y -g -O2 -MT io/async/AsyncPipe.lo -MD -MP -MF io/async/.deps/AsyncPipe.Tpo -c io/async/AsyncPipe.cpp  -fPIC -DPIC -o io/async/.libs/AsyncPipe.o
In file included from ./../folly/io/async/AsyncTransport.h:25:0,
                 from ./../folly/io/async/AsyncPipe.h:18,
                 from io/async/AsyncPipe.cpp:16:
./../folly/io/async/ssl/OpenSSLPtrTypes.h:69:67: error: template argument 2 is invalid
     folly::static_function_deleter<EVP_MD_CTX, &EVP_MD_CTX_destroy>;
                                                                   ^
./../folly/io/async/ssl/OpenSSLPtrTypes.h:70:55: error: ‘EvpMdCtxDeleter’ was not declared in this scope
 using EvpMdCtxUniquePtr = std::unique_ptr<EVP_MD_CTX, EvpMdCtxDeleter>;
                                                       ^
./../folly/io/async/ssl/OpenSSLPtrTypes.h:70:70: error: template argument 2 is invalid
 using EvpMdCtxUniquePtr = std::unique_ptr<EVP_MD_CTX, EvpMdCtxDeleter>;
                                                                      ^
Makefile:1706: recipe for target 'io/async/AsyncPipe.lo' failed
make[2]: *** [io/async/AsyncPipe.lo] Error 1
make[2]: Leaving directory '/home/username/lucida/tools/fbthrift/thrift/build/deps/folly/folly'
Makefile:1798: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/username/lucida/tools/fbthrift/thrift/build/deps/folly/folly'
Makefile:1089: recipe for target 'all' failed
make: *** [all] Error 2

At this point I've already:
1) gcc 7.4.0 to 5.5.0 (which gave me the error above) - suggestion of a chinese community;
2) OpenSSL 1.1.0 to 1.0.2g-1ubuntu13 (ca-certificates requires OpenSSL 1.1.X, so I used ca-certificates 20170717 (amd64 binary)) - there was a post saying that folly doens't support OpenSSL 1.1.X yet, so it's suggested downgrading it (it worked for them).

I'm now back to the same place. I'm using Ubuntu 18.04.3 LTS. That "make" command is from install_folly() in fbthrift/thrift/build/deps_common.sh when called by deps_ubuntu_14.04.sh (same directory). And that's probably the real problem: ubuntu version. But.. Does anyone have any ideas? Thank you!
Reply all
Reply to author
Forward
0 new messages