Hi,
I am trying to package Shake for Guix. When I try to build Shake, it fails with the following error:
## BUILD errors --quiet systemcmd TESTS FAILED shake-test: ASSERTION FAILED: Incorrect exception, missing part: GOT: Error when running Shake build system: at want, called at src/Test/Type.hs:52:46 in main:Test.Type * Depends on: systemcmd * Raised the exception: random_missing_command: createProcess: runInteractiveProcess: exec: does not exist (No such file or directory) WANTED: at cmd, called at CallStack (from HasCallStack): error, called at src/Test/Type.hs:170:18 in main:Test.Type
Do you know why the test expects "at cmd, called at" but the actual output is "at want, called at"?
Guix does not provide /bin/sh, so I have replaced the occurrences
of /bin/sh in src/Development/Shake/Command.hs, src/Test/Docs.hs,
and src/Test/Manual.hs with the full path to sh (i.e.,
/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/sh).
-- Matthew Kraai
--
You received this message because you are subscribed to the Google Groups "Shake build system" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shake-build-sys...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/shake-build-system/dc2077b9-a116-d8f3-4a84-c5d4d5bc3e10%40ftbfs.org.
The idea is the call stack should include both want (the thing that kicks off the computation) and cmd (the function that is the one raising the error). It seems your call stacks are missing the second bit, so I wonder:
* Which version of GHC are you using?
* What optimisation settings are you compiling Shake with?
It's configured with the following options:
running "runhaskell Setup.hs" with command "configure" and parameters ("--prefix=/gnu/store/74yy0amym4s4f9474bv8mqiis29j92n2-shake-0.19.4" "--libdir=/gnu/store/74yy0amym4s4f9474bv8mqiis29j92n2-shake-0.19.4/lib" "--docdir=/gnu/store/74yy0amym4s4f9474bv8mqiis29j92n2-shake-0.19.4/share/doc/shake-0.19.4" "--libsubdir=$compiler/$pkg-$version" "--package-db=/tmp/guix-build-shake-0.19.4.drv-0/package.conf.d" "--global" "--enable-tests" "--enable-shared" "--enable-executable-dynamic" "--ghc-option=-fPIC" "--ghc-option=-optl=-Wl,-rpath=/gnu/store/74yy0amym4s4f9474bv8mqiis29j92n2-shake-0.19.4/lib/$compiler/$pkg-$version")
Does that answer the question? I didn't see any "-O" options in
the build log, which I've attached.
-- Matthew Kraai