Skip to content

Building opencv-extra on OS X fails #138

Open
@basvandijk

Description

@basvandijk
> nix-build -A haskellPackages.opencv-extra
...
[10 of 11] Compiling OpenCV.Extra.XPhoto.WhiteBalancer ( src/OpenCV/Extra/XPhoto/WhiteBalancer.hs, dist/build/OpenCV/Extra/XPhoto/WhiteBalancer.p_o )
ld: warning: /nix/store/4fxq4wa5hmpy8r82lsq86r3jj2f1bjzq-libiconv-osx-10.11.6/lib/libiconv.dylib, ignoring unexpected dylib file
[11 of 11] Compiling OpenCV.Extra     ( src/OpenCV/Extra.hs, dist/build/OpenCV/Extra.p_o )
ld: warning: /nix/store/4fxq4wa5hmpy8r82lsq86r3jj2f1bjzq-libiconv-osx-10.11.6/lib/libiconv.dylib, ignoring unexpected dylib file
ld: warning: /nix/store/4fxq4wa5hmpy8r82lsq86r3jj2f1bjzq-libiconv-osx-10.11.6/lib/libiconv.dylib, ignoring unexpected dylib file
ghc: panic! (the 'impossible' happened)
  (GHC version 8.6.3 for x86_64-apple-darwin):
        Data.Binary.Get.runGet at position 8: Invalid magic number "INPUT(-l"
CallStack (from HasCallStack):
  error, called at libraries/binary/src/Data/Binary/Get.hs:351:5 in binary-0.8.6.0:Data.Binary.Get

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

builder for '/nix/store/4c73fdnhwgfb0qh9fzdm64fhw60ck72y-opencv-extra-0.2.0.1.drv' failed with exit code 1
error: build of '/nix/store/4c73fdnhwgfb0qh9fzdm64fhw60ck72y-opencv-extra-0.2.0.1.drv' failed

As instructed I reported this upstream: https://ghc.haskell.org/trac/ghc/ticket/16130

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions