Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-67810

Qt build fails on Mac OS, redefinition of get_pointer as different kind of symbol

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.11.0
    • 5.11
    • None
    • Mac OS 10.13.4, Xcode 9.3 (9E145), LLVM version 9.1.0 (clang-902.0.39.1)
    • macOS

    Description

      ./configure -static -release -ltcg -optimize-size -no-pch -prefix "/path/to/qt/511-static" -skip webengine -nomake tools -nomake tests -nomake examples
      

      And then having run make I get this:

      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/annotation/annotation_manager.cpp:1:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/annotation/annotation_manager.hpp:4:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/annotation/symbol_annotation_impl.hpp:24:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/geometry.hpp:17:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/geometry/geometry.hpp:50:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/geometry/strategies/strategies.hpp:40:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/geometry/strategies/cartesian/buffer_end_round.hpp:25:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/geometry/io/wkt/wkt.hpp:17:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/geometry/io/wkt/read.hpp:28:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/algorithm/string.hpp:23:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/algorithm/string/split.hpp:16:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/algorithm/string/iter_find.hpp:27:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/algorithm/string/find_iterator.hpp:24:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/algorithm/string/detail/find_iterator.hpp:18:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/function.hpp:24:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/function/detail/prologue.hpp:18:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/mem_fn.hpp:22:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/bind/mem_fn.hpp:25:
      /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/get_pointer.hpp:48:23: error: 
            redefinition of 'get_pointer' as different kind of symbol
      template<class T> T * get_pointer(std::auto_ptr<T> const& p)
                            ^
      /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/get_pointer.hpp:20:23: note: 
            previous definition is here
      template<class T> T * get_pointer(T * p)
                            ^
      /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/get_pointer.hpp:48:40: error: 
            no member named 'auto_ptr' in namespace 'std'
      template<class T> T * get_pointer(std::auto_ptr<T> const& p)
                                        ~~~~~^
      /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/get_pointer.hpp:48:49: error: 
            'T' does not refer to a value
      template<class T> T * get_pointer(std::auto_ptr<T> const& p)
                                                      ^
      /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/get_pointer.hpp:48:16: note: 
            declared here
      template<class T> T * get_pointer(std::auto_ptr<T> const& p)
                     ^
      /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/get_pointer.hpp:48:52: error: 
            expected expression
      template<class T> T * get_pointer(std::auto_ptr<T> const& p)
                                                         ^
      /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/get_pointer.hpp:48:61: error: 
            expected ';' at end of declaration
      template<class T> T * get_pointer(std::auto_ptr<T> const& p)
                                                                  ^
                                                                  ;
      /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/get_pointer.hpp:49:1: error: 
            expected unqualified-id
      {
      ^
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/annotation/annotation_manager.cpp:1:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/annotation/annotation_manager.hpp:4:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/annotation/symbol_annotation_impl.hpp:24:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/geometry.hpp:17:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/geometry/geometry.hpp:55:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/geometry/algorithms/buffer.hpp:36:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/geometry/algorithms/detail/buffer/buffer_inserter.hpp:30:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/geometry/algorithms/detail/buffer/buffered_piece_collection.hpp:27:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/geometry/algorithms/comparable_distance.hpp:23:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/geometry/algorithms/detail/comparable_distance/implementation.hpp:22:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/geometry/algorithms/detail/distance/implementation.hpp:25:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/geometry/algorithms/detail/distance/multipoint_to_geometry.hpp:26:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/geometry/algorithms/detail/distance/range_to_geometry_rtree.hpp:25:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/geometry/algorithms/detail/closest_feature/range_to_range.hpp:22:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/geometry/index/rtree.hpp:83:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/geometry/index/detail/rtree/query_iterators.hpp:14:
      In file included from /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/scoped_ptr.hpp:14:
      /path/to/qt/5.11.0/Src/qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0/include/boost/smart_ptr/scoped_ptr.hpp:74:31: error: 
            no template named 'auto_ptr' in namespace 'std'
          explicit scoped_ptr( std::auto_ptr<T> p ) BOOST_NOEXCEPT : px( p.release() )
                               ~~~~~^
      7 errors generated.
      make[5]: *** [.obj/src/mbgl/annotation/annotation_manager.o] Error 1
      make[4]: *** [sub-------3rdparty-mapbox-gl-native-make_first] Error 2
      make[3]: *** [sub-geoservices-make_first] Error 2
      make[2]: *** [sub-plugins-make_first] Error 2
      make[1]: *** [sub-src-make_first] Error 2
      make: *** [module-qtlocation-make_first] Error 2
      

      I used Qt 5.11.0 snapshot from installer.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tmpsantos Thiago Marcos P. Santos
            artemsyd Artem Sidyakin
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes