Test failure building Shake for Guix

10 views
Skip to first unread message

Matthew Kraai

unread,
Jan 24, 2021, 9:41:49 PM1/24/21
to shake-bui...@googlegroups.com

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

Neil Mitchell

unread,
Jan 25, 2021, 4:27:28 PM1/25/21
to Matthew Kraai, Shake build system
Hi Matthew,

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?

As for the change away from bin/sh, they shouldn't be causing this error.

Thanks, Neil


--
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.

Matthew Kraai

unread,
Jan 26, 2021, 5:21:42 AM1/26/21
to Neil Mitchell, Shake build system
Hi Neil,

Thank you for the help.

On 1/25/21 1:27 PM, Neil Mitchell wrote:
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?
I'm using GHC 8.6.5.

* 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
axys5wl8qw4paykb2i0w4yw7l6pkci-shake-0.19.4.drv.bz2
Reply all
Reply to author
Forward
0 new messages