OCaml Forge

Detail: [#1306] oasis test failures on bytecode only architectures

Bugs: Browse | Download .csv | Monitor

[#1306] oasis test failures on bytecode only architectures

Date:
2013-08-12 11:55
Priority:
3
State:
Closed
Submitted by:
Hendrik Tews (hendrik_tews)
Assigned to:
Sylvain Le Gall (gildor-admin)
Product:
OASIS
Due in version:
0.4.0
Resolution:
Fixed
Severity:
None
Version:
0.3.0~rc1
Component:
Plugin OCamlbuild
Operating System:
None
 
URL:
Summary:
oasis test failures on bytecode only architectures

Detailed description
Hi,

I discussed this issue with Sylvain already in June. I am
recording it here for better tracking.

The Debian oasis package fails to build on armhf, ia64, mips, s390 and
s390x because some tests fail there. The errors seem to be the
same, for instance

Failure: OASIS:5:TestFull:23:data/bugClib:0:standard

OUnit: Installed files (1st time)
expected: 'lib/ocaml/mylib/mylib.cmi', 'lib/ocaml/mylib/mylib.cma', 'lib/ocaml/mylib/foo.ml', 'lib/ocaml/mylib/dllmylib_stubs.so', 'lib/ocaml/mylib/META'
but got: 'lib/ocaml/mylib/mylib.cmi', 'lib/ocaml/mylib/mylib.cma', 'lib/ocaml/mylib/libmylib_stubs.a', 'lib/ocaml/mylib/foo.ml', 'lib/ocaml/mylib/dllmylib_stubs.so', 'lib/ocaml/mylib/META'
diff: +'lib/ocaml/mylib/libmylib_stubs.a'

This looks like you don't expect *.a files when is_native=false.

After trying several things, I can reproduce a similar error on
i386: If I add "--override is_native false" to the configure
options, the same test fails with

OUnit: Installed files (1st time)
expected: 'lib/ocaml/mylib/mylib.cmxs', 'lib/ocaml/mylib/mylib.cmi', 'lib/ocaml/mylib/mylib.cma', 'lib/ocaml/mylib/foo.ml', 'lib/ocaml/mylib/dllmylib_stubs.so', 'lib/ocaml/mylib/META'
but got: 'lib/ocaml/mylib/mylib.cmxs', 'lib/ocaml/mylib/mylib.cmxa', 'lib/ocaml/mylib/mylib.cmi', 'lib/ocaml/mylib/mylib.cma', 'lib/ocaml/mylib/mylib.a', 'lib/ocaml/mylib/libmylib_stubs.a', 'lib/ocaml/mylib/foo.ml', 'lib/ocaml/mylib/dllmylib_stubs.so', 'lib/ocaml/mylib/META'
diff: +'lib/ocaml/mylib/libmylib_stubs.a', +'lib/ocaml/mylib/mylib.a', +'lib/ocaml/mylib/mylib.cmxa'

There are several other points wrong with the tests when
is_native=false is forced on i386:

- the test above builds mylib.cmxa
- is_native=false on i386 makes more tests fail than on any of
the bytecode only architectures
- the tests call ocamlopt

Bye,

Hendrik

Followup

Message
Date: 2013-11-21 22:21
Sender: Sylvain Le Gall

https://github.com/ocaml/oasis/commit/4d439736f4658677ab653ca89325b0fc306545a5
Date: 2013-08-12 12:46
Sender: Sylvain Le Gall

Thanks for the reminder, it remains an open issue and I wish to have a way to run this test on the problematic arch.

Maybe I should just follow your path and use is_native=false to reproduce it.

Attached Files:

Changes:

Field Old Value Date By
status_idOpen2016-08-22 23:08gildor-admin
close_dateNone2016-08-22 23:08gildor-admin
ResolutionNone2013-11-21 22:21gildor-admin
ProductNone2013-11-21 22:21gildor-admin
assigned_tonone2013-08-12 12:46gildor-admin
Due in versionNone2013-08-12 12:46gildor-admin
ComponentNone2013-08-12 12:46gildor-admin