trunk - Unbound value Hashtbl.stats
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
marionnet |
New
|
Undecided
|
Unassigned |
Bug Description
"Error: Unbound value Hashtbl.stats" during build of ocamlbricks.
The install of trunk fails in Debian 7 and 8 with the same error. Installing the "normal" version works fine. The problem might be that the stdlib hashtable module in ocaml downloaded by marionnet_
Defaults:
- the installation prefix is /usr/local
- the temporary working directory is /tmp
- continue execution: none
- marionnet's version is trunk
- ocamlbricks' version is trunk
- ocaml's version is 3[.]12[.]1
- godi's version is latest
- lablgtk's version is 2[.]14[.]2
- vde's version is latest
- dot's (graphviz') version is latest
- using godi: no
- keep debris: no
- generate bytecode only: no
- ignore vde: no
- ignore dot: no
- ignore kernels: no
- ignore pinocchio filesystems: no
- ignore other (big) filesystems: no
root@cs-deb8-0:~# ./marionnet_
* The log file is /tmp/marionnet_
* This looks like a Debian or derived distribution. Oh, joy!
Required packages: libtool libc6-i386
Shall I install required package(s) with aptitude ([y]/n)? y
Shall I use the aptitude option --allow-untrusted ([y]/n)?
* Installing required packages with aptitude .....
* Downloading marionnet ... 100%
* Downloading ocamlbricks ... 100%
* Downloading ocaml ... 100%
* Downloading lablgtk ... 100%
* Compiling ocaml ... 100%
* Compiling lablgtk ... 100%
* Compiling ocamlbricks ... 100%FAILED!
Last 20 lines of log (/tmp/marionnet
======
make[3]: Entering directory '/tmp/marionnet
make[3]: Nothing to be done for '_build/
make[3]: Leaving directory '/tmp/marionnet
make[3]: Entering directory '/tmp/marionnet
make[3]: Nothing to be done for '_build/
make[3]: Leaving directory '/tmp/marionnet
+ /tmp/marionnet_
File "EXTRA/
Error: Unbound value Hashtbl.stats
Command exited with code 2.
Makefile:616: recipe for target 'ocamlbricks.cmxa' failed
make[2]: *** [ocamlbricks.cmxa] Error 10
make[2]: Leaving directory '/tmp/marionnet
FAILED when building "ocamlbricks.cmxa".
Makefile:77: recipe for target 'native-libraries' failed
make[1]: *** [native-libraries] Error 255
make[1]: Leaving directory '/tmp/marionnet
FAILURE: could not build native libraries.
Makefile:85: recipe for target 'libraries' failed
make: *** [libraries] Error 255
======
Exiting.
Exiting because of an unexpected error in line 601
root@cs-deb8-0:# dpkg -l ocaml-nox
||/ Name Version Architecture Description
+++-===
ii ocaml-nox 4.01.0-5 amd64 ML implementation with a class-ba
I was able to coax marionnet_ from_scratch into using the system ocaml by commenting 4 lines. This is NOT a patch for production. It is only a temporary modification to use the system ocaml for trunk.
--- marionnet_ from_scratch 2015-03-17 06:14:29.000000000 -0500 from_scratch_ tmp 2015-07-21 09:55:33.847409891 -0500 $PWD/local PREFIX/ bin:$PATH $OCAML_ PREFIX/ lib/ocaml/ $OCAML_ PREFIX/ lib/ocaml/ LIBRARY_ PATH=${ LIB_OCAML} /stublibs /usr/lib/ ocaml/ LIBRARY_ PATH=${ LIB_OCAML} /stublibs latest_ ocaml 83000 latest_ ocaml 83000 latest_ lablgtk 17800
+++ marionnet_
@@ -1086,11 +1086,13 @@
# Tuning:
export OCAML_PREFIX=
export PATH=$OCAML_
- LIB_OCAML=
+# LIB_OCAML=
+# export CAML_LD_
+ LIB_OCAML=
export CAML_LD_
- launch_and_log "Downloading ocaml" download_
+# launch_and_log "Downloading ocaml" download_
launch_and_log "Downloading lablgtk" download_
- launch_and_log "Compiling ocaml" compile_ocaml 382000
+# launch_and_log "Compiling ocaml" compile_ocaml 382000
launch_and_log "Compiling lablgtk" compile_lablgtk 56000
;;