[Omake] behavior in subdirs

Nathaniel Gray n8gray at caltech.edu
Mon Aug 14 17:34:14 PDT 2006


Nathaniel Gray wrote:
> As I said, I've defined NATIVE_ENABLED already, so this is doubly 
> strange.  Is this a bug or a feature?  ;^)

Ok, at least I understand the error message now.  For some reason I'm 
getting group.cmx as a dependency when I'm building with 
NATIVE_ENABLED=false.  It doesn't show up if I print dependencies though.

-n8

[n8gray at golux lib]$ omake --print-dependencies --all-dependencies 
--verbose-dependencies all
*** omake: changing directory to /Users/n8gray/research/syncfun
*** omake: reading OMakefiles
*** omake: finished reading OMakefiles (0.1 sec)
dependencies:
    target: <phony <lib/all>>
       all transitive scanner dependencies:
       static dependencies: lib/groupClient lib/groupServer
       all transitive build dependencies: lib/group.cma lib/group.cmo
          lib/groupClient lib/groupClient.cmo lib/groupClient.run
          lib/groupServer lib/groupServer.cmo lib/groupServer.run
       dependencies are merged from: <phony <lib/all>>
       targets that depend on this node at this point:

    --- Complete dependency listing ---

    target: lib/groupClient
       scanner dependencies:
       static dependencies: lib/groupClient.run
       build dependencies: lib/groupClient.run
       dependencies are merged from: lib/groupClient
       targets that depend on this node at this point: <phony <lib/all>>
    target: lib/groupClient.cmo
       scanner dependencies: <scanner lib/scan-ocaml-groupClient.ml>
       static dependencies: lib/groupClient.ml
       build dependencies:
       dependencies are merged from: lib/groupClient.cmi lib/groupClient.cmo
       targets that depend on this node at this point: lib/groupClient.run
    target: lib/groupServer.run
       scanner dependencies:
       static dependencies: lib/group.cma lib/groupServer.cmo
       build dependencies: lib/group.cma lib/groupServer.cmo
       dependencies are merged from: lib/groupServer.run
       targets that depend on this node at this point: lib/groupServer
    target: lib/groupClient.run
       scanner dependencies:
       static dependencies: lib/group.cma lib/groupClient.cmo
       build dependencies: lib/group.cma lib/groupClient.cmo
       dependencies are merged from: lib/groupClient.run
       targets that depend on this node at this point: lib/groupClient
    target: lib/group.cma
       scanner dependencies:
       static dependencies: lib/group.cmo
       build dependencies: lib/group.cmo
       dependencies are merged from: lib/group.cma
       targets that depend on this node at this point: lib/groupClient.run
          lib/groupServer.run
    target: lib/group.cmo
       scanner dependencies: <scanner lib/scan-ocaml-group.ml>
       static dependencies: lib/group.ml
       build dependencies:
       dependencies are merged from: lib/group.cmi lib/group.cmo
       targets that depend on this node at this point: lib/group.cma
    target: lib/groupServer
       scanner dependencies:
       static dependencies: lib/groupServer.run
       build dependencies: lib/groupServer.run
       dependencies are merged from: lib/groupServer
       targets that depend on this node at this point: <phony <lib/all>>
    target: lib/groupServer.cmo
       scanner dependencies: <scanner lib/scan-ocaml-groupServer.ml>
       static dependencies: lib/groupServer.ml
       build dependencies:
       dependencies are merged from: lib/groupServer.cmi lib/groupServer.cmo
       targets that depend on this node at this point: lib/groupServer.run
- scan lib scan-ocaml-groupServer.ml
+ <compute 1 value dependencies>
- scan lib scan-ocaml-groupServer.ml
+ ocamldep -I . groupServer.ml
!!! You are trying to build OCaml native code file: group.cmx
!!! However, the NATIVE_ENABLED flag is not set.
!!! Include the following definition in your OMakefile
!!! if you really want to build this file.
NATIVE_ENABLED = true
*** omake: 18/35 targets are up to date
*** omake: failed (0.4 sec, 1/1 scans, 0/0 rules, 0/73 digests)
*** omake error:
    File /usr/local/lib/omake/build/OCaml.om: line 454, characters 12-19
    early exit(1) requested by an omake file

-- 
 >>>-- Nathaniel Gray -- Caltech Computer Science ------>
 >>>-- Mojave Project -- http://mojave.cs.caltech.edu -->


More information about the OMake-Devel mailing list