[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MirageOS-devel] Compiling on/for ARM

I thought github/mirage-decks would be a good first project to build
on/for my Cubietruck.  So after installing the mirage tool via `opam`
I cloned the decks project and proceeded to build it in unix mode.
`make configure` worked just fine, but `make build` did not.
Apparently `camlp4` requires more memory than what's available:

mirage@cubietruck:~/mirage-decks$ make build
cd src && make build
make[1]: Entering directory `/home/mirage/mirage-decks/src'
ocamlbuild -use-ocamlfind -pkgs 
 -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 mirage-types.lwt 
-package mirage-types -package mirage-http -package mirage-fs-unix -package 
mirage-console.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
Out of memory
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/hex' '-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/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' 'hex.cma' 'unix.cma' 'bigarray.cma' 'sexplib.cma' 
'ezjsonm.cma' 'xmlm.cma' 'str.cma' 'pa_cow.cma' 'ezjsonm.cma' 
'lwt-syntax-options.cma' 'lwt-syntax.cma'  'main.ml' > /tmp/ocamlpp7e1777

Command exited with code 2.
Compilation unsuccessful after building 1 target (0 cached) in 00:00:01.
make[1]: *** [main.native] Error 10
make[1]: Leaving directory `/home/mirage/mirage-decks/src'
make: *** [build] Error 2

I'm building this in Dom0:

mirage@cubietruck:~$ sudo xl list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0   512     2     r-----     154.7

Is there some way to control the amount of memory that `camlp4` uses?  Or maybe 
I'm just going about this in the wrong way?


Magnus Therning                      OpenPGP: 0xAB4DFBA4 
email: magnus@xxxxxxxxxxxx   jabber: magnus@xxxxxxxxxxxx
twitter: magthe               http://therning.org/magnus

Failure is not an option. It comes bundled with the software.

Attachment: pgpMBDpxeeJ4_.pgp
Description: PGP signature

MirageOS-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.