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

Bug 625160

Summary: portage does not rebuild := deps in proper order (dev-ml/integers-0.2.2 : Error: The files /usr/lib64/ocaml/findlib/findlib.cma)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Portage team <dev-portage>
Status: RESOLVED NEEDINFO    
Severity: normal CC: aballier, asturm, gienah, ml, sam, tsmksubc
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=636520
https://bugs.gentoo.org/show_bug.cgi?id=749777
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 749555    
Attachments: emerge-info.txt
dev-ml:integers-0.2.2:20170714-215027.log
emerge-history.txt
environment
etc.portage.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2017-07-15 06:59:08 UTC
disagree over interface String
File "./pkg/pkg.ml", line 1:
Error: The files /usr/lib64/ocaml/findlib/findlib.cma
       and /usr/lib64/ocaml/topkg/topkg.cmi make inconsistent assumptions
       over interface String
 * ERROR: dev-ml/integers-0.2.2::gentoo failed (compile phase):

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 13.0-systemd_20170711-225716

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-6.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.5 (fallback)
  [3]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems)
  [2]   ruby22 (with Rubygems) *
Comment 1 Toralf Förster gentoo-dev 2017-07-15 06:59:11 UTC
Created attachment 484702 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-07-15 06:59:14 UTC
Created attachment 484704 [details]
dev-ml:integers-0.2.2:20170714-215027.log
Comment 3 Toralf Förster gentoo-dev 2017-07-15 06:59:17 UTC
Created attachment 484706 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-07-15 06:59:21 UTC
Created attachment 484708 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2017-07-15 06:59:24 UTC
Created attachment 484710 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-07-15 06:59:27 UTC
Created attachment 484712 [details]
temp.tbz2
Comment 7 Alexis Ballier gentoo-dev 2017-07-15 10:40:50 UTC
seems a portage bug:

Error: The files /usr/lib64/ocaml/findlib/findlib.cma
       and /usr/lib64/ocaml/topkg/topkg.cmi make inconsistent assumptions

means that you updated dev-lang/ocaml but one of dev-ml/findlib and dev-ml/topkg has been rebuilt with new ocaml but not the other. (most likely findlib has been rebuilt but not topkg)

dev-lang/ocaml has SLOT=0/$PV

dev-ml/integers has build dep on topkg and findlib

dev-ml/topkg has dev-ml/findlib:= and dev-lang/ocaml:= build + run dep
dev-ml/findlib has >=dev-lang/ocaml-4.02.3-r1:=[ocamlopt?] build + run dep


so this seems to me a proper ordering would have been:
update dev-lang/ocaml
rebuild dev-ml/findlib
rebuild dev-ml/topkg
build/rebuild dev-ml/integers


portage seems to have skipped the 'rebuild dev-ml/topkg' step causing this bug
Comment 8 Alexis Ballier gentoo-dev 2017-07-15 10:46:54 UTC
*** Bug 625164 has been marked as a duplicate of this bug. ***
Comment 9 Alexis Ballier gentoo-dev 2017-07-15 10:47:51 UTC
bug #625164 is another occurence of improper rebuild ordering by portage if you need more data/evidence
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-17 01:05:51 UTC
A workaround may well end up being some haskell-updater tool for now.
Comment 11 Zac Medico gentoo-dev 2020-10-19 04:31:30 UTC
(In reply to Alexis Ballier from comment #7)
> so this seems to me a proper ordering would have been:
> update dev-lang/ocaml
> rebuild dev-ml/findlib
> rebuild dev-ml/topkg
> build/rebuild dev-ml/integers
> 
> 
> portage seems to have skipped the 'rebuild dev-ml/topkg' step causing this
> bug

It looks like dev-ml/topkg-0.9.0 was rebuilt in emerge-history.txt attached in comment #3.