MLstate / opalang

The Opa Language for Web Application Development
http://opalang.org
Other
1.24k stars 125 forks source link

Attempt to build from master on Mac OS X Maverick fails with "Error: Some record fields are undefined: sg_parent" #155

Closed raphaelmonrouzeau closed 9 years ago

raphaelmonrouzeau commented 10 years ago

Hello,

I checked out yesterday (#c9358f8f5648164515f1f) and tried to build on Mac OS X Maverick. I installed ocaml and opam with brew, my opam modules (ulex, camlzip, ocamlgraph and whatever) are in my home directory. I updated "nodejs" and installed "gnu-sed" and "md5sha1sum" using brew.

My configure command-line was:

$ ./configure -prefix ~ -ocamlfind ~/.opam/system/bin/ocamlfind

Then, making it gave the following:

$ make
_build/myocamlbuild.exe -no-plugin -j 6 -tag debug opabsl.qmljs.stamp plugins.qmljs.stamp compiler/main.native compiler/pplib/ppjs.native compiler/pplib/ppml.native compiler/opx2js/opx2js.native ocamllib/libbase/gen_platform tools/bash/bash_completion tools/teerex/trx_ocaml.native lib/plugins/opabsl/serverLib.cmi tools/teerex/trx_interpreter.native ocamllib/libbase/bslServerLib.ml compiler/libbsl/bslregister.native tools/jschecker/compiler.jar compiler/libbsl/bslbrowser.native tools/dissemination/spawn.sh compiler/libbsl/bslbrowser compiler/opa/gen_opa_manpage.native compiler/passlib/passdesign.native compiler/passlib/opatrack.sh compiler/compilerlib/opadep.sh ocamllib/libbase/testfilepos.native compiler/jslang/jsstat.native compiler/jslang/globalizer.native compiler/qmlcompilers/qmljs_exe.native tools/odep.native tools/odeplink.native compiler/opalang/opa2opa.native tools/ofile.native tools/manpages/genman.native compiler/opa/syntaxHelper.native compiler/opa/checkopacapi.native compiler/pplib/ppopa.native opa-node-packages.stamp qmljs.opa.create
+ /usr/local/bin/ocamlopt.opt -c -g -warn-error A -w L -w Z -I ocamllib/libbase -I compiler/libbsl -I compiler/libqmlcompil -I lib/plugins/opabsl.opp -I tools -I ocamllib -I lib -I compiler -I tools/build -o lib/plugins/opabsl.opp/opabslPlugin.cmx lib/plugins/opabsl.opp/opabslPlugin.ml
/var/folders/gz/9r534j312695ksjgsrrl_64c0000gn/T/camlasm805b2b.s:3783:49: warning: trigraph ignored [-Wtrigraphs]
        .ascii  "\240\240\1(\234\1(\243@@\220@\241\6\0\1??'is_zero\240\241\240\2\0\0\207Z\241\240\240\5%\337\240\240\1(\244\1(\246@@\220@\4\256@@\242\240\2\0\0\207_\241\240\240\5%\347\240\240\1(\251\1(\266@@\220"
                                                        ^
1 warning generated.
+ /usr/local/bin/ocamlc.opt -c -g -thread -warn-error A -w L -w Z -I /Users/raphael/.opam/system/lib/camlzip/../zip -I /Users/raphael/.opam/system/lib/ocamlgraph -I /Users/raphael/.opam/system/lib/ulex -I ocamllib/libbase -I tools -I ocamllib -I lib -I compiler -I tools/build -o tools/odep.cmo tools/odep.ml
File "tools/odep.ml", line 103, characters 35-122:
Error: Some record fields are undefined: sg_parent
Command exited with code 2.
Compilation unsuccessful after building 1882 targets (1124 cached) in 00:07:32.
make: *** [node] Error 10

Trying, then, to re-run the incriminated command myself didn't help:

$ /usr/local/bin/ocamlc.opt -c -g -thread -warn-error A -w L -w Z -I /Users/raphael/.opam/system/lib/camlzip/../zip -I /Users/raphael/.opam/system/lib/ocamlgraph -I /Users/raphael/.opam/system/lib/ulex -I ocamllib/libbase -I tools -I ocamllib -I lib -I compiler -I tools/build -o tools/odep.cmo tools/odep.ml
File "tools/odep.ml", line 26, characters 13-21:
Error: Unbound module Base

Running make again gives the first error again, only faster.

Some more information about my setup:

$ ocaml -vnum
4.01.0
raphaelmonrouzeau commented 10 years ago

After taking a look at the issues it seems a duplicate of #153.