[Omake] 0.9.8: "Do not know how to build" C library
Christopher L Conway
cconway at cs.nyu.edu
Thu May 24 10:12:24 PDT 2007
Aleksey,
Without CLIBS, the C library doesn't get built at all.
$ omake --verbose
*** omake: reading OMakefiles
*** omake: finished reading OMakefiles (0.0 sec)
- scan . scan-ocaml-mlcode.ml
+ <compute 2 value dependencies>
- scan . scan-ocaml-mlcode.ml
+ ocamldep -I . mlcode.ml
- exit . scan-ocaml-mlcode.ml, code 0
- build . mlcode.cmi
+ ocamlc.opt -warn-error A -g -I . -c mlcode.ml
- exit . mlcode.cmi, code 0
- build . mlprog.run
+ ocamlc.opt -warn-error A -g -I . -custom -o mlprog.run mlcode.cmo
- exit . mlprog.run, code 0
*** omake: done (0.2 sec, 1/1 scans, 2/3 rules, 4/64 digests)
On 5/24/07, Aleksey Nogin <nogin at metaprl.org> wrote:
> Chris,
>
> Just drop the CLIBS variable - you do not need it for purely OCaml
> programs (there was a bug where CLIBS was used in place of OCAML_CLIBS,
> but that was fixed).
>
> Aleksey
>
> On 24.05.2007 09:45, Christopher L Conway wrote:
>
> > I am trying to migrate from omake 0.9.6.9-1-2 (the current Ubuntu
> > binary) to 0.9.8.1 (built from source). I get the above error from the
> > following OMakefile. It works fine with the previous version:
> >
> > OMakefile:
> > NATIVE_ENABLED = false
> > BYTE_ENABLED = true
> > CLIBS =
> >
> > .PHONY: build clean
> > .DEFAULT: build
> >
> > prog_targets(f) =
> > return $(if $(NATIVE_ENABLED), $(f).opt, $(f).run)
> >
> > LIBFILES = ccode
> > LIB = libccode
> >
> > StaticCLibrary($(LIB), $(LIBFILES))
> >
> > PROGRAM = mlprog
> > FILES = mlcode
> > CLIBS = libccode
> > OCAML_CLIBS = libccode
> >
> > OCamlProgram( $(PROGRAM), $(FILES) )
> >
> > build: $(prog_targets $(PROGRAM))
> >
> > clean:
> > rm $(filter-proper-targets $(ls R, .))
> >
> > ccode.c:
> > int f() { return 0; }
> >
> > mlcode.ml:
> > let g x = x ;;
> >
> > $ /usr/bin/omake --version
> > /usr/bin/omake: Symbol `FamErrlist' has different size in shared
> > object, consider re-linking
> > OMake 0.9.6.9:
> > build [Fri Nov 17 20:47:55 2006]
> > on vernadsky
> >
> > Default library directory : /usr/lib/omake
> > $ /usr/bin/omake -U
> > /usr/bin/omake: Symbol `FamErrlist' has different size in shared
> > object, consider re-linking
> > *** omake: reading OMakefiles
> > *** omake: finished reading OMakefiles (0.0 sec)
> > - scan . scan-ocaml-mlcode.ml
> > + <values>
> > - scan . scan-ocaml-mlcode.ml
> > + ocamldep -I . mlcode.ml
> > - build . mlcode.cmi
> > + ocamlc.opt -warn-error A -g -I . -c mlcode.ml
> > - scan . scan-c-ccode.c
> > + <values>
> > - scan . scan-c-ccode.c
> > + gcc -I. -MM ccode.c
> > - build . ccode.o
> > + gcc -I. -c -o ccode.o ccode.c
> > - build . libccode.a
> > + rm -f libccode.a
> > - build . libccode.a
> > + ar cq libccode.a ccode.o
> > - build . libccode.a
> > + ranlib libccode.a
> > - build . mlprog.run
> > + ocamlc.opt -warn-error A -g -I . -custom -o mlprog.run mlcode.cmo
> > libccode.a
> > *** omake: done (0.2 sec, 2/2 scans, 4/5 rules, 15/80 digests)
> > $ /usr/bin/omake clean
> > /usr/bin/omake: Symbol `FamErrlist' has different size in shared
> > object, consider re-linking
> > *** omake: reading OMakefiles
> > *** omake: finished reading OMakefiles (0.0 sec)
> > - build . <clean>
> > + rm ccode.o libccode.a mlcode.cmi mlcode.cmo mlprog.run
> > *** omake: done (0.0 sec, 0/0 scans, 1/1 rules, 0/37 digests)
> > $ ~/tools/bin/omake --version
> > OMake 0.9.8.1 (release 1):
> > build [Wed May 23 19:03:30 2007]
> > on wagstaff
> >
> > Default library directory : /home/chris/tools/lib/omake
> > $ ~/tools/bin/omake --verbose -U
> > *** omake: reading OMakefiles
> > *** omake: finished reading OMakefiles (0.0 sec)
> > *** omake: 9/13 targets are up to date
> > *** omake: failed (0.0 sec, 0/0 scans, 0/0 rules, 9/39 digests)
> > *** omake error:
> > File /home/chris/tools/lib/omake/build/OCaml.om: line 1027, characters
> > 8-53
> > Do not know how to build "libccode" required for "mlprog.run"
> > _______________________________________________
> > Omake mailing list
> > Omake at metaprl.org
> > https://lists.metaprl.org/mailman/listinfo/omake
> >
>
> _______________________________________________
> Omake mailing list
> Omake at metaprl.org
> https://lists.metaprl.org/mailman/listinfo/omake
>
>
More information about the Omake
mailing list