Closed Rielynd closed 3 years ago
Currently having this weird problem...
../boot/ocamlrun ../ocamlopt -g -nostdlib -I ../stdlib -I ../utils -I ../parsing -I ../typing -I ../bytecomp -I ../middle_end -I ../middle_end/closure -I ../middle_end/flambda -I ../middle_end/flambda/base_types -I ../driver -I ../toplevel -I ../file_formats -I ../lambda -I .. -o ocamlmklib.opt ocamlmklibconfig.cmx config.cmx build_path_prefix_map.cmx misc.cmx ocamlmklib.cmx
make[2]: *** [Makefile:242: actions_helpers.cmx] Segmentation fault (core dumped)
make[2]: *** Waiting for unfinished jobs....
../boot/ocamlrun ../ocamlopt -g -nostdlib -I ../stdlib -I ../utils -I ../parsing -I ../typing -I ../bytecomp -I ../middle_end -I ../middle_end/closure -I ../middle_end/flambda -I ../middle_end/flambda/base_types -I ../driver -I ../toplevel -I ../file_formats -I ../lambda -I .. -o dumpobj.opt ../compilerlibs/ocamlcommon.cmxa ../compilerlibs/ocamlbytecomp.cmxa opnames.cmx dumpobj.cmx
make[2]: Leaving directory '/var/tmp/portage/dev-lang/ocaml-9999/work/ocaml-9999/ocamltest'
make[1]: *** [Makefile:874: ocamltest.opt] Error 2
make[2]: Leaving directory '/var/tmp/portage/dev-lang/ocaml-9999/work/ocaml-9999/tools'
make[1]: Leaving directory '/var/tmp/portage/dev-lang/ocaml-9999/work/ocaml-9999'
make: *** [Makefile:220: opt.opt] Error 2
Attaching gdb shows a segfault here:
Program received signal SIGSEGV, Segmentation fault.
camlStdlib__map__cardinal_1496 () at map.ml:487
487 | Node {l; r} -> cardinal l + 1 + cardinal r
(gdb) list
482 equal_aux (cons_enum r1 e1) (cons_enum r2 e2)
483 in equal_aux (cons_enum m1 End) (cons_enum m2 End)
484
485 let rec cardinal = function
486 Empty -> 0
487 | Node {l; r} -> cardinal l + 1 + cardinal r
488
489 let rec bindings_aux accu = function
490 Empty -> accu
491 | Node {l; v; d; r} -> bindings_aux ((v, d) :: bindings_aux accu r) l
Anybody knows what's this about?
PS. That's the diff to the changed ebuild I came up with so far... https://0bin.net/paste/o+xlnUyE#xw9s4moEc-u/JBOoRn5VvE2PLO8yvhGHc1Xl9FirKiB
Oh, I haven't built ocaml-9999 for ages... I cannot promise but I will try to help with it at sunday.
Sorry for late reply. I've fixed some obvious issues (thanks to your diff too) in ebuild and it now somehow builds. @Rielynd could you please check whether those issues gone?
Described problems fixed, closing issue for now.
Hi, I notices that first of all the dep "x11-proto/xproto" listed in the ebuild doesn't seem to exist anymore.
Now, after changing
x11-proto/xproto
tox11-base/xcb-proto
, portage at least takes that ebuild. Then, the build process fails with the errorconfigure: error: unrecognized option:
--target-bindir'`. CLI Log is here: https://0bin.net/paste/XN67W3w7#QO4mgRFAsAFNyyh6xG+kCkJbL8Y80c6yuUov0mPErYuI'll try to make it work and post a patch if I do^^