Skip to content

Instantly share code, notes, and snippets.

@rwmjones
Created August 21, 2020 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rwmjones/d4aee7db5637941bd9a52ce172cd9bc0 to your computer and use it in GitHub Desktop.
Save rwmjones/d4aee7db5637941bd9a52ce172cd9bc0 to your computer and use it in GitHub Desktop.
dune build failure
Workspace root: /home/rjones/d/ocaml-ssl
Running[0]: /usr/bin/nproc > /tmp/dunef08095.output 2> /dev/null
Auto-detected concurrency: 8
disable binary cache
Running[1]: /usr/bin/ocamlc.opt -config > /tmp/dune6310b0.output
Dune context:
{ name = "default"
; kind = "default"
; profile = Dyn
; merlin = true
; for_host = None
; fdo_target_exe = None
; build_dir = "default"
; toplevel_path = None
; ocaml_bin = External "/usr/bin"
; ocaml = Ok External "/usr/bin/ocaml"
; ocamlc = External "/usr/bin/ocamlc.opt"
; ocamlopt = Ok External "/usr/bin/ocamlopt.opt"
; ocamldep = Ok External "/usr/bin/ocamldep.opt"
; ocamlmklib = Ok External "/usr/bin/ocamlmklib.opt"
; env =
map
{ "CAML_LD_LIBRARY_PATH" :
"/home/rjones/d/ocaml-ssl/_build/install/default/lib/stublibs"
; "INSIDE_DUNE" : "/home/rjones/d/ocaml-ssl/_build/default"
; "OCAMLFIND_IGNORE_DUPS_IN" :
"/home/rjones/d/ocaml-ssl/_build/install/default/lib"
; "OCAMLPATH" : "/home/rjones/d/ocaml-ssl/_build/install/default/lib"
; "OCAMLTOP_INCLUDE_PATH" :
"/home/rjones/d/ocaml-ssl/_build/install/default/lib/toplevel"
}
; findlib_path = [ External "/usr/lib64/ocaml" ]
; arch_sixtyfour = true
; natdynlink_supported = true
; supports_shared_libraries = true
; ocaml_config =
{ version = "4.11.0"
; standard_library_default = "/usr/lib64/ocaml"
; standard_library = "/usr/lib64/ocaml"
; standard_runtime = "the_standard_runtime_variable_was_deleted"
; ccomp_type = "cc"
; c_compiler = "gcc"
; ocamlc_cflags =
[ "-O2"
; "-fno-strict-aliasing"
; "-fwrapv"
; "-O2"
; "-flto=auto"
; "-ffat-lto-objects"
; "-fexceptions"
; "-g"
; "-grecord-gcc-switches"
; "-pipe"
; "-Wall"
; "-Werror=format-security"
; "-Wp,-D_FORTIFY_SOURCE=2"
; "-Wp,-D_GLIBCXX_ASSERTIONS"
; "-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1"
; "-fstack-protector-strong"
; "-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1"
; "-m64"
; "-mtune=generic"
; "-fasynchronous-unwind-tables"
; "-fstack-clash-protection"
; "-fcf-protection"
; "-fPIC"
]
; ocamlc_cppflags = [ "-D_FILE_OFFSET_BITS=64"; "-D_REENTRANT" ]
; ocamlopt_cflags =
[ "-O2"
; "-fno-strict-aliasing"
; "-fwrapv"
; "-O2"
; "-flto=auto"
; "-ffat-lto-objects"
; "-fexceptions"
; "-g"
; "-grecord-gcc-switches"
; "-pipe"
; "-Wall"
; "-Werror=format-security"
; "-Wp,-D_FORTIFY_SOURCE=2"
; "-Wp,-D_GLIBCXX_ASSERTIONS"
; "-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1"
; "-fstack-protector-strong"
; "-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1"
; "-m64"
; "-mtune=generic"
; "-fasynchronous-unwind-tables"
; "-fstack-clash-protection"
; "-fcf-protection"
; "-fPIC"
]
; ocamlopt_cppflags = [ "-D_FILE_OFFSET_BITS=64"; "-D_REENTRANT" ]
; bytecomp_c_compiler =
[ "gcc"
; "-O2"
; "-fno-strict-aliasing"
; "-fwrapv"
; "-O2"
; "-flto=auto"
; "-ffat-lto-objects"
; "-fexceptions"
; "-g"
; "-grecord-gcc-switches"
; "-pipe"
; "-Wall"
; "-Werror=format-security"
; "-Wp,-D_FORTIFY_SOURCE=2"
; "-Wp,-D_GLIBCXX_ASSERTIONS"
; "-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1"
; "-fstack-protector-strong"
; "-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1"
; "-m64"
; "-mtune=generic"
; "-fasynchronous-unwind-tables"
; "-fstack-clash-protection"
; "-fcf-protection"
; "-fPIC"
; "-D_FILE_OFFSET_BITS=64"
; "-D_REENTRANT"
]
; bytecomp_c_libraries =
[ "-Wl,-z,relro"
; "-Wl,--as-needed"
; "-Wl,-z,now"
; "-specs=/usr/lib/rpm/redhat/redhat-hardened-ld"
; "-lm"
; "-ldl"
; "-lpthread"
]
; native_c_compiler =
[ "gcc"
; "-O2"
; "-fno-strict-aliasing"
; "-fwrapv"
; "-O2"
; "-flto=auto"
; "-ffat-lto-objects"
; "-fexceptions"
; "-g"
; "-grecord-gcc-switches"
; "-pipe"
; "-Wall"
; "-Werror=format-security"
; "-Wp,-D_FORTIFY_SOURCE=2"
; "-Wp,-D_GLIBCXX_ASSERTIONS"
; "-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1"
; "-fstack-protector-strong"
; "-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1"
; "-m64"
; "-mtune=generic"
; "-fasynchronous-unwind-tables"
; "-fstack-clash-protection"
; "-fcf-protection"
; "-fPIC"
; "-D_FILE_OFFSET_BITS=64"
; "-D_REENTRANT"
]
; native_c_libraries =
[ "-Wl,-z,relro"
; "-Wl,--as-needed"
; "-Wl,-z,now"
; "-specs=/usr/lib/rpm/redhat/redhat-hardened-ld"
; "-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 = "Caml1999X028"
; cmi_magic_number = "Caml1999I028"
; cmo_magic_number = "Caml1999O028"
; cma_magic_number = "Caml1999A028"
; cmx_magic_number = "Caml1999Y028"
; cmxa_magic_number = "Caml1999Z028"
; ast_impl_magic_number = "Caml1999M028"
; ast_intf_magic_number = "Caml1999N028"
; cmxs_magic_number = "Caml1999D028"
; cmt_magic_number = "Caml1999T028"
; natdynlink_supported = true
; supports_shared_libraries = true
; windows_unicode = false
}
}
Actual targets:
- alias @@default
Running[2]: (cd _build/default/src && config/discover.exe)
Command [2] exited with code 2:
$ (cd _build/default/src && config/discover.exe)
which: pkg-config
-> found: /usr/bin/pkg-config
run: /usr/bin/pkg-config --print-errors openssl
-> process exited with code 0
-> stdout:
-> stderr:
run: /usr/bin/pkg-config --cflags openssl
-> process exited with code 0
-> stdout:
|
-> stderr:
run: /usr/bin/pkg-config --libs openssl
-> process exited with code 0
-> stdout:
| -lssl -lcrypto
-> stderr:
compiling c program:
| #include <stdio.h>
| #include <openssl/ssl.h>
|
|
| #ifdef SSL_set_tlsext_host_name
| const char *s0 = "BEGIN-0-true-END";
| #else
| const char *s0 = "BEGIN-0-false-END";
| #endif
|
|
| #ifdef SSL_EXT_TLS1_3_ONLY
| const char *s1 = "BEGIN-1-true-END";
| #else
| const char *s1 = "BEGIN-1-false-END";
| #endif
|
run: gcc -O2 -fno-strict-aliasing -fwrapv -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -I /usr/lib64/ocaml -o /tmp/ocaml-configurator3de03f/c-test-3/test.o -c /tmp/ocaml-configurator3de03f/c-test-3/test.c
-> process exited with code 0
-> stdout:
-> stderr:
Fatal error: exception Failure("Map.of_list_exn: duplicate key")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment