Open SimeonZhang opened 6 years ago
I will send a fix shortly. I believe the project is generally built from the parent folder and this issue is missed.
cmake ../ -DCMAKE_BUILD_TYPE=DEBUG -DBUILD_TESTS=OFF
Do you need to build the tests? Otherwise, use this until we fix the issue.
@phoad Thanks for replying. When I build from the parent folder, in the step make -j
I am getting the follow output.
[ 1%] Built target gmock
[ 1%] Built target yarpl-test-utils
[ 1%] Building CXX object yarpl/CMakeFiles/yarpl.dir/flowable/Subscription.cpp.o
[ 1%] Building CXX object yarpl/CMakeFiles/yarpl.dir/flowable/Flowables.cpp.o
[ 1%] Building CXX object yarpl/CMakeFiles/yarpl.dir/observable/Observables.cpp.o
[ 1%] Building CXX object yarpl/CMakeFiles/yarpl.dir/observable/Subscription.cpp.o
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/observable/Subscription.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Subscription.cpp:3:
/usr/include/jemalloc/jemalloc.h:137:46: error: declaration of ‘void* malloc(size_t)’ has a different exception specifier
JEMALLOC_EXPORT void *je_malloc(size_t size) JEMALLOC_ATTR(malloc);
^
In file included from /usr/include/c++/5/cstdlib:72:0,
from /usr/include/c++/5/ext/string_conversions.h:41,
from /usr/include/c++/5/bits/basic_string.h:5352,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/stdexcept:39,
from /usr/include/c++/5/array:38,
from /usr/include/c++/5/tuple:39,
from /usr/include/c++/5/functional:55,
from /usr/local/include/folly/Function.h:220,
from /usr/local/include/folly/Synchronized.h:27,
from /home/simeon/rsocket-cpp/yarpl/observable/Subscription.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Subscription.cpp:3:
/usr/include/stdlib.h:466:14: error: from previous declaration ‘void* malloc(size_t) throw ()’
extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur;
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/observable/Subscription.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Subscription.cpp:3:
/usr/include/jemalloc/jemalloc.h:139:5: error: declaration of ‘void* calloc(size_t, size_t)’ has a different exception specifier
JEMALLOC_ATTR(malloc);
^
In file included from /usr/include/c++/5/cstdlib:72:0,
from /usr/include/c++/5/ext/string_conversions.h:41,
from /usr/include/c++/5/bits/basic_string.h:5352,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/stdexcept:39,
from /usr/include/c++/5/array:38,
from /usr/include/c++/5/tuple:39,
from /usr/include/c++/5/functional:55,
from /usr/local/include/folly/Function.h:220,
from /usr/local/include/folly/Synchronized.h:27,
from /home/simeon/rsocket-cpp/yarpl/observable/Subscription.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Subscription.cpp:3:
/usr/include/stdlib.h:468:14: error: from previous declaration ‘void* calloc(size_t, size_t) throw ()’
extern void *calloc (size_t __nmemb, size_t __size)
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/observable/Subscription.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Subscription.cpp:3:
/usr/include/jemalloc/jemalloc.h:141:18: error: declaration of ‘int posix_memalign(void**, size_t, size_t)’ has a different exception specifier
size_t size) JEMALLOC_ATTR(nonnull(1));
^
In file included from /usr/lib/gcc/x86_64-linux-gnu/5/include/xmmintrin.h:34:0,
from /usr/lib/gcc/x86_64-linux-gnu/5/include/x86intrin.h:31,
from /usr/include/x86_64-linux-gnu/c++/5/bits/opt_random.h:33,
from /usr/include/c++/5/random:50,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /usr/local/include/folly/concurrency/CacheLocality.h:19,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/observable/Subscription.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Subscription.cpp:3:
/usr/lib/gcc/x86_64-linux-gnu/5/include/mm_malloc.h:34:16: error: from previous declaration ‘int posix_memalign(void**, size_t, size_t) throw ()’
extern "C" int posix_memalign (void **, size_t, size_t) throw ();
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/observable/Subscription.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Subscription.cpp:3:
/usr/include/jemalloc/jemalloc.h:143:5: error: declaration of ‘void* aligned_alloc(size_t, size_t)’ has a different exception specifier
JEMALLOC_ATTR(malloc);
^
In file included from /usr/include/c++/5/cstdlib:72:0,
from /usr/include/c++/5/ext/string_conversions.h:41,
from /usr/include/c++/5/bits/basic_string.h:5352,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/stdexcept:39,
from /usr/include/c++/5/array:38,
from /usr/include/c++/5/tuple:39,
from /usr/include/c++/5/functional:55,
from /usr/local/include/folly/Function.h:220,
from /usr/local/include/folly/Synchronized.h:27,
from /home/simeon/rsocket-cpp/yarpl/observable/Subscription.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Subscription.cpp:3:
/usr/include/stdlib.h:509:14: error: from previous declaration ‘void* aligned_alloc(size_t, size_t) throw ()’
extern void *aligned_alloc (size_t __alignment, size_t __size)
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/observable/Subscription.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Subscription.cpp:3:
/usr/include/jemalloc/jemalloc.h:144:56: error: declaration of ‘void* realloc(void*, size_t)’ has a different exception specifier
JEMALLOC_EXPORT void *je_realloc(void *ptr, size_t size);
^
In file included from /usr/include/c++/5/cstdlib:72:0,
from /usr/include/c++/5/ext/string_conversions.h:41,
from /usr/include/c++/5/bits/basic_string.h:5352,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/stdexcept:39,
from /usr/include/c++/5/array:38,
from /usr/include/c++/5/tuple:39,
from /usr/include/c++/5/functional:55,
from /usr/local/include/folly/Function.h:220,
from /usr/local/include/folly/Synchronized.h:27,
from /home/simeon/rsocket-cpp/yarpl/observable/Subscription.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Subscription.cpp:3:
/usr/include/stdlib.h:480:14: error: from previous declaration ‘void* realloc(void*, size_t) throw ()’
extern void *realloc (void *__ptr, size_t __size)
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/observable/Subscription.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Subscription.cpp:3:
/usr/include/jemalloc/jemalloc.h:145:39: error: declaration of ‘void free(void*)’ has a different exception specifier
JEMALLOC_EXPORT void je_free(void *ptr);
^
In file included from /usr/include/c++/5/cstdlib:72:0,
from /usr/include/c++/5/ext/string_conversions.h:41,
from /usr/include/c++/5/bits/basic_string.h:5352,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/stdexcept:39,
from /usr/include/c++/5/array:38,
from /usr/include/c++/5/tuple:39,
from /usr/include/c++/5/functional:55,
from /usr/local/include/folly/Function.h:220,
from /usr/local/include/folly/Synchronized.h:27,
from /home/simeon/rsocket-cpp/yarpl/observable/Subscription.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Subscription.cpp:3:
/usr/include/stdlib.h:483:13: error: from previous declaration ‘void free(void*) throw ()’
extern void free (void *__ptr) __THROW;
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/observable/Subscription.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Subscription.cpp:3:
/usr/include/jemalloc/jemalloc.h:172:47: error: declaration of ‘void* valloc(size_t)’ has a different exception specifier
JEMALLOC_EXPORT void * je_valloc(size_t size) JEMALLOC_ATTR(malloc);
^
In file included from /usr/include/c++/5/cstdlib:72:0,
from /usr/include/c++/5/ext/string_conversions.h:41,
from /usr/include/c++/5/bits/basic_string.h:5352,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/stdexcept:39,
from /usr/include/c++/5/array:38,
from /usr/include/c++/5/tuple:39,
from /usr/include/c++/5/functional:55,
from /usr/local/include/folly/Function.h:220,
from /usr/local/include/folly/Synchronized.h:27,
from /home/simeon/rsocket-cpp/yarpl/observable/Subscription.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Subscription.cpp:3:
/usr/include/stdlib.h:498:14: error: from previous declaration ‘void* valloc(size_t) throw ()’
extern void *valloc (size_t __size) __THROW __attribute_malloc__ __wur;
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Subscription.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Subscription.cpp:3:
/usr/include/jemalloc/jemalloc.h:137:46: error: declaration of ‘void* malloc(size_t)’ has a different exception specifier
JEMALLOC_EXPORT void *je_malloc(size_t size) JEMALLOC_ATTR(malloc);
^
In file included from /usr/include/c++/5/cstdlib:72:0,
from /usr/include/c++/5/ext/string_conversions.h:41,
from /usr/include/c++/5/bits/basic_string.h:5352,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/stdexcept:39,
from /usr/include/c++/5/array:38,
from /usr/include/c++/5/tuple:39,
from /usr/include/c++/5/functional:55,
from /usr/local/include/folly/Function.h:220,
from /usr/local/include/folly/Synchronized.h:27,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Subscription.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Subscription.cpp:3:
/usr/include/stdlib.h:466:14: error: from previous declaration ‘void* malloc(size_t) throw ()’
extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur;
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Subscription.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Subscription.cpp:3:
/usr/include/jemalloc/jemalloc.h:139:5: error: declaration of ‘void* calloc(size_t, size_t)’ has a different exception specifier
JEMALLOC_ATTR(malloc);
^
In file included from /usr/include/c++/5/cstdlib:72:0,
from /usr/include/c++/5/ext/string_conversions.h:41,
from /usr/include/c++/5/bits/basic_string.h:5352,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/stdexcept:39,
from /usr/include/c++/5/array:38,
from /usr/include/c++/5/tuple:39,
from /usr/include/c++/5/functional:55,
from /usr/local/include/folly/Function.h:220,
from /usr/local/include/folly/Synchronized.h:27,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Subscription.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Subscription.cpp:3:
/usr/include/stdlib.h:468:14: error: from previous declaration ‘void* calloc(size_t, size_t) throw ()’
extern void *calloc (size_t __nmemb, size_t __size)
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Subscription.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Subscription.cpp:3:
/usr/include/jemalloc/jemalloc.h:141:18: error: declaration of ‘int posix_memalign(void**, size_t, size_t)’ has a different exception specifier
size_t size) JEMALLOC_ATTR(nonnull(1));
^
In file included from /usr/lib/gcc/x86_64-linux-gnu/5/include/xmmintrin.h:34:0,
from /usr/lib/gcc/x86_64-linux-gnu/5/include/x86intrin.h:31,
from /usr/include/x86_64-linux-gnu/c++/5/bits/opt_random.h:33,
from /usr/include/c++/5/random:50,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /usr/local/include/folly/concurrency/CacheLocality.h:19,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Subscription.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Subscription.cpp:3:
/usr/lib/gcc/x86_64-linux-gnu/5/include/mm_malloc.h:34:16: error: from previous declaration ‘int posix_memalign(void**, size_t, size_t) throw ()’
extern "C" int posix_memalign (void **, size_t, size_t) throw ();
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Subscription.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Subscription.cpp:3:
/usr/include/jemalloc/jemalloc.h:143:5: error: declaration of ‘void* aligned_alloc(size_t, size_t)’ has a different exception specifier
JEMALLOC_ATTR(malloc);
^
In file included from /usr/include/c++/5/cstdlib:72:0,
from /usr/include/c++/5/ext/string_conversions.h:41,
from /usr/include/c++/5/bits/basic_string.h:5352,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/stdexcept:39,
from /usr/include/c++/5/array:38,
from /usr/include/c++/5/tuple:39,
from /usr/include/c++/5/functional:55,
from /usr/local/include/folly/Function.h:220,
from /usr/local/include/folly/Synchronized.h:27,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Subscription.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Subscription.cpp:3:
/usr/include/stdlib.h:509:14: error: from previous declaration ‘void* aligned_alloc(size_t, size_t) throw ()’
extern void *aligned_alloc (size_t __alignment, size_t __size)
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Subscription.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Subscription.cpp:3:
/usr/include/jemalloc/jemalloc.h:144:56: error: declaration of ‘void* realloc(void*, size_t)’ has a different exception specifier
JEMALLOC_EXPORT void *je_realloc(void *ptr, size_t size);
^
In file included from /usr/include/c++/5/cstdlib:72:0,
from /usr/include/c++/5/ext/string_conversions.h:41,
from /usr/include/c++/5/bits/basic_string.h:5352,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/stdexcept:39,
from /usr/include/c++/5/array:38,
from /usr/include/c++/5/tuple:39,
from /usr/include/c++/5/functional:55,
from /usr/local/include/folly/Function.h:220,
from /usr/local/include/folly/Synchronized.h:27,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Subscription.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Subscription.cpp:3:
/usr/include/stdlib.h:480:14: error: from previous declaration ‘void* realloc(void*, size_t) throw ()’
extern void *realloc (void *__ptr, size_t __size)
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Subscription.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Subscription.cpp:3:
/usr/include/jemalloc/jemalloc.h:145:39: error: declaration of ‘void free(void*)’ has a different exception specifier
JEMALLOC_EXPORT void je_free(void *ptr);
^
In file included from /usr/include/c++/5/cstdlib:72:0,
from /usr/include/c++/5/ext/string_conversions.h:41,
from /usr/include/c++/5/bits/basic_string.h:5352,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/stdexcept:39,
from /usr/include/c++/5/array:38,
from /usr/include/c++/5/tuple:39,
from /usr/include/c++/5/functional:55,
from /usr/local/include/folly/Function.h:220,
from /usr/local/include/folly/Synchronized.h:27,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Subscription.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Subscription.cpp:3:
/usr/include/stdlib.h:483:13: error: from previous declaration ‘void free(void*) throw ()’
extern void free (void *__ptr) __THROW;
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Subscription.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Subscription.cpp:3:
/usr/include/jemalloc/jemalloc.h:172:47: error: declaration of ‘void* valloc(size_t)’ has a different exception specifier
JEMALLOC_EXPORT void * je_valloc(size_t size) JEMALLOC_ATTR(malloc);
^
In file included from /usr/include/c++/5/cstdlib:72:0,
from /usr/include/c++/5/ext/string_conversions.h:41,
from /usr/include/c++/5/bits/basic_string.h:5352,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/stdexcept:39,
from /usr/include/c++/5/array:38,
from /usr/include/c++/5/tuple:39,
from /usr/include/c++/5/functional:55,
from /usr/local/include/folly/Function.h:220,
from /usr/local/include/folly/Synchronized.h:27,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Subscription.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Subscription.cpp:3:
/usr/include/stdlib.h:498:14: error: from previous declaration ‘void* valloc(size_t) throw ()’
extern void *valloc (size_t __size) __THROW __attribute_malloc__ __wur;
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Observable.h:12,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.h:7,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.cpp:3:
/usr/include/jemalloc/jemalloc.h:137:46: error: declaration of ‘void* malloc(size_t)’ has a different exception specifier
JEMALLOC_EXPORT void *je_malloc(size_t size) JEMALLOC_ATTR(malloc);
^
In file included from /usr/include/c++/5/cstdlib:72:0,
from /usr/include/c++/5/ext/string_conversions.h:41,
from /usr/include/c++/5/bits/basic_string.h:5352,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/stdexcept:39,
from /usr/include/c++/5/array:38,
from /usr/include/c++/5/tuple:39,
from /usr/include/c++/5/functional:55,
from /usr/local/include/folly/functional/Invoke.h:19,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.cpp:3:
/usr/include/stdlib.h:466:14: error: from previous declaration ‘void* malloc(size_t) throw ()’
extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur;
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Observable.h:12,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.h:7,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.cpp:3:
/usr/include/jemalloc/jemalloc.h:139:5: error: declaration of ‘void* calloc(size_t, size_t)’ has a different exception specifier
JEMALLOC_ATTR(malloc);
^
In file included from /usr/include/c++/5/cstdlib:72:0,
from /usr/include/c++/5/ext/string_conversions.h:41,
from /usr/include/c++/5/bits/basic_string.h:5352,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/stdexcept:39,
from /usr/include/c++/5/array:38,
from /usr/include/c++/5/tuple:39,
from /usr/include/c++/5/functional:55,
from /usr/local/include/folly/functional/Invoke.h:19,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.cpp:3:
/usr/include/stdlib.h:468:14: error: from previous declaration ‘void* calloc(size_t, size_t) throw ()’
extern void *calloc (size_t __nmemb, size_t __size)
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Observable.h:12,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.h:7,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.cpp:3:
/usr/include/jemalloc/jemalloc.h:141:18: error: declaration of ‘int posix_memalign(void**, size_t, size_t)’ has a different exception specifier
size_t size) JEMALLOC_ATTR(nonnull(1));
^
In file included from /usr/lib/gcc/x86_64-linux-gnu/5/include/xmmintrin.h:34:0,
from /usr/lib/gcc/x86_64-linux-gnu/5/include/x86intrin.h:31,
from /usr/include/x86_64-linux-gnu/c++/5/bits/opt_random.h:33,
from /usr/include/c++/5/random:50,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /usr/local/include/folly/concurrency/CacheLocality.h:19,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Observable.h:12,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.h:7,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.cpp:3:
/usr/lib/gcc/x86_64-linux-gnu/5/include/mm_malloc.h:34:16: error: from previous declaration ‘int posix_memalign(void**, size_t, size_t) throw ()’
extern "C" int posix_memalign (void **, size_t, size_t) throw ();
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Observable.h:12,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.h:7,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.cpp:3:
/usr/include/jemalloc/jemalloc.h:143:5: error: declaration of ‘void* aligned_alloc(size_t, size_t)’ has a different exception specifier
JEMALLOC_ATTR(malloc);
^
In file included from /usr/include/c++/5/cstdlib:72:0,
from /usr/include/c++/5/ext/string_conversions.h:41,
from /usr/include/c++/5/bits/basic_string.h:5352,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/stdexcept:39,
from /usr/include/c++/5/array:38,
from /usr/include/c++/5/tuple:39,
from /usr/include/c++/5/functional:55,
from /usr/local/include/folly/functional/Invoke.h:19,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.cpp:3:
/usr/include/stdlib.h:509:14: error: from previous declaration ‘void* aligned_alloc(size_t, size_t) throw ()’
extern void *aligned_alloc (size_t __alignment, size_t __size)
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Observable.h:12,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.h:7,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.cpp:3:
/usr/include/jemalloc/jemalloc.h:144:56: error: declaration of ‘void* realloc(void*, size_t)’ has a different exception specifier
JEMALLOC_EXPORT void *je_realloc(void *ptr, size_t size);
^
In file included from /usr/include/c++/5/cstdlib:72:0,
from /usr/include/c++/5/ext/string_conversions.h:41,
from /usr/include/c++/5/bits/basic_string.h:5352,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/stdexcept:39,
from /usr/include/c++/5/array:38,
from /usr/include/c++/5/tuple:39,
from /usr/include/c++/5/functional:55,
from /usr/local/include/folly/functional/Invoke.h:19,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.cpp:3:
/usr/include/stdlib.h:480:14: error: from previous declaration ‘void* realloc(void*, size_t) throw ()’
extern void *realloc (void *__ptr, size_t __size)
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Observable.h:12,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.h:7,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.cpp:3:
/usr/include/jemalloc/jemalloc.h:145:39: error: declaration of ‘void free(void*)’ has a different exception specifier
JEMALLOC_EXPORT void je_free(void *ptr);
^
In file included from /usr/include/c++/5/cstdlib:72:0,
from /usr/include/c++/5/ext/string_conversions.h:41,
from /usr/include/c++/5/bits/basic_string.h:5352,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/stdexcept:39,
from /usr/include/c++/5/array:38,
from /usr/include/c++/5/tuple:39,
from /usr/include/c++/5/functional:55,
from /usr/local/include/folly/functional/Invoke.h:19,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.cpp:3:
/usr/include/stdlib.h:483:13: error: from previous declaration ‘void free(void*) throw ()’
extern void free (void *__ptr) __THROW;
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Observable.h:12,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.h:7,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.cpp:3:
/usr/include/jemalloc/jemalloc.h:172:47: error: declaration of ‘void* valloc(size_t)’ has a different exception specifier
JEMALLOC_EXPORT void * je_valloc(size_t size) JEMALLOC_ATTR(malloc);
^
In file included from /usr/include/c++/5/cstdlib:72:0,
from /usr/include/c++/5/ext/string_conversions.h:41,
from /usr/include/c++/5/bits/basic_string.h:5352,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/stdexcept:39,
from /usr/include/c++/5/array:38,
from /usr/include/c++/5/tuple:39,
from /usr/include/c++/5/functional:55,
from /usr/local/include/folly/functional/Invoke.h:19,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.cpp:3:
/usr/include/stdlib.h:498:14: error: from previous declaration ‘void* valloc(size_t) throw ()’
extern void *valloc (size_t __size) __THROW __attribute_malloc__ __wur;
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowable.h:10,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.h:11,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.cpp:3:
/usr/include/jemalloc/jemalloc.h:137:46: error: declaration of ‘void* malloc(size_t)’ has a different exception specifier
JEMALLOC_EXPORT void *je_malloc(size_t size) JEMALLOC_ATTR(malloc);
^
In file included from /usr/include/c++/5/cstdlib:72:0,
from /usr/include/c++/5/ext/string_conversions.h:41,
from /usr/include/c++/5/bits/basic_string.h:5352,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/stdexcept:39,
from /usr/include/c++/5/array:38,
from /usr/include/c++/5/tuple:39,
from /usr/include/c++/5/functional:55,
from /usr/local/include/folly/Traits.h:21,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.cpp:3:
/usr/include/stdlib.h:466:14: error: from previous declaration ‘void* malloc(size_t) throw ()’
extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur;
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowable.h:10,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.h:11,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.cpp:3:
/usr/include/jemalloc/jemalloc.h:139:5: error: declaration of ‘void* calloc(size_t, size_t)’ has a different exception specifier
JEMALLOC_ATTR(malloc);
^
In file included from /usr/include/c++/5/cstdlib:72:0,
from /usr/include/c++/5/ext/string_conversions.h:41,
from /usr/include/c++/5/bits/basic_string.h:5352,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/stdexcept:39,
from /usr/include/c++/5/array:38,
from /usr/include/c++/5/tuple:39,
from /usr/include/c++/5/functional:55,
from /usr/local/include/folly/Traits.h:21,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.cpp:3:
/usr/include/stdlib.h:468:14: error: from previous declaration ‘void* calloc(size_t, size_t) throw ()’
extern void *calloc (size_t __nmemb, size_t __size)
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowable.h:10,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.h:11,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.cpp:3:
/usr/include/jemalloc/jemalloc.h:141:18: error: declaration of ‘int posix_memalign(void**, size_t, size_t)’ has a different exception specifier
size_t size) JEMALLOC_ATTR(nonnull(1));
^
In file included from /usr/lib/gcc/x86_64-linux-gnu/5/include/xmmintrin.h:34:0,
from /usr/lib/gcc/x86_64-linux-gnu/5/include/x86intrin.h:31,
from /usr/include/x86_64-linux-gnu/c++/5/bits/opt_random.h:33,
from /usr/include/c++/5/random:50,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.h:8,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.cpp:3:
/usr/lib/gcc/x86_64-linux-gnu/5/include/mm_malloc.h:34:16: error: from previous declaration ‘int posix_memalign(void**, size_t, size_t) throw ()’
extern "C" int posix_memalign (void **, size_t, size_t) throw ();
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowable.h:10,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.h:11,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.cpp:3:
/usr/include/jemalloc/jemalloc.h:143:5: error: declaration of ‘void* aligned_alloc(size_t, size_t)’ has a different exception specifier
JEMALLOC_ATTR(malloc);
^
In file included from /usr/include/c++/5/cstdlib:72:0,
from /usr/include/c++/5/ext/string_conversions.h:41,
from /usr/include/c++/5/bits/basic_string.h:5352,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/stdexcept:39,
from /usr/include/c++/5/array:38,
from /usr/include/c++/5/tuple:39,
from /usr/include/c++/5/functional:55,
from /usr/local/include/folly/Traits.h:21,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.cpp:3:
/usr/include/stdlib.h:509:14: error: from previous declaration ‘void* aligned_alloc(size_t, size_t) throw ()’
extern void *aligned_alloc (size_t __alignment, size_t __size)
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowable.h:10,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.h:11,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.cpp:3:
/usr/include/jemalloc/jemalloc.h:144:56: error: declaration of ‘void* realloc(void*, size_t)’ has a different exception specifier
JEMALLOC_EXPORT void *je_realloc(void *ptr, size_t size);
^
In file included from /usr/include/c++/5/cstdlib:72:0,
from /usr/include/c++/5/ext/string_conversions.h:41,
from /usr/include/c++/5/bits/basic_string.h:5352,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/stdexcept:39,
from /usr/include/c++/5/array:38,
from /usr/include/c++/5/tuple:39,
from /usr/include/c++/5/functional:55,
from /usr/local/include/folly/Traits.h:21,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.cpp:3:
/usr/include/stdlib.h:480:14: error: from previous declaration ‘void* realloc(void*, size_t) throw ()’
extern void *realloc (void *__ptr, size_t __size)
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowable.h:10,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.h:11,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.cpp:3:
/usr/include/jemalloc/jemalloc.h:145:39: error: declaration of ‘void free(void*)’ has a different exception specifier
JEMALLOC_EXPORT void je_free(void *ptr);
^
In file included from /usr/include/c++/5/cstdlib:72:0,
from /usr/include/c++/5/ext/string_conversions.h:41,
from /usr/include/c++/5/bits/basic_string.h:5352,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/stdexcept:39,
from /usr/include/c++/5/array:38,
from /usr/include/c++/5/tuple:39,
from /usr/include/c++/5/functional:55,
from /usr/local/include/folly/Traits.h:21,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.cpp:3:
/usr/include/stdlib.h:483:13: error: from previous declaration ‘void free(void*) throw ()’
extern void free (void *__ptr) __THROW;
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowable.h:10,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.h:11,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.cpp:3:
/usr/include/jemalloc/jemalloc.h:172:47: error: declaration of ‘void* valloc(size_t)’ has a different exception specifier
JEMALLOC_EXPORT void * je_valloc(size_t size) JEMALLOC_ATTR(malloc);
^
In file included from /usr/include/c++/5/cstdlib:72:0,
from /usr/include/c++/5/ext/string_conversions.h:41,
from /usr/include/c++/5/bits/basic_string.h:5352,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/stdexcept:39,
from /usr/include/c++/5/array:38,
from /usr/include/c++/5/tuple:39,
from /usr/include/c++/5/functional:55,
from /usr/local/include/folly/Traits.h:21,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.cpp:3:
/usr/include/stdlib.h:498:14: error: from previous declaration ‘void* valloc(size_t) throw ()’
extern void *valloc (size_t __size) __THROW __attribute_malloc__ __wur;
^
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:489,
from /usr/include/c++/5/functional:48,
from /usr/local/include/folly/functional/Invoke.h:19,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.cpp:3:
/usr/include/malloc.h:38:45: error: declaration of ‘void* malloc(size_t) throw ()’ has a different exception specifier
extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur;
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Observable.h:12,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.h:7,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.cpp:3:
/usr/include/jemalloc/jemalloc.h:137:23: error: from previous declaration ‘void* malloc(size_t)’
JEMALLOC_EXPORT void *je_malloc(size_t size) JEMALLOC_ATTR(malloc);
^
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:489,
from /usr/include/c++/5/functional:48,
from /usr/local/include/folly/functional/Invoke.h:19,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.cpp:3:
/usr/include/malloc.h:42:9: error: declaration of ‘void* calloc(size_t, size_t) throw ()’ has a different exception specifier
__THROW __attribute_malloc__ __wur;
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Observable.h:12,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.h:7,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.cpp:3:
/usr/include/jemalloc/jemalloc.h:138:23: error: from previous declaration ‘void* calloc(size_t, size_t)’
JEMALLOC_EXPORT void *je_calloc(size_t num, size_t size)
^
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:489,
from /usr/include/c++/5/functional:48,
from /usr/local/include/folly/functional/Invoke.h:19,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.cpp:3:
/usr/include/malloc.h:53:32: error: declaration of ‘void free(void*) throw ()’ has a different exception specifier
extern void free (void *__ptr) __THROW;
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Observable.h:12,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.h:7,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.cpp:3:
/usr/include/jemalloc/jemalloc.h:145:22: error: from previous declaration ‘void free(void*)’
JEMALLOC_EXPORT void je_free(void *ptr);
^
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:489,
from /usr/include/c++/5/functional:48,
from /usr/local/include/folly/functional/Invoke.h:19,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.cpp:3:
/usr/include/malloc.h:60:9: error: declaration of ‘void* memalign(size_t, size_t) throw ()’ has a different exception specifier
__THROW __attribute_malloc__ __wur;
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Observable.h:12,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.h:7,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.cpp:3:
/usr/include/jemalloc/jemalloc.h:167:24: error: from previous declaration ‘void* memalign(size_t, size_t)’
JEMALLOC_EXPORT void * je_memalign(size_t alignment, size_t size)
^
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:489,
from /usr/include/c++/5/functional:48,
from /usr/local/include/folly/functional/Invoke.h:19,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.cpp:3:
/usr/include/malloc.h:63:45: error: declaration of ‘void* valloc(size_t) throw ()’ has a different exception specifier
extern void *valloc (size_t __size) __THROW __attribute_malloc__ __wur;
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Observable.h:12,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.h:7,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.cpp:3:
/usr/include/jemalloc/jemalloc.h:172:24: error: from previous declaration ‘void* valloc(size_t)’
JEMALLOC_EXPORT void * je_valloc(size_t size) JEMALLOC_ATTR(malloc);
^
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:489,
from /usr/include/c++/5/functional:48,
from /usr/local/include/folly/functional/Invoke.h:19,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.cpp:3:
/usr/include/malloc.h:129:48: error: declaration of ‘size_t malloc_usable_size(void*) throw ()’ has a different exception specifier
extern size_t malloc_usable_size (void *__ptr) __THROW;
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/observable/Observable.h:12,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.h:7,
from /home/simeon/rsocket-cpp/yarpl/observable/Observables.cpp:3:
/usr/include/jemalloc/jemalloc.h:163:24: error: from previous declaration ‘size_t malloc_usable_size(void*)’
JEMALLOC_EXPORT size_t je_malloc_usable_size(
^
cc1plus: warning: unrecognized command line option ‘-Wno-weak-vtables’
yarpl/CMakeFiles/yarpl.dir/build.make:62: recipe for target 'yarpl/CMakeFiles/yarpl.dir/flowable/Subscription.cpp.o' failed
make[2]: *** [yarpl/CMakeFiles/yarpl.dir/flowable/Subscription.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:489,
from /usr/include/c++/5/functional:48,
from /usr/local/include/folly/Traits.h:21,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.cpp:3:
/usr/include/malloc.h:38:45: error: declaration of ‘void* malloc(size_t) throw ()’ has a different exception specifier
extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur;
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowable.h:10,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.h:11,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.cpp:3:
/usr/include/jemalloc/jemalloc.h:137:23: error: from previous declaration ‘void* malloc(size_t)’
JEMALLOC_EXPORT void *je_malloc(size_t size) JEMALLOC_ATTR(malloc);
^
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:489,
from /usr/include/c++/5/functional:48,
from /usr/local/include/folly/Traits.h:21,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.cpp:3:
/usr/include/malloc.h:42:9: error: declaration of ‘void* calloc(size_t, size_t) throw ()’ has a different exception specifier
__THROW __attribute_malloc__ __wur;
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowable.h:10,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.h:11,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.cpp:3:
/usr/include/jemalloc/jemalloc.h:138:23: error: from previous declaration ‘void* calloc(size_t, size_t)’
JEMALLOC_EXPORT void *je_calloc(size_t num, size_t size)
^
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:489,
from /usr/include/c++/5/functional:48,
from /usr/local/include/folly/Traits.h:21,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.cpp:3:
/usr/include/malloc.h:53:32: error: declaration of ‘void free(void*) throw ()’ has a different exception specifier
extern void free (void *__ptr) __THROW;
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowable.h:10,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.h:11,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.cpp:3:
/usr/include/jemalloc/jemalloc.h:145:22: error: from previous declaration ‘void free(void*)’
JEMALLOC_EXPORT void je_free(void *ptr);
^
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:489,
from /usr/include/c++/5/functional:48,
from /usr/local/include/folly/Traits.h:21,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.cpp:3:
/usr/include/malloc.h:60:9: error: declaration of ‘void* memalign(size_t, size_t) throw ()’ has a different exception specifier
__THROW __attribute_malloc__ __wur;
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowable.h:10,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.h:11,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.cpp:3:
/usr/include/jemalloc/jemalloc.h:167:24: error: from previous declaration ‘void* memalign(size_t, size_t)’
JEMALLOC_EXPORT void * je_memalign(size_t alignment, size_t size)
^
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:489,
from /usr/include/c++/5/functional:48,
from /usr/local/include/folly/Traits.h:21,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.cpp:3:
/usr/include/malloc.h:63:45: error: declaration of ‘void* valloc(size_t) throw ()’ has a different exception specifier
extern void *valloc (size_t __size) __THROW __attribute_malloc__ __wur;
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowable.h:10,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.h:11,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.cpp:3:
/usr/include/jemalloc/jemalloc.h:172:24: error: from previous declaration ‘void* valloc(size_t)’
JEMALLOC_EXPORT void * je_valloc(size_t size) JEMALLOC_ATTR(malloc);
^
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:489,
from /usr/include/c++/5/functional:48,
from /usr/local/include/folly/Traits.h:21,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.cpp:3:
/usr/include/malloc.h:129:48: error: declaration of ‘size_t malloc_usable_size(void*) throw ()’ has a different exception specifier
extern size_t malloc_usable_size (void *__ptr) __THROW;
^
In file included from /usr/local/include/folly/portability/Malloc.h:27:0,
from /usr/local/include/folly/Memory.h:37,
from /usr/local/include/folly/concurrency/CacheLocality.h:33,
from /usr/local/include/folly/SharedMutex.h:28,
from /usr/local/include/folly/Synchronized.h:31,
from /home/simeon/rsocket-cpp/yarpl/Refcounted.h:5,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowable.h:10,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.h:11,
from /home/simeon/rsocket-cpp/yarpl/flowable/Flowables.cpp:3:
/usr/include/jemalloc/jemalloc.h:163:24: error: from previous declaration ‘size_t malloc_usable_size(void*)’
JEMALLOC_EXPORT size_t je_malloc_usable_size(
^
cc1plus: warning: unrecognized command line option ‘-Wno-weak-vtables’
yarpl/CMakeFiles/yarpl.dir/build.make:110: recipe for target 'yarpl/CMakeFiles/yarpl.dir/observable/Subscription.cpp.o' failed
make[2]: *** [yarpl/CMakeFiles/yarpl.dir/observable/Subscription.cpp.o] Error 1
cc1plus: warning: unrecognized command line option ‘-Wno-weak-vtables’
yarpl/CMakeFiles/yarpl.dir/build.make:86: recipe for target 'yarpl/CMakeFiles/yarpl.dir/flowable/Flowables.cpp.o' failed
make[2]: *** [yarpl/CMakeFiles/yarpl.dir/flowable/Flowables.cpp.o] Error 1
cc1plus: warning: unrecognized command line option ‘-Wno-weak-vtables’
yarpl/CMakeFiles/yarpl.dir/build.make:134: recipe for target 'yarpl/CMakeFiles/yarpl.dir/observable/Observables.cpp.o' failed
make[2]: *** [yarpl/CMakeFiles/yarpl.dir/observable/Observables.cpp.o] Error 1
CMakeFiles/Makefile2:1876: recipe for target 'yarpl/CMakeFiles/yarpl.dir/all' failed
make[1]: *** [yarpl/CMakeFiles/yarpl.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
my gcc version is gcc (Ubuntu 5.5.0-12ubuntu1~16.04) 5.5.0 20171010
Interesting. The build is successful when we build it on Travis CI. https://travis-ci.org/rsocket/rsocket-cpp/builds
Do you able to successfully build folly
?
I'm seeing the original reported The dependency target "gmock" of target "yarpl-tests" does not exist.
issue too. I'm on Debian/unstable. libgmock-dev & google-mock packages at version 1.8.1-3.
Adding the suggested -DBUILD_TESTS=OFF
indeed gets me a compile of yarpl, which I believe is all I need at the moment (trying to compile watchman). But I thought I'd chime in an confirm this issue.
I am trying to build YARPL library following instructions as mentioned in the readme.
But in the third step cmake ../ -DCMAKE_BUILD_TYPE=DEBUG I am getting the following output.
Now, I have installed gmock but it still gives me the same error. How should I got about it?
P.S. I am using Ubuntu 16.04 .