ocaml / dune

A composable build system for OCaml.
https://dune.build/
MIT License
1.63k stars 401 forks source link

dune build, exception Stack overflow #2759

Closed olafhering closed 5 years ago

olafhering commented 5 years ago

In a bytecode-only environment, seen with ocaml 4.05 and 4.08, while building ocaml-camomile:

[   48s] + dune build --verbose --for-release-of-packages=camomile @install
[   48s] # Workspace root: /home/abuild/rpmbuild/BUILD/ocaml-camomile-1.0.2
[   48s] Running[0]: /usr/bin/nproc > /tmp/duneeabc41.output 2> /dev/null
[   48s] # # Workspace root: /home/abuild/rpmbuild/BUILD/ocaml-camomile-1.0.2
[   48s] # Auto-detected concurrency: 16
[   48s] Running[1]: /usr/bin/ocamlc -config > /tmp/dune23c28f.output
[   48s] # # # Workspace root: /home/abuild/rpmbuild/BUILD/ocaml-camomile-1.0.2
[   48s] # # Auto-detected concurrency: 16
[   48s] # Dune context:
[   48s] #  {name = "default";
[   48s] #    kind = "default";
[   48s] #    profile = "release";
[   48s] #    merlin = true;
[   48s] #    for_host = None;
[   48s] #    build_dir = "default";
[   48s] #    toplevel_path = None;
[   48s] #    ocaml_bin = External "/usr/bin";
[   48s] #    ocaml = External "/usr/bin/ocaml";
[   48s] #    ocamlc = External "/usr/bin/ocamlc";
[   48s] #    ocamlopt = None;
[   48s] #    ocamldep = External "/usr/bin/ocamldep";
[   48s] #    ocamlmklib = External "/usr/bin/ocamlmklib";
[   48s] #    env =
[   48s] #      map {"CAML_LD_LIBRARY_PATH" :
[   48s] #           "/home/abuild/rpmbuild/BUILD/ocaml-camomile-1.0.2/_build/install/default/lib/stublibs";
[   48s] #      "DUNE_CONFIGURATOR" : "/usr/bin/ocamlc"; "INSIDE_DUNE" : "1";
[   48s] #      "OCAMLFIND_IGNORE_DUPS_IN" :
[   48s] #      "/home/abuild/rpmbuild/BUILD/ocaml-camomile-1.0.2/_build/install/default/lib";
[   48s] #      "OCAMLPATH" :
[   48s] #      "/home/abuild/rpmbuild/BUILD/ocaml-camomile-1.0.2/_build/install/default/lib"};
[   48s] #    findlib_path = [External "/usr/lib64/ocaml"];
[   48s] #    arch_sixtyfour = true;
[   48s] #    natdynlink_supported = false;
[   48s] #    supports_shared_libraries = true;
[   48s] #    opam_vars = map {};
[   48s] #    ocaml_config =
[   48s] #      {version = "4.08.1";
[   48s] #        standard_library_default = "/usr/lib64/ocaml";
[   48s] #        standard_library = "/usr/lib64/ocaml";
[   48s] #        standard_runtime = "the_standard_runtime_variable_was_deleted";
[   48s] #        ccomp_type = "cc";
[   48s] #        c_compiler = "/usr/bin/gcc";
[   48s] #        ocamlc_cflags = ["-O2"; "-fno-strict-aliasing"; "-fwrapv"; "-fPIC"];
[   48s] #        ocamlopt_cflags = ["-O2"; "-fno-strict-aliasing"; "-fwrapv"];
[   48s] #        bytecomp_c_compiler =
[   48s] #          ["/usr/bin/gcc"; "-O2"; "-fno-strict-aliasing"; "-fwrapv"; "-fPIC";
[   48s] #          "-D_FILE_OFFSET_BITS=64"; "-D_REENTRANT"];
[   48s] #        bytecomp_c_libraries = ["-lm"; "-ldl"; "-lpthread"];
[   48s] #        native_c_compiler =
[   48s] #          ["/usr/bin/gcc"; "-O2"; "-fno-strict-aliasing"; "-fwrapv";
[   48s] #          "-D_FILE_OFFSET_BITS=64"; "-D_REENTRANT"];
[   48s] #        native_c_libraries = ["-lm"; "-ldl"];
[   48s] #        cc_profile = ["-pg"];
[   48s] #        architecture = "amd64";
[   48s] #        model = "default";
[   48s] #        int_size = 63;
[   48s] #        word_size = 64;
[   48s] #        system = "linux";
[   48s] #        asm = ["/usr/bin/as"];
[   48s] #        asm_cfi_supported = true;
[   48s] #        with_frame_pointers = false;
[   48s] #        ext_exe = "";
[   48s] #        ext_obj = ".o";
[   48s] #        ext_asm = ".s";
[   48s] #        ext_lib = ".a";
[   48s] #        ext_dll = ".so";
[   48s] #        os_type = "Unix";
[   48s] #        default_executable_name = "a.out";
[   48s] #        systhread_supported = true;
[   48s] #        host = "x86_64-suse-linux-gnu";
[   48s] #        target = "x86_64-suse-linux-gnu";
[   48s] #        profiling = true;
[   48s] #        flambda = false;
[   48s] #        spacetime = false;
[   48s] #        safe_string = false;
[   48s] #        exec_magic_number = "Caml1999X025";
[   48s] #        cmi_magic_number = "Caml1999I025";
[   48s] #        cmo_magic_number = "Caml1999O025";
[   48s] #        cma_magic_number = "Caml1999A025";
[   48s] #        cmx_magic_number = "Caml1999Y025";
[   48s] #        cmxa_magic_number = "Caml1999Z025";
[   48s] #        ast_impl_magic_number = "Caml1999M025";
[   48s] #        ast_intf_magic_number = "Caml1999N025";
[   48s] #        cmxs_magic_number = "Caml1999D025";
[   48s] #        cmt_magic_number = "Caml1999T025";
[   48s] #        natdynlink_supported = false;
[   48s] #        supports_shared_libraries = true;
[   48s] #        windows_unicode = false};
[   48s] #    which =
[   48s] #      map {"ocaml" : Some External "/usr/bin/ocaml";
[   48s] #      "ocamlc" : Some External "/usr/bin/ocamlc";
[   48s] #      "ocamlobjinfo" : Some External "/usr/bin/ocamlobjinfo"}}
[   48s] # Actual targets:
[   48s] # - recursive alias @./install

...

[   61s] Running[746]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/syr_SY.txt locales)
[   61s] Running[747]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/ta.txt locales)
[   61s] Running[748]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/ta_IN.txt locales)
[   61s] Running[749]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/te.txt locales)
[   61s] Running[750]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/te_IN.txt locales)
[   61s] Running[751]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/test_1.txt locales)
[   61s] Running[752]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/th.txt locales)
[   61s] Running[753]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/th_TH.txt locales)
[   61s] Running[754]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/ti.txt locales)
[   61s] Running[755]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/ti_ER.txt locales)
[   61s] Running[756]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/ti_ET.txt locales)
[   61s] Running[757]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/tr.txt locales)
[   62s] Running[758]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/tr_TR.txt locales)
[   62s] Running[759]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/tt.txt locales)
[   62s] Running[760]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/tt_RU.txt locales)
[   62s] Running[761]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/uk.txt locales)
[   62s] Running[762]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/uk_UA.txt locales)
[   62s] Running[763]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/ur.txt locales)
[   62s] Running[764]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/ur_PK.txt locales)
[   62s] Running[765]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/uz.txt locales)
[   62s] Running[766]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/uz_UZ.txt locales)
[   62s] Running[767]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/vi.txt locales)
[   62s] Output[747]:
[   62s] Warning : normalization option is not supported
[   62s] Running[768]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/vi_VN.txt locales)
[   62s] Running[769]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/zh.txt locales)
[   62s] Output[745]:
[   62s] Warning : normalization option is not supported
[   62s] Running[770]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/zh_CN.txt locales)
[   62s] Running[771]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/zh_HK.txt locales)
[   62s] Output[749]:
[   62s] Warning : normalization option is not supported
[   62s] Running[772]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/zh_MO.txt locales)
[   62s] Running[773]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/zh_SG.txt locales)
[   62s] Running[774]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/zh_TW.txt locales)
[   62s] Output[752]:
[   62s] Warning : file loading is not supported.
[   62s] Warning : normalization option is not supported
[   62s] Running[775]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/zh_TW_STROKE.txt locales)
[   62s] Running[776]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/zh__PINYIN.txt locales)
[   62s] Running[777]: (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/af.txt locales)
[   62s] Output[763]:
[   62s] Warning : normalization option is not supported
[   63s] Output[767]:
[   63s] Warning : normalization option is not supported
[   63s] Output[759]:
[   63s] Warning : normalization option is not supported
[   63s] Output[660]:
[   63s] Warning : strength option is not supported
[   63s] Output[765]:
[   63s] Warning : normalization option is not supported
[   64s] Command [776] exited with code 2:
[   64s] $ (cd _build/default/Camomile && tools/camomilelocaledef.exe --file locales/zh__PINYIN.txt locales)
[   64s] Fatal error: exception Stack overflow
[   67s] error: Bad exit status from /var/tmp/rpm-tmp.is8n75 (%build)
rgrinberg commented 5 years ago

I believe this is not dune stackoverflowing but camomile. Could you file the issue there?

olafhering commented 5 years ago

My bad, you are right.