Same here on ubuntu 13.10 with gcc 4.8 and clang 3.2.
A lot of unused local typedef warnings on gcc 4.8 and A LOT of warnings
with clang (almost 46 MB build log file).
- m.
>
> [Agustín K-ballo Bergé]
> > Builds successfully with msvc-12.0. However, the following trivial
> > snippet results in an ICE:
>
> Repros with both VC12 and VC14. Filed as DevDiv#996370 "ICE with Boost
> 1.56.0 RC1 - Assertion failed:
> is<T>(), trees.h 626".
Could that be the same bug as
https://connect.microsoft.com/VisualStudio/feedback/details/915061/vc12-
update-3-rc-boost-1-56-compiler-crash?
That ICE is also caused by the Boost.Range free-standing operators.
The mentioned workaround also applies to Boost.Lambda: replacing the
anonymous enum in lambda/detail/operator_return_type_traits.hpp with static
const ints makes the ICE go away.
Crud. Beman, did a merge get missed?
Eric
I'm seeing compilation failures with gcc 4.4.7 in C++11 mode:
In file included from ./boost/graph/adjacency_list.hpp:246,
from ./boost/graph/graphviz.hpp:24,
from ./boost/graph/graphml.hpp:20,
from libs/graph/src/graphml.cpp:17:
./boost/graph/detail/adjacency_list.hpp:304: error:
‘boost::detail::stored_edge_property<Vertex,
Property>::stored_edge_property(boost::detail::stored_edge_property<Vertex,
Property>&&)’ cannot be defaulted
./boost/graph/detail/adjacency_list.hpp:305: error:
‘boost::detail::stored_edge_property<Vertex, Property>&
boost::detail::stored_edge_property<Vertex,
Property>::operator=(boost::detail::stored_edge_property<Vertex,
Property>&&)’ cannot be defaulted
"g++-4.4" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline
-Wall -pthread -fPIC -std=c++0x -DBOOST_ALL_NO_LIB=1
-DBOOST_GRAPH_DYN_LINK=1 -DBOOST_HAS_ICU=1 -DNDEBUG -I"."
-I"libs/graph/src" -c -o
"bin.v2/libs/graph/build/gcc-4.4/release/threading-multi/graphml.o"
"libs/graph/src/graphml.cpp"
...failed gcc.compile.c++
bin.v2/libs/graph/build/gcc-4.4/release/threading-multi/graphml.o...
I'll see if I can come up with a patch.
I also see compilation failures with gcc 4.6 in C++11 mode:
In file included from ./boost/thread/once.hpp:20:0,
from ./boost/thread.hpp:17,
from libs/coroutine/src/posix/stack_traits.cpp:22:
./boost/thread/pthread/once_atomic.hpp: In function ‘void
boost::call_once(boost::once_flag&, Function&&, ArgTypes&& ...) [with
Function = void (&)(long unsigned int*), ArgTypes = {long unsigned
int*}]’:
libs/coroutine/src/posix/stack_traits.cpp:57:46: instantiated from here
./boost/thread/pthread/once_atomic.hpp:127:9: error: call of
overloaded ‘invoke(boost::decay<void (&)(long unsigned int*)>::type,
boost::decay<long unsigned int*>::type)’ is ambiguous
./boost/thread/pthread/once_atomic.hpp:127:9: note: candidates are:
./boost/thread/detail/invoke.hpp:538:5: note: typename
boost::enable_if_c<(! boost::is_member_function_pointer<Fp>::value),
Ret>::type boost::detail::invoke(Fp&&, Args&& ...) [with Ret = void,
Fp = void (*)(long unsigned int*), Args = {long unsigned int*},
typename boost::enable_if_c<(!
boost::is_member_function_pointer<Fp>::value), Ret>::type = void]
./boost/thread/detail/invoke.hpp:544:5: note: Ret
boost::detail::invoke(Ret (*)(Args ...), Args&& ...) [with Ret = void,
Args = {long unsigned int*}]
./boost/thread/pthread/once_atomic.hpp: In function ‘void
boost::call_once(boost::once_flag&, Function&&, ArgTypes&& ...) [with
Function = void (&)(rlimit*), ArgTypes = {rlimit*}]’:
libs/coroutine/src/posix/stack_traits.cpp:65:54: instantiated from here
./boost/thread/pthread/once_atomic.hpp:127:9: error: call of
overloaded ‘invoke(boost::decay<void (&)(rlimit*)>::type,
boost::decay<rlimit*>::type)’ is ambiguous
./boost/thread/pthread/once_atomic.hpp:127:9: note: candidates are:
./boost/thread/detail/invoke.hpp:538:5: note: typename
boost::enable_if_c<(! boost::is_member_function_pointer<Fp>::value),
Ret>::type boost::detail::invoke(Fp&&, Args&& ...) [with Ret = void,
Fp = void (*)(rlimit*), Args = {rlimit*}, typename
boost::enable_if_c<(! boost::is_member_function_pointer<Fp>::value),
Ret>::type = void]
./boost/thread/detail/invoke.hpp:544:5: note: Ret
boost::detail::invoke(Ret (*)(Args ...), Args&& ...) [with Ret = void,
Args = {rlimit*}]
"g++-4.6" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline
-Wall -pthread -fPIC -std=c++0x -DBOOST_ALL_NO_LIB=1
-DBOOST_CHRONO_DYN_LINK=1 -DBOOST_CONTEXT_DYN_LINK=1
-DBOOST_COROUTINES_DYN_LINK=1 -DBOOST_COROUTINES_SOURCE
-DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED
-DBOOST_THREAD_BUILD_DLL=1 -DBOOST_THREAD_POSIX
-DBOOST_THREAD_USE_DLL=1 -DNDEBUG -I"." -c -o
"bin.v2/libs/coroutine/build/gcc-4.6/release/threading-multi/posix/stack_traits.o"
"libs/coroutine/src/posix/stack_traits.cpp"
...failed gcc.compile.c++
bin.v2/libs/coroutine/build/gcc-4.6/release/threading-multi/posix/stack_traits.o...
https://github.com/boostorg/graph/pull/14
> On 07/29/2014 02:44 PM, Boris Schäling wrote:
> > On Tue, 29 Jul 2014 19:06:43 +0200, Marshall Clow
> > <mclow...@gmail.com> wrote:
> >
> >> Release candidate files for 1.56.0 are available at
> >> http://boost.cowic.de/rc/
> >
> > I get a compiler error with g++ 4.8.3 on Cygwin (64-bit):
> >
> > In file included from libs\system\src\error_code.cpp:19:0:
> > ./boost/system/detail/error_code.ipp: In member function ‘virtual
> > std::string
> > boost::system::{anonymous}::system_error_category::message(int) const’:
> > ./boost/system/detail/error_code.ipp:413:5: error:
> > ‘local_free_on_destruction’ is not a member of ‘boost::detail’
> > detail::local_free_on_destruction lfod(lpMsgBuf);
> > ^
> >
> > This looks like the bug Eric had reported at
> > <https://svn.boost.org/trac/boost/ticket/10137>.
>
> Crud. Beman, did a merge get missed?
>
I'll look at this in a few hours.
--Beman
While we do not want to hold the release to clear warnings, once the
release ships we might want to have a sprint to clear warnings.
Thanks,
--Beman
Ouch. Can anybody else repro this? Oliver, thoughts?
Eric
I think the problem is in Boost.Thread, boost/thread/detail/invoke.hpp. I
emailed Vicente, no response so far.
I'll try to come up with a patch.
> On 07/29/2014 02:44 PM, Boris Schäling wrote:
> > On Tue, 29 Jul 2014 19:06:43 +0200, Marshall Clow
> > <mclow...@gmail.com> wrote:
> >
> >> Release candidate files for 1.56.0 are available at
> >> http://boost.cowic.de/rc/
> >
> > I get a compiler error with g++ 4.8.3 on Cygwin (64-bit):
> >
> > In file included from libs\system\src\error_code.cpp:19:0:
> > ./boost/system/detail/error_code.ipp: In member function ‘virtual
> > std::string
> > boost::system::{anonymous}::system_error_category::message(int) const’:
> > ./boost/system/detail/error_code.ipp:413:5: error:
> > ‘local_free_on_destruction’ is not a member of ‘boost::detail’
> > detail::local_free_on_destruction lfod(lpMsgBuf);
> > ^
> >
> > This looks like the bug Eric had reported at
> > <https://svn.boost.org/trac/boost/ticket/10137>.
>
> Crud. Beman, did a merge get missed?
>
It was a pull request. I've merged it to develop, although I only tested it
on VC++ and MinGW because I'm having trouble getting Cygwin tests to work
because of some flaw in my test setup. I'll take a break, then look at it
again.
But even if it is working for Cygwin, I'd want to see successful tests on
Linux and OS X at a minimum before merging to master.
--Beman
I've now tested Boost.System locally:
OS X / gcc
OS X / clang
Ubuntu / gcc
Ubuntu / clang
Win 7 / msvc-10.0
Win 7 / msvc-11.0
Win 7 / msvc-12.0
Win 7 / gcc - cygwin / cygwin installer / from bash (thanks to Eric for
help getting this running)
Win 7 / gcc - cygwin / cygwin installer / from Windows command line
Win 7 / gcc - mingw / mingw installer / from Windows command line
The last two turned up a different configuration issue which has also been
fixed.
I'd like permission to merge system develop to master Sunday morning (after
more regression testers have cycled)>