minttea icon indicating copy to clipboard operation
minttea copied to clipboard

Gluon fails to compile on macos

Open villuminati opened this issue 1 year ago • 3 comments

I cloned the minttea repo.

then ran opam switch create .

I get the following error when i run opam switch create .. This is on a macbook M2 apple silicon.

gluon-error

villuminati avatar Jul 17 '24 18:07 villuminati

fwiw, I could get it to work by pinning.

in your project_name.opam.template (if you're using dune to generate opam files)

pin-depends: [
  [ "riot.0.0.8" "git+https://github.com/riot-ml/riot.git" ]
  [ "gluon.dev" "git+https://github.com/riot-ml/gluon.git" ]
  [ "spices.dev" "git+https://github.com/leostera/minttea.git" ]
  [ "minttea.dev" "git+https://github.com/leostera/minttea.git" ]
  [ "leaves.dev" "git+https://github.com/leostera/minttea.git" ]
]

lessp avatar Sep 17 '24 11:09 lessp

lessp's suggestion got me past the gluon installation step, but then I get the following error on building minttea:

# 112 |   let Config.{ render_mode; fps } = config in
# [...]
# Error: Unbound record field "fps"
# (cd _build/default && /usr/bin/ocamlc.opt -w -40 -g -bin-annot -bin-annot-occurrences -I minttea/.minttea.objs/byte -I /tmp/o/hi/_opam/lib/angstrom -I /tmp/o/hi/_opam/lib/asn1-combinators -I /tmp/o/hi/_opam/lib/base64 -I /tmp/o/hi/_opam/lib/bigstringaf -I /tmp/o/hi/_opam/lib/bytestring -I /tmp/o/hi/_opam/lib/cstruct -I /tmp/o/hi/_opam/lib/digestif -I /tmp/o/hi/_opam/lib/domain-name -I /tmp/o/[...]
# File "minttea/minttea.ml", line 8, characters 61-72:
# 8 | let config ?(render_mode = `clear) ?(fps = 60) () = Config.{ render_mode; fps }
#                                                                  ^^^^^^^^^^^
# Error: Unbound record field "render_mode"
# (cd _build/default && /usr/bin/ocamlopt.opt -w -40 -g -I minttea/.minttea.objs/byte -I minttea/.minttea.objs/native -I /tmp/o/hi/_opam/lib/angstrom -I /tmp/o/hi/_opam/lib/asn1-combinators -I /tmp/o/hi/_opam/lib/base64 -I /tmp/o/hi/_opam/lib/bigstringaf -I /tmp/o/hi/_opam/lib/bytestring -I /tmp/o/hi/_opam/lib/cstruct -I /tmp/o/hi/_opam/lib/digestif -I /tmp/o/hi/_opam/lib/domain-name -I /tmp/o/[...]
# File "minttea/renderer.ml", line 112, characters 28-31:
# 112 |   let Config.{ render_mode; fps } = config in
#                                   ^^^
# Error: Unbound record field "fps"



slondr avatar Dec 22 '24 15:12 slondr

I am also getting the above error when trying to compile the main branch of Minttea on Arch Linux, is there any fix to this?

# File "minttea/renderer.ml", line 112, characters 28-31:
# 112 |   let Config.{ render_mode; fps } = config in
#                                   ^^^
# Error: Unbound record field "fps"

rabiescow avatar May 26 '25 23:05 rabiescow