Created attachment 699258 [details] emerge --info [...] ocamlopt: linkgtk2.ml ---> linkgtk2.cmx ocamlopt -g -I lwt -I ubase -I system -I fsmonitor -I fsmonitor/linux -I fsmonitor/windows -I system/generic -I lwt/generic -I /usr/lib/ocaml/lablgtk2 -c /var/tmp/portage/net-misc/unison-2.51.3_p20201127/work/unison-4713e608d2f9c998ba4412fee53b94dc9bef98b9/src/linkgtk2.ml ocamlopt: osxsupport.c ---> osxsupport.o ocamlopt -g -I lwt -I ubase -I system -I fsmonitor -I fsmonitor/linux -I fsmonitor/windows -I system/generic -I lwt/generic -I /usr/lib/ocaml/lablgtk2 -ccopt "-o "/var/tmp/portage/net-misc/unison-2.51.3_p20201127/work/unison-4713e608d2f9c998ba4412fee53b94dc9bef98b9/src/osxsupport.o -c /var/tmp/portage/net-misc/unison-2.51.3_p20201127/work/unison-4713e608d2f9c998ba4412fee53b94dc9bef98b9/src/osxsupport.c ocamlopt: pty.c ---> pty.o ocamlopt -g -I lwt -I ubase -I system -I fsmonitor -I fsmonitor/linux -I fsmonitor/windows -I system/generic -I lwt/generic -I /usr/lib/ocaml/lablgtk2 -ccopt "-o "/var/tmp/portage/net-misc/unison-2.51.3_p20201127/work/unison-4713e608d2f9c998ba4412fee53b94dc9bef98b9/src/pty.o -c /var/tmp/portage/net-misc/unison-2.51.3_p20201127/work/unison-4713e608d2f9c998ba4412fee53b94dc9bef98b9/src/pty.c ocamlopt: bytearray_stubs.c ---> bytearray_stubs.o ocamlopt -g -I lwt -I ubase -I system -I fsmonitor -I fsmonitor/linux -I fsmonitor/windows -I system/generic -I lwt/generic -I /usr/lib/ocaml/lablgtk2 -ccopt "-o "/var/tmp/portage/net-misc/unison-2.51.3_p20201127/work/unison-4713e608d2f9c998ba4412fee53b94dc9bef98b9/src/bytearray_stubs.o -c /var/tmp/portage/net-misc/unison-2.51.3_p20201127/work/unison-4713e608d2f9c998ba4412fee53b94dc9bef98b9/src/bytearray_stubs.c Linking unison ocamlopt -verbose -g -I lwt -I ubase -I system -I fsmonitor -I fsmonitor/linux -I fsmonitor/windows -I system/generic -I lwt/generic -I /usr/lib/ocaml/lablgtk2 -o unison unix.cmxa str.cmxa bigarray.cmxa lablgtk.cmxa ubase/rx.cmx unicode_tables.cmx unicode.cmx bytearray.cmx system/system_generic.cmx system/generic/system_impl.cmx system.cmx ubase/projectInfo.cmx ubase/myMap.cmx ubase/safelist.cmx ubase/util.cmx ubase/uarg.cmx ubase/prefs.cmx ubase/trace.cmx ubase/proplist.cmx lwt/pqueue.cmx lwt/lwt.cmx lwt/lwt_util.cmx lwt/generic/lwt_unix_impl.cmx lwt/lwt_unix.cmx uutil.cmx case.cmx pred.cmx fileutil.cmx name.cmx path.cmx fspath.cmx fs.cmx fingerprint.cmx abort.cmx osx.cmx external.cmx fswatch.cmx props.cmx fileinfo.cmx os.cmx lock.cmx clroot.cmx common.cmx tree.cmx checksum.cmx terminal.cmx transfer.cmx xferhint.cmx remote.cmx globals.cmx fswatchold.cmx fpcache.cmx update.cmx copy.cmx stasher.cmx files.cmx sortri.cmx recon.cmx transport.cmx strings.cmx uicommon.cmx uitext.cmx test.cmx main.cmx pixmaps.cmx uigtk2.cmx linkgtk2.cmx osxsupport.o pty.o bytearray_stubs.o -cclib -lutil File "_none_", line 1: Error: Cannot find file lablgtk.cmxa
Created attachment 699261 [details] build.log
Have you tried to emerge dev-ml/lablgtk:2
(In reply to Tupone Alfredo from comment #2) > Have you tried to > > emerge dev-ml/lablgtk:2 dev-ml/lablgtk-2.18.10 was already built. But unison does not seem to check whether lablgtk was built with USE='ocamlopt' or not. I did rebuild lablgtk with +ocamlopt and after that unison-2.51.3_p20201127[gtk ocamlopt] also builds fine.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=921a68af015d95b880642ac291df6a2335fc47e6 commit 921a68af015d95b880642ac291df6a2335fc47e6 Author: Alfredo Tupone <tupone@gentoo.org> AuthorDate: 2021-05-03 06:10:35 +0000 Commit: Alfredo Tupone <tupone@gentoo.org> CommitDate: 2021-05-03 06:10:35 +0000 net-misc/unison: require ocamlopt on lablgtk when needed Closes: https://bugs.gentoo.org/782109 Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Alfredo Tupone <tupone@gentoo.org> net-misc/unison/unison-2.51.3_p20201127.ebuild | 4 ++-- net-misc/unison/unison-2.51.4_rc2.ebuild | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)