Bytecode compilation problem #28

vbmithr opened this Issue Mar 20, 2013 · 2 comments


None yet
3 participants

vbmithr commented Mar 20, 2013

Checkout vbmithr/ocaml-tuntap (branch compilation_bug)

Analysing Tuntap
  Tuntap has mtime 1363791896.000000
  Tuntap has interface (mtime=1363794346.000000)
  [CMD]: /usr/bin/ocamldep.opt -I lib -I dist/build/autogen -modules lib/
  Tuntap depends on Printf,String,Unix
  Tuntap internally depends on 
  [CMD]: /usr/bin/gcc -MM lib/tuntap_stubs.c
[1 of 3] Compiling C tuntap_stubs.c                
  [CMD]: gcc -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -fPIC -O3 -I lib -I /usr/lib/ocaml -I dist/build/autogen -o 
dist/build/lib-tuntap/tuntap_stubs.c.o -c lib/tuntap_stubs.c
[2 of 3] Intfing Tuntap                        
  [CMD]: /usr/bin/ocamlc.opt -I dist/build/lib-tuntap -I dist/build/autogen -I lib -bin-annot -o dist/build/lib-tuntap/tuntap.cmi 
-c lib/tuntap.mli
[3 of 3] Compiling Tuntap                        
  [CMD]: /usr/bin/ocamlopt.opt -I dist/build/lib-tuntap -I dist/build/autogen -I lib -bin-annot -o dist/build/lib-tuntap/
x -c lib/
  [CMD]: /usr/bin/ocamlc.opt -I dist/build/lib-tuntap -I dist/build/autogen -I lib -bin-annot -o dist/build/lib-tuntap/tuntap.cmo 
-c lib/
schedule finished: #processes=3 max_concurrency=2
  compilation order: Tuntap
  self deps: 
package deps: []
  [CMD]: /usr/bin/gcc -shared -o dist/build/lib-tuntap/ dist/build/lib-tuntap/tuntap_stubs.c.o
  [CMD]: /usr/bin/ar rc dist/build/lib-tuntap/libstubs_tuntap.a dist/build/lib-tuntap/tuntap_stubs.c.o
  [CMD]: /usr/bin/ranlib dist/build/lib-tuntap/libstubs_tuntap.a
Linking library dist/build/lib-tuntap/tuntap.cmxa
  [CMD]: /usr/bin/ocamlopt.opt -a -o dist/build/lib-tuntap/tuntap.cmxa -I dist/build/lib-tuntap -cclib -lstubs_tuntap tuntap.cmx
Linking library dist/build/lib-tuntap/tuntap.cma
  [CMD]: /usr/bin/ocamlc.opt -a -o dist/build/lib-tuntap/tuntap.cma -I dist/build/lib-tuntap -cclib -lstubs_tuntap tuntap.cmo
building target exe-tunctl
Building executable tunctl
preparing compilation for exe-tunctl
Analysing Tunctl
  Tunctl has mtime 1363792246.000000
  [CMD]: /usr/bin/ocamldep.opt -I test -I dist/build/autogen -modules test/
  Tunctl depends on Array,Printf,Sys,Tuntap
  Tunctl internally depends on 
[1 of 1] Compiling Tunctl                        
  [CMD]: /usr/bin/ocamlopt.opt -I dist/build/tunctl -I dist/build/autogen -I test -I dist/build/lib-tuntap -bin-annot -o dist/buil
d/tunctl/tunctl.cmx -c test/
  [CMD]: /usr/bin/ocamlc.opt -I dist/build/tunctl -I dist/build/autogen -I test -I dist/build/lib-tuntap -bin-annot -o dist/build/
tunctl/tunctl.cmo -c test/
schedule finished: #processes=2 max_concurrency=1
  compilation order: Tunctl
  self deps: tuntap
package deps: [tuntap]
Linking executable dist/build/tunctl/tunctl
  [CMD]: /usr/bin/ocamlopt.opt -o dist/build/tunctl/tunctl -I dist/build/tunctl -I dist/build/lib-tuntap tuntap.cmxa -cclib -Ldist
/build/lib-tuntap tunctl.cmx
Linking executable dist/build/tunctl/tunctl.byte
  [CMD]: /usr/bin/ocamlc.opt -o dist/build/tunctl/tunctl.byte -I dist/build/tunctl -I dist/build/lib-tuntap tuntap.cma -cclib -Ldi
st/build/lib-tuntap tunctl.cmo
File "_none_", line 1:
Error: Error while linking dist/build/lib-tuntap/tuntap.cma(Tuntap):
The external function `get_hwaddr' is not available
make: *** [build] Erreur 7
zsh: exit 2     make

UnixJunkie commented Sep 22, 2013

Can someone provide hints on how to fix this bug?


jeromemaloberti commented May 18, 2014

I cannot test on MacOSX, but I think I fixed all problems related to bytecode/debug/profil compilation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment