Bug 2226044

Summary: ocaml-cil-1.7.3-78.fc39 FTBFS in Fedora rawhide/f39: Unbound module Pervasives
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: ocaml-cilAssignee: Orphan Owner <extras-orphan>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 39CC: extras-orphan, ppisar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/ocaml-cil
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2168842, 2231791    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Fedora Release Engineering 2023-07-25 18:46:02 UTC
ocaml-cil failed to build from source in Fedora rawhide/f39

https://koji.fedoraproject.org/koji/taskinfo?taskID=103637307


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Please fix ocaml-cil at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
ocaml-cil will be orphaned. Before branching of Fedora 40,
ocaml-cil will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/

Comment 1 Fedora Release Engineering 2023-07-25 18:46:07 UTC
Created attachment 1978544 [details]
build.log

Comment 2 Fedora Release Engineering 2023-07-25 18:46:11 UTC
Created attachment 1978545 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2023-07-25 18:46:14 UTC
Created attachment 1978546 [details]
state.log

Comment 4 Petr Pisar 2023-07-27 06:48:03 UTC
From a build log:

+ /usr/bin/ocamlc.opt -c -g -I src/ext -I src -I ocamlutil -I src/frontc -I src/ext/pta -o src/ext/liveness.cmo src/ext/liveness.ml
File "src/ext/liveness.ml", line 197, characters 21-25:
197 |         with Failure "hd" ->
                           ^^^^
Warning 52 [fragile-literal-pattern]: Code should not depend on the actual values of
this constructor's arguments. They are only for information
and may change in future versions. (See manual section 13.5)
File "src/ext/liveness.ml", line 276, characters 21-25:
276 |         with Failure "hd" ->
                           ^^^^
Warning 52 [fragile-literal-pattern]: Code should not depend on the actual values of
this constructor's arguments. They are only for information
and may change in future versions. (See manual section 13.5)
/usr/bin/ocamlc.opt -c -g -I src/ext -I src -I ocamlutil -I src/frontc -I src/ext/pta -o src/ext/reachingdefs.cmo src/ext/reachingdefs.ml
+ /usr/bin/ocamlc.opt -c -g -I src/ext -I src -I ocamlutil -I src/frontc -I src/ext/pta -o src/ext/reachingdefs.cmo src/ext/reachingdefs.ml
File "src/ext/reachingdefs.ml", line 44, characters 21-39:
44 |    Some i1, Some i2 -> Pervasives.compare i1 i2
                            ^^^^^^^^^^^^^^^^^^
Error: Unbound module Pervasives
Command exited with code 2.
+ /usr/bin/ocamlopt.opt unix.cmxa -I /usr/lib64/ocaml/ocamlbuild /usr/lib64/ocaml/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml /usr/lib64/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
File "_none_", line 1:
Alert ocaml_deprecated_auto_include: 
OCaml's lib directory layout changed in 5.0. The unix subdirectory has been
automatically added to the search path, but you should add -I +unix to the
command-line to silence this alert (e.g. by adding unix to the list of
libraries in your dune file, or adding use_unix to your _tags file for
ocamlbuild, or using -package unix for ocamlfind).
make: *** [Makefile:79: _build/src/cil.cma] Error 10


A difference between passing and failing build roots is at <https://koschei.fedoraproject.org/build/15820057>. An upgrade of ocaml from 4.14.0-5.fc38 to 5.0.0-3.fc39 is suspicious.

Comment 5 Fedora Release Engineering 2023-08-16 07:59:32 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.