{"action":"created","issue":{"url":"https://api.github.com/repos/snowleopard/shaking-up-ghc/issues/164","labels_url":"https://api.github.com/repos/snowleopard/shaking-up-ghc/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/snowleopard/shaking-up-ghc/issues/164/comments","events_url":"https://api.github.com/repos/snowleopard/shaking-up-ghc/issues/164/events","html_url":"https://github.com/snowleopard/shaking-up-ghc/issues/164","id":126396591,"number":164,"title":"GNU-specific linker option is used even when GCC is not using GNU linker","user":{"login":"kgardas","id":578505,"avatar_url":"https://avatars.githubusercontent.com/u/578505?v=3","gravatar_id":"","url":"https://api.github.com/users/kgardas","html_url":"https://github.com/kgardas","followers_url":"https://api.github.com/users/kgardas/followers","following_url":"https://api.github.com/users/kgardas/following{/other_user}","gists_url":"https://api.github.com/users/kgardas/gists{/gist_id}","starred_url":"https://api.github.com/users/kgardas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kgardas/subscriptions","organizations_url":"https://api.github.com/users/kgardas/orgs","repos_url":"https://api.github.com/users/kgardas/repos","events_url":"https://api.github.com/users/kgardas/events{/privacy}","received_events_url":"https://api.github.com/users/kgardas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/snowleopard/shaking-up-ghc/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/snowleopard/shaking-up-ghc/labels/Solaris","name":"Solaris","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/snowleopard/shaking-up-ghc/milestones/2","html_url":"https://github.com/snowleopard/shaking-up-ghc/milestones/tree-tremble","labels_url":"https://api.github.com/repos/snowleopard/shaking-up-ghc/milestones/2/labels","id":1498606,"number":2,"title":"tree-tremble","description":"We become a part of the GHC tree.","creator":{"login":"snowleopard","id":675286,"avatar_url":"https://avatars.githubusercontent.com/u/675286?v=3","gravatar_id":"","url":"https://api.github.com/users/snowleopard","html_url":"https://github.com/snowleopard","followers_url":"https://api.github.com/users/snowleopard/followers","following_url":"https://api.github.com/users/snowleopard/following{/other_user}","gists_url":"https://api.github.com/users/snowleopard/gists{/gist_id}","starred_url":"https://api.github.com/users/snowleopard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snowleopard/subscriptions","organizations_url":"https://api.github.com/users/snowleopard/orgs","repos_url":"https://api.github.com/users/snowleopard/repos","events_url":"https://api.github.com/users/snowleopard/events{/privacy}","received_events_url":"https://api.github.com/users/snowleopard/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":0,"state":"open","created_at":"2016-01-12T00:37:55Z","updated_at":"2016-01-13T15:07:16Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-01-13T11:18:41Z","updated_at":"2016-01-14T17:37:38Z","closed_at":null,"body":"On Solaris compilation fails with:\r\n```\r\n -I/tmp/shake-test/includes/dist-derivedconstants/header -optP-include -optP.build/stage1/libraries/base/build/autogen/cabal_macros.h -this-package-key base -XHaskell2010 -optP-DOPTIMISE_INTEGER_GCD_LCM -odir .build/stage1/libraries/base/build -hidir .build/stage1/libraries/base/build -stubdir .build/stage1/libraries/base/build -rtsopts -H32m -O2 -c libraries/base/GHC/Float.hs -o .build/stage1/libraries/base/build/GHC/Float.o\r\nExit code: 1\r\nStderr:\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`gcc' failed in phase `Linker'. (Exit code: 1)\r\n)\r\n```\r\nthis is due to internal GCC invocation which looks\r\n```\r\n*** Linker:\r\n/usr/bin/gcc -U__i686 -fno-stack-protector -DTABLES_NEXT_TO_CODE -nostdlib -Wl,-r -nodefaultlibs '-Wl,--build-id=none' -o .build/stage1/libraries/base/build/GHC/Float.o /tmp/ghc11114_0/ghc_9.ldscript\r\n```\r\n```--build-id=<something>``` is GNU specific option not supported by the Solaris linker."},"comment":{"url":"https://api.github.com/repos/snowleopard/shaking-up-ghc/issues/comments/171717824","html_url":"https://github.com/snowleopard/shaking-up-ghc/issues/164#issuecomment-171717824","issue_url":"https://api.github.com/repos/snowleopard/shaking-up-ghc/issues/164","id":171717824,"user":{"login":"snowleopard","id":675286,"avatar_url":"https://avatars.githubusercontent.com/u/675286?v=3","gravatar_id":"","url":"https://api.github.com/users/snowleopard","html_url":"https://github.com/snowleopard","followers_url":"https://api.github.com/users/snowleopard/followers","following_url":"https://api.github.com/users/snowleopard/following{/other_user}","gists_url":"https://api.github.com/users/snowleopard/gists{/gist_id}","starred_url":"https://api.github.com/users/snowleopard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snowleopard/subscriptions","organizations_url":"https://api.github.com/users/snowleopard/orgs","repos_url":"https://api.github.com/users/snowleopard/repos","events_url":"https://api.github.com/users/snowleopard/events{/privacy}","received_events_url":"https://api.github.com/users/snowleopard/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T17:37:38Z","updated_at":"2016-01-14T17:37:38Z","body":"Interesting, thanks for finding this. However, I don't see how the build system is involved:\r\n* File `settings` is produced by `configure` from `settings.in`\r\n* File `settings` is used directly by GHC, and apparently this is where the failure occurs.\r\nHow can this be fixed in the build system? Does the old build system work for you?"}}