{"action":"closed","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/27170","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/27170/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/27170/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/27170/events","html_url":"https://github.com/NixOS/nixpkgs/issues/27170","id":240936079,"number":27170,"title":"Haskell library builds via cabal but not via nix","user":{"login":"idontgetoutmuch","id":1550265,"avatar_url":"https://avatars0.githubusercontent.com/u/1550265?v=4","gravatar_id":"","url":"https://api.github.com/users/idontgetoutmuch","html_url":"https://github.com/idontgetoutmuch","followers_url":"https://api.github.com/users/idontgetoutmuch/followers","following_url":"https://api.github.com/users/idontgetoutmuch/following{/other_user}","gists_url":"https://api.github.com/users/idontgetoutmuch/gists{/gist_id}","starred_url":"https://api.github.com/users/idontgetoutmuch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idontgetoutmuch/subscriptions","organizations_url":"https://api.github.com/users/idontgetoutmuch/orgs","repos_url":"https://api.github.com/users/idontgetoutmuch/repos","events_url":"https://api.github.com/users/idontgetoutmuch/events{/privacy}","received_events_url":"https://api.github.com/users/idontgetoutmuch/received_events","type":"User","site_admin":false},"labels":[{"id":90308187,"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/6.topic:%20darwin","name":"6.topic: darwin","color":"fef2c0","default":false},{"id":99513706,"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/6.topic:%20haskell","name":"6.topic: haskell","color":"fef2c0","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2017-07-06T12:11:12Z","updated_at":"2018-03-23T10:14:39Z","closed_at":"2018-03-23T10:14:39Z","author_association":"CONTRIBUTOR","body":"## Issue description\r\n\r\nThis works\r\n```\r\ncabal configure\r\ncabal build\r\n```\r\n\r\nbut this doesn't\r\n\r\n```\r\ncabal2nix ./integrators.cabal --sha256=\"\" --shell > default.nix\r\nnix-shell --run \"cabal configure\"\r\n cabal build\r\n```\r\n\r\n### Steps to reproduce\r\n\r\nSee above - building via nix gives\r\n\r\n```\r\nBuilding integrators-0.1.0.0...\r\nPreprocessing library integrators-0.1.0.0...\r\nPreprocessing executable 'Kepler' for integrators-0.1.0.0...\r\nLinking dist/build/Kepler/Kepler ...\r\n\r\nIn file included from /var/folders/3p/m593dprn5snbjz6sc45c77f80000gn/T/ghc16437_0/ghc_1.c:1:0: error:\r\n    \r\n\r\nIn file included from /nix/store/aywrg07n9wmfsr3vx58ljb8vjlf6yfai-ghc-8.0.2/lib/ghc-8.0.2/include/Rts.h:217:0: error:\r\n    \r\n\r\n/nix/store/aywrg07n9wmfsr3vx58ljb8vjlf6yfai-ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:505:5: error:\r\n     warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]\r\n#if ZERO_SLOP_FOR_LDV_PROF || ZERO_SLOP_FOR_SANITY_CHECK\r\n    ^\r\n\r\n/nix/store/aywrg07n9wmfsr3vx58ljb8vjlf6yfai-ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:502:37: error:\r\n     note: expanded from macro 'ZERO_SLOP_FOR_LDV_PROF'\r\n#define ZERO_SLOP_FOR_LDV_PROF     (defined(PROFILING))\r\n                                    ^\r\n\r\n/nix/store/aywrg07n9wmfsr3vx58ljb8vjlf6yfai-ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:505:31: error:\r\n     warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]\r\n#if ZERO_SLOP_FOR_LDV_PROF || ZERO_SLOP_FOR_SANITY_CHECK\r\n                              ^\r\n\r\n/nix/store/aywrg07n9wmfsr3vx58ljb8vjlf6yfai-ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:503:37: error:\r\n     note: expanded from macro 'ZERO_SLOP_FOR_SANITY_CHECK'\r\n#define ZERO_SLOP_FOR_SANITY_CHECK (defined(DEBUG) && !defined(THREADED_RTS))\r\n                                    ^\r\n\r\n/nix/store/aywrg07n9wmfsr3vx58ljb8vjlf6yfai-ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:505:31: error:\r\n     warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]\r\n\r\n/nix/store/aywrg07n9wmfsr3vx58ljb8vjlf6yfai-ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:503:56: error:\r\n     note: expanded from macro 'ZERO_SLOP_FOR_SANITY_CHECK'\r\n#define ZERO_SLOP_FOR_SANITY_CHECK (defined(DEBUG) && !defined(THREADED_RTS))\r\n                                                       ^\r\n\r\n/nix/store/aywrg07n9wmfsr3vx58ljb8vjlf6yfai-ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:523:5: error:\r\n     warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]\r\n#if ZERO_SLOP_FOR_LDV_PROF && !ZERO_SLOP_FOR_SANITY_CHECK\r\n    ^\r\n\r\n/nix/store/aywrg07n9wmfsr3vx58ljb8vjlf6yfai-ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:502:37: error:\r\n     note: expanded from macro 'ZERO_SLOP_FOR_LDV_PROF'\r\n#define ZERO_SLOP_FOR_LDV_PROF     (defined(PROFILING))\r\n                                    ^\r\n\r\n/nix/store/aywrg07n9wmfsr3vx58ljb8vjlf6yfai-ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:523:32: error:\r\n     warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]\r\n#if ZERO_SLOP_FOR_LDV_PROF && !ZERO_SLOP_FOR_SANITY_CHECK\r\n                               ^\r\n\r\n/nix/store/aywrg07n9wmfsr3vx58ljb8vjlf6yfai-ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:503:37: error:\r\n     note: expanded from macro 'ZERO_SLOP_FOR_SANITY_CHECK'\r\n#define ZERO_SLOP_FOR_SANITY_CHECK (defined(DEBUG) && !defined(THREADED_RTS))\r\n                                    ^\r\n\r\n/nix/store/aywrg07n9wmfsr3vx58ljb8vjlf6yfai-ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:523:32: error:\r\n     warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]\r\n\r\n/nix/store/aywrg07n9wmfsr3vx58ljb8vjlf6yfai-ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:503:56: error:\r\n     note: expanded from macro 'ZERO_SLOP_FOR_SANITY_CHECK'\r\n#define ZERO_SLOP_FOR_SANITY_CHECK (defined(DEBUG) && !defined(THREADED_RTS))\r\n                                                       ^\r\n\r\n/nix/store/aywrg07n9wmfsr3vx58ljb8vjlf6yfai-ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:552:5: error:\r\n     warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]\r\n#if ZERO_SLOP_FOR_LDV_PROF && !ZERO_SLOP_FOR_SANITY_CHECK\r\n    ^\r\n\r\n/nix/store/aywrg07n9wmfsr3vx58ljb8vjlf6yfai-ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:502:37: error:\r\n     note: expanded from macro 'ZERO_SLOP_FOR_LDV_PROF'\r\n#define ZERO_SLOP_FOR_LDV_PROF     (defined(PROFILING))\r\n                                    ^\r\n\r\n/nix/store/aywrg07n9wmfsr3vx58ljb8vjlf6yfai-ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:552:32: error:\r\n     warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]\r\n#if ZERO_SLOP_FOR_LDV_PROF && !ZERO_SLOP_FOR_SANITY_CHECK\r\n                               ^\r\n\r\n/nix/store/aywrg07n9wmfsr3vx58ljb8vjlf6yfai-ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:503:37: error:\r\n     note: expanded from macro 'ZERO_SLOP_FOR_SANITY_CHECK'\r\n#define ZERO_SLOP_FOR_SANITY_CHECK (defined(DEBUG) && !defined(THREADED_RTS))\r\n                                    ^\r\n\r\n/nix/store/aywrg07n9wmfsr3vx58ljb8vjlf6yfai-ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:552:32: error:\r\n     warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]\r\n\r\n/nix/store/aywrg07n9wmfsr3vx58ljb8vjlf6yfai-ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:503:56: error:\r\n     note: expanded from macro 'ZERO_SLOP_FOR_SANITY_CHECK'\r\n#define ZERO_SLOP_FOR_SANITY_CHECK (defined(DEBUG) && !defined(THREADED_RTS))\r\n                                                       ^\r\n9 warnings generated.\r\nld: framework not found Cocoa\r\nclang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)\r\n`cc' failed in phase `Linker'. (Exit code: 1)\r\n```\r\n\r\n## Technical details\r\n\r\n* System: (NixOS: `nixos-version`, Ubuntu/Fedora: `lsb_release -a`, ...)\r\n\r\n```\r\n  System Version:\tOS X 10.11.5 (15F34)\r\n  Kernel Version:\tDarwin 15.5.0\r\n```\r\n\r\n* Nix version: (run `nix-env --version`)\r\n\r\n```\r\nnix-env (Nix) 1.11.9\r\n```\r\n\r\n* Nixpkgs version: (run `nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion`)\r\n\r\n```\r\n\"17.09pre108299.ec9a23332f\"\r\n```\r\n\r\n* Sandboxing enabled: (run `grep build-use-sandbox /etc/nix/nix.conf`)\r\n\r\nNo such file."}}
{"actor":{"display_login":"idontgetoutmuch"}}