Closed danieljames closed 7 years ago
I can't reproduce this in develop, master or 1.64 (from .tar.bz2 package) on Kubuntu 17.04, gcc:
g++-4.7 -v
Using built-in specs.
COLLECT_GCC=g++-4.7
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.7.4-3ubuntu12' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --enable-objc-gc --with-cloog --enable-cloog-backend=ppl --disable-cloog-version-check --disable-ppl-version-check --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.7.4 (Ubuntu/Linaro 4.7.4-3ubuntu12)
Looks like the compiler version is the same.
I remember we had similar errors on gcc 4.7 in an earlier version of addressof
, but these were fixed before the code was merged to master. Are you sure you're using a clean and up to date source tree?
Please, verify that your boost/config/compiler/gcc.hpp
contains #define BOOST_NO_CXX11_SFINAE_EXPR
for gcc 4.7 (line 256 in 1.64). That macro, when defined, should disable constexpr addressof
, which gives the error in your log.
We also have g++ 4.7 in Travis.
I also tested with g++ 4.7 on Ubuntu 17.04 (sudo apt install g++4.7
) which was 4.7.4, without any issues.
I'll check when I get home later. I'm pretty sure I tested with the tags 1.63.0 and 1.64.0 of core when I got this, but I didn't check config.
That piece of code relies on a new feature of Boost.Config, so make sure to update it as well.
Config was out of date.
I'm getting
‘operator&’ not defined
compile errors fromaddressof
on Ubuntu's GCC 4.7.4. We don't have any test runners using 4.7.4, so I guess this is specific to the exact version. Core from Boost 1.63.0 doesn't have this error.Here's the first error:
I've uploaded the full output from boost build to addressof-error.txt. My command line was:
The relevant configuration from my
user-config.jam
:And gcc's version details: