Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

iOS build broken #782

Closed
Closed

Description

@incanus

This sort of thing will be caught more easily once I hit cutting-room-floor/mapbox-gl-cocoa#28 so that iOS build bugs are caught upon commit.

In file included from /tmp/gl/src/mbgl/map/tile_parser.cpp:15:
In file included from src/mbgl/text/collision.hpp:16:
In file included from /usr/local/include/boost/geometry.hpp:17:
In file included from /usr/local/include/boost/geometry/geometry.hpp:43:
In file included from /usr/local/include/boost/geometry/strategies/strategies.hpp:74:
In file included from /usr/local/include/boost/geometry/strategies/agnostic/relate.hpp:14:
In file included from /usr/local/include/boost/geometry/algorithms/detail/relate/relate.hpp:53:
/usr/local/include/boost/geometry/algorithms/detail/relate/linear_areal.hpp:300:81: error: implicit conversion loses integer precision: 'long' to 'const int' [-Werror,-Wshorten-64-to-32]
                        int const next_ring_index = prev_seg_id_ptr->ring_index + 1;
                                  ~~~~~~~~~~~~~~~   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/local/include/boost/geometry/algorithms/detail/relate/linear_areal.hpp:371:73: error: implicit conversion loses integer precision: 'long' to 'const int' [-Werror,-Wshorten-64-to-32]
                int const next_ring_index = prev_seg_id_ptr->ring_index + 1;
                          ~~~~~~~~~~~~~~~   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /tmp/gl/src/mbgl/map/tile_parser.cpp:15:
In file included from src/mbgl/text/collision.hpp:16:
In file included from /usr/local/include/boost/geometry.hpp:17:
In file included from /usr/local/include/boost/geometry/geometry.hpp:48:
In file included from /usr/local/include/boost/geometry/algorithms/buffer.hpp:32:
In file included from /usr/local/include/boost/geometry/algorithms/detail/buffer/buffer_inserter.hpp:27:
In file included from /usr/local/include/boost/geometry/algorithms/detail/buffer/buffered_piece_collection.hpp:42:
In file included from /usr/local/include/boost/geometry/algorithms/detail/occupation_info.hpp:21:
/usr/local/include/boost/geometry/algorithms/detail/get_left_turns.hpp:249:43: error: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Werror,-Wshorten-64-to-32]
            previous_index = cluster_size - 1;
                           ~ ~~~~~~~~~~~~~^~~
3 errors generated.

Activity

  1. added
    iOS
    on Jan 27, 2015
  2. incanus commented on Feb 5, 2015

    @incanus
    ContributorAuthor

    Still seeing this, and can't figure out with git bisect when it started. It appears to me to be a problem of treating as fatal a couple warnings in Boost around implicit integer conversion.

    @springmeyer @ljbade Any ideas here related to recent Mason changes / Boost pinning to support Android?

    I don't see this on any of the other platforms. You can replicate with:

    make ios
    
  3. incanus commented on Feb 5, 2015

    @incanus
    ContributorAuthor

    Here we go. The problem is in core and only on 64-bit, because of this being set to YES:

    [GCC_WARN_64_TO_32_BIT_CONVERSION, -Wshorten-64-to-32]
    

    If I compile for iPhone 4s simulator (32-bit), there are no problems. So Boost is causing us grief on 64-bit iOS.

  4. incanus commented on Feb 5, 2015

    @incanus
    ContributorAuthor

    Came about because of the introduction of -Werror (treat warnings as errors) by @kkaefer in 618a4a5.

  5. jfirebaugh commented on Feb 5, 2015

    @jfirebaugh
    Contributor

    33f611c is our standard solution for cases like this.

  6. jfirebaugh commented on Feb 5, 2015

    @jfirebaugh
    Contributor

    (The #pragmas around boost includes that is.)

  7. incanus commented on Feb 5, 2015

    @incanus
    ContributorAuthor

    Oh, perfecto — thanks @jfirebaugh; will implement.

  8. added a commit that references this issue on Feb 5, 2015
    e1a3b9f
  9. added a commit that references this issue on Feb 5, 2015
    91760aa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbuildiOS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions