MLstate / opalang

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

Compilation failure on Fedora 20 #159

Closed fzipi closed 9 years ago

fzipi commented 10 years ago

I've installed all prerequisites for building on Fedora 20.

This is what i've got so far:

Ocamlbuild generation
_build/myocamlbuild.exe -no-plugin -j 6 -tag debug opabsl.qmljs.stamp plugins.qmljs.stamp ocamllib/libbase/bslServerLib.ml tools/odeplink.native tools/teerex/trx_ocaml.native compiler/pplib/ppml.native tools/jschecker/compiler.jar compiler/opalang/opa2opa.native tools/teerex/trx_interpreter.native tools/dissemination/spawn.sh tools/ofile.native compiler/libbsl/bslregister.native compiler/opa/gen_opa_manpage.native compiler/libbsl/bslbrowser.native compiler/libbsl/bslbrowser compiler/passlib/passdesign.native compiler/passlib/opatrack.sh compiler/opa/syntaxHelper.native compiler/compilerlib/opadep.sh tools/manpages/genman.native compiler/opa/checkopacapi.native ocamllib/libbase/testfilepos.native compiler/main.native compiler/jslang/jsstat.native compiler/opx2js/opx2js.native compiler/jslang/globalizer.native compiler/pplib/ppopa.native tools/bash/bash_completion compiler/qmlcompilers/qmljs_exe.native compiler/pplib/ppjs.native lib/plugins/opabsl/serverLib.cmi tools/odep.native ocamllib/libbase/gen_platform opa-node-packages.stamp qmljs.opa.create
+ /usr/bin/ocamlc.opt -c -g -w A -warn-error A -w e -w L -w Z -I ocamllib/libbase -I compiler/compilerlib -I compiler/libbsl -I compiler/libqmlcompil -I compiler/opacapi -I compiler/opalang -I compiler/opalib -I compiler/passlib -pp 'perl /home/fzipi/Workspace/OWASP/opalang/tools/utils/ppdebug.pl' -I compiler/passes -I tools -I ocamllib -I lib -I compiler -I tools/build -o compiler/passes/surfaceAstTrx.cmo compiler/passes/surfaceAstTrx.ml
File "compiler/passes/surfaceAstTrx.ml", line 117, characters 33-35:
Error: Unbound value |>
Command exited with code 2.
Compilation unsuccessful after building 1587 targets (0 cached) in 00:02:22.
make: *** [node] Error 10
fzipi commented 9 years ago

ping?

hbbio commented 9 years ago

Did you check with the latest state of master? I don't have a fedora distribution at hand but can't reproduce with other Linux distributions.

Le jeudi 25 septembre 2014, Felipe Zipitría notifications@github.com a écrit :

ping?

— Reply to this email directly or view it on GitHub https://github.com/MLstate/opalang/issues/159#issuecomment-56864391.

fzipi commented 9 years ago

Well, after pulling master, and made the same, it compiles successfully. Thanks.

[fzipi@picard:opalang]$ ./configure 
Checking your OS... Linux
Checking your architecture... x86_64
Checking ocamlopt... /bin/ocamlopt.opt
Checking ocamlbuild... /bin/ocamlbuild
Checking ocamldir... /usr/lib64/ocaml
Checking ocaml version... 4.00.1
Checking your ocaml setup... 4.00.1, Unix 64bit
Checking for camlp4... /bin/camlp4o
Checking for perl 5... found
Checking for java... found
Checking for nodejs... found: node
Checking for nodejs version... v0.10.30
Checking for ocamlfind... /bin/ocamlfind
Checking for ulex... ocamlfind:/usr/lib64/ocaml/ulex, OK
Checking for camlzip... ocamlfind:/usr/lib64/ocaml/zip, OK
Checking for ocamlgraph... ocamlfind:/usr/lib64/ocaml/ocamlgraph, OK

Congrats, you're all set. Installation will be done in:
    /usr/local

