Giter Club home page Giter Club logo

Comments (3)

kg avatar kg commented on August 12, 2024

I can't reproduce this. How are you running runtests.py? What versions of python and ocaml?

from spec.

rossberg avatar rossberg commented on August 12, 2024

On 21 August 2015 at 19:50, Luke Wagner [email protected] wrote:

Running runtests.py produces the following output:

// building main.native
SANITIZE: a total of 54 files that should probably not be in your source tree
has been found. A script shell file
"/moz/wasm/spec/ml-proto/src/_build/sanitize.sh" is being created. Check
this script and run it to remove unwanted files or use other options (such
as defining hygiene exceptions or using the -no-hygiene option).
IMPORTANT: I cannot work with leftover compiled files.
ERROR: Leftover ocamllex-generated files:
Files lexer.mll and lexer.ml should not be together in .
ERROR: Leftover ocamlyacc-generated files:
Files parser.mly and parser.ml should not be together in .
Files parser.mly and parser.mli should not be together in .
ERROR: Leftover object files:
File memory.o in . has suffix .o
File arithmetic.o in . has suffix .o
File parser.o in . has suffix .o
File script.o in . has suffix .o
File source.o in . has suffix .o
File main.o in . has suffix .o
File print.o in . has suffix .o
File eval.o in . has suffix .o
File flags.o in . has suffix .o
File lib.o in . has suffix .o
File values.o in . has suffix .o
File check.o in . has suffix .o
File error.o in . has suffix .o
File ast.o in . has suffix .o
File lexer.o in . has suffix .o
File types.o in . has suffix .o
ERROR: Leftover OCaml compilation files:
File types.cmo in . has suffix .cmo
File values.cmo in . has suffix .cmo
File ast.cmo in . has suffix .cmo
File memory.cmi in . has suffix .cmi
File main.cmi in . has suffix .cmi
File lexer.cmi in . has suffix .cmi
File values.cmi in . has suffix .cmi
File check.cmi in . has suffix .cmi
File error.cmi in . has suffix .cmi
File flags.cmi in . has suffix .cmi
File script.cmi in . has suffix .cmi
File arithmetic.cmi in . has suffix .cmi
File eval.cmi in . has suffix .cmi
File ast.cmi in . has suffix .cmi
File source.cmi in . has suffix .cmi
File parser.cmi in . has suffix .cmi
File lib.cmi in . has suffix .cmi
File print.cmi in . has suffix .cmi
File types.cmi in . has suffix .cmi
File parser.cmx in . has suffix .cmx
File lexer.cmx in . has suffix .cmx
File values.cmx in . has suffix .cmx
File arithmetic.cmx in . has suffix .cmx
File source.cmx in . has suffix .cmx
File eval.cmx in . has suffix .cmx
File flags.cmx in . has suffix .cmx
File check.cmx in . has suffix .cmx
File error.cmx in . has suffix .cmx
File script.cmx in . has suffix .cmx
File memory.cmx in . has suffix .cmx
File ast.cmx in . has suffix .cmx
File print.cmx in . has suffix .cmx
File lib.cmx in . has suffix .cmx
File main.cmx in . has suffix .cmx
File types.cmx in . has suffix .cmx
Exiting due to hygiene violations.
Compilation unsuccessful after building 0 targets (0 cached) in 00:00:00.
Traceback (most recent call last):
File "runtests.py", line 67, in
interpreterPath = rebuild_interpreter()
File "runtests.py", line 57, in rebuild_interpreter
raise Exception("ocamlbuild failed with exit code %i" % exitCode)
Exception: ocamlbuild failed with exit code 1

Performing make clean and then running produces a different set of errors:

// building main.native
SANITIZE: a total of 3 files that should probably not be in your source tree
has been found. A script shell file
"/moz/wasm/spec/ml-proto/src/_build/sanitize.sh" is being created. Check
this script and run it to remove unwanted files or use other options (such
as defining hygiene exceptions or using the -no-hygiene option).
IMPORTANT: I cannot work with leftover compiled files.
ERROR: Leftover ocamllex-generated files:
Files lexer.mll and lexer.ml should not be together in .
ERROR: Leftover ocamlyacc-generated files:
Files parser.mly and parser.ml should not be together in .
Files parser.mly and parser.mli should not be together in .
Exiting due to hygiene violations.
Compilation unsuccessful after building 0 targets (0 cached) in 00:00:00.
Traceback (most recent call last):
File "runtests.py", line 67, in
interpreterPath = rebuild_interpreter()
File "runtests.py", line 57, in rebuild_interpreter
raise Exception("ocamlbuild failed with exit code %i" % exitCode)
Exception: ocamlbuild failed with exit code 1

You need to do make distclean. Ocamlbuild is pretty pedantic about build
artefacts in the src tree, including generated ML files.

from spec.

lukewagner avatar lukewagner commented on August 12, 2024

Thanks!

from spec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.