{"action":"created","issue":{"url":"https://api.github.com/repos/Intrepid/llvm-upc/issues/13","labels_url":"https://api.github.com/repos/Intrepid/llvm-upc/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/Intrepid/llvm-upc/issues/13/comments","events_url":"https://api.github.com/repos/Intrepid/llvm-upc/issues/13/events","html_url":"https://github.com/Intrepid/llvm-upc/issues/13","id":56470754,"number":13,"title":"Build failure (bad linker flags) on Solaris-11","user":{"login":"PHHargrove","id":6687992,"avatar_url":"https://avatars.githubusercontent.com/u/6687992?v=3","gravatar_id":"","url":"https://api.github.com/users/PHHargrove","html_url":"https://github.com/PHHargrove","followers_url":"https://api.github.com/users/PHHargrove/followers","following_url":"https://api.github.com/users/PHHargrove/following{/other_user}","gists_url":"https://api.github.com/users/PHHargrove/gists{/gist_id}","starred_url":"https://api.github.com/users/PHHargrove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PHHargrove/subscriptions","organizations_url":"https://api.github.com/users/PHHargrove/orgs","repos_url":"https://api.github.com/users/PHHargrove/repos","events_url":"https://api.github.com/users/PHHargrove/events{/privacy}","received_events_url":"https://api.github.com/users/PHHargrove/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-04T02:20:28Z","updated_at":"2015-02-04T03:36:48Z","closed_at":null,"body":"My Solaris-11/x86-64 builds that were working a while ago are now failing as follows:\r\n```\r\nllvm[2]: Linking Release+Asserts executable llvm-tblgen\r\nld: fatal: unrecognized option '--'\r\nld: fatal: use the -z help option for usage information\r\ncollect2: error: ld returned 1 exit status\r\n```\r\n\r\nThe message `ld: fatal: use the -z help option for usage information` is from the Solaris linker, `/usr/bin/ld`, while the `--` argument is probably intended for the Gnu linker.  So, this appears to be related to use of the Gnu-vs-Solaris linker.  Previously I know I needed to ensure /usr/gnu/bin was in my PATH prior to /usr/bin, but that no longer appears sufficient.\r\n\r\nThere may be a way to get the right behavior via arguments to configure or cmake.\r\nI delayed reporting this for 2 days hoping to find the magical args required, but have not yet found the time to investigate.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Intrepid/llvm-upc/issues/comments/72784966","html_url":"https://github.com/Intrepid/llvm-upc/issues/13#issuecomment-72784966","issue_url":"https://api.github.com/repos/Intrepid/llvm-upc/issues/13","id":72784966,"user":{"login":"PHHargrove","id":6687992,"avatar_url":"https://avatars.githubusercontent.com/u/6687992?v=3","gravatar_id":"","url":"https://api.github.com/users/PHHargrove","html_url":"https://github.com/PHHargrove","followers_url":"https://api.github.com/users/PHHargrove/followers","following_url":"https://api.github.com/users/PHHargrove/following{/other_user}","gists_url":"https://api.github.com/users/PHHargrove/gists{/gist_id}","starred_url":"https://api.github.com/users/PHHargrove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PHHargrove/subscriptions","organizations_url":"https://api.github.com/users/PHHargrove/orgs","repos_url":"https://api.github.com/users/PHHargrove/repos","events_url":"https://api.github.com/users/PHHargrove/events{/privacy}","received_events_url":"https://api.github.com/users/PHHargrove/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T03:36:48Z","updated_at":"2015-02-04T03:36:48Z","body":"This now appears to be \"pilot error\".\r\n\r\nBecause the system gcc is 4.5, I had built my own gcc-4.9.2 to compile llvm+clang.\r\nThat gcc defaulted to using the Solaris linker.\r\nI am now rebuilding gcc-4.9.2 to use the gnu linker instead.\r\nI suspect that will be sufficient to resolve the problem.\r\n\r\nI will close once I've confirmed the proposed fix."}}