[fzipi@picard:opalang]$ make
Ocamlbuild generation
_build/myocamlbuild.exe -no-plugin -j 6 -tag debug opabsl.qmljs.stamp plugins.qmljs.stamp ocamllib/libbase/bslServerLib.ml tools/odeplink.native tools/teerex/trx_ocaml.native compiler/pplib/ppml.native tools/jschecker/compiler.jar compiler/opalang/opa2opa.native tools/teerex/trx_interpreter.native tools/dissemination/spawn.sh tools/ofile.native compiler/libbsl/bslregister.native compiler/opa/gen_opa_manpage.native compiler/libbsl/bslbrowser.native compiler/libbsl/bslbrowser compiler/passlib/passdesign.native compiler/passlib/opatrack.sh compiler/opa/syntaxHelper.native compiler/compilerlib/opadep.sh tools/manpages/genman.native compiler/opa/checkopacapi.native ocamllib/libbase/testfilepos.native compiler/main.native compiler/jslang/jsstat.native compiler/opx2js/opx2js.native compiler/jslang/globalizer.native compiler/pplib/ppopa.native tools/bash/bash_completion compiler/qmlcompilers/qmljs_exe.native compiler/pplib/ppjs.native lib/plugins/opabsl/serverLib.cmi tools/odep.native ocamllib/libbase/gen_platform opa-node-packages.stamp qmljs.opa.create
+ /home/fzipi/sources/opalang/_build/compiler/libbsl/bslregister.native --js-bypass-syntax new --unsafe-js --js-validator java --js-validator-opt -jar --js-validator-opt /home/fzipi/sources/opalang/_build/tools/jschecker/compiler.jar --js-validator-opt --warning_level --js-validator-opt VERBOSE --js-validator-opt --jscomp_error --js-validator-opt visibility --js-validator-opt --jscomp_error --js-validator-opt unknownDefines --js-validator-opt --jscomp_error --js-validator-opt undefinedVars --js-validator-opt --jscomp_error --js-validator-opt strictModuleDepCheck --js-validator-opt --jscomp_error --js-validator-opt invalidCasts --js-validator-opt --jscomp_error --js-validator-opt fileoverviewTags --js-validator-opt --jscomp_error --js-validator-opt deprecated --js-validator-opt --jscomp_error --js-validator-opt checkVars --js-validator-opt --jscomp_error --js-validator-opt checkRegExp --js-validator-opt --jscomp_error --js-validator-opt accessControls lib/plugins/crypto/bslCrypto.js lib/plugins/crypto/bslCrypto.nodejs -o crypto --build-dir lib/plugins
Warning bsl.register
Dependency to ursa has been auto added
+ /home/fzipi/sources/opalang/_build/compiler/libbsl/bslregister.native --js-bypass-syntax new --unsafe-js --js-validator java --js-validator-opt -jar --js-validator-opt /home/fzipi/sources/opalang/_build/tools/jschecker/compiler.jar --js-validator-opt --warning_level --js-validator-opt VERBOSE --js-validator-opt --jscomp_error --js-validator-opt visibility --js-validator-opt --jscomp_error --js-validator-opt unknownDefines --js-validator-opt --jscomp_error --js-validator-opt undefinedVars --js-validator-opt --jscomp_error --js-validator-opt strictModuleDepCheck --js-validator-opt --jscomp_error --js-validator-opt invalidCasts --js-validator-opt --jscomp_error --js-validator-opt fileoverviewTags --js-validator-opt --jscomp_error --js-validator-opt deprecated --js-validator-opt --jscomp_error --js-validator-opt checkVars --js-validator-opt --jscomp_error --js-validator-opt checkRegExp --js-validator-opt --jscomp_error --js-validator-opt accessControls lib/plugins/iconv/bslIconv.nodejs -o iconv --build-dir lib/plugins
Warning bsl.register
Dependency to iconv has been auto added
+ /home/fzipi/sources/opalang/_build/compiler/libbsl/bslregister.native --js-bypass-syntax new --unsafe-js --js-validator java --js-validator-opt -jar --js-validator-opt /home/fzipi/sources/opalang/_build/tools/jschecker/compiler.jar --js-validator-opt --warning_level --js-validator-opt VERBOSE --js-validator-opt --jscomp_error --js-validator-opt visibility --js-validator-opt --jscomp_error --js-validator-opt unknownDefines --js-validator-opt --jscomp_error --js-validator-opt undefinedVars --js-validator-opt --jscomp_error --js-validator-opt strictModuleDepCheck --js-validator-opt --jscomp_error --js-validator-opt invalidCasts --js-validator-opt --jscomp_error --js-validator-opt fileoverviewTags --js-validator-opt --jscomp_error --js-validator-opt deprecated --js-validator-opt --jscomp_error --js-validator-opt checkVars --js-validator-opt --jscomp_error --js-validator-opt checkRegExp --js-validator-opt --jscomp_error --js-validator-opt accessControls lib/plugins/mail/bslSmtp.nodejs lib/plugins/mail/bslRAI.nodejs lib/plugins/mail/bslLdap.nodejs --ml -I --ml /home/fzipi/sources/opalang/_build/ocamllib/libbase -o mail --build-dir lib/plugins
Warning bsl.register
Dependency to ldapjs has been auto added
Warning bsl.register
Dependency to rai has been auto added
Warning bsl.register
Dependency to nodemailer has been auto added
Warning bsl.register
Dependency to nodemailer-smtp-transport has been auto added
+ /home/fzipi/sources/opalang/_build/compiler/libbsl/bslregister.native --js-bypass-syntax new --unsafe-js --js-validator java --js-validator-opt -jar --js-validator-opt /home/fzipi/sources/opalang/_build/tools/jschecker/compiler.jar --js-validator-opt --warning_level --js-validator-opt VERBOSE --js-validator-opt --jscomp_error --js-validator-opt visibility --js-validator-opt --jscomp_error --js-validator-opt unknownDefines --js-validator-opt --jscomp_error --js-validator-opt undefinedVars --js-validator-opt --jscomp_error --js-validator-opt strictModuleDepCheck --js-validator-opt --jscomp_error --js-validator-opt invalidCasts --js-validator-opt --jscomp_error --js-validator-opt fileoverviewTags --js-validator-opt --jscomp_error --js-validator-opt deprecated --js-validator-opt --jscomp_error --js-validator-opt checkVars --js-validator-opt --jscomp_error --js-validator-opt checkRegExp --js-validator-opt --jscomp_error --js-validator-opt accessControls lib/plugins/server/bslScheduler.js lib/plugins/server/bslScheduler.nodejs lib/plugins/server/option.nodejs lib/plugins/server/cookies.nodejs lib/plugins/server/bslNet.nodejs lib/plugins/server/bslJson.js lib/plugins/server/bslJson.nodejs lib/plugins/server/bslServer_event.nodejs lib/plugins/server/bslI18n.js lib/plugins/server/bslMisc.nodejs lib/plugins/server/actor.js lib/plugins/server/actor.nodejs lib/plugins/server/session.js --pp-file lib/plugins/server/session.js:/home/fzipi/sources/opalang/_build/compiler/pplib/ppjs.native lib/plugins/server/session.nodejs lib/plugins/server/bslActor.nodejs lib/plugins/server/bslActor.js --js-validator-file lib/plugins/server/externs.js --js-validator-file lib/plugins/server/qmlCpsClientLib.externs.js --js-validator-file lib/plugins/server/clientLib.externs.js --js-validator-file lib/plugins/server/clientLibLib.externs.js --js-validator-file lib/plugins/server/opabsl.externs.js --js-validator-file lib/plugins/server/jquery.externs.js -o server --build-dir lib/plugins
Warning bsl.register
Dependency to opabsl.opp has been auto added
+ /home/fzipi/sources/opalang/_build/compiler/opa/checkopacapi.native -o opacapi.validation lib/stdlib/database/mongo/db.opa lib/stdlib/database/common/db_common.opa lib/stdlib/database/dropbox/db.opa lib/stdlib/database/postgres/db.opa lib/stdlib/core/rpc/core/oparpc.opa lib/stdlib/core/rpc/core/thread_context.opa lib/stdlib/core/rpc/core/web_session.opa lib/stdlib/core/rpc/core/scheduler.opa lib/stdlib/core/rpc/core/opatype_update.opa lib/stdlib/core/rpc/core/opa2js.opa lib/stdlib/core/rpc/core/json.opa lib/stdlib/core/rpc/core/limits.opa lib/stdlib/core/rpc/core/ping_register.opa lib/stdlib/core/rpc/core/channel.opa lib/stdlib/core/rpc/core/exports.opa lib/stdlib/core/rpc/core/cell.opa lib/stdlib/core/rpc/core/session.opa lib/stdlib/core/rpc/core/ping_client.opa lib/stdlib/core/rpc/core/fake_client_call_onserver.opa lib/stdlib/core/rpc/core/log.opa lib/stdlib/core/rpc/core/opaserialize.opa lib/stdlib/core/rpc/core/network.opa lib/stdlib/core/rpc/core/client_event.opa lib/stdlib/core/rpc/core/jsinterface.opa lib/stdlib/core/rpc/core/session_private.opa lib/stdlib/core/rpc/core/client_reference.opa lib/stdlib/core/rpc/maxint/max_int.opa lib/stdlib/core/web/server/server_private.opa lib/stdlib/core/web/server/client_code.opa lib/stdlib/core/web/server/server.opa lib/stdlib/core/web/server/server_options.opa lib/stdlib/core/web/resource/dynamic_resource.opa lib/stdlib/core/web/resource/resource.opa lib/stdlib/core/web/resource/favicon.opa lib/stdlib/core/web/resource/resource_private.opa lib/stdlib/core/web/client/web_client.opa lib/stdlib/core/web/client/xhr.opa lib/stdlib/core/web/core/web_utils.opa lib/stdlib/core/web/core/event.opa lib/stdlib/core/web/core/reply.opa lib/stdlib/core/web/core/connexion.opa lib/stdlib/core/web/core/url.opa lib/stdlib/core/web/core/client.opa lib/stdlib/core/web/core/uri.opa lib/stdlib/core/web/core/ip.opa lib/stdlib/core/web/core/web_info.opa lib/stdlib/core/web/context/user_context.opa lib/stdlib/core/web/request/web_user_agent.opa lib/stdlib/core/web/request/http_request.opa lib/stdlib/core/security/ssl/ssl.opa lib/stdlib/core/compare/compare.opa lib/stdlib/core/loop/loop.opa lib/stdlib/core/unification/cycle_detection.opa lib/stdlib/core/unification/opatype_unification.opa lib/stdlib/core/i18n/i18n_language.opa lib/stdlib/core/i18n/i18n_region.opa lib/stdlib/core/i18n/i18n.opa lib/stdlib/core/xhtml/dom.opa lib/stdlib/core/xhtml/xhtml_options.opa lib/stdlib/core/xhtml/css.opa lib/stdlib/core/xhtml/xhtml.opa lib/stdlib/core/js/jsast.opa lib/stdlib/core/js/jsast_cleaning.opa lib/stdlib/core/queue/queue.opa lib/stdlib/core/fresh/fresh.opa lib/stdlib/core/parser/opatypecast.opa lib/stdlib/core/parser/rules.opa lib/stdlib/core/parser/parser_private.opa lib/stdlib/core/parser/parser.opa lib/stdlib/core/cache/cache.opa lib/stdlib/core/funaction/funaction.opa lib/stdlib/core/set/set.opa lib/stdlib/core/date/duration_private.opa lib/stdlib/core/date/date.opa lib/stdlib/core/date/duration.opa lib/stdlib/core/date/date_range.opa lib/stdlib/core/date/date_private.opa lib/stdlib/core/concurrency/mutex.opa lib/stdlib/core/pack/pack.opa lib/stdlib/core/map/map.opa lib/stdlib/core/args/logger.opa lib/stdlib/core/args/server_arg.opa lib/stdlib/core/args/command_line.opa lib/stdlib/core/wbxml/wbxml.opa lib/stdlib/core/qos/resource_tracker.opa lib/stdlib/core/color/color.opa lib/stdlib/core/db/db.opa lib/stdlib/core/db/dbset.opa lib/stdlib/core/json/json.opa lib/stdlib/core/text.opa lib/stdlib/core/int32.opa lib/stdlib/core/string.opa lib/stdlib/core/initial.opa lib/stdlib/core/exception.opa lib/stdlib/core/list.opa lib/stdlib/core/math.opa lib/stdlib/core/void.opa lib/stdlib/core/buffer.opa lib/stdlib/core/deprecated.opa lib/stdlib/core/int64.opa lib/stdlib/core/binary.opa lib/stdlib/core/opavalue.opa lib/stdlib/core/reference.opa lib/stdlib/core/opatype.opa lib/stdlib/core/cps.opa lib/stdlib/core/finite_single_thread_lazy.opa lib/stdlib/core/textavl.opa lib/stdlib/core/mutable.opa lib/stdlib/core/number.opa lib/stdlib/core/option.opa lib/stdlib/core/serverAst.opa lib/stdlib/core/magic.opa lib/stdlib/core/random.opa lib/stdlib/core/textralist.opa lib/stdlib/core/barrier.opa lib/stdlib/core/jsast_typedef.opa lib/stdlib/core/mbint.opa lib/stdlib/core/core_client_code.opa lib/stdlib/core/debug.opa lib/stdlib/core/ansi.opa lib/stdlib/core/hashtbl.opa lib/stdlib/core/cactutf.opa lib/stdlib/core/iter.opa lib/stdlib/core/llarray.opa lib/stdlib/core/intra0.opa lib/stdlib/core/init.opa lib/stdlib/core/unicode.opa lib/stdlib/core/bool.opa lib/stdlib/core/profiler.opa lib/stdlib/core/order.opa lib/stdlib/core/outcome.opa --parser js-like:lib/stdlib/apis/mongo/gridfs.opa,lib/stdlib/core/web/client/xhr.opa,lib/stdlib/meteor/spark/spark.opa,lib/stdlib/meteor/spark/reactive.opa,lib/stdlib/apis/apigenlib/apigenlib.opa,lib/stdlib/database/postgres/db.opa,lib/stdlib/io/file/swap.opa,lib/stdlib/web/dns/dns.opa,lib/stdlib/core/mbint.opa,lib/stdlib/core/wbxml/wbxml.opa,lib/stdlib/core/unicode.opa,lib/stdlib/web/utils/raiserver.opa,lib/stdlib/web/mail/smtp/server/server.opa,lib/stdlib/web/mail/imap/server/server.opa,lib/stdlib/apis/ldap/ldap.opa,lib/stdlib/apis/ldap/inetorgperson.opa --parser classic
Parsing of lib/stdlib/core/pack/pack.opa is too long : 2.330 seconds 
Warning: opabsl contains 11.698718 % of unused bypasses: (73 / 624)
  13 both
  55 client
  5 server
