Skip to content

Instantly share code, notes, and snippets.

Created August 22, 2014 13:42
Show Gist options
  • Save anonymous/a763cd03324592e8b126 to your computer and use it in GitHub Desktop.
Save anonymous/a763cd03324592e8b126 to your computer and use it in GitHub Desktop.
/usr/bin/make all-recursive
Making all in doc
make[2]: Nothing to be done for `all'.
Making all in src
Making all in core
g++-4.9 -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -g -O2 -DNDEBUG -D_THREAD_SAFE -I/usr/local/Cellar/libtorrent/0.13.4/include -c -o curl_get.o curl_get.cc
In file included from ../../rak/priority_queue_default.h:41:0,
from ./../globals.h:41,
from curl_get.cc:44:
../../rak/allocators.h: In static member function 'static T* rak::cacheline_allocator<T>::alloc_size(rak::cacheline_allocator<T>::size_type)':
../../rak/allocators.h:80:80: error: there are no arguments to 'posix_memalign' that depend on a template parameter, so a declaration of 'posix_memalign' must be available [-fpermissive]
int __UNUSED result = posix_memalign((void**)&ptr, LT_SMP_CACHE_BYTES, size);
^
../../rak/allocators.h:80:80: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
../../rak/allocators.h: In instantiation of 'static T* rak::cacheline_allocator<T>::alloc_size(rak::cacheline_allocator<T>::size_type) [with T = rak::priority_item*; rak::cacheline_allocator<T>::pointer = rak::priority_item**; rak::cacheline_allocator<T>::size_type = long unsigned int]':
../../rak/allocators.h:76:97: required from 'T* rak::cacheline_allocator<T>::allocate(rak::cacheline_allocator<T>::size_type, rak::cacheline_allocator<T>::const_void_pointer) [with T = rak::priority_item*; rak::cacheline_allocator<T>::pointer = rak::priority_item**; rak::cacheline_allocator<T>::size_type = long unsigned int; rak::cacheline_allocator<T>::const_void_pointer = const void*]'
/usr/local/Cellar/gcc/4.9.1/lib/gcc/powerpc-apple-darwin9.8.0/4.9.1/include/c++/ext/alloc_traits.h:182:30: required from 'static __gnu_cxx::__alloc_traits<_Alloc>::pointer __gnu_cxx::__alloc_traits<_Alloc>::allocate(_Alloc&, __gnu_cxx::__alloc_traits<_Alloc>::size_type) [with _Alloc = rak::cacheline_allocator<rak::priority_item*>; __gnu_cxx::__alloc_traits<_Alloc>::pointer = rak::priority_item**; __gnu_cxx::__alloc_traits<_Alloc>::size_type = long unsigned int]'
/usr/local/Cellar/gcc/4.9.1/lib/gcc/powerpc-apple-darwin9.8.0/4.9.1/include/c++/bits/stl_vector.h:170:46: required from 'std::_Vector_base<_Tp, _Alloc>::pointer std::_Vector_base<_Tp, _Alloc>::_M_allocate(std::size_t) [with _Tp = rak::priority_item*; _Alloc = rak::cacheline_allocator<rak::priority_item*>; std::_Vector_base<_Tp, _Alloc>::pointer = rak::priority_item**; std::size_t = long unsigned int]'
/usr/local/Cellar/gcc/4.9.1/lib/gcc/powerpc-apple-darwin9.8.0/4.9.1/include/c++/bits/vector.tcc:353:48: required from 'void std::vector<_Tp, _Alloc>::_M_insert_aux(std::vector<_Tp, _Alloc>::iterator, const _Tp&) [with _Tp = rak::priority_item*; _Alloc = rak::cacheline_allocator<rak::priority_item*>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<rak::priority_item**, std::vector<rak::priority_item*, rak::cacheline_allocator<rak::priority_item*> > >; typename std::_Vector_base<_Tp, _Alloc>::pointer = rak::priority_item**]'
/usr/local/Cellar/gcc/4.9.1/lib/gcc/powerpc-apple-darwin9.8.0/4.9.1/include/c++/bits/stl_vector.h:925:28: required from 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = rak::priority_item*; _Alloc = rak::cacheline_allocator<rak::priority_item*>; std::vector<_Tp, _Alloc>::value_type = rak::priority_item*]'
../../rak/priority_queue.h:77:31: required from 'void rak::priority_queue<Value, Compare, Equal, Alloc>::push(const value_type&) [with Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to<rak::priority_item*>; Alloc = rak::cacheline_allocator<rak::priority_item*>; rak::priority_queue<Value, Compare, Equal, Alloc>::value_type = rak::priority_item*]'
../../rak/priority_queue_default.h:117:19: required from here
../../rak/allocators.h:80:80: error: 'posix_memalign' was not declared in this scope
make[3]: *** [curl_get.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
HOMEBREW_VERSION: 0.9.5
HEAD: 31d5649a171f62a3f05aaaf89369a8f3d05d61c8
CPU: single-core 64-bit g5
OS X: 10.5.8-Power Macintosh
Xcode: 3.1.4
X11: 2.1.6 => /usr/X11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment