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

Assembler error on ocaml.5 #94

Open
icristescu opened this issue Apr 29, 2022 · 2 comments
Open

Assembler error on ocaml.5 #94

icristescu opened this issue Apr 29, 2022 · 2 comments

Comments

@icristescu
Copy link
Contributor

On a ocaml-variants.5.0.0+trunk switch, when I run dune build ./test/repr/main.exe I get the following error:

✦ ❯ dune build ./test/repr/main.exe
File "test/repr/.main.eobjs/native/_unknown_", line 1, characters 0-0:
/var/folders/mj/sbh5f0s1783ch5vgxqp4j87h0000gn/T/build_762d24_dune/camlasm5ee54b.s:34489:17: error: expected compatible register, symbol or integer in range [0, 4095]
  add x16, x16, #4480
                ^
File "test/repr/main.ml", line 1:
Error: Assembler error, input left in file /var/folders/mj/sbh5f0s1783ch5vgxqp4j87h0000gn/T/build_762d24_dune/camlasm5ee54b.s

commenting out test_variants the error disappears. The code runs without issues on my ocaml.4.13.1 switch.

@icristescu icristescu changed the title Assembler error on ocaml.5.0.0 Assembler error on ocaml.5. Apr 29, 2022
@icristescu icristescu changed the title Assembler error on ocaml.5. Assembler error on ocaml.5 Apr 29, 2022
@samoht
Copy link
Member

samoht commented Apr 29, 2022

I can reproduce the error as well on my arm64 macOS. It's worth opening an issue on ocaml/ocaml!

@icristescu
Copy link
Contributor Author

Done in ocaml/ocaml#11229.

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

2 participants