[Omake] 0.9.8: "Do not know how to build" C library
Christopher L Conway
cconway at cs.nyu.edu
Thu May 24 09:45:48 PDT 2007
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"
More information about the Omake
mailing list