facebook / wangle

Wangle is a framework providing a set of common client/server abstractions for building services in a consistent, modular, and composable way.
Apache License 2.0
3.05k stars 539 forks source link

folly/GlobalThreadPoolList.h: No such file or directory #109

Closed Chanmoro closed 7 years ago

Chanmoro commented 7 years ago

I tried to build wangle using this script, but it's failed. https://github.com/facebook/fblualib/blob/master/install_all.sh

How can I avoid this error?

environment

console output

-- Build files have been written to: /wangle/wangle
Scanning dependencies of target wangle
[  1%] Building CXX object CMakeFiles/wangle.dir/acceptor/Acceptor.cpp.o
[  2%] Building CXX object CMakeFiles/wangle.dir/acceptor/AcceptorHandshakeManager.cpp.o
[  2%] Building CXX object CMakeFiles/wangle.dir/acceptor/ConnectionManager.cpp.o
[  3%] Building CXX object CMakeFiles/wangle.dir/acceptor/LoadShedConfiguration.cpp.o
[  4%] Building CXX object CMakeFiles/wangle.dir/acceptor/ManagedConnection.cpp.o
[  5%] Building CXX object CMakeFiles/wangle.dir/acceptor/SecureTransportType.cpp.o
[  6%] Building CXX object CMakeFiles/wangle.dir/acceptor/SocketOptions.cpp.o
[  7%] Building CXX object CMakeFiles/wangle.dir/acceptor/SSLAcceptorHandshakeHelper.cpp.o
[  8%] Building CXX object CMakeFiles/wangle.dir/acceptor/TLSPlaintextPeekingCallback.cpp.o
[  9%] Building CXX object CMakeFiles/wangle.dir/acceptor/TransportInfo.cpp.o
[ 10%] Building CXX object CMakeFiles/wangle.dir/bootstrap/ServerBootstrap.cpp.o
In file included from /wangle/wangle/../wangle/concurrent/IOThreadPoolExecutor.h:15:0,
                 from /wangle/wangle/../wangle/bootstrap/ServerBootstrap-inl.h:21,
                 from /wangle/wangle/../wangle/bootstrap/ServerBootstrap.h:13,
                 from /wangle/wangle/bootstrap/ServerBootstrap.cpp:11:
/wangle/wangle/../wangle/concurrent/ThreadPoolExecutor.h:14:40: fatal error: folly/GlobalThreadPoolList.h: No such file or directory
compilation terminated.
CMakeFiles/wangle.dir/build.make:302: recipe for target 'CMakeFiles/wangle.dir/bootstrap/ServerBootstrap.cpp.o' failed
make[2]: *** [CMakeFiles/wangle.dir/bootstrap/ServerBootstrap.cpp.o] Error 1
CMakeFiles/Makefile2:560: recipe for target 'CMakeFiles/wangle.dir/all' failed
make[1]: *** [CMakeFiles/wangle.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
geleji commented 7 years ago

I can confirm that this issue occurs every time in my environment as well at the moment. The probably cause is that folly's make install doesn't copy the GlobalThreadPoolList.h file over. See https://github.com/facebook/folly/issues/660.

yfeldblum commented 7 years ago

Should be fixed in https://github.com/facebook/folly/commit/cccde53ecdbfd7b9b328775eb3c814f95b1bb93a.