#12434 closed Bugs (fixed)
Compiling 1_62_0_b1 gives errors in Fiber about requiring C++1
Reported by: | Owned by: | ||
---|---|---|---|
Milestone: | To Be Determined | Component: | Building Boost |
Version: | Boost 1.62.0 | Severity: | Showstopper |
Keywords: | fiber, c++11, bootstrap, b2, build | Cc: |
Description
I tried to compile Boost 1_62_0_b1 but got lots of errors in the new Fiber library like this:
gcc.compile.c++ bin.v2/libs/fiber/build/gcc-5.2.1/release/link-static/threading-multi/algo/algorithm.o In file included from /usr/include/c++/5/chrono:35:0, from ./boost/fiber/algo/algorithm.hpp:10, from libs/fiber/src/algo/algorithm.cpp:7: /usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental , and must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support for the \ ^ In file included from ./boost/fiber/algo/algorithm.hpp:15:0, from libs/fiber/src/algo/algorithm.cpp:7: ./boost/fiber/properties.hpp:40:5: warning: identifier ‘nullptr’ is a keyword in C++11 [-Wc++0x-compat] algo::algorithm * algo_{ nullptr }; ^ ./boost/fiber/properties.hpp:45:5: warning: identifier ‘noexcept’ is a keyword in C++11 [-Wc++0x-compat] void notify() noexcept; ^ In file included from ./boost/context/detail/apply.hpp:19:0, from ./boost/fiber/context.hpp:20, from libs/fiber/src/algo/algorithm.cpp:9: ./boost/context/detail/index_sequence.hpp:38:5: warning: identifier ‘constexpr’ is a keyword in C++11 [-Wc++0x-compat] static constexpr std::size_t size() { ^ In file included from ./boost/fiber/context.hpp:20:0, from libs/fiber/src/algo/algorithm.cpp:9: ./boost/context/detail/apply.hpp:32:5: warning: identifier ‘decltype’ is a keyword in C++11 [-Wc++0x-compat] -> decltype( invoke( std::forward< Fn >( fn), std::get< I >( std::forward< Tpl >( tpl) ) ... ) ) ^
I was using commands like:
./bootstrap.sh --prefix=/my/dest/dir ./b2 --layout=tagged variant=release
...and I saw these problems under both GCC 5.2.1 and Clang 3.6.2 (on Ubuntu 15.10, Linux 4.2.0-42-generic, x86_64).
Change History (2)
comment:1 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 6 years ago
Thanks for this.
Is there some way that a new Boost beta .tar.gz
can be packaged so that we can confirm that this problem definitely won't slip into the full 1.62.0 release?
Note:
See TracTickets
for help on using tickets.
CXX11-Fetaure checks applied to fiber/build/Jamfile.v2 - should prevent building boost.fiber if feature check fails