Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915368 - dev-ml/lwt-5.7.0, dev-ml/luv-0.5.11-r2: stablereq
Summary: dev-ml/lwt-5.7.0, dev-ml/luv-0.5.11-r2: stablereq
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Stabilization (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Gentoo Team for the ML programming language family
URL:
Whiteboard:
Keywords: CC-ARCHES, STABLEREQ
Depends on: 915367 922714
Blocks:
  Show dependency tree
 
Reported: 2023-10-08 09:23 UTC by Maciej Barć
Modified: 2025-03-08 12:01 UTC (History)
5 users (show)

See Also:
Package list:
=dev-ml/lwt-5.7.0 =dev-ml/luv-0.5.11-r2 arm arm64 ppc64 x86
Runtime testing required: ---
nattka: sanity-check+


Attachments
output of emerge --info '=dev-ml/lwt-5.7.0::gentoo' (file_915368.txt,7.41 KB, text/plain)
2024-11-26 09:02 UTC, f16poom@gmail.com
no flags Details
output of emerge -pvq libguestfs (file_915368.txt,5.58 KB, text/plain)
2024-11-26 09:07 UTC, f16poom@gmail.com
no flags Details
output of emerge -pqv libguestfs (file_915368.txt,5.58 KB, text/plain)
2024-11-26 09:10 UTC, f16poom@gmail.com
no flags Details
dev-ml/lwt-5.7.0 build log (build.log,58.12 KB, text/x-log)
2024-11-26 09:31 UTC, f16poom@gmail.com
no flags Details
build log after trying emerge -1v dev-ml/ppxlib && emerge -1v dev-ml/lwt (build.log,58.41 KB, text/x-log)
2024-11-26 09:45 UTC, f16poom@gmail.com
no flags Details
output near make inconsistent assumptions over implementation Location (file_915368.txt,2.72 KB, text/plain)
2024-11-26 10:24 UTC, f16poom@gmail.com
no flags Details
output after trying unstable lwt & luv (file_915368.txt,1.97 KB, text/plain)
2024-11-26 10:36 UTC, f16poom@gmail.com
no flags Details
my make.conf (file_915368.txt,1.37 KB, text/plain)
2024-11-26 10:43 UTC, f16poom@gmail.com
no flags Details
unstable lwt & luv (build.log,59.29 KB, text/x-log)
2024-11-26 11:01 UTC, f16poom@gmail.com
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Barć gentoo-dev 2023-10-08 09:23:55 UTC
Please stabilize
Comment 1 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2023-10-08 16:20:48 UTC
amd64 done
Comment 2 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2023-10-08 17:41:50 UTC
x86 done
Comment 3 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2023-10-08 17:41:51 UTC
arm64 done
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-08 20:15:44 UTC
arm done
Comment 5 f16poom@gmail.com 2024-11-26 09:02:23 UTC
Created attachment 911975 [details]
output of emerge --info '=dev-ml/lwt-5.7.0::gentoo'
Comment 6 f16poom@gmail.com 2024-11-26 09:07:29 UTC
Created attachment 911976 [details]
output of emerge -pvq libguestfs
Comment 7 f16poom@gmail.com 2024-11-26 09:10:22 UTC
Created attachment 911977 [details]
output of emerge -pqv libguestfs
Comment 8 f16poom@gmail.com 2024-11-26 09:18:06 UTC
when emerging libguestfs, dev-ml/lwt-5.7.0 gets pulled in as a dependency and fails to build 

* Messages for package dev-ml/lwt-5.7.0:

 * ERROR: dev-ml/lwt-5.7.0::gentoo failed (compile phase):
 *   Failed to run command: dune build @install --display=short --profile release -j 16 --for-release-of-packages=lwt,lwt_ppx,lwt_ppx_let,lwt_react
 * 
 * Call stack:
 *     ebuild.sh, line 136:  Called src_compile
 *   environment, line 638:  Called dune-compile 'lwt' 'lwt_ppx' 'lwt_ppx_let' 'lwt_react'
 *   environment, line 315:  Called dune-release 'build' '--target' '@install' 'lwt' 'lwt_ppx' 'lwt_ppx_let' 'lwt_react'
 *   environment, line 356:  Called edune 'build' '@install' '--display=short' '--profile' 'release' '-j' '16' '--for-release-of-packages=lwt,lwt_ppx,lwt_ppx_let,lwt_react'
 *   environment, line 553:  Called edo 'dune' 'build' '@install' '--display=short' '--profile' 'release' '-j' '16' '--for-release-of-packages=lwt,lwt_ppx,lwt_ppx_let,lwt_react'
 *   environment, line 514:  Called die
 * The specific snippet of code:
 *       "$@" || die -n "Failed to run command: $@"
 * 
 * If you need support, post the output of `emerge --info '=dev-ml/lwt-5.7.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-ml/lwt-5.7.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-ml/lwt-5.7.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-ml/lwt-5.7.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-ml/lwt-5.7.0/work/lwt-5.7.0'
 * S: '/var/tmp/portage/dev-ml/lwt-5.7.0/work/lwt-5.7.0'
Comment 9 Maciej Barć gentoo-dev 2024-11-26 09:23:23 UTC
(In reply to f16poom@gmail.com from comment #8)
> when emerging libguestfs, dev-ml/lwt-5.7.0 gets pulled in as a dependency
> and fails to build 

Please upload the log file of failed package.
Comment 10 f16poom@gmail.com 2024-11-26 09:31:49 UTC
Created attachment 911979 [details]
dev-ml/lwt-5.7.0 build log
Comment 11 Maciej Barć gentoo-dev 2024-11-26 09:40:38 UTC
(In reply to f16poom@gmail.com from comment #10)
> Created attachment 911979 [details]
> dev-ml/lwt-5.7.0 build log

does "emerge -1v dev-ml/ppxlib && emerge -1v dev-ml/lwt" solve it?
Comment 12 f16poom@gmail.com 2024-11-26 09:45:33 UTC
Created attachment 911982 [details]
build log after trying emerge -1v dev-ml/ppxlib && emerge -1v dev-ml/lwt

ppxlib builds, lwt doesn't
Comment 13 Maciej Barć gentoo-dev 2024-11-26 09:50:50 UTC
(In reply to f16poom@gmail.com from comment #12)
> Created attachment 911982 [details]
> build log after trying emerge -1v dev-ml/ppxlib && emerge -1v dev-ml/lwt
> 
> ppxlib builds, lwt doesn't

In 1st lwt log  we see:

 Files /usr/lib64/ocaml/ppxlib/astlib/astlib.cmxa
       and /usr/lib64/ocaml/compiler-libs/ocamlcommon.cmxa
       make inconsistent assumptions over implementation Location

This is caused by wrong build order of ppxlib.

We can see that ppxlib is to blame because "qfile /usr/lib64/ocaml/ppxlib/astlib/astlib.cmxa" gives "dev-ml/ppxlib".

Are there now any other "Files X and Y make inconsistent assumptions" on the new build failure? 

BTW: lwt 5.7.0 rebuilds fine for me.
Comment 14 f16poom@gmail.com 2024-11-26 09:54:51 UTC
Sorry, I don't understand. Should I perhaps clean and rebuild everything?
Comment 15 Maciej Barć gentoo-dev 2024-11-26 09:57:07 UTC
(In reply to f16poom@gmail.com from comment #14)
> Sorry, I don't understand. Should I perhaps clean and rebuild everything?

You can try it. 

This lock behavior sometimes happens in OCaml ecosystem. You cna either:
a) grep the build logs for "make inconsistent assumptions"
b) force-uninstall all dev-ml packages and re-emerge them
Comment 16 f16poom@gmail.com 2024-11-26 10:15:05 UTC
I clean and tried re-emerging, exact same build.log error.

sudo grep "make inconsistent assumptions" /var/tmp/portage/dev-ml/lwt-5.7.0/temp/build.log
       make inconsistent assumptions over implementation Location

what other logs should I grep?
Comment 17 Maciej Barć gentoo-dev 2024-11-26 10:16:19 UTC
(In reply to f16poom@gmail.com from comment #16)
> I clean and tried re-emerging, exact same build.log error.
> 
> sudo grep "make inconsistent assumptions"
> /var/tmp/portage/dev-ml/lwt-5.7.0/temp/build.log
>        make inconsistent assumptions over implementation Location
> 
> what other logs should I grep?

well, you also have to look above that message cause only form that line you do not know what files are to blame
Comment 18 f16poom@gmail.com 2024-11-26 10:24:32 UTC
Created attachment 911983 [details]
output near make inconsistent assumptions over implementation Location
Comment 19 Maciej Barć gentoo-dev 2024-11-26 10:26:21 UTC
(In reply to f16poom@gmail.com from comment #18)
> Created attachment 911983 [details]
> output near make inconsistent assumptions over implementation Location

I see it still fails on the same file from ppxlib (/usr/lib64/ocaml/ppxlib/astlib/astlib.cmxa).
Comment 20 Maciej Barć gentoo-dev 2024-11-26 10:27:04 UTC
f16poom, any luck with latest unstable lwt + luv?
Comment 21 f16poom@gmail.com 2024-11-26 10:36:36 UTC
Created attachment 911984 [details]
output after trying unstable lwt & luv
Comment 22 f16poom@gmail.com 2024-11-26 10:43:10 UTC
Created attachment 911985 [details]
my make.conf

Hopefully it's just a case of me missing something idiotic. I use binpkgs
Comment 23 Maciej Barć gentoo-dev 2024-11-26 10:43:19 UTC
(In reply to f16poom@gmail.com from comment #21)
> Created attachment 911984 [details]
> output after trying unstable lwt & luv

Upload the full log file in this case, please.
Comment 24 Maciej Barć gentoo-dev 2024-11-26 10:44:15 UTC
(In reply to f16poom@gmail.com from comment #22)
> Created attachment 911985 [details]
> my make.conf
> 
> Hopefully it's just a case of me missing something idiotic. I use binpkgs

Have you re-emerged ppxlib as binary?
Comment 25 f16poom@gmail.com 2024-11-26 11:01:59 UTC
Created attachment 911989 [details]
unstable lwt & luv

ppxlib had always been emerged as a binary
Comment 26 Maciej Barć gentoo-dev 2024-11-26 11:04:28 UTC
(In reply to f16poom@gmail.com from comment #25)
> Created attachment 911989 [details]
> unstable lwt & luv
> 
> ppxlib had always been emerged as a binary

Well, that's wrong, try again

... as non-binary :)

Because the OCaml bytecode will be exactly the same with a binary - so here you were just running in a circle.
Comment 27 Tupone Alfredo gentoo-dev 2024-11-26 11:05:34 UTC
(In reply to f16poom@gmail.com from comment #25)
> Created attachment 911989 [details]
> unstable lwt & luv
> 
> ppxlib had always been emerged as a binary

Did you emerge with --deep ? --deep is almost mandatory for ocaml packages
Comment 28 f16poom@gmail.com 2024-11-26 11:15:08 UTC
I feel so stupid hahaha!

sudo FEATURES="-getbinpkg" emerge -1vq --deep dev-ml/ppxlib && sudo emerge -1vq dev-ml/lwt
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) dev-ml/ppxlib-0.30.0-r2::gentoo
>>> Installing (1 of 1) dev-ml/ppxlib-0.30.0-r2::gentoo
>>> Completed (1 of 1) dev-ml/ppxlib-0.30.0-r2::gentoo
>>> Jobs: 1 of 1 complete                                               Load avg: 0.43, 0.20, 0.13
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) dev-ml/lwt-5.9.0::gentoo
>>> Installing (1 of 1) dev-ml/lwt-5.9.0::gentoo
>>> Completed (1 of 1) dev-ml/lwt-5.9.0::gentoo
>>> Jobs: 1 of 1 complete                                               Load avg: 1.55, 0.47, 0.22

Now that unstable works, I'll remove ~amd and try to emerge the stable 5.7 version.
Comment 29 f16poom@gmail.com 2024-11-26 11:22:30 UTC
sudo FEATURES="-getbinpkg" emerge -1vq --deep dev-ml/ppxlib && sudo emerge -1vq dev-ml/lwt
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) dev-ml/ppxlib-0.30.0-r2::gentoo
>>> Installing (1 of 1) dev-ml/ppxlib-0.30.0-r2::gentoo
>>> Completed (1 of 1) dev-ml/ppxlib-0.30.0-r2::gentoo
>>> Jobs: 1 of 1 complete                                               Load avg: 1.36, 0.65, 0.33
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) dev-ml/lwt-5.7.0::gentoo
>>> Installing (1 of 1) dev-ml/lwt-5.7.0::gentoo
>>> Completed (1 of 1) dev-ml/lwt-5.7.0::gentoo
>>> Jobs: 1 of 1 complete                                               Load avg: 2.22, 0.89, 0.42

Stable lwt & luv works. I guess this will just be a gotcha for people building libguestfs while using getbinpkg since ppxlib gets called in as a binary. Thank you so much for taking the time to help me.
Comment 30 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2025-03-08 12:01:32 UTC
ppc64 done

all arches done