LumiGuide / haskell-opencv

Haskell binding to OpenCV-3.x
Other
154 stars 44 forks source link

Building opencv-extra on OS X fails #138

Open basvandijk opened 5 years ago

basvandijk commented 5 years ago
> 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