KiaraGrouwstra / nix-config

my NixOS configuration
15 stars 1 forks source link

zeromq4-haskell install fails #54

Closed KiaraGrouwstra closed 5 years ago

KiaraGrouwstra commented 6 years ago
building
Preprocessing library for zeromq4-haskell-0.7.0..
Building library for zeromq4-haskell-0.7.0..
[1 of 6] Compiling Data.Restricted  ( src/Data/Restricted.hs, dist/build/Data/Restricted.o )
[2 of 6] Compiling System.ZMQ4.Internal.Base ( dist/build/System/ZMQ4/Internal/Base.hs, dist/build/System/ZMQ4/Internal/Base.o )
[3 of 6] Compiling System.ZMQ4.Internal.Error ( src/System/ZMQ4/Internal/Error.hs, dist/build/System/ZMQ4/Internal/Error.o )
[4 of 6] Compiling System.ZMQ4.Internal ( src/System/ZMQ4/Internal.hs, dist/build/System/ZMQ4/Internal.o )
[5 of 6] Compiling System.ZMQ4      ( src/System/ZMQ4.hs, dist/build/System/ZMQ4.o )
[6 of 6] Compiling System.ZMQ4.Monadic ( src/System/ZMQ4/Monadic.hs, dist/build/System/ZMQ4/Monadic.o )

src/System/ZMQ4/Monadic.hs:250:10: warning: [-Wmissing-methods]
    • No explicit implementation for
        ‘generalBracket’
    • In the instance declaration for ‘MonadMask (ZMQ z)’
    |
250 | instance MonadMask (ZMQ z) where
    |          ^^^^^^^^^^^^^^^^^
[1 of 6] Compiling Data.Restricted  ( src/Data/Restricted.hs, dist/build/Data/Restricted.p_o )
[2 of 6] Compiling System.ZMQ4.Internal.Base ( dist/build/System/ZMQ4/Internal/Base.hs, dist/build/System/ZMQ4/Internal/Base.p_o )
[3 of 6] Compiling System.ZMQ4.Internal.Error ( src/System/ZMQ4/Internal/Error.hs, dist/build/System/ZMQ4/Internal/Error.p_o )
[4 of 6] Compiling System.ZMQ4.Internal ( src/System/ZMQ4/Internal.hs, dist/build/System/ZMQ4/Internal.p_o )
[5 of 6] Compiling System.ZMQ4      ( src/System/ZMQ4.hs, dist/build/System/ZMQ4.p_o )
[6 of 6] Compiling System.ZMQ4.Monadic ( src/System/ZMQ4/Monadic.hs, dist/build/System/ZMQ4/Monadic.p_o )

src/System/ZMQ4/Monadic.hs:250:10: warning: [-Wmissing-methods]
    • No explicit implementation for
        ‘generalBracket’
    • In the instance declaration for ‘MonadMask (ZMQ z)’
    |
250 | instance MonadMask (ZMQ z) where
    |          ^^^^^^^^^^^^^^^^^
ignoring (possibly broken) abi-depends field for packages
Preprocessing test suite 'zeromq-haskell-tests' for zeromq4-haskell-0.7.0..
Building test suite 'zeromq-haskell-tests' for zeromq4-haskell-0.7.0..
[1 of 2] Compiling System.ZMQ4.Test.Properties ( tests/System/ZMQ4/Test/Properties.hs, dist/build/zeromq-haskell-tests/zeromq-haskell-tests-tmp/System/ZMQ4/Test/Properties.o )

tests/System/ZMQ4/Test/Properties.hs:85:60: warning: [-Wdeprecations]
    In the use of ‘setIpv4Only’ (imported from System.ZMQ4.Monadic):
    Deprecated: "Use setIpv6"
   |
85 |             Ipv4Only val        -> (== val)           <$> (setIpv4Only val s >> ipv4Only s)
   |                                                            ^^^^^^^^^^^

tests/System/ZMQ4/Test/Properties.hs:85:81: warning: [-Wdeprecations]
    In the use of ‘ipv4Only’ (imported from System.ZMQ4.Monadic):
    Deprecated: "Use ipv6"
   |
85 |             Ipv4Only val        -> (== val)           <$> (setIpv4Only val s >> ipv4Only s)
   |                                                                                 ^^^^^^^^
