^^^^^^^^^^^^^^^^^^ Warning 33 [unused-open]: unused open CommonGlobals. /usr/bin/ocamlopt.opt -inline 10 -w +a-3-4-6-27-29-32-35-37-41-44-45-48-60-70 -I src/utils/extlib -I src/utils/cdk -I src/utils/bitstring -I src/utils/lib -I src/utils/ocamlrss -I src/utils/xml-light -I src/utils/net -I tools -I src/daemon/common -I src/daemon/driver -I src/utils/mp3tagui -I src/config/unix -I src/networks/direct_connect -I src/networks/gnutella -I src/networks/gnutella2 -I src/networks/fileTP -I src/networks/bittorrent -I src/networks/donkey -I +camlp4 -c src/networks/gnutella/gnutellaProto.ml File "src/networks/gnutella/gnutellaProto.ml", line 588, characters 10-11: 588 | str_int s 19 len; ^ Error: This expression has type string but an expression was expected of type bytes make: *** [Makefile:5440: src/networks/gnutella/gnutellaProto.cmx] Error 2 ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 23.0_desktop_gnome_systemd-20241012-043003 UNMASKED: <sys-devel/gcc-15.0.9999:15 The attached etc.portage.tar.xz has all details. ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-15 * clang version 19.1.2 llvm-config: 19.1.2 Python 3.12.7 go version go1.23.1 linux/amd64 Available Ruby profiles: [1] ruby32 (with Rubygems) [2] ruby33 (with Rubygems) * Available Rust versions: [1] rust-bin-1.81.0 * The following VMs are available for generation-2: 1) Eclipse Temurin JDK 11.0.24_p8 [openjdk-bin-11] 2) Eclipse Temurin JDK 17.0.12_p7 [openjdk-bin-17] *) Eclipse Temurin JDK 21.0.4_p7 [openjdk-bin-21] 4) Eclipse Temurin JDK 8.422_p05 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 [2] openjdk-bin-11 [3] openjdk-bin-17 [4] openjdk-bin-21 system-vm The Glorious Glasgow Haskell Compilation System, version 9.2.8 HEAD of ::gentoo commit a7be91975c92d8f78a6da04922623535cf1e5933 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Thu Oct 17 11:48:17 2024 +0000 2024-10-17 11:48:17 UTC emerge -qpvO =net-p2p/mldonkey-3.2.1 [ebuild N ] net-p2p/mldonkey-3.2.1 USE="bittorrent gnutella ocamlopt -doc -fasttrack -gd -magic -upnp"
Created attachment 906176 [details] emerge-info.txt
Created attachment 906177 [details] emerge-history.txt
Created attachment 906178 [details] environment
Created attachment 906179 [details] etc.clang.tar.xz
Created attachment 906180 [details] etc.portage.tar.xz
Created attachment 906181 [details] logs.tar.xz
Created attachment 906182 [details] net-p2p:mldonkey-3.2.1:20241017-130832.log
Created attachment 906183 [details] qlist-info.txt.xz
Created attachment 906184 [details] temp.tar.xz
This really has nothing to do with GCC 15 and can be also reproduced with other versions of GCC. Actually, it has nothing to do with GCC either, the code with the issue is OCaml and is compiled with the OCaml compiler. The issue seems to be an incomplete fix for bug 749609 which is triggered when the non-default gnutella USE flag is enabled. I'm thinking that the best solution may be removing the gnutella USE flag and keeping support for Gnutella always disabled, given that the Gnutella code is marked as unmaintained since 2007: https://github.com/ygrek/mldonkey/blob/master/docs/ChangeLog.old#L221 For that reason, I think it's unlikely that the Gnutella code will be fixed although some changes were recently made to apply an incomplete fix for bug 749609. I also don't know if it still makes any sense to keep the fasttrack USE flag. Does that network still exist? But that's probably a different discussion. There is an upstream bug for this opened two months ago: https://github.com/ygrek/mldonkey/issues/108
This should be fixed in the next release: https://github.com/ygrek/mldonkey/commit/b26d45596279feb7b4871ebc669e4cddfa6911a1