-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error linking with folly when building Proxygen on Mac OS #537
Comments
Ensure that the dependencies you installed are properly installed according to your architecture. (x86_64 for Intel-based Macs or arm64 for Apple Silicon). To check whether the dependency is installed use this command: |
Thanks @SteveSelva . I've tried lipo -info libfolly.a Are there any samples are you aware available to consume proxygen library under a vcpkg setup ? Thanks. |
Can you provide the complete logs of the build process. Since you have folly, there may be any other missing dependency. |
Hi @SteveSelva . I've attached the cmake output and make output for reference. Also have attached CMakeLists.txt. Thanks. |
I saw this comment which is somewhat related? Something about c++abi lib dependency on mac? |
From the make_output logs, The proxygenhttpserver.lib is missing and not linked while building the EchoServer. Build proxygenhttpserver and link that library to EchoServer. |
Hi
Could someone please help me with the errors below. I'm trying build the EchoServer that comes as part of proxygen.
I have not installed proxygen from the source, but have used vcpkg to link the dependencies.
"EchoService::EchoHandler::EchoHandler(EchoService::EchoStats*)", referenced from:
EchoHandlerFactory::onRequest(proxygen::RequestHandler*, proxygen::HTTPMessage*) in EchoServer.cpp.o
"proxygen::HTTPServer::bind(std::__1::vector<proxygen::HTTPServer::IPConfig, std::__1::allocatorproxygen::HTTPServer::IPConfig> const&)", referenced from:
_main in EchoServer.cpp.o
"proxygen::HTTPServer::start(std::__1::function<void ()>, std::__1::function<void (std::exception_ptr)>, std::__1::function<std::__1::shared_ptrwangle::AcceptorFactory (proxygen::HTTPServer::AcceptorFactoryConfig)>, std::__1::shared_ptrfolly::IOThreadPoolExecutorBase)", referenced from:
main::$_0::operator()() const in EchoServer.cpp.o
"proxygen::HTTPServer::HTTPServer(proxygen::HTTPServerOptions)", referenced from:
_main in EchoServer.cpp.o
"proxygen::HTTPServer::~HTTPServer()", referenced from:
_main in EchoServer.cpp.o
"__cxa_decrement_exception_refcount", referenced from:
folly::detail::exception_cleanup(Unwind_Reason_Code, Unwind_Exception*) in libfolly.a(Exception.cpp.o)
"cxa_increment_exception_refcount", referenced from:
folly::detail::exception_ptr_get_type(std::exception_ptr const&) in libfolly.a(Exception.cpp.o)
folly::detail::exception_ptr_get_object(std::exception_ptr const&, std::type_info const*) in libfolly.a(Exception.cpp.o)
folly::detail::make_exception_ptr_with(folly::detail::make_exception_ptr_with_arg const&, void*) in libfolly.a(Exception.cpp.o)
decltype(auto) folly::detail::cxxabi_with_cxa_exception<folly::detail::exception_cleanup(_Unwind_Reason_Code, _Unwind_Exception*)::$1>(void*, folly::detail::exception_cleanup(_Unwind_Reason_Code, _Unwind_Exception*)::$_1) in libfolly.a(Exception.cpp.o)
ld: symbol(s) not found for architecture x86_64
I'm using Mac OS 13.7.1 (22H221)
Thanks.
The text was updated successfully, but these errors were encountered: