Bug 2218692 - haxe is incompatible with OCaml 5.x
Summary: haxe is incompatible with OCaml 5.x
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: haxe
Version: 39
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Andy Li
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-29 21:05 UTC by Jerry James
Modified: 2023-08-16 08:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
Patch for partial OCaml 5.0 compatibility (54.39 KB, patch)
2023-06-29 21:07 UTC, Jerry James
no flags Details | Diff

Description Jerry James 2023-06-29 21:05:52 UTC
Richard Jones and I have been preparing to update to OCaml 5.0 in Rawhide.  Test builds are available in a COPR: https://copr.fedorainfracloud.org/coprs/jjames/OCaml5/.  We now have almost all OCaml-using packages built in the COPR, with the exception of half a dozen packages we intend to retire.

Haxe is the sole remaining package, but it is not compatible with OCaml 5.0.  I have a patch that fixes many of the incompatibilities, which I will attach to this bug.  However, even with that patch, building fails:

/usr/bin/ld: libs/objsize/libobjsize_stubs.a(c_objsize.o): in function
`c_rec_objsize':
/builddir/build/BUILD/haxe-4.3.1/_build/default/libs/objsize/c_objsize.c:359:
undefined reference to `caml_page_table_lookup'
/usr/bin/ld: libs/objsize/libobjsize_stubs.a(c_objsize.o): in function
`restore_colors':
/builddir/build/BUILD/haxe-4.3.1/_build/default/libs/objsize/c_objsize.c:387:
undefined reference to `caml_page_table_lookup'
/usr/bin/ld: libs/objsize/libobjsize_stubs.a(c_objsize.o): in function
`c_objsize':
/builddir/build/BUILD/haxe-4.3.1/_build/default/libs/objsize/c_objsize.c:450:
undefined reference to `caml_page_table_lookup'
/usr/bin/ld: /builddir/build/BUILD/haxe-4.3.1/_build/default/libs/objsize/c_objsize.c:413:
undefined reference to `caml_page_table_lookup'
/usr/bin/ld: /builddir/build/BUILD/haxe-4.3.1/_build/default/libs/objsize/c_objsize.c:426:
undefined reference to `caml_page_table_lookup'
/usr/bin/ld: libs/objsize/libobjsize_stubs.a(c_objsize.o):/builddir/build/BUILD/haxe-4.3.1/_build/default/libs/objsize/c_objsize.c:441:
more undefined references to `caml_page_table_lookup' follow

See https://github.com/ocaml-multicore/ocaml-multicore/issues/637; caml_page_table_lookup is not and will not be available in OCaml 5.x.

Reproducible: Always

Comment 1 Jerry James 2023-06-29 21:07:05 UTC
Created attachment 1973257 [details]
Patch for partial OCaml 5.0 compatibility

Comment 2 Andy Li 2023-07-05 15:49:33 UTC
Forwarded to upstream: https://github.com/HaxeFoundation/haxe/issues/11271

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


Note You need to log in before you can comment on or make changes to this bug.