riot-ml / gluon

Minimal, fast async engine for OCaml
Other
5 stars 3 forks source link

gluon compilation failed #4

Open hektorinho opened 4 weeks ago

hektorinho commented 4 weeks ago

Hello, I just tried upgrading to OCaml 5.2 and tried installing riot, however I get a compilation error when installing gluon 0.0.9

 hektor@orion ~~% opam install gluon
The following actions will be performed:
  ∗ install gluon 0.0.9

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
⬇ retrieved gluon.0.0.9  (cached)
[ERROR] The compilation of gluon.0.0.9 failed at "dune build -p gluon -j 31 @install".

#=== ERROR while compiling gluon.0.0.9 ========================================#
# context     2.1.5 | linux/x86_64 | ocaml-system.5.2.0 | https://opam.ocaml.org#940717b3
# path        ~/.opam/5.2.0/.opam-switch/build/gluon.0.0.9
# command     ~/.opam/5.2.0/bin/dune build -p gluon -j 31 @install
# exit-code   1
# env-file    ~/.opam/log/gluon-875514-64288c.env
# output-file ~/.opam/log/gluon-875514-64288c.out
### output ###
# File "gluon/sys/unix/dune", line 11, characters 41-57:
# 11 |   (names gluon_unix_io gluon_unix_kqueue gluon_unix_epoll)
#                                               ^^^^^^^^^^^^^^^^
# (cd _build/default/gluon/sys/unix && /usr/bin/gcc -O2 -fno-strict-aliasing -fwrapv -pthread -g -fno-omit-frame-pointer -fPIC -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/build/ocaml/src=/usr/src/debug/ocaml[...]
# gluon_unix_epoll.c: In function ‘gluon_unix_epoll_ctl’:
# gluon_unix_epoll.c:73:20: error: assignment to ‘uint64_t’ {aka ‘long unsigned int’} from ‘value *’ {aka ‘long int *’} makes integer from pointer without a cast [-Wint-conversion]
#    73 |     event.data.u64 = ocaml_value;
#       |                    ^

If it helps this is the version of gcc I am running:


gcc (GCC) 14.1.1 20240522
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.```
JohnBakhmat commented 2 weeks ago

same error for me. opam: 2.1.6 ocaml: 5.1.1 trying to install v0.0.8, it has gluon error too. I wonder if i just dont have some system deps

JohnBakhmat commented 2 weeks ago

It broken on Arch but didnt break on Mac, interesting, is it os issue?