{"action":"created","issue":{"url":"https://api.github.com/repos/mattgodbolt/compiler-explorer/issues/438","repository_url":"https://api.github.com/repos/mattgodbolt/compiler-explorer","labels_url":"https://api.github.com/repos/mattgodbolt/compiler-explorer/issues/438/labels{/name}","comments_url":"https://api.github.com/repos/mattgodbolt/compiler-explorer/issues/438/comments","events_url":"https://api.github.com/repos/mattgodbolt/compiler-explorer/issues/438/events","html_url":"https://github.com/mattgodbolt/compiler-explorer/issues/438","id":230874576,"number":438,"title":"`-flto` does not work with LDC","user":{"login":"JohanEngelen","id":10983051,"avatar_url":"https://avatars2.githubusercontent.com/u/10983051?v=3","gravatar_id":"","url":"https://api.github.com/users/JohanEngelen","html_url":"https://github.com/JohanEngelen","followers_url":"https://api.github.com/users/JohanEngelen/followers","following_url":"https://api.github.com/users/JohanEngelen/following{/other_user}","gists_url":"https://api.github.com/users/JohanEngelen/gists{/gist_id}","starred_url":"https://api.github.com/users/JohanEngelen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohanEngelen/subscriptions","organizations_url":"https://api.github.com/users/JohanEngelen/orgs","repos_url":"https://api.github.com/users/JohanEngelen/repos","events_url":"https://api.github.com/users/JohanEngelen/events{/privacy}","received_events_url":"https://api.github.com/users/JohanEngelen/received_events","type":"User","site_admin":false},"labels":[{"id":341319655,"url":"https://api.github.com/repos/mattgodbolt/compiler-explorer/labels/compiler-issue","name":"compiler-issue","color":"006b75","default":false},{"id":506174353,"url":"https://api.github.com/repos/mattgodbolt/compiler-explorer/labels/D","name":"D","color":"bfd4f2","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2017-05-23T23:06:31Z","updated_at":"2017-06-15T16:05:12Z","closed_at":"2017-06-14T23:03:16Z","body":"The cmdline option `-flto=thin` (or `-flto=full`) does not work with LDC.\r\nhttps://godbolt.org/g/YokGlg\r\n\r\nLDC searches for the required LLVMgold.so plugin in the path and in LDC's own path.\r\nLLVMgold.so has to match or be newer than the LLVM version used to build LDC, so that can become a problem. When LLVM is built with the correct option to build LLVMgold.so, LDC will copy it to its own installation and rename it to include \"ldc\" in the name and it will take priority over a potential LLVMgold.so in the system path.\r\n\r\nThe current image downloads the release package of LDC, and these unfortunately don't include LLVMgold.so (because of potential system incompatibilities...).\r\n\r\nDon't know what would be a good solution here, other than building LLVM+LDC from scratch...\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mattgodbolt/compiler-explorer/issues/comments/308786349","html_url":"https://github.com/mattgodbolt/compiler-explorer/issues/438#issuecomment-308786349","issue_url":"https://api.github.com/repos/mattgodbolt/compiler-explorer/issues/438","id":308786349,"user":{"login":"JohanEngelen","id":10983051,"avatar_url":"https://avatars2.githubusercontent.com/u/10983051?v=3","gravatar_id":"","url":"https://api.github.com/users/JohanEngelen","html_url":"https://github.com/JohanEngelen","followers_url":"https://api.github.com/users/JohanEngelen/followers","following_url":"https://api.github.com/users/JohanEngelen/following{/other_user}","gists_url":"https://api.github.com/users/JohanEngelen/gists{/gist_id}","starred_url":"https://api.github.com/users/JohanEngelen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohanEngelen/subscriptions","organizations_url":"https://api.github.com/users/JohanEngelen/orgs","repos_url":"https://api.github.com/users/JohanEngelen/repos","events_url":"https://api.github.com/users/JohanEngelen/events{/privacy}","received_events_url":"https://api.github.com/users/JohanEngelen/received_events","type":"User","site_admin":false},"created_at":"2017-06-15T16:05:12Z","updated_at":"2017-06-15T16:05:12Z","body":"It'd be good if the LLVM version could be specified as script argument. E.g.:\r\n`./build-ldc.sh 1.1.0 3.9.0 s3://compiler-explorer/opt/`  to build LDC 1.1.0 with LLVM 3.9.0.\r\n\r\nHow to proceed from here? Change this script somehow https://github.com/mattgodbolt/compiler-explorer-image/blob/master/update_compilers/install_compilers.sh ?"}}
{"actor":{"display_login":"JohanEngelen"}}