[2 of 2] Compiling Main             ( tests/tests.hs, dist/build/zeromq-haskell-tests/zeromq-haskell-tests-tmp/Main.o )
Linking dist/build/zeromq-haskell-tests/zeromq-haskell-tests ...
running tests
Running 1 test suites...
Test suite zeromq-haskell-tests: RUNNING...
0MQ Socket Properties
  get socket option (Pair):               OK (0.03s)
    +++ OK, passed 100 tests.
  get socket option (Pub):                OK (0.02s)
    +++ OK, passed 100 tests.
  get socket option (Sub):                OK (0.01s)
    +++ OK, passed 100 tests.
  get socket option (XPub):               OK (0.01s)
    +++ OK, passed 100 tests.
  get socket option (XSub):               OK (0.01s)
    +++ OK, passed 100 tests.
  get socket option (Req):                OK (0.02s)
    +++ OK, passed 100 tests.
  get socket option (Rep):                OK (0.02s)
    +++ OK, passed 100 tests.
  get socket option (Dealer):             OK (0.01s)
    +++ OK, passed 100 tests.
  get socket option (Router):             OK (0.02s)
    +++ OK, passed 100 tests.
  get socket option (Pull):               OK (0.02s)
    +++ OK, passed 100 tests.
  get socket option (Push):               OK (0.01s)
    +++ OK, passed 100 tests.
  set;get socket option (Pair):           FAIL
    *** Failed! Exception: 'ZMQError { errno = 22, source = "setByteStringOpt", message = "Invalid argument" }' (after 6 tests):
    ZapDomain (Restricted "")
    Use --quickcheck-replay=675271 to reproduce.
  set;get socket option (Pub):            FAIL
    *** Failed! Exception: 'ZMQError { errno = 22, source = "setByteStringOpt", message = "Invalid argument" }' (after 41 tests):
    ZapDomain (Restricted "")
    Use --quickcheck-replay=984052 to reproduce.
  set;get socket option (Sub):            OK (0.02s)
    +++ OK, passed 100 tests.
  set;get socket option (XPub):           OK (0.02s)
    +++ OK, passed 100 tests.
  set;get socket option (XSub):           OK (0.02s)
    +++ OK, passed 100 tests.
  set;get socket option (Req):            OK (0.01s)
    +++ OK, passed 100 tests.
  set;get socket option (Rep):            FAIL
    *** Failed! Exception: 'ZMQError { errno = 22, source = "setByteStringOpt", message = "Invalid argument" }' (after 5 tests):
    ZapDomain (Restricted "")
    Use --quickcheck-replay=978937 to reproduce.
  set;get socket option (Dealer):         OK (0.02s)
    +++ OK, passed 100 tests.
  set;get socket option (Router):         OK (0.02s)
    +++ OK, passed 100 tests.
  set;get socket option (Pull):           OK (0.02s)
    +++ OK, passed 100 tests.
  set;get socket option (Push):           OK (0.02s)
    +++ OK, passed 100 tests.
  (un-)subscribe:                         OK (0.02s)
    +++ OK, passed 100 tests.
  last_enpoint:                           OK
  connect disconnect
    :                                     OK (0.02s)
      +++ OK, passed 100 tests.
    :                                     OK (0.02s)
      +++ OK, passed 100 tests.
    :                                     OK (0.02s)
      +++ OK, passed 100 tests.
  0MQ Messages
    msg send == msg received (Req/Rep):   OK (0.04s)
      +++ OK, passed 100 tests.
    msg send == msg received (Push/Pull): OK (0.03s)
      +++ OK, passed 100 tests.
    msg send == msg received (Pair/Pair): OK (0.04s)
      +++ OK, passed 100 tests.

3 out of 30 tests failed (0.52s)
Test suite zeromq-haskell-tests: FAIL
Test suite logged to: dist/test/zeromq4-haskell-0.7.0-zeromq-haskell-tests.log
0 of 1 test suites (0 of 1 test cases) passed.
builder for '/nix/store/bxhjvw7mqznasadc37539gvc9q8vrdlf-zeromq4-haskell-0.7.0.drv' failed with exit code 1
cannot build derivation '/nix/store/i4lhqyxpyyivm3sdd5mpaxp3iy4scqv9-system-path.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/1l7q13bn5gsqzmbki53yksh9jjn5i67a-nixos-system-klink-18.09pre149415.8395f9aa85e.drv': 1 dependencies couldn't be built
error: build of '/nix/store/1l7q13bn5gsqzmbki53yksh9jjn5i67a-nixos-system-klink-18.09pre149415.8395f9aa85e.drv' failed
KiaraGrouwstra commented 5 years ago

the failing 0.7.0 mentioned appears somewhat behind the present 0.8.4.

KiaraGrouwstra commented 5 years ago

https://nixos.org/nixos/packages.html#zeromq-haskell also reports package zeromq-haskell-0.8.4, attribute name haskellPackages.zeromq-haskell. yet:

$ nix-env -qa zeromq-haskell-0.8.4
error: selector 'zeromq-haskell-0.8.4' matches no derivations
$ nix-env -qa zeromq-haskell
error: selector 'zeromq-haskell' matches no derivations

I must be doing this wrong somehow.

KiaraGrouwstra commented 5 years ago

honestly I should just consider the existing ihaskell branch an outstanding PR waiting to be tested given a more acceptable version.

KiaraGrouwstra commented 5 years ago

zeromq4-haskell appears a dependency of the jupyter haskell package, which has it specified as just >= 0.1. :neutral_face:

KiaraGrouwstra commented 5 years ago

see https://gitlab.com/twittner/zeromq-haskell/issues/63

KiaraGrouwstra commented 5 years ago

also see https://github.com/NixOS/nixpkgs/issues/48296

KiaraGrouwstra commented 5 years ago

closing until actionable