[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [MirageOS-devel] Any way to get caml4p to run on ARM (cubietruck)?
I can't seem to get `camlp4` to run to completion when building on ARM. I cloned mirage-decks, added a small deck, and then removed all the others in an attempt to limit the compile time resource needs... but still: ~~~ cd src && make make[1]: Entering directory `/home/mirage/mirage-decks/src' ocamlbuild -use-ocamlfind -pkgs lwt.syntax,conduit.mirage,cow.syntax,cowabloga,cstruct,io-page,io-page.unix,lwt,mirage-clock-unix,mirage-console.unix,mirage-fs-unix,mirage-http,mirage-net-unix,mirage-types,mirage-types.lwt,mirage.runtime,tcpip.stack-direct -tags "syntax(camlp4o),annot,bin_annot,strict_sequence,principal" -tag-line "<static*.*>: -syntax(camlp4o)" -cflag -g -lflags -g,-linkpkg main.native + ocamlfind ocamldep -package tcpip.stack-direct -package mirage.runtime -package mirage-types.lwt -package mirage-types -package mirage-net-unix -package mirage-http -package mirage-fs-unix -package mirage-console.unix -package mirage-clock-unix -package lwt -package io-page.unix -package io-page -package cstruct -package cowabloga -package cow.syntax -package conduit.mirage -package lwt.syntax -syntax camlp4o -modules main.ml > main.ml.depends Segmentation fault File "main.ml", line 1: Error: Error while running external preprocessor Command line: camlp4 '-I' '/home/mirage/.opam/4.02.1/lib/ocaml/camlp4' '-I' '/home/mirage/.opam/4.02.1/lib/ocaml' '-I' '/home/mirage/.opam/4.02.1/lib/type_conv' '-I' '/home/mirage/.opam/4.02.1/lib/dyntype' '-I' '/home/mirage/.opam/4.02.1/lib/xmlm' '-I' '/home/mirage/.opam/4.02.1/lib/uutf' '-I' '/home/mirage/.opam/4.02.1/lib/jsonm' '-I' '/home/mirage/.opam/4.02.1/lib/ocaml' '-I' '/home/mirage/.opam/4.02.1/lib/ocaml' '-I' '/home/mirage/.opam/4.02.1/lib/bytes' '-I' '/home/mirage/.opam/4.02.1/lib/ocplib-endian' '-I' '/home/mirage/.opam/4.02.1/lib/ocplib-endian' '-I' '/home/mirage/.opam/4.02.1/lib/sexplib' '-I' '/home/mirage/.opam/4.02.1/lib/cstruct' '-I' '/home/mirage/.opam/4.02.1/lib/hex' '-I' '/home/mirage/.opam/4.02.1/lib/ezjsonm' '-I' '/home/mirage/.opam/4.02.1/lib/cow' '-I' '/home/mirage/.opam/4.02.1/lib/lwt' '-I' '/home/mirage/.opam/4.02.1/lib/lwt' '-parser' 'o' '-parser' 'op' '-printer' 'p' 'str.cma' 'pa_type_conv.cma' 'pa_dyntype.cma' 'xmlm.cma' 'uutf.cma' 'jsonm.cma' 'unix.cma' 'bigarray.cma' 'ocplib_endian.cma' 'bigstring.cma' 'sexplib.cma' 'cstruct.cma' 'hex.cma' 'ezjsonm.cma' 'xmlm.cma' 'str.cma' 'pa_cow.cma' 'ezjsonm.cma' 'lwt-syntax-options.cma' 'lwt-syntax.cma' 'main.ml' > /tmp/ocamlpp0ea4f3 Command exited with code 2. Compilation unsuccessful after building 1 target (0 cached) in 00:00:00. make[1]: *** [main.native] Error 10 make[1]: Leaving directory `/home/mirage/mirage-decks/src' make: *** [build] Error 2 ~~~ I also have a small project of my own that uses `sexp` a bit, it also fails: ~~~ cd src && make build make[1]: Entering directory `/home/mirage/mirage-kvsrv/src' ocamlbuild -use-ocamlfind -pkgs lwt.syntax,conduit.mirage,core_kernel,mirage-console.unix,mirage-http,mirage-types.lwt,sexplib.syntax,tcpip.stack-socket -tags "syntax(camlp4o),annot,bin_annot,strict_sequence,principal" -tag-line "<static*.*>: -syntax(camlp4o)" -cflag -g -lflags -g,-linkpkg main.native + ocamlfind ocamldep -package tcpip.stack-socket -package sexplib.syntax -package mirage-types.lwt -package mirage-http -package mirage-console.unix -package core_kernel -package conduit.mirage -package lwt.syntax -syntax camlp4o -modules main.ml > main.ml.depends Segmentation fault File "main.ml", line 1: Error: Error while running external preprocessor Command line: camlp4 '-I' '/home/mirage/.opam/4.02.1/lib/ocaml/camlp4' '-I' '/home/mirage/.opam/4.02.1/lib/type_conv' '-I' '/home/mirage/.opam/4.02.1/lib/ocaml' '-I' '/home/mirage/.opam/4.02.1/lib/ocaml' '-I' '/home/mirage/.opam/4.02.1/lib/sexplib' '-I' '/home/mirage/.opam/4.02.1/lib/sexplib' '-I' '/home/mirage/.opam/4.02.1/lib/lwt' '-I' '/home/mirage/.opam/4.02.1/lib/lwt' '-parser' 'o' '-parser' 'op' '-printer' 'p' 'pa_type_conv.cma' 'unix.cma' 'bigarray.cma' 'sexplib.cma' 'pa_sexp_conv.cma' 'lwt-syntax-options.cma' 'lwt-syntax.cma' 'main.ml' > /tmp/ocamlpp3e0d09 Command exited with code 2. Compilation unsuccessful after building 1 target (0 cached) in 00:00:00. make[1]: *** [main.native] Error 10 make[1]: Leaving directory `/home/mirage/mirage-kvsrv/src' make: *** [build] Error 2 ~~~ What can I do to improve my luck with building on my cubietruck? /M -- Magnus Therning OpenPGP: 0xAB4DFBA4 email: magnus@xxxxxxxxxxxx jabber: magnus@xxxxxxxxxxxx twitter: magthe http://therning.org/magnus "Sendmail" and "make" are two well known programs that are pretty widely regarded as being debugged into existence. That's why their command languages are so poorly thought out and difficult to learn. It's not just you -- everyone finds them troublesome. -- Peter van der Linden, Expert C Programming, p. 220 Attachment:
pgpJP6HlSqg5w.pgp _______________________________________________ MirageOS-devel mailing list MirageOS-devel@xxxxxxxxxxxxxxxxxxxx http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |