Re: [Boost-bugs] [Boost C++ Libraries] #10440: boyer_moore.hpp fails on Linux w/ gcc-4.7.2, OK with Mac clang

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10440: boyer_moore.hpp fails on Linux w/ gcc-4.7.2, OK with Mac clang
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-09-02 04:30:45


#10440: boyer_moore.hpp fails on Linux w/ gcc-4.7.2, OK with Mac clang
-------------------------------+-----------------------------------------
  Reporter: boost@… | Owner: marshall
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: algorithm
   Version: Boost 1.56.0 | Severity: Problem
Resolution: | Keywords: boyer_moore,linux,gcc-4.7.2
-------------------------------+-----------------------------------------

Comment (by boost@…):

 That program compiles & runs on Mac w/ clang, but not on Linux:

 {{{
 user_at_aluminum-debian:/var/tmp$ g++ -v bmtest.cc
 Using built-in specs.
 COLLECT_GCC=g++
 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='Debian 4.7.2-5'
 --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 --with-system-zlib
 --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-
 libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-
 objc-gc --with-arch-32=i586 --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.2 (Debian 4.7.2-5)
 COLLECT_GCC_OPTIONS='-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
  /usr/lib/gcc/x86_64-linux-gnu/4.7/cc1plus -quiet -v -imultiarch x86_64
 -linux-gnu -D_GNU_SOURCE bmtest.cc -quiet -dumpbase bmtest.cc
 -mtune=generic -march=x86-64 -auxbase bmtest -version -o /tmp/ccrt5zzG.s
 GNU C++ (Debian 4.7.2-5) version 4.7.2 (x86_64-linux-gnu)
         compiled by GNU C version 4.7.2, GMP version 5.0.5, MPFR version
 3.1.0-p10, MPC version 0.9
 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
 ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
 ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-
 gnu/4.7/../../../../x86_64-linux-gnu/include"
 #include "..." search starts here:
 #include <...> search starts here:
  /usr/include/c++/4.7
  /usr/include/c++/4.7/x86_64-linux-gnu
  /usr/include/c++/4.7/backward
  /usr/lib/gcc/x86_64-linux-gnu/4.7/include
  /usr/local/include
  /usr/lib/gcc/x86_64-linux-gnu/4.7/include-fixed
  /usr/include/x86_64-linux-gnu
  /usr/include
 End of search list.
 GNU C++ (Debian 4.7.2-5) version 4.7.2 (x86_64-linux-gnu)
         compiled by GNU C version 4.7.2, GMP version 5.0.5, MPFR version
 3.1.0-p10, MPC version 0.9
 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
 Compiler executable checksum: 66d178dd81da8c975e003e06d9f5e782
 In file included from /usr/local/include/boost/range/iterator.hpp:24:0,
                  from /usr/local/include/boost/range/begin.hpp:24,
                  from
 /usr/local/include/boost/algorithm/searching/boyer_moore.hpp:18,
                  from bmtest.cc:2:
 /usr/local/include/boost/mpl/eval_if.hpp: In instantiation of ‘struct
 boost::mpl::eval_if_c<false, boost::range_const_iterator<const char*,
 void>, boost::range_mutable_iterator<const char*, void> >’:
 /usr/local/include/boost/range/iterator.hpp:69:17: required from ‘struct
 boost::range_iterator<const char*, void>’
 /usr/local/include/boost/algorithm/searching/boyer_moore.hpp:243:5:
 required by substitution of ‘template<class PatternRange, class
 CorpusRange> typename boost::range_iterator<CorpusRange>::type
 boost::algorithm::boyer_moore_search(CorpusRange&, const PatternRange&)
 [with PatternRange = const char*; CorpusRange = const char*]’
 bmtest.cc:12:63: required from here
 /usr/local/include/boost/mpl/eval_if.hpp:60:31: error: no type named
 â€˜type’ in ‘boost::mpl::eval_if_c<false, boost::range_const_iterator<const
 char*, void>, boost::range_mutable_iterator<const char*, void> >::f_ {aka
 struct boost::range_mutable_iterator<const char*, void>}’
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10440#comment:2>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:16 UTC