Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
posix_memalign conflict between /usr/include files
Hi,
When devel/boost-libs is built with NetBSD/amd64 current's GCC 4.8,
I have gotten some errors.
First error is following. It is caused from gcc -std=c++11 of GCC 4.8,
according to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57632 .
When -std=c++11 is replaced with -std=c++03 with BUILDLINK_TRANSFORM,
this error is not appeared.
How to handle this issue?
# Of course I know NetBSD/amd64 does not migrate to GCC 4.8 yet.
gcc.compile.c++ bin.v2/libs/regex/build/gcc-4.8.3/release/threading-multi/c_rege
x_traits.o
In file included from /usr/include/gcc-4.8/xmmintrin.h:38:0,
from /usr/include/gcc-4.8/x86intrin.h:34,
from /usr/include/g++/bits/opt_random.h:33,
from /usr/include/g++/random:51,
from /usr/include/g++/bits/stl_algo.h:65,
from /usr/include/g++/algorithm:62,
from ./boost/regex/v4/regex_workaround.hpp:33,
from ./boost/regex/v4/c_regex_traits.hpp:26,
from libs/regex/build/../src/c_regex_traits.cpp:28:
/usr/include/gcc-4.8/mm_malloc.h:34:64: error: declaration of 'int posix_memalig
n(void**, size_t, size_t) throw ()' has a different exception specifier
extern "C" int posix_memalign (void **, size_t, size_t) throw ();
^
In file included from /usr/include/g++/cstdlib:72:0,
from ./boost/regex/v4/regex_workaround.hpp:25,
from ./boost/regex/v4/c_regex_traits.hpp:26,
from libs/regex/build/../src/c_regex_traits.cpp:28:
/usr/include/stdlib.h:244:6: error: from previous declaration 'int posix_memalig
n(void**, size_t, size_t)'
int posix_memalign(void **, size_t, size_t);
^
"g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pedant
ic -pthread -fPIC -std=c++11 -DBOOST_ALL_NO_LIB=1 -DBOOST_REGEX_DYN_LINK=1 -DNDE
BUG -I"." -c -o "bin.v2/libs/regex/build/gcc-4.8.3/release/threading-multi/c_re
gex_traits.o" "libs/regex/build/../src/c_regex_traits.cpp"
...failed gcc.compile.c++ bin.v2/libs/regex/build/gcc-4.8.3/release/threading-mu
lti/c_regex_traits.o...
--
Ryo ONODERA // ryo_on%yk.rim.or.jp@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB FD1B F404 27FA C7D1 15F3
Home |
Main Index |
Thread Index |
Old Index