c.f. file opacapi.validation for details
+ /home/fzipi/sources/opalang/_build/compiler/main.native --autocompile --conf conf --slicer-check low --project-root /home/fzipi/sources/opalang/ --no-stdlib -I lib/plugins --rebuild --conf-opa-files --opx-dir stdlib.qmljs --package-version 1.2.0 --warn-error root --no-warn-error coding.deprecated --no-warn-error load-opx --no-warn-error load-import --no-warn-error bsl.loading --no-warn-error bsl.projection --warn jscompiler --parser js-like:lib/stdlib/apis/mongo/gridfs.opa,lib/stdlib/core/web/client/xhr.opa,lib/stdlib/meteor/spark/spark.opa,lib/stdlib/meteor/spark/reactive.opa,lib/stdlib/apis/apigenlib/apigenlib.opa,lib/stdlib/database/postgres/db.opa,lib/stdlib/io/file/swap.opa,lib/stdlib/web/dns/dns.opa,lib/stdlib/core/mbint.opa,lib/stdlib/core/wbxml/wbxml.opa,lib/stdlib/core/unicode.opa,lib/stdlib/web/utils/raiserver.opa,lib/stdlib/web/mail/smtp/server/server.opa,lib/stdlib/web/mail/imap/server/server.opa,lib/stdlib/apis/ldap/ldap.opa,lib/stdlib/apis/ldap/inetorgperson.opa --parser classic
Parsing of lib/stdlib/apis/apigenlib/apigenlib.opa is too long : 1.128 seconds 
Parsing of lib/stdlib/core/pack/pack.opa is too long : 1.871 seconds 
Warning bsl.projection
The bypass bslvalue_record_fold_2_record is second-order and is not a cps-bypass
Warning bsl.projection
The bypass bslnumber_bslint64_catch is second-order and is not a cps-bypass
Warning bsl.projection
The bypass bslhashtbl_make is second-order and is not a cps-bypass
Warning bsl.projection
The bypass bslnet_ssl_make_policy is second-order and is not a cps-bypass
Warning bsl.projection
The bypass bslnativelib_opa_list_to_ocaml_list is second-order and is not a cps-bypass
Warning bsl.projection
The bypass bslnet_http_server_web_info_cont is second-order and is not a cps-bypass
Warning bsl.projection
The bypass bslnet_http_server_web_info_reconstruct is second-order and is not a cps-bypass
Warning bsl.projection
The bypass session_llsend_then is second-order and is not a cps-bypass
Warning bsl.projection
The bypass session_llsend is second-order and is not a cps-bypass
Warning bsl.projection
The bypass session_set_uu is second-order and is not a cps-bypass
Warning bsl.projection
The bypass bslnet_http_server_get_header_values is second-order and is not a cps-bypass
Warning bsl.projection
The bypass bslnet_http_server_init_server_cps is second-order and is not a cps-bypass
Warning bsl.projection
The bypass bslscheduler_at_exit is second-order and is not a cps-bypass
Warning bsl.projection
The bypass bslsys_process_async_shell_exec is second-order and is not a cps-bypass
Warning bsl.projection
The bypass bslfile_onchange is second-order and is not a cps-bypass
Warning bsl.projection
The bypass bslnativelib_opa_list_to_ocaml_list is second-order and is not a cps-bypass
Warning bsl.projection
The bypass bslnativelib_opa_list_to_ocaml_list is second-order and is not a cps-bypass
+ /home/fzipi/sources/opalang/_build/compiler/main.native -o tools/opa-create/src/opa-create.exe tools/opa-create/src/opa-create.opa --opx-dir stdlib.qmljs --no-server --project-root /home/fzipi/sources/opalang/ -I lib/plugins
$MLSTATELIBS/lib/opa/stdlib (=/home/fzipi/sources/opalang/_build/lib/opa/stdlib/stdlib.qmljs) doesn't exist. It won't be used as a default included directory.
Finished, 1963 targets (1582 cached) in 00:04:36.
cp -u -L _build/./tools/opa-create/src/opa-create.exe _build/bin/opa-create