{"action":"closed","issue":{"url":"https://api.github.com/repos/JetBrains/kotlin-native/issues/1734","repository_url":"https://api.github.com/repos/JetBrains/kotlin-native","labels_url":"https://api.github.com/repos/JetBrains/kotlin-native/issues/1734/labels{/name}","comments_url":"https://api.github.com/repos/JetBrains/kotlin-native/issues/1734/comments","events_url":"https://api.github.com/repos/JetBrains/kotlin-native/issues/1734/events","html_url":"https://github.com/JetBrains/kotlin-native/issues/1734","id":336137502,"node_id":"MDU6SXNzdWUzMzYxMzc1MDI=","number":1734,"title":"mingw: obsolete crt","user":{"login":"msink","id":1785275,"node_id":"MDQ6VXNlcjE3ODUyNzU=","avatar_url":"https://avatars3.githubusercontent.com/u/1785275?v=4","gravatar_id":"","url":"https://api.github.com/users/msink","html_url":"https://github.com/msink","followers_url":"https://api.github.com/users/msink/followers","following_url":"https://api.github.com/users/msink/following{/other_user}","gists_url":"https://api.github.com/users/msink/gists{/gist_id}","starred_url":"https://api.github.com/users/msink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msink/subscriptions","organizations_url":"https://api.github.com/users/msink/orgs","repos_url":"https://api.github.com/users/msink/repos","events_url":"https://api.github.com/users/msink/events{/privacy}","received_events_url":"https://api.github.com/users/msink/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"sbogolepov","id":1580082,"node_id":"MDQ6VXNlcjE1ODAwODI=","avatar_url":"https://avatars2.githubusercontent.com/u/1580082?v=4","gravatar_id":"","url":"https://api.github.com/users/sbogolepov","html_url":"https://github.com/sbogolepov","followers_url":"https://api.github.com/users/sbogolepov/followers","following_url":"https://api.github.com/users/sbogolepov/following{/other_user}","gists_url":"https://api.github.com/users/sbogolepov/gists{/gist_id}","starred_url":"https://api.github.com/users/sbogolepov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbogolepov/subscriptions","organizations_url":"https://api.github.com/users/sbogolepov/orgs","repos_url":"https://api.github.com/users/sbogolepov/repos","events_url":"https://api.github.com/users/sbogolepov/events{/privacy}","received_events_url":"https://api.github.com/users/sbogolepov/received_events","type":"User","site_admin":false},"assignees":[{"login":"sbogolepov","id":1580082,"node_id":"MDQ6VXNlcjE1ODAwODI=","avatar_url":"https://avatars2.githubusercontent.com/u/1580082?v=4","gravatar_id":"","url":"https://api.github.com/users/sbogolepov","html_url":"https://github.com/sbogolepov","followers_url":"https://api.github.com/users/sbogolepov/followers","following_url":"https://api.github.com/users/sbogolepov/following{/other_user}","gists_url":"https://api.github.com/users/sbogolepov/gists{/gist_id}","starred_url":"https://api.github.com/users/sbogolepov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbogolepov/subscriptions","organizations_url":"https://api.github.com/users/sbogolepov/orgs","repos_url":"https://api.github.com/users/sbogolepov/repos","events_url":"https://api.github.com/users/sbogolepov/events{/privacy}","received_events_url":"https://api.github.com/users/sbogolepov/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-06-27T08:58:03Z","updated_at":"2018-08-15T09:50:02Z","closed_at":"2018-08-15T09:50:01Z","author_association":"CONTRIBUTOR","body":"Trying to statically link SDL in Tetris sample:\r\n``` patch\r\n--- a/samples/tetris/build.gradle\r\n+++ b/samples/tetris/build.gradle\r\n@@ -51,7 +51,7 @@ konanArtifacts {\r\n         }\r\n \r\n         target 'mingw', {\r\n-            linkerOpts \"$resFile -L${System.getenv(\"MINGW64_DIR\")?:\"c:/msys64/mingw64\"}/lib -lSDL2 -mwindows\"\r\n+            linkerOpts \"$resFile -L${System.getenv(\"MINGW64_DIR\")?:\"c:/msys64/mingw64\"}/lib -static -lSDL2  -limm32 -lole32 -loleaut32 -lversion -lwinmm -mwindows\"\r\n             dependsOn 'windowsResources'\r\n             inputs.file resFile\r\n         }\r\n```\r\nget this error:\r\n```\r\n> Task :tetris:compileKonanTetrisMingw_x64\r\nc:\\msys64\\mingw64/lib\\libSDL2.a(SDL_assert.o):(.text+0x2e4): undefined reference to `__imp___acrt_iob_func'\r\nc:\\msys64\\mingw64/lib\\libSDL2.a(SDL_log.o):(.text+0xcb): undefined reference to `__imp___acrt_iob_func'\r\n```\r\nSeems like it's same as rust-lang/rust#47048 - msys2 now uses `mingw-w64-x86_64-crt-git-6.0.0`, but Kotlin uses bundled with clang-5.0 `mingw-w64-x86_64-crt-git-5.0.0`.\r\n\r\n"}}
{"actor":{"display_login":"sbogolepov"}}