{"action":"closed","number":249,"pull_request":{"url":"https://api.github.com/repos/ruslo/polly/pulls/249","id":188377750,"html_url":"https://github.com/ruslo/polly/pull/249","diff_url":"https://github.com/ruslo/polly/pull/249.diff","patch_url":"https://github.com/ruslo/polly/pull/249.patch","issue_url":"https://api.github.com/repos/ruslo/polly/issues/249","number":249,"state":"closed","locked":false,"title":"Add cross Linux mingw gnuxx11","user":{"login":"NeroBurner","id":9076163,"avatar_url":"https://avatars1.githubusercontent.com/u/9076163?v=4","gravatar_id":"","url":"https://api.github.com/users/NeroBurner","html_url":"https://github.com/NeroBurner","followers_url":"https://api.github.com/users/NeroBurner/followers","following_url":"https://api.github.com/users/NeroBurner/following{/other_user}","gists_url":"https://api.github.com/users/NeroBurner/gists{/gist_id}","starred_url":"https://api.github.com/users/NeroBurner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NeroBurner/subscriptions","organizations_url":"https://api.github.com/users/NeroBurner/orgs","repos_url":"https://api.github.com/users/NeroBurner/repos","events_url":"https://api.github.com/users/NeroBurner/events{/privacy}","received_events_url":"https://api.github.com/users/NeroBurner/received_events","type":"User","site_admin":false},"body":"add toolchain crosscompiling from linux to windows using mingw-w64, enabling gnu++11\r\n\r\nI'm using this toolchain for ceres-solver mingw support (I'm trying to upgrade to hunter ceres-solver from 1.12 to 1.14 and additionally improve mingw support). Until now hunter ceres-solver with mingw only supports c++98. When enabling c++11 in mingw-w64 also `__STRICT_ANSI__` gets declared and the Bessel Functions `j0`, `j1`, `jn` are not defined by mingw-w64. With gnu++11 this problem isn't there\r\n\r\nAs a side note: As it seems the next ceres-solver (1.15) will require at least c++11 https://github.com/ceres-solver/ceres-solver/commit/282b8b5f35de02d653292c480796a1a53946c16c\r\n\r\nI also did not enable `-static` for this toolchain. For me with ceres-solver I get multiple definitions of glibc functions when using the `-static` flag in the toolchain. I recommend to use the static flag only for executables (and maybe dynamic libraries, haven't tested that).\r\nAn example of the linker errors when using `-static`\r\n```\r\n[100%] Linking CXX executable ../bin/ellipse_approximation.exe\r\n/usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/libgcc_eh.a(unwind-seh.o):(.text+0xb0): multiple definition of `_Unwind_GetIP'\r\n/usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/libgcc_s.a(d000009.o):(.text+0x0): first defined here\r\n/usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/libgcc_eh.a(unwind-seh.o):(.text+0xc0): multiple definition of `_Unwind_GetIPInfo'\r\n/usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/libgcc_s.a(d000010.o):(.text+0x0): first defined here\r\n/usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/libgcc_eh.a(unwind-seh.o):(.text+0x3c0): multiple definition of `_Unwind_Resume'\r\n/usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/libgcc_s.a(d000015.o):(.text+0x0): first defined here\r\n/usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/libgcc_eh.a(unwind-seh.o):(.text+0x4e0): multiple definition of `_Unwind_Backtrace'\r\n/usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/libgcc_s.a(d000002.o):(.text+0x0): first defined here\r\ncollect2: error: ld returned 1 exit status\r\n```","created_at":"2018-05-16T09:54:06Z","updated_at":"2018-05-16T10:10:37Z","closed_at":"2018-05-16T10:10:37Z","merged_at":"2018-05-16T10:10:37Z","merge_commit_sha":"bcff8766f9def24b6b554be69e88a62d143eed69","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ruslo/polly/pulls/249/commits","review_comments_url":"https://api.github.com/repos/ruslo/polly/pulls/249/comments","review_comment_url":"https://api.github.com/repos/ruslo/polly/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ruslo/polly/issues/249/comments","statuses_url":"https://api.github.com/repos/ruslo/polly/statuses/fa1a49ae7ddf87c7bf8ac1e8a1e5053b3cdbad09","head":{"label":"NeroBurner:linux_mingw_gnuxx11","ref":"linux_mingw_gnuxx11","sha":"fa1a49ae7ddf87c7bf8ac1e8a1e5053b3cdbad09","user":{"login":"NeroBurner","id":9076163,"avatar_url":"https://avatars1.githubusercontent.com/u/9076163?v=4","gravatar_id":"","url":"https://api.github.com/users/NeroBurner","html_url":"https://github.com/NeroBurner","followers_url":"https://api.github.com/users/NeroBurner/followers","following_url":"https://api.github.com/users/NeroBurner/following{/other_user}","gists_url":"https://api.github.com/users/NeroBurner/gists{/gist_id}","starred_url":"https://api.github.com/users/NeroBurner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NeroBurner/subscriptions","organizations_url":"https://api.github.com/users/NeroBurner/orgs","repos_url":"https://api.github.com/users/NeroBurner/repos","events_url":"https://api.github.com/users/NeroBurner/events{/privacy}","received_events_url":"https://api.github.com/users/NeroBurner/received_events","type":"User","site_admin":false},"repo":{"id":95012636,"name":"polly","full_name":"NeroBurner/polly","owner":{"login":"NeroBurner","id":9076163,"avatar_url":"https://avatars1.githubusercontent.com/u/9076163?v=4","gravatar_id":"","url":"https://api.github.com/users/NeroBurner","html_url":"https://github.com/NeroBurner","followers_url":"https://api.github.com/users/NeroBurner/followers","following_url":"https://api.github.com/users/NeroBurner/following{/other_user}","gists_url":"https://api.github.com/users/NeroBurner/gists{/gist_id}","starred_url":"https://api.github.com/users/NeroBurner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NeroBurner/subscriptions","organizations_url":"https://api.github.com/users/NeroBurner/orgs","repos_url":"https://api.github.com/users/NeroBurner/repos","events_url":"https://api.github.com/users/NeroBurner/events{/privacy}","received_events_url":"https://api.github.com/users/NeroBurner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NeroBurner/polly","description":" :wrench: Collection of CMake toolchain files and scripts for cross-platform build and CI testing (GCC, Visual Studio, iOS, Android, Clang analyzer, sanitizers etc.)","fork":true,"url":"https://api.github.com/repos/NeroBurner/polly","forks_url":"https://api.github.com/repos/NeroBurner/polly/forks","keys_url":"https://api.github.com/repos/NeroBurner/polly/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NeroBurner/polly/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NeroBurner/polly/teams","hooks_url":"https://api.github.com/repos/NeroBurner/polly/hooks","issue_events_url":"https://api.github.com/repos/NeroBurner/polly/issues/events{/number}","events_url":"https://api.github.com/repos/NeroBurner/polly/events","assignees_url":"https://api.github.com/repos/NeroBurner/polly/assignees{/user}","branches_url":"https://api.github.com/repos/NeroBurner/polly/branches{/branch}","tags_url":"https://api.github.com/repos/NeroBurner/polly/tags","blobs_url":"https://api.github.com/repos/NeroBurner/polly/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NeroBurner/polly/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NeroBurner/polly/git/refs{/sha}","trees_url":"https://api.github.com/repos/NeroBurner/polly/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NeroBurner/polly/statuses/{sha}","languages_url":"https://api.github.com/repos/NeroBurner/polly/languages","stargazers_url":"https://api.github.com/repos/NeroBurner/polly/stargazers","contributors_url":"https://api.github.com/repos/NeroBurner/polly/contributors","subscribers_url":"https://api.github.com/repos/NeroBurner/polly/subscribers","subscription_url":"https://api.github.com/repos/NeroBurner/polly/subscription","commits_url":"https://api.github.com/repos/NeroBurner/polly/commits{/sha}","git_commits_url":"https://api.github.com/repos/NeroBurner/polly/git/commits{/sha}","comments_url":"https://api.github.com/repos/NeroBurner/polly/comments{/number}","issue_comment_url":"https://api.github.com/repos/NeroBurner/polly/issues/comments{/number}","contents_url":"https://api.github.com/repos/NeroBurner/polly/contents/{+path}","compare_url":"https://api.github.com/repos/NeroBurner/polly/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NeroBurner/polly/merges","archive_url":"https://api.github.com/repos/NeroBurner/polly/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NeroBurner/polly/downloads","issues_url":"https://api.github.com/repos/NeroBurner/polly/issues{/number}","pulls_url":"https://api.github.com/repos/NeroBurner/polly/pulls{/number}","milestones_url":"https://api.github.com/repos/NeroBurner/polly/milestones{/number}","notifications_url":"https://api.github.com/repos/NeroBurner/polly/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NeroBurner/polly/labels{/name}","releases_url":"https://api.github.com/repos/NeroBurner/polly/releases{/id}","deployments_url":"https://api.github.com/repos/NeroBurner/polly/deployments","created_at":"2017-06-21T14:24:09Z","updated_at":"2018-05-16T08:57:46Z","pushed_at":"2018-05-16T08:57:29Z","git_url":"git://github.com/NeroBurner/polly.git","ssh_url":"git@github.com:NeroBurner/polly.git","clone_url":"https://github.com/NeroBurner/polly.git","svn_url":"https://github.com/NeroBurner/polly","homepage":"http://goo.gl/5JpHX","size":1385,"stargazers_count":0,"watchers_count":0,"language":"CMake","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ruslo:master","ref":"master","sha":"4dcb237f387d445d8b82e9c26a582b4ec7519855","user":{"login":"ruslo","id":4346993,"avatar_url":"https://avatars2.githubusercontent.com/u/4346993?v=4","gravatar_id":"","url":"https://api.github.com/users/ruslo","html_url":"https://github.com/ruslo","followers_url":"https://api.github.com/users/ruslo/followers","following_url":"https://api.github.com/users/ruslo/following{/other_user}","gists_url":"https://api.github.com/users/ruslo/gists{/gist_id}","starred_url":"https://api.github.com/users/ruslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruslo/subscriptions","organizations_url":"https://api.github.com/users/ruslo/orgs","repos_url":"https://api.github.com/users/ruslo/repos","events_url":"https://api.github.com/users/ruslo/events{/privacy}","received_events_url":"https://api.github.com/users/ruslo/received_events","type":"User","site_admin":false},"repo":{"id":14066763,"name":"polly","full_name":"ruslo/polly","owner":{"login":"ruslo","id":4346993,"avatar_url":"https://avatars2.githubusercontent.com/u/4346993?v=4","gravatar_id":"","url":"https://api.github.com/users/ruslo","html_url":"https://github.com/ruslo","followers_url":"https://api.github.com/users/ruslo/followers","following_url":"https://api.github.com/users/ruslo/following{/other_user}","gists_url":"https://api.github.com/users/ruslo/gists{/gist_id}","starred_url":"https://api.github.com/users/ruslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruslo/subscriptions","organizations_url":"https://api.github.com/users/ruslo/orgs","repos_url":"https://api.github.com/users/ruslo/repos","events_url":"https://api.github.com/users/ruslo/events{/privacy}","received_events_url":"https://api.github.com/users/ruslo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ruslo/polly","description":" :wrench: Collection of CMake toolchain files and scripts for cross-platform build and CI testing (GCC, Visual Studio, iOS, Android, Clang analyzer, sanitizers etc.)","fork":false,"url":"https://api.github.com/repos/ruslo/polly","forks_url":"https://api.github.com/repos/ruslo/polly/forks","keys_url":"https://api.github.com/repos/ruslo/polly/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ruslo/polly/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ruslo/polly/teams","hooks_url":"https://api.github.com/repos/ruslo/polly/hooks","issue_events_url":"https://api.github.com/repos/ruslo/polly/issues/events{/number}","events_url":"https://api.github.com/repos/ruslo/polly/events","assignees_url":"https://api.github.com/repos/ruslo/polly/assignees{/user}","branches_url":"https://api.github.com/repos/ruslo/polly/branches{/branch}","tags_url":"https://api.github.com/repos/ruslo/polly/tags","blobs_url":"https://api.github.com/repos/ruslo/polly/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ruslo/polly/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ruslo/polly/git/refs{/sha}","trees_url":"https://api.github.com/repos/ruslo/polly/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ruslo/polly/statuses/{sha}","languages_url":"https://api.github.com/repos/ruslo/polly/languages","stargazers_url":"https://api.github.com/repos/ruslo/polly/stargazers","contributors_url":"https://api.github.com/repos/ruslo/polly/contributors","subscribers_url":"https://api.github.com/repos/ruslo/polly/subscribers","subscription_url":"https://api.github.com/repos/ruslo/polly/subscription","commits_url":"https://api.github.com/repos/ruslo/polly/commits{/sha}","git_commits_url":"https://api.github.com/repos/ruslo/polly/git/commits{/sha}","comments_url":"https://api.github.com/repos/ruslo/polly/comments{/number}","issue_comment_url":"https://api.github.com/repos/ruslo/polly/issues/comments{/number}","contents_url":"https://api.github.com/repos/ruslo/polly/contents/{+path}","compare_url":"https://api.github.com/repos/ruslo/polly/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ruslo/polly/merges","archive_url":"https://api.github.com/repos/ruslo/polly/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ruslo/polly/downloads","issues_url":"https://api.github.com/repos/ruslo/polly/issues{/number}","pulls_url":"https://api.github.com/repos/ruslo/polly/pulls{/number}","milestones_url":"https://api.github.com/repos/ruslo/polly/milestones{/number}","notifications_url":"https://api.github.com/repos/ruslo/polly/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ruslo/polly/labels{/name}","releases_url":"https://api.github.com/repos/ruslo/polly/releases{/id}","deployments_url":"https://api.github.com/repos/ruslo/polly/deployments","created_at":"2013-11-02T13:43:23Z","updated_at":"2018-05-14T14:03:32Z","pushed_at":"2018-05-16T10:10:37Z","git_url":"git://github.com/ruslo/polly.git","ssh_url":"git@github.com:ruslo/polly.git","clone_url":"https://github.com/ruslo/polly.git","svn_url":"https://github.com/ruslo/polly","homepage":"http://goo.gl/5JpHX","size":1393,"stargazers_count":418,"watchers_count":418,"language":"CMake","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":110,"mirror_url":null,"archived":false,"open_issues_count":21,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause"},"forks":110,"open_issues":21,"watchers":418,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ruslo/polly/pulls/249"},"html":{"href":"https://github.com/ruslo/polly/pull/249"},"issue":{"href":"https://api.github.com/repos/ruslo/polly/issues/249"},"comments":{"href":"https://api.github.com/repos/ruslo/polly/issues/249/comments"},"review_comments":{"href":"https://api.github.com/repos/ruslo/polly/pulls/249/comments"},"review_comment":{"href":"https://api.github.com/repos/ruslo/polly/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ruslo/polly/pulls/249/commits"},"statuses":{"href":"https://api.github.com/repos/ruslo/polly/statuses/fa1a49ae7ddf87c7bf8ac1e8a1e5053b3cdbad09"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"ruslo","id":4346993,"avatar_url":"https://avatars2.githubusercontent.com/u/4346993?v=4","gravatar_id":"","url":"https://api.github.com/users/ruslo","html_url":"https://github.com/ruslo","followers_url":"https://api.github.com/users/ruslo/followers","following_url":"https://api.github.com/users/ruslo/following{/other_user}","gists_url":"https://api.github.com/users/ruslo/gists{/gist_id}","starred_url":"https://api.github.com/users/ruslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruslo/subscriptions","organizations_url":"https://api.github.com/users/ruslo/orgs","repos_url":"https://api.github.com/users/ruslo/repos","events_url":"https://api.github.com/users/ruslo/events{/privacy}","received_events_url":"https://api.github.com/users/ruslo/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":40,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"ruslo"}}