Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 941711 - net-p2p/mldonkey-3.2.1 - Error: This expression has type string but an expression was expected of type
Summary: net-p2p/mldonkey-3.2.1 - Error: This expression has type string but an expres...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Jesús P Rey (Chuso)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2024-10-17 15:38 UTC by Toralf Förster
Modified: 2025-02-20 15:43 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,20.02 KB, text/plain)
2024-10-17 15:38 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,245.67 KB, text/plain)
2024-10-17 15:38 UTC, Toralf Förster
Details
environment (environment,102.36 KB, text/plain)
2024-10-17 15:38 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.20 KB, application/x-xz)
2024-10-17 15:38 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,28.79 KB, application/x-xz)
2024-10-17 15:38 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,8.45 KB, application/x-xz)
2024-10-17 15:38 UTC, Toralf Förster
Details
net-p2p:mldonkey-3.2.1:20241017-130832.log (net-p2p:mldonkey-3.2.1:20241017-130832.log,233.12 KB, text/plain)
2024-10-17 15:38 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,64.36 KB, application/x-xz)
2024-10-17 15:38 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,24.20 KB, application/x-xz)
2024-10-17 15:38 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-10-17 15:38:44 UTC
     ^^^^^^^^^^^^^^^^^^
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"
Comment 1 Toralf Förster gentoo-dev 2024-10-17 15:38:45 UTC
Created attachment 906176 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-10-17 15:38:47 UTC
Created attachment 906177 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-10-17 15:38:48 UTC
Created attachment 906178 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-10-17 15:38:49 UTC
Created attachment 906179 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-10-17 15:38:50 UTC
Created attachment 906180 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-10-17 15:38:50 UTC
Created attachment 906181 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-10-17 15:38:52 UTC
Created attachment 906182 [details]
net-p2p:mldonkey-3.2.1:20241017-130832.log
Comment 8 Toralf Förster gentoo-dev 2024-10-17 15:38:53 UTC
Created attachment 906183 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-10-17 15:38:54 UTC
Created attachment 906184 [details]
temp.tar.xz
Comment 10 Jesús P Rey (Chuso) 2024-10-20 15:14:16 UTC
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
Comment 11 Jesús P Rey (Chuso) 2025-01-11 16:36:09 UTC
This should be fixed in the next release: https://github.com/ygrek/mldonkey/commit/b26d45596279feb7b4871ebc669e4cddfa6911a1