Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 772920

Summary: net-p2p/mldonkey-3.1.7-r1 fails compiling
Product: Gentoo Linux Reporter: Per Pomsel <phantom4>
Component: Current packagesAssignee: Jesús P Rey (Chuso) <gentoo>
Status: RESOLVED FIXED    
Severity: major CC: jstein, proxy-maint, sam
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/ygrek/mldonkey/issues/61
https://github.com/gentoo/gentoo/pull/19853
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 775119    
Bug Blocks:    
Attachments: build.log

Description Per Pomsel 2021-02-25 15:59:04 UTC
emerge --noconfmem net-p2p/mldonkey fails with:

...
Compiling CryptoPP.cc can take several minutes, on slow machines up to half an hour.
>>> Source configured.
>>> Compiling source in /dev/shm/portage/net-p2p/mldonkey-3.1.7-r1/work/mldonkey-3.1.7-2 ...
make -j5 -j1 
/usr/bin/ocamlc.opt -unsafe-string -w +a-3-4-6-27-29-32-35-37-41-44-45-48-60  -linkall -o ocamlpp.byte \
     -custom bigarray.cma unix.cma str.cma -I /usr/lib64/ocaml/num nums.cma -ccopt "-Wl,-O1 -Wl,--as-needed " -cclib "-lz -lpng " -cclib -lbz2 -ccopt "-pthread" \
  \
  \
  \
  \
  \
  \
-I build         tools/ocamlpp.cmo  
File "_none_", line 1:
Error: Cannot find file nums.cma
make: *** [Makefile:3821: ocamlpp.byte] Fehler 2
...


Reproducible: Always




Portage 3.0.15 (python 3.8.8-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-10.2.0, glibc-2.32-r7, 5.10.18 x86_64)
=================================================================
System uname: Linux-5.10.18-x86_64-Intel-R-_Core-TM-_i7-6600U_CPU_@_2.60GHz-with-glibc2.2.5
KiB Mem:    19890948 total,  16677788 free
KiB Swap:    3772412 total,   3772412 free
Timestamp of repository gentoo: Thu, 25 Feb 2021 11:30:01 +0000
Head commit of repository gentoo: 09ab2a91be441be1e9b1a1b0e08cdb6f425bfd62
sh bash 5.1_p4
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.1_p4::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          2.7.18_p7::gentoo, 3.8.8::gentoo, 3.9.2::gentoo
dev-util/cmake:           3.19.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7-r1::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            10.2.0-r5::gentoo
sys-devel/gcc-config:     2.3.3::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.11::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts: 

pear-ath-cx
    location: /usr/local/overlays/pear.ath.cx
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going=y --quiet-build=y --buildpkg-exclude 'virtual/* sys-kernel/*-sources' --usepkg-exclude 'virtual/* sys-kernel/*-sources'"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="/usr/share/locale -/usr/share/locale/de -/usr/share/locale/en"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_BINHOST=""
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/dev/shm"
USE="X a52 aac acl acpi activities alsa amd64 berkdb bluetooth branding bzip2 cairo caps cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr elogind emboss encode exif ffmpeg flac fortran gcrypt gd gdbm gif gmp gnutls gpg gpm gtk gui iconv icu idn ipv6 java jpeg jpeg2k kde kipi kwallet lcms libglvnd libnotify libtirpc lz4 lzma lzo mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg openexr opengl openmp openssl pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt5 readline samba sdl seccomp semantic-desktop sftp sip spell split-usr sqlite ssl startup-notification svg taglib tcpd theora threads tiff truetype udev udisks unicode upower usb vaapi vdpau vhosts vnc vorbis vulkan widgets wxwidgets x264 xattr xcb xml xpm xv xvid xvmc zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta cgi cgid charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dumpio env expires ext_filter file_cache filter headers ident imagemap include info log_config log_forensic logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_fcgi proxy_ftp proxy_http reqtimeout rewrite setenvif speling status substitute unique_id userdir usertrack version vhost_alias authn_core authz_core unixd socache_shmcb slotmem_shm" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Per Pomsel 2021-02-25 16:00:45 UTC
Created attachment 688374 [details]
build.log
Comment 2 Jesús P Rey (Chuso) 2021-03-02 20:17:41 UTC
From your build.log, it looks like you are using dev-lang/ocaml-4.09.0.
Can you please confirm it?

Also, can you please confirm you have dev-ml/num installed? It should be pulled as a dependency by net-p2p/mldonkey when the bittorrent USE flag is enabled with >=dev-lang/ocaml-4.06:

        bittorrent? (
                || (
                        <dev-lang/ocaml-4.06[ocamlopt?]
                        dev-ml/num
                )

Please confirm these dependencies are correct:

emerge -pv dev-lang/ocaml dev-ml/num
Comment 3 Per Pomsel 2021-03-03 11:37:26 UTC
I confirm that I use dev-lang/ocaml-4.09.0 and dev-ml/num-1.4.

emerge -pv dev-lang/ocaml dev-ml/num

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

Calculating dependencies... done!
[ebuild  r  U  ] dev-lang/ocaml-4.11.2:0/4.11.2::gentoo [4.09.0:0/4.09.0::gentoo] USE="ocamlopt -emacs -flambda -latex -spacetime -xemacs" 4.957 KiB
[ebuild  rR    ] dev-ml/findlib-1.8.1-r2::gentoo  USE="ocamlopt -doc -tk" 0 KiB
[ebuild  rR    ] dev-ml/dune-2.8.2:0/2.8.2::gentoo  USE="-test%" 0 KiB
[ebuild   R    ] dev-ml/num-1.4::gentoo  USE="ocamlopt" 0 KiB

Total: 4 packages (1 upgrade, 3 reinstalls), Size of downloads: 4.957 KiB

The following packages are causing rebuilds:

  (dev-lang/ocaml-4.11.2:0/4.11.2::gentoo, ebuild scheduled for merge) causes rebuilds for:
    (dev-ml/dune-2.8.2:0/2.8.2::gentoo, ebuild scheduled for merge)
    (dev-ml/num-1.4:0/0::gentoo, ebuild scheduled for merge)
    (dev-ml/findlib-1.8.1-r2:0/0::gentoo, ebuild scheduled for merge)
Comment 4 Jesús P Rey (Chuso) 2021-03-08 20:58:44 UTC
Hi,

It seems some changes in dev-ml/num-1.4 made it incompatible with net-p2p/mldonkey.

Can you please check if using the previous version of dev-ml/num works for you?

emerge -1 '<dev-ml/num-1-4' && emerge net-p2p/mldonkey
Comment 5 Per Pomsel 2021-03-09 05:19:43 UTC
Using dev-ml/num-1.3-r1 with net-p2p/mldonkey-3.1.7-r1 did the trick. Thanks!
Comment 6 Jesús P Rey (Chuso) 2021-03-09 19:46:24 UTC
Thank you for reporting it and confirming the workaround.

I just pushed a new ebuild to Portage fixing the dependency constraint (pending review) and reported the issue upstream: https://github.com/ygrek/mldonkey/issues/61
Comment 7 Jesús P Rey (Chuso) 2021-03-09 20:31:44 UTC
Actually, I think this may be an issue on Gentoo side with the ebuild for dev-ml/num-1.4.

I opened bug 775119 to investigate these changes in dev-ml/num-1.4 that don't seem to be explained by the changes upstream.
Comment 8 Jesús P Rey (Chuso) 2021-03-09 20:52:04 UTC
Yes, the issue was indeed in the ebuild for dev-ml/num-1.4 and Sam was nice enough to fix it as soon as I reported it.

You should be able to build dev-ml/num-1.4-r1 now after updating your Portage tree.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-09 20:53:16 UTC
Apologies for the bug!