pkulev / riru

Unofficial gentoo overlay
11 stars 2 forks source link

multiple problems with dev-lang/ocaml-9999 ebuild #59

Closed Rielynd closed 3 years ago

Rielynd commented 3 years ago

Hi, I notices that first of all the dep "x11-proto/xproto" listed in the ebuild doesn't seem to exist anymore.

khaisosenkentsuno / # emerge -a --oneshot =dev-lang/ocaml-9999

 * IMPORTANT: 13 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "x11-proto/xproto".
(dependency required by "dev-lang/ocaml-9999::riru[X]" [ebuild])
(dependency required by "=dev-lang/ocaml-9999" [argument])
khaisosenkentsuno / # ls /var/db/repos/gentoo/ | grep x11-
x11-apps
x11-base
x11-drivers
x11-libs
x11-misc
x11-plugins
x11-terms
x11-themes
x11-wm

Now, after changing x11-proto/xproto to x11-base/xcb-proto, portage at least takes that ebuild. Then, the build process fails with the error configure: error: unrecognized option:--target-bindir'`. CLI Log is here: https://0bin.net/paste/XN67W3w7#QO4mgRFAsAFNyyh6xG+kCkJbL8Y80c6yuUov0mPErYu

I'll try to make it work and post a patch if I do^^

Rielynd commented 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

pkulev commented 3 years ago

Oh, I haven't built ocaml-9999 for ages... I cannot promise but I will try to help with it at sunday.

pkulev commented 3 years ago

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?

pkulev commented 3 years ago

Described problems fixed, closing issue for now.