Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save peter-jerry-ye/c22af6207190e0f8493ca6aed019ae19 to your computer and use it in GitHub Desktop.

Select an option

Save peter-jerry-ye/c22af6207190e0f8493ca6aed019ae19 to your computer and use it in GitHub Desktop.
dune build ./hello.exe
Running[0]: /usr/bin/nproc > /tmp/duneb5006c.output 2> /dev/null
Auto-detected concurrency: 2
disable binary cache
Running[1]: /home/zihang/.opam/4.12.0/bin/ocamlc.opt -config > /tmp/dunebe8e15.output
Dune context:
{ name = "default"
; kind = "default"
; profile = Dyn
; merlin = true
; for_host = None
; fdo_target_exe = None
; build_dir = "default"
; toplevel_path = Some External "/home/zihang/.opam/4.12.0/lib/toplevel"
; ocaml_bin = External "/home/zihang/.opam/4.12.0/bin"
; ocaml = Ok External "/home/zihang/.opam/4.12.0/bin/ocaml"
; ocamlc = External "/home/zihang/.opam/4.12.0/bin/ocamlc.opt"
; ocamlopt = Ok External "/home/zihang/.opam/4.12.0/bin/ocamlopt.opt"
; ocamldep = Ok External "/home/zihang/.opam/4.12.0/bin/ocamldep.opt"
; ocamlmklib = Ok External "/home/zihang/.opam/4.12.0/bin/ocamlmklib.opt"
; env =
map
{ "DUNE_OCAML_HARDCODED" : "/home/zihang/.opam/4.12.0/lib"
; "DUNE_OCAML_STDLIB" : "/home/zihang/.opam/4.12.0/lib/ocaml"
; "DUNE_SOURCEROOT" : "/home/zihang/realworldocaml"
; "INSIDE_DUNE" : "/home/zihang/realworldocaml/_build/default"
; "OCAMLFIND_IGNORE_DUPS_IN" :
"/home/zihang/realworldocaml/_build/install/default/lib"
; "OCAMLPATH" :
"/home/zihang/realworldocaml/_build/install/default/lib"
; "OCAMLTOP_INCLUDE_PATH" :
"/home/zihang/realworldocaml/_build/install/default/lib/toplevel"
; "OCAML_COLOR" : "always"
; "OPAMCOLOR" : "always"
}
; findlib_path = [ External "/home/zihang/.opam/4.12.0/lib" ]
; arch_sixtyfour = true
; natdynlink_supported = true
; supports_shared_libraries = true
; ocaml_config =
{ version = "4.12.0"
; standard_library_default = "/home/zihang/.opam/4.12.0/lib/ocaml"
; standard_library = "/home/zihang/.opam/4.12.0/lib/ocaml"
; standard_runtime = "the_standard_runtime_variable_was_deleted"
; ccomp_type = "cc"
; c_compiler = "gcc"
; ocamlc_cflags = [ "-O2"; "-fno-strict-aliasing"; "-fwrapv"; "-fPIC" ]
; ocamlc_cppflags = [ "-D_FILE_OFFSET_BITS=64"; "-D_REENTRANT" ]
; ocamlopt_cflags =
[ "-O2"; "-fno-strict-aliasing"; "-fwrapv"; "-fPIC" ]
; ocamlopt_cppflags = [ "-D_FILE_OFFSET_BITS=64"; "-D_REENTRANT" ]
; bytecomp_c_compiler =
[ "gcc"
; "-O2"
; "-fno-strict-aliasing"
; "-fwrapv"
; "-fPIC"
; "-D_FILE_OFFSET_BITS=64"
; "-D_REENTRANT"
]
; bytecomp_c_libraries = [ "-lm"; "-ldl"; "-lpthread" ]
; native_c_compiler =
[ "gcc"
; "-O2"
; "-fno-strict-aliasing"
; "-fwrapv"
; "-fPIC"
; "-D_FILE_OFFSET_BITS=64"
; "-D_REENTRANT"
]
; native_c_libraries = [ "-lm"; "-ldl" ]
; cc_profile = []
; architecture = "amd64"
; model = "default"
; int_size = 63
; word_size = 64
; system = "linux"
; asm = [ "as" ]
; asm_cfi_supported = true
; with_frame_pointers = false
; ext_exe = ""
; ext_obj = ".o"
; ext_asm = ".s"
; ext_lib = ".a"
; ext_dll = ".so"
; os_type = "Unix"
; default_executable_name = "a.out"
; systhread_supported = true
; host = "x86_64-pc-linux-gnu"
; target = "x86_64-pc-linux-gnu"
; profiling = false
; flambda = false
; spacetime = false
; safe_string = true
; exec_magic_number = "Caml1999X029"
; cmi_magic_number = "Caml1999I029"
; cmo_magic_number = "Caml1999O029"
; cma_magic_number = "Caml1999A029"
; cmx_magic_number = "Caml1999Y029"
; cmxa_magic_number = "Caml1999Z029"
; ast_impl_magic_number = "Caml1999M029"
; ast_intf_magic_number = "Caml1999N029"
; cmxs_magic_number = "Caml1999D029"
; cmt_magic_number = "Caml1999T029"
; natdynlink_supported = true
; supports_shared_libraries = true
; windows_unicode = false
}
}
Actual targets:
- _build/default/hello.exe
File "dune", line 3, characters 13-27:
3 | (libraries ctypes-foreign)
^^^^^^^^^^^^^^
Error: Library "ctypes-foreign" not found.
Hint: try:
dune external-lib-deps --missing --verbose ./hello.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment