Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gluon fails to compile on macos #57

Open
villuminati opened this issue Jul 17, 2024 · 2 comments
Open

Gluon fails to compile on macos #57

villuminati opened this issue Jul 17, 2024 · 2 comments

Comments

@villuminati
Copy link

villuminati commented Jul 17, 2024

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
@lessp
Copy link
Contributor

lessp commented Sep 17, 2024

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" ]
]

@slondr
Copy link

slondr commented Dec 22, 2024

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"



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants