Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 941466 - net-p2p/mldonkey-3.2.1 - [ncurses-6.5] [libtool] [gcc-15] Error: Unbound module DonkeyNodesDat
Summary: net-p2p/mldonkey-3.2.1 - [ncurses-6.5] [libtool] [gcc-15] Error: Unbound modu...
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:
Depends on:
Blocks:
 
Reported: 2024-10-13 11:36 UTC by Toralf Förster
Modified: 2024-10-24 06:25 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,20.51 KB, text/plain)
2024-10-13 11:36 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,235.43 KB, text/plain)
2024-10-13 11:36 UTC, Toralf Förster
Details
environment (environment,102.80 KB, text/plain)
2024-10-13 11:36 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.20 KB, application/x-xz)
2024-10-13 11:36 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,22.29 KB, application/x-xz)
2024-10-13 11:36 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,8.54 KB, application/x-xz)
2024-10-13 11:36 UTC, Toralf Förster
Details
net-p2p:mldonkey-3.2.1:20241013-112058.log (net-p2p:mldonkey-3.2.1:20241013-112058.log,224.53 KB, text/plain)
2024-10-13 11:36 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,66.28 KB, application/x-xz)
2024-10-13 11:36 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,24.28 KB, application/x-xz)
2024-10-13 11:36 UTC, Toralf Förster
Details
build.log (build.log,297.84 KB, text/plain)
2024-10-24 06:25 UTC, Jesús P Rey (Chuso)
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-13 11:36:05 UTC
                  ^^^^^
Warning 67 [unused-functor-parameter]: unused functor parameter Proto.
/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/fileTP  -I src/networks/donkey -I +camlp4  -c src/networks/donkey/donkeyOvernet.ml
File "src/networks/donkey/donkeyOvernet.ml", line 2081, characters 6-26:
2081 |       DonkeyNodesDat.parse filename bootstrap
             ^^^^^^^^^^^^^^^^^^^^
Error: Unbound module DonkeyNodesDat
make: *** [Makefile:5440: src/networks/donkey/donkeyOvernet.cmx] Error 2 shuffle=1192069123
 * ERROR: net-p2p/mldonkey-3.2.1::gentoo failed (compile phase):

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_gnome_systemd-20241007-040514

  UNMASKED:
  /etc/portage/package.unmask/60gcc:<sys-devel/gcc-15.0.9999:15
    Requested by sam
    Issues involving opaque types / incomplete typedefs should block bug 930805
  /etc/portage/package.unmask/50unstable:>=sys-libs/ncurses-6.5

  Block bug #351559 if this looks like a parallel build issue.
  Possible reproducer: MAKEOPTS='...  shuffle=1192069123'

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"
gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang/llvm (if any):
clang version 19.1.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/19/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/19
19.1.1
Python 3.12.7
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 17.0.12_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.4_p7 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.422_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.23.1 linux/amd64

  HEAD of ::gentoo
commit 2a58c05451fee793641ddd2dd4eea20256f139ac
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Oct 13 09:48:36 2024 +0000

    2024-10-13 09:48:35 UTC

emerge -qpvO =net-p2p/mldonkey-3.2.1
[ebuild  N    ] net-p2p/mldonkey-3.2.1  USE="magic ocamlopt -bittorrent -doc -fasttrack -gd -gnutella -upnp"
Comment 1 Toralf Förster gentoo-dev 2024-10-13 11:36:06 UTC
Created attachment 905613 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-10-13 11:36:07 UTC
Created attachment 905614 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-10-13 11:36:09 UTC
Created attachment 905615 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-10-13 11:36:10 UTC
Created attachment 905616 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-10-13 11:36:11 UTC
Created attachment 905617 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-10-13 11:36:12 UTC
Created attachment 905618 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-10-13 11:36:16 UTC
Created attachment 905619 [details]
net-p2p:mldonkey-3.2.1:20241013-112058.log
Comment 8 Toralf Förster gentoo-dev 2024-10-13 11:36:17 UTC
Created attachment 905620 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-10-13 11:36:18 UTC
Created attachment 905621 [details]
temp.tar.xz
Comment 10 Jesús P Rey (Chuso) 2024-10-24 06:25:34 UTC
Created attachment 906617 [details]
build.log

I updated to GCC 15 and even tried the same USE flags for net-p2p/mldonkey but I am not able to reproduce this issue.

The issue is probably not even related to GCC as this is an OCaml project compiled by the OCaml compiler (apart from a few C/C++ files, but in this case it's failing while compiling an OCaml file).

The "unbound module" error in the log is typically caused by parallel builds because there are dependencies in the order source files are compiled so this package doesn't support parallel builds.
See bug 582136 and upstream issue 48[1].

That's why -j1 is hardcoded in the ebuild to force non-parallel builds.
But it seems your build somehow is still forcing parallel builds.
As you can see from my log, the donkeyNodesDat file is compiled before donkeyOvernet where you get the unbound module error.

The whole compilation order looks different in your case, which shouldn't happen and it's a known cause for issues because, as mentioned, there are dependencies in the order files are compiled.

I even tried the same dev-build/make version up to the revision to check if maybe a different make version causes "-j4 -j1" to be interpreted differently (even when we only differed in the ebuild revision), but with the same exact dev-build/make, for me it still results in parallel builds to be disabled as required by this project and the source files to be compiled in the same order.

[1] https://github.com/ygrek/mldonkey/issues/48