typeable / nixpkgs-stackage

Stackage overlay for Nixpkgs
25 stars 14 forks source link

Can not build stackage2nix on current NixOS-18.09.1571.7795a7ad5f0 #38

Open s9gf4ult opened 5 years ago

s9gf4ult commented 5 years ago
  1. Setup overlay
  2. nix-env -i stackage2nix
Preprocessing library for hlibgit2-0.18.0.16..
cc1: error: -Wformat-security ignored without -Wformat [-Werror=format-security]
cc1: some warnings being treated as errors
compiling dist/build/Bindings/Libgit2/Attr_hsc_make.c failed (exit code 1)
command was: /nix/store/iw94llkj05wgaz268mlzvgx8jkbi1ss0-gcc-wrapper-7.3.0/bin/gcc -c dist/build/Bindings/Libgit2/Attr_hsc_make.c -o dist/build/Bindings/Libgit2/Attr_hsc_make.o -fno-stack-protector -fno-stack-protector -D__GLASGOW_HASKELL__=804 -Dlinux_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dlinux_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -Ilibgit2/include -Ilibgit2/src -Ilibgit2/deps/http-parser -Ilibgit2/src/unix -I/nix/store/hm94hdjk239fqicmygl3a48zqqqil14j-openssl-1.0.2p-dev/include -Idist/build/libgit2/include -Idist/build/libgit2/src -Idist/build/libgit2/deps/http-parser -Idist/build/libgit2/src/unix -I/nix/store/hm94hdjk239fqicmygl3a48zqqqil14j-openssl-1.0.2p-dev/include -DGIT_THREADS -D_FILE_OFFSET_BITS=64 -DGIT_SSL -Wno-format -D_GNU_SOURCE -DOPENSSL_SHA1 -Wno-deprecated-declarations -Idist/build/autogen -Idist/build/global-autogen -include dist/build/autogen/cabal_macros.h -I/nix/store/dhrcg5drmihd0s4cmavg4dj5x9h628xm-zlib-1.2.11-dev/include -I/nix/store/c9dx8amqj2ciphgb80iksvaysw04k3q8-ghc-8.4.3/lib/ghc-8.4.3/bytestring-0.10.8.2/include -I/nix/store/zavifyq1i5p14gkldincwbl3r82z00y2-bindings-DSL-1.0.25/lib/ghc-8.4.3/x86_64-linux-ghc-8.4.3/bindings-DSL-1.0.25-54Ns4yFvnsmG51FXSFcoWY/include -I/nix/store/c9dx8amqj2ciphgb80iksvaysw04k3q8-ghc-8.4.3/lib/ghc-8.4.3/base-4.11.1.0/include -I/nix/store/ipba8r4418ls0j55p5y5gi4zmg2kna5n-gmp-6.1.2-dev/include -I/nix/store/c9dx8amqj2ciphgb80iksvaysw04k3q8-ghc-8.4.3/lib/ghc-8.4.3/integer-gmp-1.0.2.0/include -I/nix/store/c9dx8amqj2ciphgb80iksvaysw04k3q8-ghc-8.4.3/lib/ghc-8.4.3/include -I/nix/store/c9dx8amqj2ciphgb80iksvaysw04k3q8-ghc-8.4.3/lib/ghc-8.4.3/include/
builder for '/nix/store/q0qwvkfk55qfvbdvxy1ng11rjy8avma5-hlibgit2-0.18.0.16.drv' failed with exit code 1
building '/nix/store/shln9gvxz5dd1maqdn9rp98rwalxqn8c-foundation-0.0.21.drv'...
cannot build derivation '/nix/store/6dmwyvybc6n3i9bjgz8vn1n43kk6z97b-gitlib-libgit2-3.1.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/6ks072jmjdc5laygkns77245w0r8qkcj-stackage2nix-0.7.2.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/f0maklm58zgwbj8xbfn7smlxhziswcpx-stackage2nix-0.7.2.drv': 1 dependencies couldn't be built
error: build of '/nix/store/f0maklm58zgwbj8xbfn7smlxhziswcpx-stackage2nix-0.7.2.drv' failed
s9gf4ult commented 5 years ago

https://github.com/s9gf4ult/nixpkgs-stackage/commit/37e3c964a79cc4bf0d76d83b231decfdb793c0a5

Here is the quick and dirty fix for that. I think this overlay must be regenerated with this option for hlibgit2 in all LTS releases.

s9gf4ult commented 5 years ago

now it fails on lens

Warning:
    This package indirectly depends on multiple versions of the same package. This is very likely to cause a compile failure.
      package lens (lens-4.16.1) requires mtl-2.2.2
      package regex-base (regex-base-0.93.2-BrLeY3n7iTiF7ZRsG36bEr) requires mtl-2.2.2-H6VCvxuPKhIEqTKU4dasKD
      package kan-extensions (kan-extensions-5.2-Lo4HVY2QNt35Vas86gpl49) requires mtl-2.2.2-H6VCvxuPKhIEqTKU4dasKD
      package free (free-5.0.2-F8DY7Nk6lcVCv5mU0vqlrT) requires mtl-2.2.2-H6VCvxuPKhIEqTKU4dasKD
      package exceptions (exceptions-0.10.0-GpULspZlu7e943m0A93veZ) requires mtl-2.2.2-H6VCvxuPKhIEqTKU4dasKD
      package adjunctions (adjunctions-4.4-3lgUVn16Qa0GjVeVZFCtwL) requires mtl-2.2.2-H6VCvxuPKhIEqTKU4dasKD

and later

/nix/store/s2h1ssv92djzj2b16w7xm4w7rjic7bqz-ghc-8.4.3/bin/runghc
Using strip version 2.30 found on system at:
/nix/store/b0yc8vswfzcanhdm6dgmfmdcgjmxvxa0-binutils-2.30/bin/strip
Using tar found on system at:
/nix/store/z5r5s8ccp7hlxkmaijhdikppcawa6d0p-gnutar-1.30/bin/tar
No uhc found
*** abort because of serious configure-time warning from Cabal
builder for '/nix/store/4as1jczdmy1qqf5136b29ix8hyafyndk-lens-4.16.1.drv' failed with exit code 1
cannot build derivation '/nix/store/9pahs23kj851b2xdg0pmqyfzydylczhw-amazonka-core-1.6.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/3zjbn8jgh5mwv88n5y2sq6wqbjx15cv3-language-nix-2.1.0.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/lhyw1nzzkv17q6lnslg89p8gwgsmd1pc-amazonka-1.6.0.drv': 1 dependencies couldn't be built

I am confused, what versions of packages are different? AFAICS there is one version of mtl which is mtl-2.2.2-H6VCvxuPKhIEqTKU4dasKD