[Omake] Preparing to release 0.9.8.2, please test.

Mike Furr furr at cs.umd.edu
Wed May 23 12:25:33 PDT 2007


I've run into a problem when using omake -P with 0.9.8.2 (I can't seem 
to reproduce this with 0.9.8.1).  The problem is if I start changing 
things around while an instance of 'omake -P' is running, sometimes it 
emits:
   *** omake error:
      close(): Bad file descriptor
when performing various rules.
I believe the following is sufficient to reproduce the problem.

[xterm1]$ mkdir test
[xterm1]$ omake --install
[xterm1]$ echo '.DEFAULT: $(OCamlProgram test, test)' > OMakefile
[xterm1]$ echo 'type t = int' > test.ml
[xterm1]$ omake -P

[xterm2]$ cd /path/to/test
[xterm2]$ mkdir t
[xterm2]$ echo > t/OMakefile
[xterm2]$ $EDITOR OMakefile
    -> add '.SUBDIRS: t'
[xterm2]$ $EDITOR test.ml
    -> make any change

The omake -P process in [xterm1] then emits:
[...]
- build . test
+ Shell.ln-or-cp(test.opt test)
*** omake error:
    close(): Bad file descriptor
- exit . test, code 123
*** omake: 24/26 targets are up to date
*** omake: blocked (0.5 sec, 1/2 scans, 3/10 rules, 7/105 digests)
*** omake: targets were not rebuilt because of errors:
    test
       - build . test
       + Shell.ln-or-cp(test.opt test)
       *** omake error:
          close(): Bad file descriptor
       - exit . test, code 123
*** omake: polling for filesystem changes

I am using ocaml 3.10.0 on my ppc Mac and rev 10786 of 0.9.8.2 (right 
after your ocamldep -modules parse fix).

-Mike


More information about the Omake mailing list