{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mason/issues/395","repository_url":"https://api.github.com/repos/mapbox/mason","labels_url":"https://api.github.com/repos/mapbox/mason/issues/395/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mason/issues/395/comments","events_url":"https://api.github.com/repos/mapbox/mason/issues/395/events","html_url":"https://github.com/mapbox/mason/issues/395","id":216894552,"number":395,"title":"Building protobuf for Android does not work","user":{"login":"edkimmel","id":3375008,"avatar_url":"https://avatars2.githubusercontent.com/u/3375008?v=3","gravatar_id":"","url":"https://api.github.com/users/edkimmel","html_url":"https://github.com/edkimmel","followers_url":"https://api.github.com/users/edkimmel/followers","following_url":"https://api.github.com/users/edkimmel/following{/other_user}","gists_url":"https://api.github.com/users/edkimmel/gists{/gist_id}","starred_url":"https://api.github.com/users/edkimmel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edkimmel/subscriptions","organizations_url":"https://api.github.com/users/edkimmel/orgs","repos_url":"https://api.github.com/users/edkimmel/repos","events_url":"https://api.github.com/users/edkimmel/events{/privacy}","received_events_url":"https://api.github.com/users/edkimmel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-24T20:19:19Z","updated_at":"2017-03-24T21:10:41Z","closed_at":"2017-03-24T21:10:40Z","body":"One thing first: protobuf runs protoc to run tests. Since we are cross compiling, we need to tell it to use the host protoc for the tests instead. This is done by adding this to the protobuf script \r\n\r\n```    \r\nif [ ${MASON_PLATFORM} = 'android' ]; then\r\n  PROTOC=\"--with-protoc=protoc\"\r\nfi\r\n\r\n./configure \\\r\n  --prefix=${MASON_PREFIX} \\\r\n  ${MASON_HOST_ARG} \\\r\n  --enable-static --disable-shared \\\r\n  --disable-debug --without-zlib \\\r\n  --disable-dependency-tracking \\\r\n  ${PROTOC:-}\r\n```\r\n\r\nNow, cross compiling protobuf for Android almost finishes. It fails at the very end, unable to link to the c++ stl itself.\r\n\r\nThe mess of errors is here: http://pastebin.com/s0bTwXLy\r\n\r\nI have protobuf compiling in my old dependency system, also using external toolchains from the ndk. Mason has a lot more flags being passed in, but nothing stands out between the two that would  break the linker."},"comment":{"url":"https://api.github.com/repos/mapbox/mason/issues/comments/289143765","html_url":"https://github.com/mapbox/mason/issues/395#issuecomment-289143765","issue_url":"https://api.github.com/repos/mapbox/mason/issues/395","id":289143765,"user":{"login":"edkimmel","id":3375008,"avatar_url":"https://avatars2.githubusercontent.com/u/3375008?v=3","gravatar_id":"","url":"https://api.github.com/users/edkimmel","html_url":"https://github.com/edkimmel","followers_url":"https://api.github.com/users/edkimmel/followers","following_url":"https://api.github.com/users/edkimmel/following{/other_user}","gists_url":"https://api.github.com/users/edkimmel/gists{/gist_id}","starred_url":"https://api.github.com/users/edkimmel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edkimmel/subscriptions","organizations_url":"https://api.github.com/users/edkimmel/orgs","repos_url":"https://api.github.com/users/edkimmel/repos","events_url":"https://api.github.com/users/edkimmel/events{/privacy}","received_events_url":"https://api.github.com/users/edkimmel/received_events","type":"User","site_admin":false},"created_at":"2017-03-24T21:10:40Z","updated_at":"2017-03-24T21:10:40Z","body":"I started taking apart the flags one by one. In this case, -mthumb was the culprit causing the builds errors."}}
{"actor":{"display_login":"edkimmel"}}