Displaying 20 results from an estimated 326 matches for "ocamlopt".
2007 Dec 24
2
[LLVMdev] build failure: ocamlopt: unknown option `-g'
I am at revision 45341, and I am getting a build failure on Leopard
involving an unknown option to the ocaml compiler:
llvm[3]: Compiling optimized llvm.ml for Debug build
/opt/fink/bin/ocamlopt: unknown option `-g'.
Usage: ocamlopt <options> <files>
...
My ocaml binaries are compiled from source using fink:
(kremenek at tedbook:llvm)$ which ocamlopt
/opt/fink/bin/ocamlopt
(kremenek at tedbook:llvm)$ ocamlopt -version
3.09.3
2012 Jul 11
2
[LLVMdev] llvm 'gmake check' errors generating lit.site.cfg
...llvm]$ gmake check
llvm[0]: Running test suite
gmake[1]: Entering directory `/home/willschm/llvm/test'
Making LLVM 'lit.site.cfg' file...
sed: file lit.tmp line 8: unknown option to `s'
gmake[1]: *** [lit.site.cfg] Error 1
The relevant lines in test/Makefile:
@$(ECHOPATH) s=@OCAMLOPT@=$(OCAMLOPT) -cc \"$(CXX_FOR_OCAMLOPT)\" -I $(LibDir)/ocaml=g >> lit.tmp
@sed -f lit.tmp $(PROJ_SRC_DIR)/lit.site.cfg.in > $@
And the line in the lit.tmp file:
s=@OCAMLOPT@=/bin/ocamlopt -cc "g++ -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O2 -g -pipe -Wall -Wp,-D_FORTIFY_S...
2007 Dec 25
0
[LLVMdev] build failure: ocamlopt: unknown option `-g'
DOn 2007-12-24, at 01:29, Ted Kremenek wrote:
> I am at revision 45341, and I am getting a build failure on Leopard
> involving an unknown option to the ocaml compiler:
>
> llvm[3]: Compiling optimized llvm.ml for Debug build
> /opt/fink/bin/ocamlopt: unknown option `-g'.
> Usage: ocamlopt <options> <files>
> ...
>
>
> My ocaml binaries are compiled from source using fink:
>
> (kremenek at tedbook:llvm)$ which ocamlopt
> /opt/fink/bin/ocamlopt
> (kremenek at tedbook:llvm)$ ocamlopt -version
> 3.09.3...
2012 Jul 12
0
[LLVMdev] llvm 'gmake check' errors generating lit.site.cfg
...test suite
> gmake[1]: Entering directory `/home/willschm/llvm/test'
> Making LLVM 'lit.site.cfg' file...
> sed: file lit.tmp line 8: unknown option to `s'
> gmake[1]: *** [lit.site.cfg] Error 1
>
> The relevant lines in test/Makefile:
> @$(ECHOPATH) s=@OCAMLOPT@=$(OCAMLOPT) -cc \"$(CXX_FOR_OCAMLOPT)\" -I $(LibDir)/ocaml=g >> lit.tmp
> @sed -f lit.tmp $(PROJ_SRC_DIR)/lit.site.cfg.in > $@
>
> And the line in the lit.tmp file:
> s=@OCAMLOPT@=/bin/ocamlopt -cc "g++ -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O2 -g -p...
2016 Aug 04
1
[PATCH] build: add simple custom silent rules for automake
Add makefile variables to enable silent rules for simple command
invocations, such as ocamlc, ocamlopt, javac, and erlc.
This reduces the log output when building with silent rules, still
showing the full command lines otherwise.
---
erlang/Makefile.am | 2 +-
java/Makefile.am | 6 +++---
ocaml/Makefile.am | 14 +++++++-------
subdir-rules.mk | 20 +++++++++++++++++---
4 files changed, 28...
2011 May 09
1
[PATCH] Don't rely on OCaml native compiler for tests
...\
+ LD_LIBRARY_PATH=$(top_builddir)/lib/.libs:$(top_builddir)/ocaml \
$(VG)
TESTS = \
@@ -59,33 +59,33 @@ TESTS = \
t/hivex_300_fold
noinst_DATA += $(TESTS)
-t/hivex_005_load: t/hivex_005_load.cmx mlhivex.cmxa
+t/hivex_005_load: t/hivex_005_load.cmo mlhivex.cma
mkdir -p t
- $(OCAMLFIND) ocamlopt -cclib -L$(top_builddir)/lib/.libs -I . -package unix -linkpkg mlhivex.cmxa $< -o $@
+ $(OCAMLFIND) ocamlc -cclib -L$(top_builddir)/lib/.libs -I . -package unix -linkpkg mlhivex.cma $< -o $@
-t/hivex_010_open: t/hivex_010_open.cmx mlhivex.cmxa
+t/hivex_010_open: t/hivex_010_open.cmo mlhivex...
2014 Sep 14
2
Re: ocamldep -all seems to break builds on platforms without a native compiler
* Richard W.M. Jones:
> Yes, also this commit doesn't actually fix the problem. I still see
> occasional problems building StringMap. I have reverted this commit.
Here's another patch that should enable the native-code targets only if
they can be built.
Cheers,
-Hilko
2008 Mar 04
5
[LLVMdev] [PATCH] Make sure ocamldep runs on all .mli files.
This is a small bug fix for the ocaml build system that allows
for dependencies to be generated for ocaml interface files.
---
bindings/ocaml/Makefile.ocaml | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 7c62c2cd93a6402e5f6ebd600e9e3ac7851b4d29.diff
Type: text/x-patch
Size: 994 bytes
Desc: not
2011 Nov 09
6
[PATCH] Add tune2fs support to libguestfs.
At the moment OpenStack uses kpartx and nbd to resize filesystems and
inject files to guests. I sincerely hope they don't allow untrusted
users to upload guest images / AMIs :-(
To fix this I'm looking into adding libguestfs support as an optional
backend in OpenStack.
The only missing feature in libguestfs is the ability to call tune2fs
on a filesystem. This patch series adds tune2fs
2014 Mar 11
2
Re: [PATCH] Fix building on architectures where ocamlopt is not available
On Fri, Feb 28, Richard W.M. Jones wrote:
> I can't test if it will specifically break this because I don't have
> access to any machines that don't have ocamlopt, but it's something to
> watch out for.
>
> In any case, I have pushed this since it works fine for me.
Any chance this can be backported to 1.24?
Olaf
2014 Mar 22
2
Re: [PATCH] Fix building on architectures where ocamlopt is not available
...t;
> Right, I remember this was a problem now.
>
> It was fixed by:
>
> https://github.com/libguestfs/libguestfs/commit/dce94f3e266ed3f1fc634a1ef6953f2db1510963
>
> Do you think we could re-add the stamp-file / touch $@ ?
Sure, it would have to be modified so it still works if OCAMLOPT is not
available -- that's why I made that change in the first place.
Wouldn't a rule without commands such as
mlguestfs.cmxa: mlguestfs.cma
also prevent make from building the two targets in parallel?
Cheers,
-Hilko
2014 Feb 28
6
[PATCH] Fix building on architectures where ocamlopt is not available
...noinst_DATA =
if HAVE_OCAML
# Note this list must be in dependency order.
-OBJECTS = \
+deps = \
$(top_builddir)/mllib/libdir.cmx \
$(top_builddir)/mllib/common_gettext.cmx \
$(top_builddir)/mllib/common_utils.cmx \
@@ -109,6 +109,12 @@ OBJECTS = \
cmdline.cmx \
builder.cmx
+if HAVE_OCAMLOPT
+OBJECTS = $(deps)
+else
+OBJECTS = $(patsubst %.cmx,%.cmo,$(deps))
+endif
+
bin_SCRIPTS = virt-builder
# -I $(top_builddir)/src/.libs is a hack which forces corresponding -L
@@ -134,12 +140,22 @@ OCAMLCLIBS = \
-pthread -lpthread \
-lncurses -lcrypt
+if HAVE_OCAMLOPT
virt-builder: $(OB...
2018 Nov 29
1
[nbdkit PATCH] ocaml: Make build VPATH aware
...41..b95f255 100644
--- a/plugins/ocaml/Makefile.am
+++ b/plugins/ocaml/Makefile.am
@@ -43,10 +43,10 @@ ocamllibdir = $(OCAMLLIB)
ocamllib_DATA = NBDKit.mli NBDKit.cmi NBDKit.cmx NBDKit.o
NBDKit.cmi: NBDKit.mli
- $(OCAMLC) -c $<
+ $(OCAMLC) -c $< -o $@
NBDKit.cmx: NBDKit.ml NBDKit.cmi
- $(OCAMLOPT) $(OCAMLOPTFLAGS) -c $<
+ $(OCAMLOPT) $(OCAMLOPTFLAGS) -c $< -o $@
NBDKit.o: NBDKit.cmx
# NB: libnbdkitocaml is not plugin. It's a library that you have to
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 4e16fa9..94f3d43 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am...
2011 May 11
3
[PATCH 1/3] hivex: Use OCaml bytecode compiler for caml_raise_with_args check
...ac b/configure.ac
index 5805ddd..ef19543 100644
--- a/configure.ac
+++ b/configure.ac
@@ -192,9 +192,9 @@ if test "x$OCAMLC" != "xno"; then
echo "char $f (); char foo() { return $f (); }" > conftest.c
rm -f conftest_ml.ml
touch conftest_ml.ml
- if $OCAMLOPT -c conftest.c 2>/dev/null && \
- $OCAMLOPT -c conftest_ml.ml 2>/dev/null && \
- $OCAMLOPT conftest.o conftest_ml.cmx -o conftest 2>/dev/null ; then
+ if $OCAMLC -c conftest.c 2>/dev/null && \
+ $OCAMLC -c conftest_ml.ml 2>/dev/null &&a...
2014 Mar 22
2
Re: [PATCH] Fix building on architectures where ocamlopt is not available
* Richard W.M. Jones:
> On Fri, Feb 28, 2014 at 02:35:56PM +0100, Hilko Bengen wrote:
>> diff --git a/ocaml/Makefile.am b/ocaml/Makefile.am
>> index 5dd2c9b..708b2e7 100644
>> --- a/ocaml/Makefile.am
>> +++ b/ocaml/Makefile.am
> [...]
>> +# Tell version 3.79 and up of GNU make to not build goals in this
>> +# directory in parallel.
>> +.NOTPARALLEL:
2019 Sep 23
2
[libnbd PATCH] ocaml: Fix tests when ocamlopt is not available
...am b/ocaml/tests/Makefile.am
index dfb23ff..56519c0 100644
--- a/ocaml/tests/Makefile.am
+++ b/ocaml/tests/Makefile.am
@@ -100,7 +100,10 @@ endif
TESTS_ENVIRONMENT = LIBNBD_DEBUG=1 OCAMLRUNPARAM=b
LOG_COMPILER = $(top_builddir)/run
-TESTS = $(tests_bc) $(tests_opt)
+TESTS = $(tests_bc)
+if HAVE_OCAMLOPT
+TESTS += $(tests_opt)
+endif
endif HAVE_NBDKIT
endif HAVE_OCAML
--
2.21.0
2011 May 11
1
[PATCH 1/2] hivex: Use OCaml bytecode compiler for caml_raise_with_args check
...ac b/configure.ac
index 5805ddd..ef19543 100644
--- a/configure.ac
+++ b/configure.ac
@@ -192,9 +192,9 @@ if test "x$OCAMLC" != "xno"; then
echo "char $f (); char foo() { return $f (); }" > conftest.c
rm -f conftest_ml.ml
touch conftest_ml.ml
- if $OCAMLOPT -c conftest.c 2>/dev/null && \
- $OCAMLOPT -c conftest_ml.ml 2>/dev/null && \
- $OCAMLOPT conftest.o conftest_ml.cmx -o conftest 2>/dev/null ; then
+ if $OCAMLC -c conftest.c 2>/dev/null && \
+ $OCAMLC -c conftest_ml.ml 2>/dev/null &&a...
2010 Apr 05
3
[LLVMdev] Linking with C Library
...igure out how to pass -rdynamic to the linker, like I
said before. http://llvm.org/docs/tutorial/OCamlLangImpl7.html
mentions it, but I don't know enough about the ocaml build process to
say whether that'll work.
I believe I'm already doing that, properly by passing -ccopt -rdynamic to
ocamlopt:
ocamlopt -cc g++ -ccopt -rdynamic -linkall $(LIBFILES) -o alpha $(OBJFILES)
I've also tried writing a dummy "puts" function in a C file and linking that
with my executable. nm -D then shows the following:
000000000054b690 T camlRuntime__rt_fputs_208
000000000054b590 T camlRuntime__...
2014 Mar 23
2
Re: [PATCH] Fix building on architectures where ocamlopt is not available
* Richard W.M. Jones:
> (1) Removing .NOTPARALLEL. This fails, as expected.
>
> (2) mlguestfs.cmxa: mlguestfs.cma -- fails
>
> (3) mlguestfs.cmxa: | mlguestfs.cma -- fails after a longer time
I find it strange that (2) and (3) fail.
> (4) The attached patch which is derived from dce94f -- this ran
> without failing for 120 iterations (and still going).
The patch looks
2014 Feb 28
2
Re: enable build for ocaml bytecode
I believe this patch has now been superseded by Hilko's commit here:
https://github.com/libguestfs/libguestfs/commit/f75142c577255b30f2a8e1d27baa5fd185594197
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)