Comments (9)
It turns out it has something to do with jemalloc.
when I checked the configure output of compiling folly it had checked and said malloc_usable_size yes but for malloc.h check it had said false.
Then when I uninstalled jemalloc from my system , recompiled folly, it said malloc_usable_size as false and after this I could build wangle fine.
from wangle.
Yes I am getting the same issue.
I was also able to compile folly without any issues.
I am using MAC OS X 10.11.6 and gcc 6.
This is happening after pulling the latest master branch after about few months on both folly and wangle.
/git/wangle/wangle/concurrent/ThreadPoolExecutor.cpp:68:58: required from here
/usr/local/include/folly/small_vector.h:619:32: error: 'malloc_usable_size' was not declared in this scope
return malloc_usable_size(u.pdata_.heap_) / sizeof(value_type);
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/wangle.dir/concurrent/ThreadPoolExecutor.cpp.o] Error 1
make[1]: *** [CMakeFiles/wangle.dir/all] Error 2
make: *** [all] Error 2
from wangle.
Thanks @mohnishkodnani , after I removed jemalloc, it works now.
from wangle.
It still not work after i removed jemalloc from my system(OSX 10.12).
from wangle.
I am having problem with this too. Installed folly with homebrew, got back luck with small_vector.h.
from wangle.
I got the same problem. No difference with removing jemalloc, installing folly by homebrew / compiling source in macOS 10.12.1.
from wangle.
I am getting the same issue.
My machine is OS X 10.12.
Any update?
from wangle.
folly/portability/Malloc.cpp provides a defintion for malloc_usable_size for apple platforms. Can you check why that code is not being executed on your platform (e.g., put a #error "check") inside the APPLE guard.
from wangle.
@anirudhvr I was able to resolve this issue using @mohnishkodnani method.
- Compile and install folly from source(mater branch) without jemalloc. (Note: Never use brew to install folly)
- If you encounter any openssl issue, try apply patch facebook/folly#513
- Then you may be able to compile wangle successfully.
from wangle.
Related Issues (20)
- Failed to run example echo examples HOT 3
- ByteToMessageDecoder decode
- Too many dangling CLOSE_WAIT connections HOT 5
- error: no member named 'tcpi_retransmits' in 'tcp_info'; did you mean '__tcpi_retransmits'? HOT 3
- Installs empty directories
- if iouring will be supported soon?
- Build fails on Debian Buster: Acceptor.cpp.o SocketPeeker.h:25:67: error: expected class-name before ‘,’ token
- failed to install wangle on windows with vcpkg install wangle command HOT 1
- very poor performance with echo example HOT 1
- Function with noexcept specifier throws exception causes program terminated HOT 3
- enable tcp and udp in single ServerBootstrap HOT 1
- run client on browser
- Wangle - Vcpkg - Windows (wvw)
- Problem linking libsodium HOT 3
- Incompatibility with openssl3 HOT 5
- test failure HOT 1
- Access Pipelines from Server
- MacOS encounter this issue. plz help me with this.
- Q: Does wangle support websockets?
- Acceptor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wangle.