gittup/tup — Issue #36: "run script" rules do no work, output of same script copy-pasted into Tupfile - does
Author: adept
Created: 2011-10-22 22:54:43+00:00
State: open

Hi!

I ran in the following issues:

I am trying to generate rules using "run scipt" syntax. However it looks like some (or all?) order-only inputs in the script output are ignored. This leads to:
1)Commands being executed in the wrong order
2)Tup complaining that commands are reading from files not listed as dependencies (when in fact they are listed in the order-only inputs

However, when I take output of the script, copy-paste it into Tupfile and run "tup upd", everything works as expected.

Output of the script could be seen in
https://github.com/adept/tup-ocaml/blob/2cd3c04e3296418d45a0c20737eb0edfa401bffd/sexplib/lib/Tupfile
, starting from line 61 and till the end of file

For reference, the error I am getting when running "tup upd" after cleaning out all build artefacts looks like this:

```
[ 0/17 ] sexplib/lib: ocamlc -I +camlp4 -I ../../lib -pp 'cpp -traditional -undef' -c conv_error.ml -o conv_error.cmo
*** tup: stderr ***
File "conv_error.ml", line 29, characters 0-9:
Error: Unbound module Conv
*** Command 824 failed with return value 2: ocamlc -I +camlp4 -I ../../lib -pp 'cpp -traditional -undef' -c conv_error.ml -o conv_error.cmo
tup error: Missing input dependency - a file was read from, and was not specified as an input link for the command. This is an issue because the file was created from another command, and without the input link the commands may execute out of order. You should add this file as an input, since it is possible this could randomly break in the future.
-- Command ID: 824
- [773] sexplib/lib/conv.cmi
*** Additionally, command 824 failed to process input dependencies. These should probably be fixed before addressing the command failure.
```