{"action":"created","issue":{"url":"https://api.github.com/repos/ldc-developers/ldc/issues/943","labels_url":"https://api.github.com/repos/ldc-developers/ldc/issues/943/labels{/name}","comments_url":"https://api.github.com/repos/ldc-developers/ldc/issues/943/comments","events_url":"https://api.github.com/repos/ldc-developers/ldc/issues/943/events","html_url":"https://github.com/ldc-developers/ldc/issues/943","id":80995316,"number":943,"title":"Windows: ICEs and blockers when building a VST plugin","user":{"login":"p0nce","id":1067485,"avatar_url":"https://avatars.githubusercontent.com/u/1067485?v=3","gravatar_id":"","url":"https://api.github.com/users/p0nce","html_url":"https://github.com/p0nce","followers_url":"https://api.github.com/users/p0nce/followers","following_url":"https://api.github.com/users/p0nce/following{/other_user}","gists_url":"https://api.github.com/users/p0nce/gists{/gist_id}","starred_url":"https://api.github.com/users/p0nce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p0nce/subscriptions","organizations_url":"https://api.github.com/users/p0nce/orgs","repos_url":"https://api.github.com/users/p0nce/repos","events_url":"https://api.github.com/users/p0nce/events{/privacy}","received_events_url":"https://api.github.com/users/p0nce/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-26T14:45:23Z","updated_at":"2015-05-26T16:48:11Z","closed_at":null,"body":"**Problem**\r\n\r\nTrying to build medium-sized shared libraries for Windows fail in various ways, among which ICEs.\r\nSpecifically this project: https://github.com/p0nce/dplug/tree/master/examples/distort\r\n\r\n**Setup:**\r\nWindows 8 64-bit\r\n- For 32-bit builds: ldc2-0.15.2-beta1-mingw-x86 for 32-bit builds with latest mingw-w64 toolchain\r\n- For 64-bit builds: ldc2-0.15.2-beta1-win64-msvc for 64-bit builds with MSVC 12.0 linker\r\n\r\n**To reproduce:**\r\n- checkout dplug: https://github.com/p0nce/dplug\r\n\r\n- go to the distort example: https://github.com/p0nce/dplug/tree/master/examples/distort\r\n\r\n- Build for 64-bit with DUB: `dub build --compiler=ldc --arch=x86_64`\r\n(use latest DUB to avoid bad 'x86_64' flags)\r\n\r\nThis will ask for many .lib that can be found in the Windows SDK. \r\n```\r\nAssertion failed: !(Pair.first != Ty && Pair.second == Ty) && \"mapping to a sour\r\nce type\", file D:\\Temp\\LDC-BUILD\\src\\llvm-3.6.0.src\\lib\\Linker\\LinkModules.cpp,\r\nline 265\r\n```\r\n\r\n**Another blocker that puzzles me**\r\n\r\n- Build a 32-bit debug version: `dub build --compiler=ldc --arch=x86 --combined`\r\n```\r\nD:/msys/build/src/ldc/runtime/druntime/src/core/sys/windows/dll.d:386: undefined\r\n reference to `_tlsstart'\r\nD:/msys/build/src/ldc/runtime/druntime/src/core/sys/windows/dll.d:386: undefined\r\n reference to `_tlsend'\r\nD:/msys/build/src/ldc/runtime/druntime/src/core/sys/windows/dll.d:386: undefined\r\n reference to `_tls_callbacks_a'\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ldc-developers/ldc/issues/comments/105599435","html_url":"https://github.com/ldc-developers/ldc/issues/943#issuecomment-105599435","issue_url":"https://api.github.com/repos/ldc-developers/ldc/issues/943","id":105599435,"user":{"login":"redstar","id":827859,"avatar_url":"https://avatars.githubusercontent.com/u/827859?v=3","gravatar_id":"","url":"https://api.github.com/users/redstar","html_url":"https://github.com/redstar","followers_url":"https://api.github.com/users/redstar/followers","following_url":"https://api.github.com/users/redstar/following{/other_user}","gists_url":"https://api.github.com/users/redstar/gists{/gist_id}","starred_url":"https://api.github.com/users/redstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redstar/subscriptions","organizations_url":"https://api.github.com/users/redstar/orgs","repos_url":"https://api.github.com/users/redstar/repos","events_url":"https://api.github.com/users/redstar/events{/privacy}","received_events_url":"https://api.github.com/users/redstar/received_events","type":"User","site_admin":false},"created_at":"2015-05-26T16:48:11Z","updated_at":"2015-05-26T16:48:11Z","body":"Building ldc on Windows is not really hard, see http://wiki.dlang.org/Building_and_hacking_LDC_on_Windows_using_MSVC."}}